feat: Kitchen Notebook design for Hearth #6

Merged
exler merged 3 commits from feat/kitchen-notebook into main 2026-10-24 11:50:54 +02:00
Collaborator

Summary

Implement Leona's approved Kitchen Notebook direction while retaining Hearth's logo, Archivo and charcoal/cream/flame palette.

  • Shared shell: remove global grain, simplify mobile header and retain language access in Settings.
  • Shopping: compact quick add with optional details, category disclosure, ruled checklist, persistent filters/drafts and guarded Undo. Checked rows stay in place. Grid preference remains available.
  • Planner: compact navigation, readable week/day layouts, meaningful Today state and accessible meal controls.
  • Cookbook: readable cards without fake image placeholders, honest optional metadata, accessible recipe detail and create/edit flows.
  • Update DESIGN.md and the design sidecar; localize new strings in English and Polish.

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:

  • Django: 54/54 tests passed; system checks clean.
  • Browser: 61/61 tests passed, using Chromium, real Django login sessions and WebSockets.
  • RED/GREEN: unchanged targeted regressions reproduce five failures on the prior JS and pass on the corrected implementation.
  • Tailwind build, migration drift check, changed-source Ruff, template lint, JS syntax, gettext catalog checks and git diff --check passed.
  • Prior browser visual QA covered 360/390px phones, tablet and desktop, EN/PL, reduced motion and emulated zoom/reflow. Final concurrency pass did not repeat the full screenshot audit.

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

  • Remote CI is pending publication checks; no green remote result is claimed here.
  • Independent design-owner acceptance is still pending.
  • Real mobile devices, actual browser zoom UI, screen readers and S3 photo upload were not exercised.
  • Screenshots are attached below, outside git, and use synthetic demo data.

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

Shopping — before, 390x844

Shopping — after, 390x844

1280x800 — before / after

Shopping — before, 1280x800

Shopping — after, 1280x800

Planner

390x844 — before / after

Planner — before, 390x844

Planner — after, 390x844

1280x800 — before / after

Planner — before, 1280x800

Planner — after, 1280x800

Cookbook

390x844 — before / after

Cookbook — before, 390x844

Cookbook — after, 390x844

1280x800 — before / after

Cookbook — before, 1280x800

Cookbook — after, 1280x800

Additional states

Recipe detail without photo — 390px

Recipe detail without photo — 390px

Recipe detail with stand-in photo — 390px

Recipe detail with stand-in photo — 390px

Shopping — Polish, 390px

Shopping — Polish, 390px

Shopping grid preference — 1280px

Shopping grid preference — 1280px

Leona QA corrections — 527c0d8

All four requested changes have been implemented and passed independent corrective code review; final design-owner re-acceptance is still pending.

  • Preserve all four editable fields typed after Save, including values reverted to original defaults, across intermediate detached-form swaps and late responses.
  • Complete an authoritative catch-up when held snapshots match own-response echoes; retain signed-out and closed-socket guards.
  • Increment item versions for admin edits and make version read-only, so stale Undo cannot overwrite later admin changes.
  • Placeholder text now uses ink-soft: computed 7.607:1 on white / 7.119:1 on panel (EN/PL), retaining labels.

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-1280-en-US

recipe-form-390-en-US

recipe-form-390-en-US

shopping-forms-1280-en-US

shopping-forms-1280-en-US

shopping-forms-1280-pl-PL

shopping-forms-1280-pl-PL

shopping-forms-390-en-US

shopping-forms-390-en-US

shopping-forms-390-pl-PL

shopping-forms-390-pl-PL

CI correction — 5d9c388

The 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.

