feat(web): on-this-day card opens full-day modal with viewer navigation #1148
Loading…
Reference in a new issue
No description provided.
Delete branch "feat/on-this-day-modal"
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
Changes the On-this-day carousel interaction (spec 056 T005, replaces the timeline jump from #1138 per user decision): a card click now opens a modal with all media of that day in a wall layout, larger than the card mini-wall.
OnThisDayModal.svelte: fetches the day viagetTimelineDayItems(loading / error+retry / empty states), headline mirrors the card (eyebrow, human date, true count), justified wall at modal width via the sharedwallRowHeightstable, scroll-capped; dialog shell, ESC/backdrop close, focus trap + restore.MediaDetailViewerhosted inside the modal, navigation built from the fetched day items (page timeline may not have hydrated the day); viewer close → modal → page.OnThisDayCarousel: card is a button witharia-haspopup="dialog", focus returns to the card on close;jumpToOnThisDayretired from+page.svelte(spec-051 targeted-day helpers kept)./navigationstub; design doc amendment dated 2026-10-12.Tests
Unit 127 passed (10 new modal tests). Playwright
on-this-day.spec.tsrewritten: 14 passed desktop+mobile (open/headline/close, error retry, tile→viewer→back, empty-day auto-close, empty/error entries). svelte-check 0 errors.