Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
371 commits
Select commit Hold shift + click to select a range
2c4d552
feat: add UnifiedItem[] Recipe infrastructure layer
marcuscastelo Jun 27, 2025
8ac74a4
test: add comprehensive tests for UnifiedRecipe operations
marcuscastelo Jun 27, 2025
c5cd370
feat(recipe): add UnifiedRecipe UI support with macro calculation
marcuscastelo Jun 28, 2025
d46c42f
feat(recipe): migrate GroupChildrenEditor to UnifiedRecipe workflow
marcuscastelo Jun 28, 2025
5a52a2d
feat(recipe): migrate UnifiedItemName to use UnifiedRecipe API
marcuscastelo Jun 28, 2025
e96ac4c
docs(recipe): complete migration audit with success summary
marcuscastelo Jun 28, 2025
3b7b636
refactor(recipe): simplify macro calculation by removing template ite…
marcuscastelo Jun 28, 2025
b4b3c7a
feat(copilot): enhance interaction instructions with memory retrieval…
marcuscastelo Jun 28, 2025
b788b8d
feat(copilot): enhance session instructions with memory capacity repo…
marcuscastelo Jun 28, 2025
b2a597a
feat(copilot): update user identification to reflect current user and…
marcuscastelo Jun 28, 2025
250cef2
feat(memory): enhance user and epic entity observations for migration…
marcuscastelo Jun 28, 2025
012e7d5
feat(GroupChildrenEditor): add Unlink Recipe button
marcuscastelo Jun 28, 2025
fd6f9af
feat(unified-item): add recipe editing capability to UnifiedItemEditM…
marcuscastelo Jun 28, 2025
068ecf2
feat(memory): enhance phase observations with recipe editing details …
marcuscastelo Jun 28, 2025
b6bcc01
ci: remove check acceptance criteria workflow
marcuscastelo Jun 28, 2025
3e27065
ci: test workflow
marcuscastelo Jun 28, 2025
a071b78
Merge pull request #908 from marcuscastelo/marcuscastelo/issue885
marcuscastelo Jun 28, 2025
f08f678
feat: add loading indicators for search modals
marcuscastelo Jun 28, 2025
601f21f
refactor(search): update TemplateSearchTabs to use reactive accessors…
marcuscastelo Jun 28, 2025
250e5fe
feat(end-session): add memory tools to save learnings as entities and…
marcuscastelo Jun 28, 2025
8c78c71
feat(end-session): add additional checklist for session context review
marcuscastelo Jun 28, 2025
f5d30f5
refactor(search): improve accessibility and code readability in Templ…
marcuscastelo Jun 28, 2025
c4749a7
chore(end-session): add 'memory' tool to the list of available tools
marcuscastelo Jun 28, 2025
d1aadb2
refactor(memory): update Phase 4 observations to reflect UI migration…
marcuscastelo Jun 28, 2025
3536ef1
feat: add Planning mode and update prompt instructions
marcuscastelo Jun 28, 2025
c2d1736
refactor(search-ui): remove unused loading prop from TemplateSearchTa…
marcuscastelo Jun 28, 2025
98e4cbe
chore(prompts): add additional tools to end-session and issue impleme…
marcuscastelo Jun 28, 2025
545ebd6
refactor(TemplateSearch-ui): remove unused loading prop from Template…
marcuscastelo Jun 28, 2025
6619ac2
refactor(memory): add EPIC-882 status to observations for Item/ItemGr…
marcuscastelo Jun 28, 2025
b862098
Merge pull request #913 from marcuscastelo/marcuscastelo/issue765
marcuscastelo Jun 28, 2025
84e5200
refactor: create reusable context menu item components
marcuscastelo Jun 28, 2025
8f3d7be
refactor: enforce barrel file ban and direct imports for context menu…
marcuscastelo Jun 28, 2025
a0afdab
Merge pull request #914 from marcuscastelo/marcuscastelo/issue850
marcuscastelo Jun 28, 2025
afd1a3a
refactor(scripts): move immediate prompt creation to a separate script
marcuscastelo Jun 28, 2025
e916e61
feat(templates-ui): add delete confirmation for recipe templates
marcuscastelo Jun 28, 2025
078c978
fix(unified-item): hide actions menu when no handlers are provided in…
marcuscastelo Jun 28, 2025
53e6eb8
Merge pull request #916 from marcuscastelo/marcuscastelo/issue915
marcuscastelo Jun 28, 2025
c384731
feat: standardize button styles with reusable components
marcuscastelo Jun 29, 2025
4607710
feat(memory): add observations for Issue #851 on button styles standa…
marcuscastelo Jun 29, 2025
a2fea5a
docs: add CLAUDE.md for project guidance and development commands
marcuscastelo Jun 29, 2025
8bfd83f
docs: update CLAUDE.md with critical setup requirements and developme…
marcuscastelo Jun 29, 2025
7fd08a7
docs: add Claude commands framework for automated development workflows
marcuscastelo Jun 29, 2025
1238c38
refactor(ui): unify copy button components and eliminate duplication
marcuscastelo Jun 29, 2025
c6a2d78
docs: add guideline to avoid specific phrases in commit messages
marcuscastelo Jun 29, 2025
66eacf1
Merge pull request #918 from marcuscastelo/marcuscastelo/issue852
marcuscastelo Jun 29, 2025
8e29026
refactor(issues): optimize branch management in issue implementation …
marcuscastelo Jun 29, 2025
645fc9f
refactor(ui): simplify button components architecture
marcuscastelo Jun 29, 2025
5e625af
refactor(ui): eliminate prop translation in Button component using cn…
marcuscastelo Jun 29, 2025
e1853ce
Merge branch 'rc/v0.13.0' into marcuscastelo/issue851
marcuscastelo Jun 29, 2025
e77e0e1
docs: update CLAUDE.md with CSS and styling guidelines
marcuscastelo Jun 29, 2025
50d87e0
refactor(ui): restructure Button component for improved readability
marcuscastelo Jun 29, 2025
1fbda64
Merge pull request #917 from marcuscastelo/marcuscastelo/issue851
marcuscastelo Jun 29, 2025
ba08330
feat(profile): implement tabbed chart interface for memory optimization
marcuscastelo Jun 29, 2025
a63b68d
docs: enforce strict commit message guidelines and restrictions
marcuscastelo Jun 29, 2025
ca116f6
refactor(profile): improve tab accessibility and card styling integra…
marcuscastelo Jun 29, 2025
cc9dbd1
refactor(shared): extract hash and tab management into reusable useHa…
marcuscastelo Jun 29, 2025
e46ae7b
fix(eslint): change strict-boolean-expressions rule to error level
marcuscastelo Jun 29, 2025
1e9e63b
refactor(profile-ui): update chart tab titles for consistency
marcuscastelo Jun 30, 2025
78fe531
Merge pull request #919 from marcuscastelo/marcuscastelo/issue892
marcuscastelo Jun 30, 2025
6458202
perf(profile): optimize weight chart performance for mobile devices
marcuscastelo Jun 30, 2025
9c02cc1
perf(profile): complete comprehensive weight chart performance optimi…
marcuscastelo Jun 30, 2025
2aae5af
fix(profile): resolve chart lifecycle management conflict with solid-…
marcuscastelo Jun 30, 2025
bb8dd31
fix(profile): revert to simple chart implementation to resolve mobile…
marcuscastelo Jun 30, 2025
e8fbb2d
refactor(weight): convert weight application layer to lazy resource p…
marcuscastelo Jun 30, 2025
ae97003
refactor(weight): extract chart settings to application layer
marcuscastelo Jun 30, 2025
dd1ecb3
refactor(weight-ui): implement lazy loading for datepicker in WeightV…
marcuscastelo Jun 30, 2025
9b14fbe
chore: rename repository from marucs-diet to macroflows
marcuscastelo Jul 1, 2025
8efaedf
Merge pull request #928 from marcuscastelo/marcuscastelo/rename-repo
marcuscastelo Jul 1, 2025
f784991
refactor(application): remove unused dayId parameters from meal opera…
marcuscastelo Jul 1, 2025
6009f94
Merge pull request #929 from marcuscastelo/marcuscastelo/issue723
marcuscastelo Jul 1, 2025
659e409
feat(refine): add GitHub Issue Refiner command for interactive issue …
marcuscastelo Jul 1, 2025
73dc587
feat(recent-food): add configurable limit to fetchUserRecentFoods for…
marcuscastelo Jul 1, 2025
78428f4
feat(recent-food): add server-side search with Portuguese diacritic s…
marcuscastelo Jul 1, 2025
e84bc23
Merge pull request #937 from marcuscastelo/marcuscastelo/issue372
marcuscastelo Jul 1, 2025
180381e
docs(modal): add comprehensive unified modal system architecture and …
marcuscastelo Jul 2, 2025
d31bfec
feat(issues): add command to prioritize milestone issues for optimal …
marcuscastelo Jul 3, 2025
af1f1e6
feat(modal): implement unified modal system architecture
marcuscastelo Jul 3, 2025
52d1b66
refactor(modal): remove legacy modal state and migrate to unified system
marcuscastelo Jul 3, 2025
68af643
refactor(modal): eliminate context provider and streamline modal mana…
marcuscastelo Jul 3, 2025
2fd279a
Remove outdated modal documentation and migration examples; consolida…
marcuscastelo Jul 3, 2025
72eb08b
refactor(modal-ui): remove GlobalModalContainer in favor of UnifiedMo…
marcuscastelo Jul 3, 2025
48234d7
refactor(modal): replace legacy error modal bridge with unified modal…
marcuscastelo Jul 3, 2025
512239e
docs: remove outdated unified modal architecture and technical specif…
marcuscastelo Jul 3, 2025
5121107
feat: implement unified modal system with centralized state management
marcuscastelo Jul 3, 2025
5cf66eb
feat(modal-ui): replace openEditModal with openContentModal in multip…
marcuscastelo Jul 3, 2025
4cd8754
refactor(console-dump-ui): remove mobile-specific share option and ad…
marcuscastelo Jul 3, 2025
583fa5d
refactor(modal): remove size property from modal configuration and re…
marcuscastelo Jul 3, 2025
9cbf750
refactor(day-diet-ui): remove closeOnOutsideClick property from CopyL…
marcuscastelo Jul 3, 2025
51ab438
refactor(day-diet-ui): remove unused newItemSelection state and simpl…
marcuscastelo Jul 3, 2025
76a7e70
refactor(day-diet-ui): update DayMeals component to use currentDayDie…
marcuscastelo Jul 4, 2025
9403390
refactor(day-diet-ui): remove size property from CopyLastDayModal con…
marcuscastelo Jul 4, 2025
4e3284f
refactor(day-diet-ui): remove size property from PreviousDayDetailsMo…
marcuscastelo Jul 4, 2025
8b01183
refactor(ean-ui): remove unused enabled prop from EANInsertModal and …
marcuscastelo Jul 4, 2025
383fa45
refactor(recipe-ui): remove unused effect for resetting selected item…
marcuscastelo Jul 4, 2025
77fee84
refactor(search-ui): remove ExternalEANInsertModal component
marcuscastelo Jul 4, 2025
e66af76
Refactor modal handling by introducing specialized modal helpers
marcuscastelo Jul 4, 2025
cec76d4
refactor(day-diet-ui,meal-ui): remove unused dayDiet prop from MealEd…
marcuscastelo Jul 4, 2025
41fbde7
refactor(unified-item): rename ExternalTemplateSearchModal to Templat…
marcuscastelo Jul 4, 2025
a5447ee
refactor(modal): replace ModalSize with ModalPriority in modal helper…
marcuscastelo Jul 4, 2025
ed93ffa
refactor(modal): remove unused modal methods and clean up codebase
marcuscastelo Jul 4, 2025
4567968
refactor(date): update date imports to use dateUtils module
marcuscastelo Jul 4, 2025
279bd2a
refactor(fix): streamline copilot:check command output handling
marcuscastelo Jul 4, 2025
8d4fa01
refactor(test): correct mock path for date utils in fieldTransforms t…
marcuscastelo Jul 4, 2025
8e0c698
refactor(user-selector): use createEffect for user fetching error han…
marcuscastelo Jul 4, 2025
d08567e
refactor(modal): remove closeAllModals function and export modals signal
marcuscastelo Jul 4, 2025
7a0af04
refactor(modal): update closeModal to handle asynchronous beforeClose…
marcuscastelo Jul 4, 2025
c07b990
refactor(modal): remove unnecessary comments and streamline modalMana…
marcuscastelo Jul 4, 2025
5bcb2b1
refactor(modal): streamline modal configuration by consolidating prop…
marcuscastelo Jul 4, 2025
ae92cb7
docs: add DRY Type Extension Pattern and Refactoring Best Practices t…
marcuscastelo Jul 4, 2025
bcde4d5
refactor(settings): add ls permission to Bash commands
marcuscastelo Jul 4, 2025
fa7db52
refactor(settings): add permission for gh issue list command
marcuscastelo Jul 4, 2025
21432a7
refactor(test): ensure modal close calls are awaited in tests
marcuscastelo Jul 4, 2025
f6730ab
refactor(modal-ui): replace scale with transform for modal animations
marcuscastelo Jul 4, 2025
58d23fc
Merge pull request #944 from marcuscastelo/marcuscastelo/unified-modal
marcuscastelo Jul 4, 2025
4e90e39
feat(day-diet-ui): add DayNotFound component and enhance CopyLastDayM…
marcuscastelo Jul 4, 2025
f58e818
Merge branch 'rc/v0.13.0' into marcuscastelo/issue888
marcuscastelo Jul 4, 2025
6366072
refactor(measure): extract utility functions and improve code organiz…
marcuscastelo Jul 4, 2025
a9d6ce7
refactor(macro-profile): convert to SolidJS resources and improve mod…
marcuscastelo Jul 4, 2025
aceb0a6
refactor(charts): consolidate chart components and simplify loading
marcuscastelo Jul 4, 2025
d627254
perf(charts): improve loading performance and component rendering
marcuscastelo Jul 5, 2025
5c90914
refactor(profile-ui): add fallback to Suspense for loading state
marcuscastelo Jul 5, 2025
63c729c
fix(profile): resolve hash navigation and weight chart issues
marcuscastelo Jul 5, 2025
2b9a74e
feat(ui): add haptic feedback to user interactions
marcuscastelo Jul 5, 2025
97453ea
style(ui): enhance button hover and active states in BottomNavigationTab
marcuscastelo Jul 5, 2025
299323e
style(ui): adjust layout of UnifiedItemNutritionalInfo component
marcuscastelo Jul 5, 2025
e649523
refactor(utils): add safe vibration utility with error handling
marcuscastelo Jul 5, 2025
77e1803
refactor(ui): remove unused imports and simplify navigation
marcuscastelo Jul 5, 2025
ee3727f
Merge pull request #923 from marcuscastelo/marcuscastelo/issue888
marcuscastelo Jul 5, 2025
8b0c1c7
fix(profile): macro calorie values now display correctly instead of s…
marcuscastelo Jul 5, 2025
644aaf1
Merge pull request #954 from marcuscastelo/marcuscastelo/issue949
marcuscastelo Jul 5, 2025
0fa52ab
feat(script): create hardlink for settings.json in worktree
marcuscastelo Jul 5, 2025
5f53cfa
refactor(unified-item): use repository pattern in UnifiedItemEditModal
marcuscastelo Jul 5, 2025
87edcb9
Merge pull request #955 from marcuscastelo/marcuscastelo/issue800
marcuscastelo Jul 5, 2025
e3aa0a5
fix(diet): implement automatic day change detection with user confirm…
marcuscastelo Jul 5, 2025
bad2604
refactor(day-diet): reduce day change detection interval from 60s to 6s
marcuscastelo Jul 5, 2025
93115e7
refactor(day-diet-ui): pass modalId to DayChangeModal for improved mo…
marcuscastelo Jul 5, 2025
97a82f6
refactor(dateUtils): add zero-padding to dateToDDMM formatting
marcuscastelo Jul 5, 2025
76e9474
refactor(day-diet-ui): remove title from modal options
marcuscastelo Jul 5, 2025
b86ec94
refactor(day-diet): encapsulate day change detection in createEffect
marcuscastelo Jul 6, 2025
ca6060a
refactor(day-diet-ui): remove previousDay prop and use currentToday i…
marcuscastelo Jul 6, 2025
573e99e
refactor(diet-ui): improve modal cleanup handling in DietPage
marcuscastelo Jul 6, 2025
fc24d78
Merge pull request #956 from marcuscastelo/marcuscastelo/issue947
marcuscastelo Jul 6, 2025
264e1fa
feat(database): enhance search_recent_foods_with_names to return comp…
marcuscastelo Jul 6, 2025
28fab0e
refactor(recent-food): replace fetchUserRecentFoods to return Templat…
marcuscastelo Jul 7, 2025
4e44ddd
feat(eslint): Add rule to warn on `as` type assertions
marcuscastelo Jul 7, 2025
cf98f1a
refactor(search): simplify search logic to use direct Template arrays
marcuscastelo Jul 7, 2025
6ab15d9
refactor(recent-food): replace type assertions with Zod validation
marcuscastelo Jul 7, 2025
b4f48f6
refactor(ui): update RemoveFromRecentButton to work with Template obj…
marcuscastelo Jul 7, 2025
e5e61e1
feat(eslint): Enforce `type` keyword for TypeScript imports
marcuscastelo Jul 7, 2025
a543d12
refactor(domain): remove RecentFood entity and related infrastructure
marcuscastelo Jul 7, 2025
60eb8b9
refactor(TemplateSearchModal-ui): remove debug logging statements
marcuscastelo Jul 7, 2025
182a883
docs: enhance CLAUDE.md with Gemini CLI usage and analysis examples
marcuscastelo Jul 7, 2025
f7399dd
refactor(recent-food): remove RecentTemplate and related functions
marcuscastelo Jul 7, 2025
fc5b3dc
test(performance): complete Issue #936 validation and cleanup
marcuscastelo Jul 7, 2025
53ea723
fix(database): resolve JSON type mismatch in search_recent_foods_with…
marcuscastelo Jul 7, 2025
251601d
fix(database): resolve type mismatch in search_recent_foods_with_name…
marcuscastelo Jul 7, 2025
2f90077
refactor(recent-food): migrate to clean architecture with separated l…
marcuscastelo Jul 7, 2025
0ff1748
refactor(search): extract inline filtering logic into matchesSearch h…
marcuscastelo Jul 7, 2025
e7ac5e4
refactor(api): improve fetchUserRecentFoods signature for consistency
marcuscastelo Jul 7, 2025
ac380c3
Merge pull request #958 from marcuscastelo/marcuscastelo/issue931
marcuscastelo Jul 7, 2025
f94bbe2
chore(settings): add grep permission to Bash commands
marcuscastelo Jul 7, 2025
9e37e7c
feat(domain): add custom error classes for all domain modules
marcuscastelo Jul 7, 2025
4342c07
feat: implement comprehensive error handling system with specialized …
marcuscastelo Jul 7, 2025
b27f331
Merge pull request #964 from marcuscastelo/marcuscastelo/issue661
marcuscastelo Jul 7, 2025
8ab4a13
Merge branch 'rc/v0.13.0' into marcuscastelo/issue662
marcuscastelo Jul 7, 2025
36b6551
refactor: implement comprehensive context-rich error handling system
marcuscastelo Jul 7, 2025
4436447
feat: integrate DomainError support with comprehensive error handling
marcuscastelo Jul 7, 2025
3354e62
test: add comprehensive domain module test coverage
marcuscastelo Jul 7, 2025
64a4bda
refactor: reduce schema duplication across domain modules
marcuscastelo Jul 7, 2025
0dcbb55
refactor: centralize schema validation logic with shared utilities
marcuscastelo Jul 7, 2025
6049cc1
refactor: include remaining schemas in validation centralization
marcuscastelo Jul 7, 2025
6d49d51
refactor: replace FIELD_MESSAGES with generic field message functions
marcuscastelo Jul 7, 2025
af7c1f9
refactor: make field validation inline instead of using wrapper funct…
marcuscastelo Jul 7, 2025
e3723c8
refactor: complete inline validation migration and remove commonField…
marcuscastelo Jul 7, 2025
70c4f85
refactor: standardize all create*FieldMessages functions to use consi…
marcuscastelo Jul 7, 2025
48f50d5
refactor: extract shared switch/case logic into createFieldValidation…
marcuscastelo Jul 7, 2025
c9cd2d9
wip: partial migration to createZodEntity - imports updated
marcuscastelo Jul 7, 2025
91c21fc
feat: complete migration to createZodEntity API
marcuscastelo Jul 7, 2025
e0b6d0b
feat: complete migration to createZodEntity API - all domains migrated
marcuscastelo Jul 7, 2025
4552536
refactor: remove deprecated schema migration script and update schema…
marcuscastelo Jul 7, 2025
79e8bc8
refactor(formatError): simplify Zod error message formatting using pr…
marcuscastelo Jul 7, 2025
f74b4c6
refactor(item-group): remove unnecessary parameter from array schema …
marcuscastelo Jul 7, 2025
43d3aeb
refactor(diet): streamline schema creation and parsing across multipl…
marcuscastelo Jul 7, 2025
4b8ed00
refactor: standardize domain object constructors and clean up imports…
marcuscastelo Jul 8, 2025
4ba1ed9
refactor: remove deprecated constructors and obsolete domain files
marcuscastelo Jul 8, 2025
f9c0485
refactor(day-diet): replace convertToNewDayDiet with demoteNewDayDiet…
marcuscastelo Jul 8, 2025
54671c1
refactor(day-diet): remove unused meal operations and clean up imports
marcuscastelo Jul 8, 2025
562b325
refactor(macro-nutrients,macro-profile): update validation to handle …
marcuscastelo Jul 8, 2025
62a3e61
refactor(macro-nutrients): correct typo in comment and optimize reduc…
marcuscastelo Jul 8, 2025
57c6bac
refactor: consolidate validation message imports to a single module
marcuscastelo Jul 8, 2025
e7af0f1
refactor(day-diet-ui): remove selectedDay prop from TopBar component
marcuscastelo Jul 8, 2025
269d5b0
refactor(docs): remove Copilot instructions and streamline project gu…
marcuscastelo Jul 8, 2025
1aa93ed
docs(RECIPE_MIGRATION_AUDIT): add note on deprecated Item type and ba…
marcuscastelo Jul 8, 2025
c2d5d07
docs: update architecture and migration audit documents with latest c…
marcuscastelo Jul 8, 2025
f59dbae
refactor(settings): add sequential-thinking commands and update mcpSe…
marcuscastelo Jul 9, 2025
a1b3004
Claude PR Assistant workflow
marcuscastelo Jul 9, 2025
d51cb7b
Claude Code Review workflow
marcuscastelo Jul 9, 2025
192b320
Merge pull request #977 from marcuscastelo/add-claude-github-actions-…
marcuscastelo Jul 9, 2025
c63a2d5
docs: translate QA testing documentation to English
marcuscastelo Jul 9, 2025
2eca35b
Merge pull request #968 from marcuscastelo/marcuscastelo/issue730-v2
marcuscastelo Jul 9, 2025
5b4fee5
Merge branch 'rc/v0.13.0' into marcuscastelo/issue662
marcuscastelo Jul 9, 2025
517b579
refactor(validation): improve id field validation message in createZo…
marcuscastelo Jul 9, 2025
f6df2c6
feat(settings): enhance mcpServers configuration and add new server s…
marcuscastelo Jul 9, 2025
8149282
refactor: remove domain error classes and related tests
marcuscastelo Jul 10, 2025
624659e
refactor(day-diet): remove createDayDiet function and related imports
marcuscastelo Jul 10, 2025
3a03005
refactor(error-handling): replace DomainError with standard Error in …
marcuscastelo Jul 10, 2025
e30bc14
Refactor error handling across modules to use createErrorHandler
marcuscastelo Jul 10, 2025
4b563c9
refactor(error-handling): simplify error logging by removing operatio…
marcuscastelo Jul 10, 2025
400f2e7
refactor(modal): update error operation names in modal error handling
marcuscastelo Jul 10, 2025
2ad32f6
ci: remove Claude code review and main workflow files
marcuscastelo Jul 10, 2025
0ee3166
Merge pull request #966 from marcuscastelo/marcuscastelo/issue662
marcuscastelo Jul 10, 2025
7c4ad77
Merge branch 'rc/v0.13.0' into marcuscastelo/issue660
marcuscastelo Jul 10, 2025
030e0b8
refactor(serena): change command to use bash script for server startup
marcuscastelo Jul 10, 2025
b8962f5
refactor(tests): reorganize test files to module tests/ folders
marcuscastelo Jul 12, 2025
3a90652
chore: remove report.md
marcuscastelo Jul 18, 2025
8bf81bc
Merge pull request #967 from marcuscastelo/marcuscastelo/issue660
marcuscastelo Jul 18, 2025
668311c
chore: update `days` table name
marcuscastelo Jul 18, 2025
da6534b
Merge pull request #979 from marcuscastelo/marcuscastelo/issue461
marcuscastelo Jul 18, 2025
411f2c0
feat: implement enhanced food search with fuzzy matching and scoring
marcuscastelo Jul 18, 2025
eadaffc
docs: add rapid implementation guidelines to AI instructions
marcuscastelo Jul 18, 2025
2a92a9f
Merge pull request #982 from marcuscastelo/marcuscastelo/issue930
marcuscastelo Jul 18, 2025
e79bc1a
chore: implement direct UnifiedItem persistence without legacy migration
marcuscastelo Jul 19, 2025
438810c
feat(day-diet): implement database migration from legacy to UnifiedIt…
marcuscastelo Jul 19, 2025
d8f0c68
refactor: remove all legacy Item/ItemGroup modules and migration code
marcuscastelo Jul 21, 2025
5cb4295
chore: migrate all recipe items from legacy Item to UnifiedItem format
marcuscastelo Jul 21, 2025
e517cd3
fix(template): correct recipe type discrimination in createUnifiedIte…
marcuscastelo Jul 21, 2025
dd29766
feat(unified-item): implement manual edit detection for recipe items
marcuscastelo Jul 21, 2025
0e8dfd3
fix(unified-item): force reactivity update after recipe synchronization
marcuscastelo Jul 21, 2025
c85afa1
feat(unified-item): implement recipe ingredient scaling when quantity…
marcuscastelo Jul 21, 2025
93d73b6
fix(unified-item): force deep reactivity for macro calculations
marcuscastelo Jul 21, 2025
0acd25f
fix(unified-item): prevent zero-lock in recipe ingredient scaling
marcuscastelo Jul 21, 2025
320f253
refactor(unified-item): remove unnecessary ID generation from synchro…
marcuscastelo Jul 21, 2025
cb0a583
refactor(recipe): fully adopt UnifiedItem for template and recipe items
marcuscastelo Jul 21, 2025
7fbeda4
Merge pull request #988 from marcuscastelo/marcuscastelo/issue969
marcuscastelo Jul 21, 2025
eb10e64
fix(search): favorites tab now filters search results to favorites only
marcuscastelo Jul 23, 2025
b91d260
refactor(search): simplify favorites RPC to fetch user data directly …
marcuscastelo Jul 23, 2025
df4fe4c
fix(database): resolve column ambiguity in search_favorite_foods_with…
marcuscastelo Jul 23, 2025
ceb38ce
Merge pull request #993 from marcuscastelo/marcuscastelo/issue990
marcuscastelo Jul 23, 2025
997da5b
fix(unified-item): recalculate recipe quantity after synchronization
marcuscastelo Jul 23, 2025
784a21c
Merge pull request #994 from marcuscastelo/marcuscastelo/issue991
marcuscastelo Jul 23, 2025
52e2cb1
chore: add permissions to claude settings
marcuscastelo Jul 23, 2025
d7cc6d3
chore(docs,tests): remove obsolete audit docs and redundant test patt…
marcuscastelo Jul 23, 2025
cbba7b1
chore: bump version to 0.13.0
marcuscastelo Jul 23, 2025
312a65b
fix(version-validation): add v prefix
marcuscastelo Jul 23, 2025
d6b566f
fix(version-validation): remove v prefix
marcuscastelo Jul 23, 2025
1e882f0
chore: bump version to 0.13.0
marcuscastelo Jul 23, 2025
aaab0e6
fix(version-validation): remove v prefix
marcuscastelo Jul 23, 2025
d661b21
fix(version-validation): remove v prefix
marcuscastelo Jul 23, 2025
59599de
fix(version-validation): add v prefix
marcuscastelo Jul 23, 2025
f73b773
fix: change git tag to git ls-remote
marcuscastelo Jul 23, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
165 changes: 165 additions & 0 deletions .claude/commands/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,165 @@
# Claude Commands for Macroflows

