mirror of
https://github.com/MBombeck/HealthLog.git
synced 2026-11-17 15:42:24 +00:00
feat(mood): rebuild logging as a 5-face hero with tag picker and factor ratings
Replace the score-number radio + free-text form with an icon-first
"How are you?" hero that matches the native client: a row of five mood
faces in best-on-the-left order is the primary input, and picking one
reveals a brief annotate panel (time, the category-grouped tag picker,
factor ratings, and the note field).
The tag picker now reads the catalog's `kind` / `scaleMin` / `scaleMax`
metadata. BINARY tags stay icon-above-label toggle tiles sent as
`tagKeys`; RATED factors (work / social / sleep quality / stress, and
the 1..2 Yes/No conflict factor) render a compact 1..scaleMax segmented
control and are sent as a parallel `ratedFactors: [{ key, rating }]`
array. The entries list / history stays reachable below the hero.
Add the mood-face icon map (Laugh / Smile / Meh / Frown / Angry) and the
`heroQuestion`, `factorYes`, `factorNo`, `factorRatingOption` strings
across all six locales.
This commit is contained in:
1 parent
2bb810852e
commit
e9eb7dc704
10 files changed
+315
-54
No files matched your search
@@ -469,6 +469,10 @@
|
||||
"addEntry": "Aggiungi",
|
||||
"editEntry": "Modifica voce",
|
||||
"moodLevel": "Umore",
|
||||
"heroQuestion": "Come stai?",
|
||||
"factorYes": "Sì",
|
||||
"factorNo": "No",
|
||||
"factorRatingOption": "{label}: {value} di {max}",
|
||||
"tags": "Tag",
|
||||
"tagsPlaceholder": "es. sport, lavoro, famiglia",
|
||||
"tagsHelp": "Separa con virgole",
|
||||
|
||||
Reference in new issue
Block a user