## Summary Implement Leona's approved **Kitchen Notebook** direction while retaining Hearth's logo, Archivo and charcoal/cream/flame palette. - Shared shell: remove global grain, simplify mobile header and retain language access in Settings. - Shopping: compact quick add with optional details, category disclosure, ruled checklist, persistent filters/drafts and guarded Undo. Checked rows stay in place. Grid preference remains available. - Planner: compact navigation, readable week/day layouts, meaningful Today state and accessible meal controls. - Cookbook: readable cards without fake image placeholders, honest optional metadata, accessible recipe detail and create/edit flows. - Update DESIGN.md and the design sidecar; localize new strings in English and Polish. ## 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: - Django: **54/54 tests passed**; system checks clean. - Browser: **61/61 tests passed**, using Chromium, real Django login sessions and WebSockets. - RED/GREEN: unchanged targeted regressions reproduce five failures on the prior JS and pass on the corrected implementation. - Tailwind build, migration drift check, changed-source Ruff, template lint, JS syntax, gettext catalog checks and git diff --check passed. - Prior browser visual QA covered 360/390px phones, tablet and desktop, EN/PL, reduced motion and emulated zoom/reflow. Final concurrency pass did not repeat the full screenshot audit. ## 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 - Remote CI is pending publication checks; no green remote result is claimed here. - Independent design-owner acceptance is still pending. - Real mobile devices, actual browser zoom UI, screen readers and S3 photo upload were not exercised. - Screenshots are attached below, outside git, and use synthetic demo data. **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** ![Shopping — before, 390x844](https://git.marut.network/attachments/422a90c9-2bac-4aa9-80ce-5464f01e0c80) ![Shopping — after, 390x844](https://git.marut.network/attachments/63bb48e5-d563-4f3f-bd6f-66e430ee7519) **1280x800 — before / after** ![Shopping — before, 1280x800](https://git.marut.network/attachments/786c1648-cb72-4d6f-a4bc-39d3ce7a8dea) ![Shopping — after, 1280x800](https://git.marut.network/attachments/8659ce5d-6d7e-4aaa-b8ea-91867b98e774) ### Planner **390x844 — before / after** ![Planner — before, 390x844](https://git.marut.network/attachments/3df29ba3-ae39-4583-b652-e4ee1faa9a09) ![Planner — after, 390x844](https://git.marut.network/attachments/ee84a849-4a33-401b-9529-91439f8ed8ee) **1280x800 — before / after** ![Planner — before, 1280x800](https://git.marut.network/attachments/b30ff758-6824-4c97-b499-97910468f0d0) ![Planner — after, 1280x800](https://git.marut.network/attachments/c0bdb794-1458-4651-8de1-d011a4573bbf) ### Cookbook **390x844 — before / after** ![Cookbook — before, 390x844](https://git.marut.network/attachments/1e386f9a-f266-4001-bcee-11e3957a02a4) ![Cookbook — after, 390x844](https://git.marut.network/attachments/de6181bc-8424-4240-9b52-47213adc859f) **1280x800 — before / after** ![Cookbook — before, 1280x800](https://git.marut.network/attachments/ae5a9118-a4d0-466e-ae8a-b090b1b53315) ![Cookbook — after, 1280x800](https://git.marut.network/attachments/b3f27057-938e-4f63-bf60-90ae023ff933) ### Additional states **Recipe detail without photo — 390px** ![Recipe detail without photo — 390px](https://git.marut.network/attachments/eccc1ae5-7280-4daf-b6e2-48f50b7e4c79) **Recipe detail with stand-in photo — 390px** ![Recipe detail with stand-in photo — 390px](https://git.marut.network/attachments/f404c9ca-5bd6-4435-bf82-caabb5a2ac4d) **Shopping — Polish, 390px** ![Shopping — Polish, 390px](https://git.marut.network/attachments/e786a837-fbb2-4967-8094-bbf6a4f28abc) **Shopping grid preference — 1280px** ![Shopping grid preference — 1280px](https://git.marut.network/attachments/92a7ec70-a8c4-4724-9d11-a12f19d16e41) ## Leona QA corrections — 527c0d8 All four requested changes have been implemented and passed independent corrective code review; final design-owner re-acceptance is still pending. - Preserve all four editable fields typed after Save, including values reverted to original defaults, across intermediate detached-form swaps and late responses. - Complete an authoritative catch-up when held snapshots match own-response echoes; retain signed-out and closed-socket guards. - Increment item versions for admin edits and make version read-only, so stale Undo cannot overwrite later admin changes. - Placeholder text now uses ink-soft: computed **7.607:1 on white / 7.119:1 on panel** (EN/PL), retaining labels. 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-1280-en-US](https://git.marut.network/attachments/520a18a8-ec36-4381-8b84-4529d69774a9) **recipe-form-390-en-US** ![recipe-form-390-en-US](https://git.marut.network/attachments/6d2356f6-4312-4548-ad24-e95022160e28) **shopping-forms-1280-en-US** ![shopping-forms-1280-en-US](https://git.marut.network/attachments/d01b7677-18ac-4cf4-af36-439f06783f15) **shopping-forms-1280-pl-PL** ![shopping-forms-1280-pl-PL](https://git.marut.network/attachments/b7d40fc6-ad8f-45dc-bc99-ae504b0634d8) **shopping-forms-390-en-US** ![shopping-forms-390-en-US](https://git.marut.network/attachments/7464c90d-91da-452e-ba82-75e2d32c8bbb) **shopping-forms-390-pl-PL** ![shopping-forms-390-pl-PL](https://git.marut.network/attachments/1e902b9d-d52b-4fee-ac42-9c32a2f9652e) ## CI correction — 5d9c388 The 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.
feat: refine Hearth into a shared kitchen notebook
All checks were successful
CI / test (pull_request) Successful in 2m32s
CI / push (pull_request) Has been skipped
fdb052936d
fix: address design QA draft sync admin and contrast findings
Some checks failed
CI / test (pull_request) Failing after 2m56s
CI / push (pull_request) Has been skipped
527c0d8f97
fix: initialize swapped HTMX controls without an inert delay
All checks were successful
CI / test (pull_request) Successful in 2m44s
CI / push (pull_request) Has been skipped
5d9c388d54
exler merged commit 6105df75e2 into main 2026-10-24 11:50:54 +02:00
exler deleted branch feat/kitchen-notebook 2026-10-24 11:50:54 +02:00
Sign in to join this conversation.
No reviewers
No labels
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
exler/hearth!6
No description provided.