This directory contains Claude Code commands adapted from GitHub Copilot prompts for optimal development workflow.

## Command Categories

### Workflow Commands (`workflow/`)
- **`/commit`** - Generate conventional commit messages and execute commits
- **`/pull-request`** (`/pr`) - Create pull requests with proper formatting and metadata

### Quality Assurance (`quality/`)
- **`/fix`** - Automated codebase checks and error correction
- **`/review`** - Comprehensive code review for PR changes

### Issue Management (`issues/`)
- **`/create-issue`** - Create GitHub issues using proper templates
- **`/implement`** - Autonomous issue implementation after plan approval
- **`/prioritize-milestone`** - Analyze and prioritize milestone issues for optimal capacity

### Refactoring (`refactor/`)
- **`/refactor`** - Clean architecture refactoring and modularization

### Session Management (`session/`)
- **`/end-session`** (`/end`) - Session summary and knowledge export

## Quick Reference

### Daily Workflow
```bash
# Start development
/fix # Ensure clean codebase
/create-issue feature # Create feature request
/implement 123 # Implement issue #123
/commit # Generate and execute commit
/pull-request # Create PR for review
```

### Quality Assurance
```bash
/fix # Run comprehensive checks and fixes
/review # Generate code review for PR
```

### Project Management
```bash
/create-issue bug # Report and create bug issue
/create-issue refactor # Create refactoring task
/prioritize-milestone # Analyze and prioritize milestone issues
/end-session # Summarize learnings and export knowledge
```

