Skip to content

Conversation

@marcuscastelo
Copy link
Owner

@marcuscastelo marcuscastelo commented Dec 3, 2025

What's Changed

Features

Bugfixes

Improvements

Other

Full Changelog: v0.14.0...v0.15.0

marcuscastelo and others added 30 commits November 27, 2025 15:30
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
…ggle-feature

feat: Max button toggle between respecting limits and forcing dominant macro
Co-authored-by: marcuscastelo <27441558+marcuscastelo@users.noreply.github.com>
Co-authored-by: marcuscastelo <27441558+marcuscastelo@users.noreply.github.com>
…ard-store

feat: In-app clipboard store with RAM-only default and optional persistence
…ld-groupitem-recipeitem

Allow editing the name of GroupItem and RecipeItem
…omponents

Co-authored-by: marcuscastelo <27441558+marcuscastelo@users.noreply.github.com>
…gitignore

Co-authored-by: marcuscastelo <27441558+marcuscastelo@users.noreply.github.com>
…zation, testing, prompt engineering, search optimization, and technical debt remediation
…tions

test(macro-nutrients): add tests for supabaseMacroNutrientsMapper
test(utils): add tests for convertApi2Food utility
refactor(item): refactor item comparison and macro nutrient handling
Copilot AI review requested due to automatic review settings December 3, 2025 02:11
@vercel
Copy link

vercel bot commented Dec 3, 2025

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Preview Comments Updated (UTC)
macroflows Ready Ready Preview Comment Dec 5, 2025 11:37pm

Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR represents version 0.15.0, which includes a major architectural refactoring that renames the UnifiedItem concept to Item throughout the codebase. The changes consolidate the item-related domain logic, introduce new import/export functionality with comprehensive validation, and improve macro nutrient handling with milligram-based storage. Key architectural improvements include eliminating barrel files, renaming DAO to DTO for consistency, and implementing proper guest mode support for macro profiles.

Reviewed changes

Copilot reviewed 216 out of 390 changed files in this pull request and generated no comments.

Show a summary per file
File Description
src/modules/measure/infrastructure/supabase/supabaseBodyMeasureGateway.ts Renamed variables from DAO to DTO naming convention
src/modules/measure/application/usecases/measureState.ts Updated to use authUseCases for user ID retrieval
src/modules/measure/application/tests/measureUtils.test.ts Fixed import path for weight domain
src/modules/measure/application/measureUtils.ts Fixed import path for weight domain
src/modules/import-export/ui/openImportExportModal.tsx New modal helper for import/export functionality
src/modules/import-export/ui/ImportExportModalContent.tsx New comprehensive UI component for import/export with validation
src/modules/import-export/tests/importExport.test.ts New test suite for import/export functionality
src/modules/import-export/domain/exportPayload.ts New domain types and schemas for export payloads
src/modules/import-export/application/importValidation.ts New validation logic for import payloads with Portuguese error messages
src/modules/import-export/application/idRegeneration.ts New ID regeneration logic to prevent collisions on import
src/modules/import-export/application/exportUtils.ts New export utilities with metadata generation
src/modules/diet/unified-item/schema/unifiedItemSchema.ts Deleted - functionality moved to item module
src/modules/diet/unified-item/domain/unifiedItemOperations.ts Deleted - functionality moved to item module
src/modules/diet/unified-item/domain/tests/unifiedItemOperations.test.ts Deleted - tests moved to item module
src/modules/diet/unified-item/domain/tests/childOperations.test.ts Deleted - tests moved to item module
src/modules/diet/unified-item/domain/childOperations.ts Deleted - functionality moved to parentItemExt
src/modules/diet/template/tests/template.test.ts Updated macro nutrient creation to use new API
src/modules/diet/template/domain/template.ts Improved type guards using __type property
src/modules/diet/template/application/templateToItem.ts Renamed from UnifiedItem to Item
src/modules/diet/template/application/createGroupFromTemplate.ts Simplified item creation logic
src/modules/diet/template-item/tests/templateItem.test.ts Deleted - redundant test file
src/modules/diet/template-item/domain/templateItem.ts Updated type alias to use Item
src/modules/diet/recipe/tests/recipeOperations.test.ts Updated tests with new macro API and added single-item recipe tests
src/modules/diet/recipe/infrastructure/supabase/supabaseRecipeMapper.ts Updated to use item mapper and DTO naming
src/modules/diet/recipe/infrastructure/supabase/supabaseRecipeGateway.ts Renamed DAO to DTO
src/modules/diet/recipe/infrastructure/signals/recipeEffects.ts Updated to use authUseCases
src/modules/diet/recipe/domain/recipeOperations.ts Added validation and new single-item recipe operations
src/modules/diet/recipe/domain/recipeExt.ts New extension module for recipe operations
src/modules/diet/recipe/domain/recipe.ts Updated to use Item instead of UnifiedItem
src/modules/diet/meal/tests/mealOperations.test.ts Updated tests with new APIs
src/modules/diet/meal/infrastructure/supabase/supabaseMealMapper.ts New mapper implementation using item mapper
src/modules/diet/meal/infrastructure/mealDAO.ts Deleted - replaced by mapper
src/modules/diet/meal/domain/mealOperations.ts Updated to use Item type
src/modules/diet/meal/domain/mealExt.ts New extension module for meal operations
src/modules/diet/meal/domain/meal.ts Updated to use Item instead of UnifiedItem
src/modules/diet/meal/application/meal.ts Updated to use dayUseCases
src/modules/diet/macro-target/* New macro target module with use cases and extensions
src/modules/diet/macro-profile/* Restructured with guest mode support and improved state management
src/modules/diet/macro-nutrients/tests/supabaseMacroNutrientsMapper.test.ts New mapper tests
src/modules/diet/macro-nutrients/infrastructure/supabase/supabaseMacroNutrientsMapper.ts New mapper for macro nutrients
src/modules/diet/macro-nutrients/domain/macrosExt.ts New helper for approximate equality
src/modules/diet/macro-nutrients/domain/macroNutrients.ts Major refactor to milligram-based storage with gram convenience fields
src/modules/diet/macro-nutrients/domain/macroExt.ts New extension module with calorie calculations
src/modules/diet/macro-nutrients/application/macroOverflow.ts New overflow detection logic
src/modules/diet/item/* New consolidated item module replacing unified-item
src/modules/diet/food/infrastructure/api/infrastructure/supabase/supabaseFoodRepository.ts Renamed DAO to DTO
src/app-version.json New version file with dev-test value
Comments suppressed due to low confidence (1)

src/app-version.json:1

  • The app-version.json file contains a development/test version string "dev-test" instead of "0.15.0" as indicated by the PR title. This inconsistency could cause confusion about the actual version being deployed.
{"version": "dev-test"}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants