mirror of
https://github.com/MBombeck/HealthLog.git
synced 2026-11-17 15:42:24 +00:00
feat(coach): evidence-based cadence suggestions with one-tap in-chat reminder
The Coach can append a ---SUGGEST-REMINDER--- sentinel to propose a measurement cadence (weight daily, the ESH/AHA 7-2-2 home-BP protocol, structured glucose). The server resolves the cadence from a closed catalog and emits an additive 'suggestion' SSE frame the chat renders as a one-tap action card; accepting it creates a MeasurementReminder with origin COACH through the same engine the Vorsorge surface uses (server-authoritative schedule, finite course window self-expires via endsOn). Non-naggy by construction: a frequency-cap cooldown, dismissal memory, a master opt-out under Coach settings, and an explicit 'I measure enough' stop path, all in the coach-prefs blob. Triple dedup at suggest, render, and create so a cadence is never double-suggested or double-created, and suggestions for a disabled module never surface. RHR/HRV stay passive -- the Coach surfaces the baseline, it never nudges to 'go measure' them. The reminder DTO now echoes origin and endsOn for the iOS client.
This commit is contained in:
1 parent
b6796eee96
commit
12f4bc24e8
29 files changed
+1538
-9
No files matched your search
@@ -6619,5 +6619,26 @@
|
||||
"label": "Medikamente",
|
||||
"description": "Pläne, Einnahmen und Compliance."
|
||||
}
|
||||
},
|
||||
"coach": {
|
||||
"reminderSuggestion": {
|
||||
"title": "Erinnerung einrichten?",
|
||||
"accept": "Erinnerung setzen",
|
||||
"dismiss": "Jetzt nicht",
|
||||
"stop": "Ich messe genug",
|
||||
"accepted": "Erinnerung gesetzt",
|
||||
"dismissed": "Okay, das schlage ich nicht noch einmal vor",
|
||||
"stopped": "Verstanden – ich schlage keine Erinnerungen mehr vor",
|
||||
"failed": "Hat nicht geklappt – bitte erneut versuchen",
|
||||
"cadence": {
|
||||
"weightDaily": "Wieg dich täglich, ungefähr zur selben Zeit",
|
||||
"bp722": "Miss deinen Blutdruck eine Woche lang zweimal täglich",
|
||||
"glucoseStructured": "Miss deine Glukose nach einem strukturierten Tagesplan"
|
||||
}
|
||||
},
|
||||
"settings": {
|
||||
"reminderSuggestionsLabel": "Kadenz-Vorschläge",
|
||||
"reminderSuggestionsDescription": "Lass den Coach gelegentlich eine evidenzbasierte Erinnerung anbieten, eine Metrik regelmäßiger zu messen."
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -6619,5 +6619,26 @@
|
||||
"label": "Medications",
|
||||
"description": "Schedules, intakes, and compliance."
|
||||
}
|
||||
},
|
||||
"coach": {
|
||||
"reminderSuggestion": {
|
||||
"title": "Set a reminder?",
|
||||
"accept": "Set reminder",
|
||||
"dismiss": "Not now",
|
||||
"stop": "I measure enough",
|
||||
"accepted": "Reminder set",
|
||||
"dismissed": "Okay, I won't suggest this again",
|
||||
"stopped": "Got it — I'll stop suggesting reminders",
|
||||
"failed": "Couldn't set that up — please try again",
|
||||
"cadence": {
|
||||
"weightDaily": "Weigh yourself daily, around the same time",
|
||||
"bp722": "Measure your blood pressure twice a day for a week",
|
||||
"glucoseStructured": "Test your glucose on a structured daily schedule"
|
||||
}
|
||||
},
|
||||
"settings": {
|
||||
"reminderSuggestionsLabel": "Cadence suggestions",
|
||||
"reminderSuggestionsDescription": "Let the Coach offer an occasional, evidence-based reminder to measure a metric more regularly."
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -6619,5 +6619,26 @@
|
||||
"label": "Medicamentos",
|
||||
"description": "Pautas, tomas y cumplimiento."
|
||||
}
|
||||
},
|
||||
"coach": {
|
||||
"reminderSuggestion": {
|
||||
"title": "¿Crear un recordatorio?",
|
||||
"accept": "Crear recordatorio",
|
||||
"dismiss": "Ahora no",
|
||||
"stop": "Ya mido suficiente",
|
||||
"accepted": "Recordatorio creado",
|
||||
"dismissed": "De acuerdo, no lo volveré a sugerir",
|
||||
"stopped": "Entendido, dejaré de sugerir recordatorios",
|
||||
"failed": "No se pudo crear, inténtalo de nuevo",
|
||||
"cadence": {
|
||||
"weightDaily": "Pésate a diario, más o menos a la misma hora",
|
||||
"bp722": "Mide tu tensión dos veces al día durante una semana",
|
||||
"glucoseStructured": "Mide tu glucosa con un horario diario estructurado"
|
||||
}
|
||||
},
|
||||
"settings": {
|
||||
"reminderSuggestionsLabel": "Sugerencias de frecuencia",
|
||||
"reminderSuggestionsDescription": "Permite que el Coach ofrezca de vez en cuando un recordatorio basado en evidencia para medir una métrica con más regularidad."
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -6619,5 +6619,26 @@
|
||||
"label": "Médicaments",
|
||||
"description": "Schémas, prises et observance."
|
||||
}
|
||||
},
|
||||
"coach": {
|
||||
"reminderSuggestion": {
|
||||
"title": "Créer un rappel ?",
|
||||
"accept": "Créer le rappel",
|
||||
"dismiss": "Pas maintenant",
|
||||
"stop": "Je mesure assez",
|
||||
"accepted": "Rappel créé",
|
||||
"dismissed": "D'accord, je ne le proposerai plus",
|
||||
"stopped": "Compris, j'arrête de proposer des rappels",
|
||||
"failed": "Échec de la création, veuillez réessayer",
|
||||
"cadence": {
|
||||
"weightDaily": "Pesez-vous chaque jour, à peu près à la même heure",
|
||||
"bp722": "Mesurez votre tension deux fois par jour pendant une semaine",
|
||||
"glucoseStructured": "Mesurez votre glycémie selon un horaire quotidien structuré"
|
||||
}
|
||||
},
|
||||
"settings": {
|
||||
"reminderSuggestionsLabel": "Suggestions de fréquence",
|
||||
"reminderSuggestionsDescription": "Laissez le Coach proposer de temps en temps un rappel fondé sur des preuves pour mesurer une donnée plus régulièrement."
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -6619,5 +6619,26 @@
|
||||
"label": "Farmaci",
|
||||
"description": "Schemi, assunzioni e aderenza."
|
||||
}
|
||||
},
|
||||
"coach": {
|
||||
"reminderSuggestion": {
|
||||
"title": "Impostare un promemoria?",
|
||||
"accept": "Imposta promemoria",
|
||||
"dismiss": "Non ora",
|
||||
"stop": "Misuro abbastanza",
|
||||
"accepted": "Promemoria impostato",
|
||||
"dismissed": "Va bene, non lo suggerirò più",
|
||||
"stopped": "Capito, smetto di suggerire promemoria",
|
||||
"failed": "Impossibile impostarlo, riprova",
|
||||
"cadence": {
|
||||
"weightDaily": "Pesati ogni giorno, più o meno alla stessa ora",
|
||||
"bp722": "Misura la pressione due volte al giorno per una settimana",
|
||||
"glucoseStructured": "Misura la glicemia con un programma giornaliero strutturato"
|
||||
}
|
||||
},
|
||||
"settings": {
|
||||
"reminderSuggestionsLabel": "Suggerimenti di cadenza",
|
||||
"reminderSuggestionsDescription": "Lascia che il Coach proponga ogni tanto un promemoria basato sull'evidenza per misurare una metrica più regolarmente."
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -6619,5 +6619,26 @@
|
||||
"label": "Leki",
|
||||
"description": "Schematy, przyjęcia i zgodność."
|
||||
}
|
||||
},
|
||||
"coach": {
|
||||
"reminderSuggestion": {
|
||||
"title": "Ustawić przypomnienie?",
|
||||
"accept": "Ustaw przypomnienie",
|
||||
"dismiss": "Nie teraz",
|
||||
"stop": "Mierzę wystarczająco",
|
||||
"accepted": "Przypomnienie ustawione",
|
||||
"dismissed": "Dobrze, nie zaproponuję tego ponownie",
|
||||
"stopped": "Rozumiem, przestanę proponować przypomnienia",
|
||||
"failed": "Nie udało się ustawić, spróbuj ponownie",
|
||||
"cadence": {
|
||||
"weightDaily": "Waż się codziennie, mniej więcej o tej samej porze",
|
||||
"bp722": "Mierz ciśnienie dwa razy dziennie przez tydzień",
|
||||
"glucoseStructured": "Mierz glukozę według ustrukturyzowanego planu dziennego"
|
||||
}
|
||||
},
|
||||
"settings": {
|
||||
"reminderSuggestionsLabel": "Sugestie częstotliwości",
|
||||
"reminderSuggestionsDescription": "Pozwól Coachowi od czasu do czasu zaproponować oparte na dowodach przypomnienie, aby mierzyć daną wartość bardziej regularnie."
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user