## Command Features

### Architecture Integration
- **Clean Architecture Compliance:** All commands respect domain/application/infrastructure layer separation
- **Error Handling Standards:** Enforces proper `handleApiError` usage patterns
- **Import Standards:** Maintains absolute imports with `~/` prefix
- **Type Safety:** Ensures TypeScript strict mode compliance

### Project-Specific Adaptations
- **Solo Project Focus:** Commands adapted for single developer workflow
- **SolidJS Patterns:** Optimized for reactive programming patterns
- **Supabase Integration:** Handles database and real-time patterns
- **Portuguese UI Support:** Maintains pt-BR UI text while enforcing English code

### Quality Integration
- **Automated Validation:** Commands integrate with `npm run copilot:check`
- **Test Updates:** Automatically updates tests for code changes
- **Lint Compliance:** Ensures ESLint and Prettier standards
- **Performance Focus:** Prioritizes O(n) algorithms and efficient patterns

## Migration from GitHub Prompts

### Mapping
```
.github/prompts/commit.prompt.md → .claude/commands/workflow/commit.md
.github/prompts/fix.prompt.md → .claude/commands/quality/fix.md
.github/prompts/code-review.prompt.md → .claude/commands/quality/review.md
.github/prompts/github-issue-unified.md → .claude/commands/issues/create.md
.github/prompts/issue-implementation.md → .claude/commands/issues/implement.md
.github/prompts/milestone-prioritization.prompt.md → .claude/commands/prioritize-milestone.md
.github/prompts/refactor.prompt.md → .claude/commands/refactor/clean-architecture.md
.github/prompts/pull-request.prompt.md → .claude/commands/workflow/pull-request.md
.github/prompts/end-session.prompt.md → .claude/commands/session/end.md
```

