feat: add grouping meal

This commit is contained in:
2025-12-13 16:00:31 -03:00
parent 915cfba809
commit 228c7e4661
3 changed files with 396 additions and 57 deletions
+13
View File
@@ -44,3 +44,16 @@ export type SharedDay = {
foodEntries: string; // JSON stringified FoodStorage[]
createdAt: string;
};
export type MealPeriod = 'pre-workout' | 'breakfast' | 'second-breakfast' | 'lunch' | 'snacks' | 'dinner' | 'night-snacks';
export type MealGroup = {
period: MealPeriod;
label: string;
entries: FoodStorage[];
totalCalories: number;
totalProtein: number;
totalFat: number;
totalCarbs: number;
isExpanded: boolean;
};