mirror of
https://github.com/MBombeck/HealthLog.git
synced 2026-11-14 22:50:51 +00:00
feat(symptoms): log a symptom in one step and show it on the illness pages
- A new capture kind "symptom" (illness module, illness write grant) in the bottom bar's picker and the dashboard Add menu. The sheet follows the measurement and mood forms: the person's symptoms as chips with the cycle sheet's dashed "new symptom" chip, the 0-10 slider with its anchors, the time prefilled with now, an optional note, and a "during" selector only while an illness episode is open. - "Your symptoms" on the illness page: one line per symptom (how often in 30 days, how strong at worst, when last), the last 30 days grouped by day, edit and delete per entry, rename, icon, hide and delete per symptom. Renders nothing until a symptom exists. - "Symptoms logged" on an episode's page: the entries filed against it or logged while it ran, the filed ones marked. This is the reader of the episode link. - Query keys live under the illness root, so either side's writes refresh both.
This commit is contained in:
1 parent
9d9e1f153c
commit
9272daa59c
17 files changed
+1940
-19
No files matched your search
@@ -263,6 +263,7 @@ describe("every surface that shows a module's data is owned by it", () => {
|
||||
["capture:mood", "mood"],
|
||||
["capture:medication", "medications"],
|
||||
["capture:workout", "workouts"],
|
||||
["capture:symptom", "illness"],
|
||||
["trend:mood", "mood"],
|
||||
["widget:medications", "medications"],
|
||||
["correlation:MEDICATION_COMPLIANCE", "medications"],
|
||||
|
||||
@@ -124,6 +124,8 @@ const STATIC_SURFACE_MODULE = {
|
||||
"capture:mood": "mood",
|
||||
"capture:medication": "medications",
|
||||
"capture:workout": "workouts",
|
||||
// v1.40 — an occurrence of a person-defined symptom rides the illness module.
|
||||
"capture:symptom": "illness",
|
||||
|
||||
// ── Dashboard widgets ──
|
||||
// CORE widgets (weight, blood pressure, pulse, body fat, the vital-derived
|
||||
|
||||
Reference in new issue
Block a user