### Improvements
- **Command Structure:** Organized into logical categories
- **Usage Documentation:** Clear usage patterns and examples
- **Integration Points:** Better integration with Claude Code's capabilities
- **Error Handling:** Improved error recovery and reporting
- **Solo Project Focus:** Removed team coordination overhead

## Technical Requirements

### Environment Setup
```bash
export GIT_PAGER=cat # Required for git/gh commands
```

### Dependencies
- **GitHub CLI (`gh`)** - Authenticated and functional
- **Node.js & pnpm** - Package management and script execution
- **Git repository** - Proper remote configuration
- **Project scripts** - `.scripts/` directory with validation tools

### File System
- **Temp directory access** - Commands use `/tmp/` for intermediate files
- **Write permissions** - Repository write access for commits and PRs
- **Script execution** - Permission to execute project validation scripts

## Integration with CLAUDE.md

These commands are designed to work seamlessly with the patterns and standards documented in `CLAUDE.md`. They enforce:

- Clean architecture layer separation
- Absolute import requirements
- Error handling standards
- Commit message conventions
- Quality validation procedures
- Solo project adaptations

## Usage Guidelines

### Command Execution
- Commands are designed for autonomous execution
- Quality validation is integrated into all commands
- Error recovery is built into command logic
- User confirmation is requested for destructive operations

