Add shared dailyNotes field replacing rest-only restNotes#24
Conversation
Adds a Daily Notes textarea visible on all entry types (cycling, rest, other), placed below the Entry Type selector. Replaces restNotes which was rest-only. Includes draft migration shim so old restNotes values are automatically carried over to dailyNotes on restore. - schema: add dailyNotes (shared), remove restNotes (rest-only) - home.tsx: Daily Notes UI always visible, update all three markdown generators, remove Notes from Rest Day section, update FIELD_TO_SECTION - use-form-persistence: migrate restNotes → dailyNotes on draft restore - tests: update schema and utils tests, add cycling/other dailyNotes cases https://claude.ai/code/session_01WCETrYAfnUPD7wzy3YZUyi
Greptile SummaryThis PR promotes
Confidence Score: 4/5Safe to merge; the only gap is a stale restNotes mention left in the CLAUDE.md Markdown Output section that contradicts the rest of the updated documentation. The feature change is straightforward and well-executed — schema, UI, markdown generators, migration shim, and tests are all consistent with each other. The single remaining issue is that the Markdown Output Per Entry Type block in CLAUDE.md still names restNotes instead of dailyNotes, which will mislead future readers of the docs. CLAUDE.md — the Markdown Output Per Entry Type section has a stale restNotes reference that needs updating. Important Files Changed
Flowchart%%{init: {'theme': 'neutral'}}%%
flowchart TD
A[Draft restored from localStorage] --> B{Has restNotes?}
B -- Yes --> C{dailyNotes already set?}
C -- No --> D[Copy restNotes to dailyNotes]
C -- Yes --> E[Keep existing dailyNotes]
D --> F[Delete restNotes]
E --> F
B -- No --> F
F --> G[form.reset with migrated data]
G --> H{entryType selector}
H --> I[cycling]
H --> J[rest]
H --> K[other]
I --> L[Daily Notes textarea visible]
J --> L
K --> L
L --> M{dailyNotes filled?}
M -- Yes --> N[Append as bullet points to markdown]
M -- No --> O[Omit from markdown]
|
Replace restNotes with dailyNotes in the Markdown Output Per Entry Type documentation block, which was missed in the initial commit. https://claude.ai/code/session_01WCETrYAfnUPD7wzy3YZUyi
Adds a Daily Notes textarea visible on all entry types (cycling, rest,
other), placed below the Entry Type selector. Replaces restNotes which
was rest-only. Includes draft migration shim so old restNotes values
are automatically carried over to dailyNotes on restore.
generators, remove Notes from Rest Day section, update FIELD_TO_SECTION
https://claude.ai/code/session_01WCETrYAfnUPD7wzy3YZUyi