feat: §6 Gruppo B residuo — pannello macros, esclusioni granulari, achievement
- Plan: pannello macros laterale "oggi" con consumati/pianificati vs target (kcal/P/F/C). Sticky su lg, in-flow su mobile. Profile/derived ora include kcalTarget e i macro target (BMR aggiustato per condizioni e diet history). - Preferenze: nuova sezione "Ingredienti specifici da evitare" con ricerca debounced sul catalogo (cap 50). Schema Preferences.bannedIngredientIds + matchmaking che scarta ricette contenenti ingredient bandito (test unit). - Achievement: tabella Achievement (userId+key unique), 4 traguardi iniziali (first_weigh_in, first_plan, first_fast_complete, ten_meals_consumed). Service idempotente eval+persist agganciato a 4 trigger (weight POST, plan POST, fast PATCH→COMPLETED, slot consumed). Push notification best-effort all'unlock. Pannello badge nel profilo. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
1 parent
3b895191f5
commit
d17c5ef869
29 files changed
+1048
-86
No files matched your search
@@ -334,6 +334,13 @@
|
||||
"subtitle": "Le esclusioni filtrano gli ingredienti, le cucine influenzano il matchmaking, il tempo decide quante ricette elaborate proporre.",
|
||||
"exclusionsTitle": "Esclusioni alimentari",
|
||||
"exclusionsHint": "Tutte le ricette che contengono almeno uno di questi gruppi verranno escluse dal piano.",
|
||||
"bannedIngredientsTitle": "Ingredienti specifici da evitare",
|
||||
"bannedIngredientsHint": "Cerca un ingrediente per nome (es. salmone, tofu, peperone). Le ricette che lo contengono verranno escluse dal piano. Massimo 50.",
|
||||
"bannedIngredientsSearchPlaceholder": "Cerca un ingrediente…",
|
||||
"bannedIngredientsSearching": "Sto cercando…",
|
||||
"bannedIngredientsEmpty": "Nessun ingrediente bandito per ora.",
|
||||
"bannedIngredientsRemove": "Rimuovi",
|
||||
"bannedIngredientsCap": "Hai raggiunto il massimo di 50 ingredienti.",
|
||||
"cuisinesTitle": "Cucine preferite",
|
||||
"cuisinesHint": "Indicaci le tradizioni che preferisci. È un suggerimento, non un vincolo.",
|
||||
"cookingTimeTitle": "Tempo in cucina",
|
||||
@@ -538,6 +545,9 @@
|
||||
"avgProtein": "Proteine medie",
|
||||
"avgFat": "Grassi medi",
|
||||
"avgNetCarb": "Carb. netti medi",
|
||||
"todayPanelTitle": "Oggi · macros del giorno",
|
||||
"todayPanelTargetHint": "Consumati / target — pianificati in chiaro",
|
||||
"todayPanelFasting": "Niente pasti pianificati per oggi: è un giorno di digiuno completo.",
|
||||
"fastingDay": "Giorno di digiuno",
|
||||
"fastingDayHint": "Acqua, tè e tisane. Niente cibo solido.",
|
||||
"lightDay": "Giorno leggero",
|
||||
@@ -566,6 +576,35 @@
|
||||
"sunday": "Domenica"
|
||||
}
|
||||
},
|
||||
"Achievements": {
|
||||
"eyebrow": "Traguardi",
|
||||
"title": "Le tappe del tuo percorso",
|
||||
"subtitle": "Hai sbloccato {got} traguardi su {total}. Continua così.",
|
||||
"locked": "Da sbloccare",
|
||||
"category": {
|
||||
"tracking": "Tracking",
|
||||
"plan": "Piano",
|
||||
"fasting": "Digiuno"
|
||||
},
|
||||
"key": {
|
||||
"first_weigh_in": {
|
||||
"title": "Prima pesata",
|
||||
"hint": "Hai registrato il tuo peso per la prima volta."
|
||||
},
|
||||
"first_plan": {
|
||||
"title": "Primo piano",
|
||||
"hint": "Hai generato il tuo primo piano settimanale."
|
||||
},
|
||||
"first_fast_complete": {
|
||||
"title": "Primo digiuno completato",
|
||||
"hint": "Hai portato a termine la tua prima sessione di digiuno."
|
||||
},
|
||||
"ten_meals_consumed": {
|
||||
"title": "Dieci pasti spuntati",
|
||||
"hint": "Hai marcato come consumati 10 pasti dal tuo piano."
|
||||
}
|
||||
}
|
||||
},
|
||||
"Profile": {
|
||||
"title": "Il tuo profilo",
|
||||
"subtitle": "I dati che ci servono per calcolare BMR, TDEE e i target di macros della settimana.",
|
||||
|
||||
Reference in new issue
Block a user