### Workflow Integration
- Commands chain together for complete development workflows
- State preservation between commands
- Quality gates prevent progression with errors
- Continuous validation throughout process

### Customization
- Commands adapt to project-specific patterns
- User preferences are learned and applied
- Context is preserved across sessions
- Patterns are documented and reused

## Best Practices

1. **Start with `/fix`** - Ensure clean codebase before development
2. **Use proper issue types** - Choose correct template for `/create-issue`
3. **Plan before implementing** - Review implementation plan in `/implement`
4. **Validate continuously** - Let commands handle quality validation
5. **End sessions properly** - Use `/end-session` for knowledge preservation

## Troubleshooting

### Common Issues
- **Permission errors:** Ensure proper git and GitHub authentication
- **Script failures:** Verify `.scripts/` directory and permissions
- **Validation failures:** Run `/fix` to resolve quality issues
- **Network issues:** Check GitHub CLI authentication and connectivity

### Recovery Procedures
- **Failed commits:** Commands will retry with proper shell escaping
- **PR creation errors:** Automatic retry with corrected parameters
- **Validation loops:** Commands will iterate until all checks pass
- **Missing dependencies:** Commands provide fallback strategies

For detailed usage instructions, see individual command documentation files.
174 changes: 174 additions & 0 deletions .claude/commands/issues/create.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,174 @@
# GitHub Issue Creator

