feat: Kitchen Notebook design for Hearth #6
Loading…
Reference in a new issue
No description provided.
Delete branch "feat/kitchen-notebook"
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
Implement Leona's approved Kitchen Notebook direction while retaining Hearth's logo, Archivo and charcoal/cream/flame palette.
Shared-state correctness
The redesign exposed HTMX/WebSocket races. Versioned compare-and-set writes ensure Undo cannot overwrite a partner's subsequent change; detail edits no longer save stale checked state. Client reconciliation preserves drafts across rejected/detached requests, prevents late responses from restoring stale boards, and enforces latest-navigation-wins in the planner. Regression tests exercise reordered requests/responses, deadline expiry and two authenticated household sessions.
Verification
Independent corrective review accepted all previously reported blockers. Verification against this source snapshot:
Database / risk
Apply additive migration 0010_shoppingitem_version on deployment. No destructive data migration, new external service or offline queue. Shared synchronization code is the main review-sensitive area. Planner uses its day layout below 1120px; past days do not offer an add action already rejected by the server.
Remaining verification
No deployment or merge performed.
Visual evidence
Real Chromium renders with synthetic seeded household data, not production data. Before:
9ce560e; after: Kitchen Notebook implementation. These captures predate the final synchronization-only corrections; the final pass changed no visual templates/styles. Uploaded-photo rendering uses a static stand-in image, not S3 upload verification. Placeholder contrast in these original before/after captures was superseded by the corrected form captures below.Shopping
390x844 — before / after
1280x800 — before / after
Planner
390x844 — before / after
1280x800 — before / after
Cookbook
390x844 — before / after
1280x800 — before / after
Additional states
Recipe detail without photo — 390px
Recipe detail with stand-in photo — 390px
Shopping — Polish, 390px
Shopping grid preference — 1280px
Leona QA corrections —
527c0d8All four requested changes have been implemented and passed independent corrective code review; final design-owner re-acceptance is still pending.
Verification: 54 Django tests / 61 browser tests pass, independently rerun. Targeted RED/GREEN regressions reproduce the prior failures. Build and diff hygiene pass. Remote CI for this new SHA is not claimed green until its result completes.
Updated form screenshots (corrected placeholder contrast)
Real Chromium, synthetic demo data; 390px mobile and 1280px desktop. These captures supersede earlier placeholder appearance; the last follow-up changed JavaScript only, so the final visual snapshot is unchanged.
recipe-form-1280-en-US
recipe-form-390-en-US
shopping-forms-1280-en-US
shopping-forms-1280-pl-PL
shopping-forms-390-en-US
shopping-forms-390-pl-PL
CI correction —
5d9c388The previous CI run failed two planner browser tests. Root cause: HTMX's default 20ms settle delay briefly left newly inserted controls unbound. Enter in the meal picker could issue a native GET instead of its HTMX POST; a fresh navigation button could be inert. Set the settle delay to zero so binding completes in the swap task (no settle-transition dependency).
Two deterministic MutationObserver regressions reproduce immediate-interaction failures before the fix and pass afterwards. The original failing tests were not weakened; no sleeps, retries, skips or CI configuration changes. Full browser suite: 61/61 locally. The implementation worker also exercised Node 22.23.4, including 10 targeted repeat runs. Remote status for the new commit is recorded below when terminal.
Remote CI read-back for
5d9c388d548172e88a4d9fafc5ceebfe4dc15604: CI / test (pull_request) = success, CI / push (pull_request) = skipped.