feat(templates): compose the real daily page in the editor #35
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "feat/m8-daily-page"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary
shipped insert menu, outline and inspector
committed file is provably editor-built
07:00-24:00 hourly timeline down the left, 10 todo rows over ruled notes
on the right
#40
Test plan
pnpm test- 601 passing;tsc --noEmit,eslint .andprettier --check .all clean
content inside all four margins, and seven day circles at seven distinct x
positions
spot-checked coordinates match the primitives in mm
Review fixes, one commit each:
cfcb492-readoutFieldsbuilt its scope withwidgetScope, which evaluates every prop, but only the readout expression was inside a try/catch. Selecting a widget whose prop cannot resolve (e.g. a Day timeline under a repeat withstart: $item) threw out of the Inspector render. The scope build is now caught and the fields read empty. It also resolves againsttemplateScoperather than a bare theme scope, so a prop naming a template input works.12f9275-undeclaredPropswalked all ofspec.inputs, butwidgetScopeandinstanceValueswalkvalueInputsonly, soprops: { rowHeight: ... }on the day timeline validated clean and was then silently dropped. Readout names now get their own message.Regression tests for both. 603 tests,
tsc --noEmitandeslintpass.Not addressed, all low:
theme-inputs.ts:46- margin stepper has nomax; a margin of 200 on A4 gives a negative content box and puts the overflow bands mid-sheet.Control.tsx:133- a failed readout renders the unit with no value, so the field reads a bare "mm".theme-inputs.ts:79+layout-inputs.ts:88- two controls labelled "Ink" in the same aside when a text node is selected.