Create any type of GitHub issue (bug, feature, improvement, refactor, task, subissue) using the correct template and workflow.

## Usage

```
/create-issue [type] [description]
```

**Parameters:**
- `type` (optional): bug, feature, improvement, refactor, task, subissue
- `description` (optional): Brief description of the issue

## Description

This command creates GitHub issues using the appropriate templates from the docs/ directory. It handles all issue types with proper formatting, labels, and validation.

## What it does

1. **Type Clarification:**
- Asks for issue type if not specified or ambiguous
- Validates against supported types: bug, feature, improvement, refactor, task, subissue

2. **Template Selection:**
- Uses correct template from `docs/` directory:
- Bug: `ISSUE_TEMPLATE_BUGFIX.md`
- Feature: `ISSUE_TEMPLATE_FEATURE.md`
- Improvement: `issue-improvement-*.md`
- Refactor: `ISSUE_TEMPLATE_REFACTOR.md`
- Task: `ISSUE_TEMPLATE_TASK.md`
- Subissue: `ISSUE_TEMPLATE_SUBISSUE.md`

3. **Content Generation:**
- Fills template with provided information
- Uses Markdown formatting for all sections
- Generates in English (UI text may be pt-BR if required)

4. **Investigation (for bugs):**
- Searches codebase for related files using error messages
- Adds `Related Files` section with relevant file paths
- Includes stack trace analysis when available

