Conversation
Daily notes now appear immediately after the date header across all entry types (cycling, rest, other), with a blank line separating them from the rest of the entry content. https://claude.ai/code/session_01SneaWjtLEPz4Gg6W8HXtpG
Greptile SummaryThis PR centralises
Confidence Score: 5/5Safe to merge — the refactor is a clean single-point consolidation with no behavioural regressions for any entry type. The change is a straightforward lift-and-shift of four identical dailyNotes blocks into one place in generateMarkdown(). The format string is consistent with the existing pattern, the local test copies were updated in lockstep, all ordering assertions were corrected, and a new test covers the rest-day ordering case that was previously missing. No edge cases are introduced and no existing tests are invalidated. No files require special attention — both changed files are well-aligned after this PR. Important Files Changed
Flowchart%%{init: {'theme': 'neutral'}}%%
flowchart TD
A["generateMarkdown(data)"] --> B["Emit date header\n---\n## DD.MM.YYYY\n\n"]
B --> C{data.dailyNotes?}
C -- yes --> D["Emit dailyNotes bullets\n+ blank line separator"]
C -- no --> E{data.entryType}
D --> E
E -- rest --> F["generateRestMarkdown()\nRest Day + metrics"]
E -- other --> G["generateOtherMarkdown()\nG: + activityNotes"]
E -- cycling/default --> H["generateCyclingMarkdown()\nG/R/F + metrics + WWW/WCBI + Planned"]
F --> I[Return markdown]
G --> I
H --> I
Reviews (2): Last reviewed commit: "Fix stale local markdown helper copies i..." | Re-trigger Greptile |
Update test-local copies of generateCyclingMarkdown, generateRestMarkdown, generateOtherMarkdown, and generateMarkdown to match the production change that moved dailyNotes to the top (right after the date header). Fix two ordering assertions and their test names to reflect the new position, add a rest+dailyNotes ordering test. https://claude.ai/code/session_01SneaWjtLEPz4Gg6W8HXtpG
Daily notes now appear immediately after the date header across all entry
types (cycling, rest, other), with a blank line separating them from the
rest of the entry content.
https://claude.ai/code/session_01SneaWjtLEPz4Gg6W8HXtpG