mirror of
https://github.com/MBombeck/HealthLog.git
synced 2026-11-13 22:32:04 +00:00
feat(daily): milestones — the calm reward layer
Add the durable-states Milestone primitive and a milestone card to the daily digest. A milestone marks a state REACHED, never days maintained: a metric settled back inside its own range, a run of weeks in range, or a fresh personal best. It is deliberately not a streak — the type carries a reached-date and no running counter, so nothing here can be tuned into a flame, and a lapse is invisible rather than mourned. The primitive is a thin wrapper over engines that already exist: the pure detectStreak band engine (return-to-range + sustained-in-range) and the PersonalRecord detection output (new bests). Reached-once needs no new storage — a milestone's reached-date is a stable fact, so it surfaces only on the day it was reached and never resurfaces the next day. The digest emits one calm success card per day when a milestone is freshly reached, below an overdue dose and above ambient items, with a single action into the metric's insight. Module- and data-gated: a disabled insights account or a day with nothing reached shows nothing. Copy carries no streak, loss, or failure vocabulary, in all six locales.
This commit is contained in:
1 parent
1427125b7e
commit
8b7bb7914e
11 files changed
+908
-6
No files matched your search
+37
-1
@@ -8557,7 +8557,8 @@
|
||||
"viewCheckups": "Ver revisiones",
|
||||
"checkinKeep": "Conservar",
|
||||
"checkinAdjust": "Ajustar",
|
||||
"checkinLetGo": "Dejarlo ir"
|
||||
"checkinLetGo": "Dejarlo ir",
|
||||
"viewMilestone": "Ver"
|
||||
},
|
||||
"today": {
|
||||
"scoreLabel": "Puntuación de salud",
|
||||
@@ -8567,6 +8568,41 @@
|
||||
"readFullBriefing": "Leer el informe completo",
|
||||
"worthALook": "Merece un vistazo",
|
||||
"allClear": "Hoy nada necesita tu atención."
|
||||
},
|
||||
"milestone": {
|
||||
"metric": {
|
||||
"restingHeartRate": "frecuencia cardíaca en reposo",
|
||||
"heartRateVariability": "variabilidad de la frecuencia cardíaca",
|
||||
"respiratoryRate": "frecuencia respiratoria",
|
||||
"weight": "peso",
|
||||
"generic": "este valor"
|
||||
},
|
||||
"record": {
|
||||
"title": "Nuevo récord: {metric}",
|
||||
"body": "Hoy has alcanzado tu mejor marca de {metric}. Anotado con calma, sin nada que hacer."
|
||||
},
|
||||
"returnToBaseline": {
|
||||
"title": "De nuevo en tu rango: {metric}",
|
||||
"body": "Tu {metric} ha vuelto a tu rango habitual. Fuera lo que fuera, ya pasó."
|
||||
},
|
||||
"sustainedInRange": {
|
||||
"week1": {
|
||||
"title": "Una semana en rango",
|
||||
"body": "Tu {metric} lleva una semana dentro de tu rango habitual. Con buena estabilidad."
|
||||
},
|
||||
"week2": {
|
||||
"title": "Dos semanas en rango",
|
||||
"body": "Tu {metric} lleva dos semanas dentro de tu rango habitual. Tranquilo y constante."
|
||||
},
|
||||
"week3": {
|
||||
"title": "Tres semanas en rango",
|
||||
"body": "Tres semanas con tu {metric} dentro de tu rango habitual. Un buen tramo de calma."
|
||||
},
|
||||
"week4": {
|
||||
"title": "Un mes en rango",
|
||||
"body": "Un mes entero con tu {metric} dentro de tu rango habitual. Maravillosamente estable."
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user