5. **Environment Info:**
- Updates app version using `.scripts/semver.sh`
- Includes current environment details
- Validates script availability and fallbacks

6. **Issue Creation:**
- Uses `printf` with heredoc for multi-line content
- Writes to temp file for shell compatibility
- Executes `gh issue create --body-file`
- Verifies content before submission

## Issue Types

### Bug Reports
- **Requirements:** Error message, stack trace, or reproduction steps
- **Investigation:** Automatic codebase search for related files
- **Template:** Structured bug report with environment details
- **Labels:** `bug` + complexity + area labels

### Feature Requests
- **Requirements:** Clear description of desired functionality
- **Template:** Feature specification with acceptance criteria
- **Solo Project Focus:** Technical implementation over business value
- **Labels:** `feature` + complexity + area labels

### Improvements
- **Requirements:** Justification and impact assessment
- **Template:** Technical debt or enhancement description
- **Focus:** Code quality, performance, maintainability
- **Labels:** `improvement` + complexity + area labels

### Refactors
- **Requirements:** Affected files and modules list
- **Template:** Architecture improvement specification
- **Implementation:** Clear scope and affected components
- **Labels:** `refactor` + complexity + area labels

### Tasks
- **Requirements:** Specific actionable items
- **Template:** Structured task with clear deliverables
- **Focus:** Maintenance, chores, non-feature work
- **Labels:** `task` + complexity + area labels

### Subissues
- **Requirements:** Parent issue reference
- **Template:** Subset of larger issue work
- **Linking:** Always references parent issue number
- **Labels:** `subissue` + parent labels

## Shell and CLI Handling

### Zsh Compatibility
- Uses `printf` with double quotes for special characters
- Writes content to temp files before submission
- Verifies file content with `cat` before execution
- Handles Unicode and accented characters properly

### Error Handling
- Checks script existence before execution
- Validates CLI command outputs
- Retries with corrected parameters
- Reports errors gracefully

### File Operations
- Creates temp files in `/tmp/` with unique names
- Verifies write permissions
- Cleans up temporary files after use
- Handles permission issues gracefully

## Labels and Validation

### Required Labels
- **Type label:** One of bug, feature, improvement, refactor, task, subissue
- **Complexity:** low, medium, high, very-high (when assessable)
- **Area:** ui, backend, api, performance, accessibility (when applicable)

### Label Validation
- Uses only existing labels and milestones
- Skips missing labels rather than failing
- Refers to `docs/labels-usage.md` for conventions
- Avoids duplicate or conflicting labels

### Content Validation
- Verifies Markdown formatting
- Checks template compliance
- Validates required sections
- Ensures English language usage

## Solo Project Adaptations

- **Focus:** Technical excellence over business coordination
- **Removal:** Stakeholder approval workflows
- **Emphasis:** Self-review and technical validation
- **Metrics:** Technical over business/team metrics
- **Documentation:** Implementation-focused templates

## Integration Features

- **Version Tracking:** Uses `.scripts/semver.sh` for app version
- **Codebase Search:** Automatic file discovery for bugs
- **Template System:** Consistent formatting across issue types
- **CLI Integration:** Full GitHub CLI workflow support
- **Error Recovery:** Graceful handling of missing dependencies

## Output

Creates GitHub issue and outputs the final command:

```bash
gh issue create --title "feat: add dark mode toggle" \
--body-file /tmp/issue-body.md \
--label feature,ui,complexity-medium \
--milestone "v0.14.0"
```

## Requirements

- GitHub CLI (`gh`) installed and authenticated
- `.scripts/semver.sh` script (with fallback)
- Write access to repository
- Valid issue templates in `docs/` directory
- Shell with `printf` and heredoc support

## Best Practices

- **Clear titles:** Use conventional commit style when applicable
- **Complete templates:** Fill all required sections
- **Proper investigation:** Search codebase for bugs
- **Accurate labels:** Use appropriate type and complexity labels
- **Environment details:** Include version and environment info
- **Validation:** Check content before submission
Loading