Repository navigation
feat(components): a MeditationLibrary for the meditations index block - #293
sydevs-bot wants to merge 28 commits into
Conversation
…branch ⚠ Both files say they are generated and never hand-edited. This commit edits them anyway, and the whole of its reason is timing: `pnpm types:cms` and `pnpm sync:translations` read SahajCloud `main`, never a branch, and the producer (sydevs/SahajCloud#1223) has not merged. Without these entries nothing in the rest of this branch type-checks. Only the entries the producer adds are written. A wholesale copy of its generated file would also delete `blocks.general.wisdom_sidetext`, whose own producer (sydevs/SahajCloud#1218) is still open. Both scripts run again once the producer merges, and their output replaces this. The snapshot's re-sort also restores three lines #284 left under-indented. Co-Authored-By: Claude Opus 5 <[email protected]> Claude-Session: https://claude.ai/code/session_01Mg9rjXcVCREPdbftdwnZtp
A visitor says how they feel and lands, in one click, on the meditation the app's categories name for that mood and that time of day. `/meditations` lists the same fourteen, one click from the finder. **The time of day is the visitor's own**, read from `cf.timezone` inside `data()`. An absent or unusable zone resolves to evening rather than to the Worker's UTC, with one Sentry warning per isolate per gap. Night folds into evening: the categories define the slot and leave it empty on all 24 moods. **The meditations are read at `locale=en`, whatever the page's locale.** `GET /api/meditations?locale=fr` answers `totalDocs: 0`, so a populated read at the page's locale hands back a bare id in every slot and the region renders empty on a 200 page in all nine non-English locales. The moods themselves keep the page's locale, where `title` is localized and an untranslated mood falls back to English. **The label is composed, not read.** `Meditations.title` is a virtual English fallback with eight distinct values across these fourteen rows — two of them identical — so the site renders one parameterised key over the mood and the length instead. **The block's limit caps the moods after the slot filter.** The fourteen are interleaved by `order` upstream, so slicing before the filter starves a time of day. The finder is its own organism rather than a fork inside `ContentIndex`, whose whole surface is deriving facets and filtering by them — meaningless at one card per mood. It reuses `Button`, `Link` and `ContentGrid`'s siblings, not the facets. `ContentCard` and `ContentGrid` gain a `headingLevel`, mirroring `Column`'s: a grid that is a page's whole content sits under its `<h1>`, and the default `h3` would skip a level. Co-Authored-By: Claude Opus 5 <[email protected]> Claude-Session: https://claude.ai/code/session_01Mg9rjXcVCREPdbftdwnZtp
The block dispatch, the slot filter the resolver applies, and the unavailable message the moods branch renders where every other type renders nothing. Co-Authored-By: Claude Opus 5 <[email protected]> Claude-Session: https://claude.ai/code/session_01Mg9rjXcVCREPdbftdwnZtp
A mood pairs with the slots its `timings` name, never with whichever slot fields happen to be filled. The old pairing listed one meditation twice for a mood holding the same id in two slots, and made the commonest data gap — a slot named but not filled — unreportable, because it built no pair to report. The second read degrades where it is made. `featuredMoodCards` had its own catch and the block path did not, so a failed meditations read threw out of `data()` and took the whole page with it. An unknown block type degrades too. `QUERY_BY_TYPE[type]` was destructured above the `try`, so a type SahajCloud offers before the site ships support for it would 500 the page rather than render one empty region. The retry comment said one failed read is one Sentry event. `withRetry` reports each retried attempt itself, for every caller, so it is three. Co-Authored-By: Claude Opus 5 <[email protected]> Claude-Session: https://claude.ai/code/session_01Mg9rjXcVCREPdbftdwnZtp
…s exist `server/AGENTS.md` named `fetchContentIndexDocs` as the one read missing `withRetry`, and counted six reads. It has one now, and the mood finder brings the count to eight. It also records what the wrapper costs: it reports each retried attempt itself, so a caller that reports its own degrade spends three Sentry events on one failed read. Capturing inside the wrapper is worse, so the rule stands and the number is written down. The root guide records the one `hreflang` derivation that is not a document's publish state, and `pages/AGENTS.md` that each `[slug]` exclusion derives from its route's own constant. Co-Authored-By: Claude Opus 5 <[email protected]> Claude-Session: https://claude.ai/code/session_01Mg9rjXcVCREPdbftdwnZtp
Three independent review lenses landed on the same finding: the block path and `/meditations`
were the same read spelled twice. `QUERY_BY_TYPE.moods`'s select was byte-identical to
`MOOD_SELECT`, and only one of the two copies tracked the producer.
The block branch now delegates to `featuredMoodCards`. That deletes the duplicate select, the
`moods` entry in the shared query table, the `type === 'moods'` exception inside
`fetchContentIndexDocs`, the `{ docs, totalDocs }` return shape it forced on every other type,
and the `MoodDoc` cast. The block stops following its computed `apiEndpoint` — deliberately:
`/meditations` never could, so following it bought one surface a contract the other had to
restate. The editor's `limit` still reaches the finder as what to show, which is all it can mean
once the read is capped at the API's own ceiling.
`server/moods.ts` now reuses what it had copied: `meditationDurationMinutes`, `asText`,
`tryGetContext`, and one bounded Sentry warning shared with `getWebConfig`, which had the same
mechanism inline. Every warning the module sends is bounded now, the two read failures included —
both are on the same uncached hot path as the data gaps.
`moodsForSlot` and `moodSlotPairs` were each half correct and coupled by a comment saying so;
`moodSlots` answers the one question both asked. `routeLocales` was `[...offered]` and is gone.
Every `/meditations` href reads `MEDITATIONS_INDEX_PATH`, the branch's own constant, and the two
surfaces compose the tile's name through one helper rather than the same four lines twice.
Co-Authored-By: Claude Opus 5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01Mg9rjXcVCREPdbftdwnZtp
sydevs-bot
left a comment
There was a problem hiding this comment.
1 question for the reviewer, one per thread.
🤖 Written by the sydevs autonomous loop — see what this is
Generated by Claude Code
Deploying with
|
| Status | Name | Latest Commit | Preview URL | Updated (UTC) |
|---|---|---|---|---|
| ✅ Deployment successful! View logs |
wemeditate-web | a141839 | Commit Preview URL Branch Preview URL |
Nov 25 2026, 08:35 PM |
|
🤖 no session running recent dispatchesWritten by the sydevs dispatcher. Sessions never edit this comment. |
sydevs-bot
left a comment
There was a problem hiding this comment.
🧐 Adversarial review
The diff is the size of its ticket: four parts, each built, nothing smuggled. Both deviations the body argues for are right — owning the featured-mood query in server/moods.ts leaves one spelling where following apiEndpoint would leave two, and lifting warn-once.ts out of getWebConfig turns a shape the ticket said to copy into one both callers share. A third is not argued: the ticket asked for the availableLocales cluster as a named export in lib/hreflang.ts, and both consumers spell it inline. I agree with the skip, but record it.
Findings
- should-fix —
server/moods.ts:66: the meditation read selects no_status, so "absent or unpublished is dropped" is unbuilt and unrecorded. - should-fix —
LayoutBlock.tsx:17: a JSDoc stranded by the type that moved out now documents the wrong declaration. - consider —
pages/meditations/(index)/+Page.tsx:5: the page deep-imports two helpers past both barrels from an organism it never renders. - consider —
server/moods.test.ts:75: warning assertions depend on being the first use of a signature nothing resets.
What was checked
#291's criteria one by one. Read whole on the branch: moods.ts, time-of-day.ts, warn-once.ts, content-index.ts, document-routes.ts, sitemap-routes.ts, head.tsx, MoodFinder.tsx, the (index) route files.
Ladder: HOUR_FORMATS matches PLURAL_RULES at lib/i18n.ts:42; warn-once.ts absorbs an existing memo; tryGetContext and LOCALE_PREFIX are reused. None.
Producer side: sydevs/SahajCloud#1225's endpoint and keys match FEATURED_MOODS_ENDPOINT and the copied types.
Production, read-only key: the mood query at locale=fr → totalDocs: 14, one timing each (4/4/6), every row carrying color and url, titles in English fallback. select[_status] over meditations → 121, all published.
🤖 Written by the sydevs autonomous loop — see what this is
Generated by Claude Code
`createWarnOnce` keeps its reported signatures in module state, so every warning assertion in this file passed only because it was the first use of its signature. A later test asserting `meditation:2:morning` saw no warning at all. `vi.resetModules()` per test rebuilds the mock registry too, so both the module under test and the Sentry spy are re-imported from the fresh graph. Co-Authored-By: Claude Opus 5 <[email protected]> Claude-Session: https://claude.ai/code/session_01Mg9rjWdiqnqmrmvkjKymkf
The meditation read selected no `_status`, and nothing below checked one, so an unpublished meditation rendered as a live tile. A draft does come back from a `find` on this client contract. #291 names `select[_status]` in its query spec and its criterion reads "absent or unpublished is dropped". A draft now takes the same warn-and-drop path as a missing meditation, and the warning carries the status that caused it. Co-Authored-By: Claude Opus 5 <[email protected]> Claude-Session: https://claude.ai/code/session_01Mg9rjWdiqnqmrmvkjKymkf
Deploying with
|
| Status | Name | Latest Commit | Preview URL | Updated (UTC) |
|---|---|---|---|---|
| ✅ Deployment successful! View logs |
wemeditate-design | a141839 | Commit Preview URL Branch Preview URL |
Nov 25 2026, 08:35 PM |
`ItemHeadingLevel` moved to `ContentCard.tsx`, which carries its own replacement. What stayed behind read as `LayoutBlockProps`'s doc while describing a declaration no longer in the file. Co-Authored-By: Claude Opus 5 <[email protected]> Claude-Session: https://claude.ai/code/session_01Mg9rjWdiqnqmrmvkjKymkf
`/meditations` reached past both barrels into `MoodFinder.tsx` for two helpers, for a page that never renders the organism. Both surfaces now take them from `MoodFinder/moodCard.ts`, through the folder barrel every other consumer under `pages/` and `layouts/` imports. Co-Authored-By: Claude Opus 5 <[email protected]> Claude-Session: https://claude.ai/code/session_01Mg9rjWdiqnqmrmvkjKymkf
`createWarnOnce` has two callers and no test file of its own, so the trap `server/moods.test.ts` hit is waiting for the next one. Records the symptom — a missing warning rather than a failing order — and that resetting the registry also replaces the mock the spy was taken from. Co-Authored-By: Claude Opus 5 <[email protected]> Claude-Session: https://claude.ai/code/session_01Mg9rjWdiqnqmrmvkjKymkf
|
Four critic threads adopted, pushed as a245255. The question thread on the retry stays open.
That last one was live: the draft test asserted a signature an earlier test had spent, so it saw no warning. Gate: lint, 🤖 Written by the sydevs autonomous loop — see what this is Generated by Claude Code |
|
Ready to review with sydevs/SahajCloud#1223. It merges after sydevs/SahajCloud#1223 does: auto-merge is armed once that closes, after its contract re-sync lands here. 🤖 sydevs dispatcher |
ContentIndex's inline pill row said to extract a molecule once a second consumer appeared. MeditationLibrary is that consumer, and it brings the per-pill icon with it. Single- or multi-select stays the caller's: the row reports each pill's own state through aria-pressed either way, and what differs is whether onToggle adds to the selection or replaces it. Co-Authored-By: Claude Opus 5 <[email protected]> Claude-Session: https://claude.ai/code/session_01Mg9rjVjPd5UW9q1WXiPxqm
Reworks the branch to #291 as rewritten after the design review of #272. Out: the `pages/meditations/(index)/` code route and its test, MEDITATIONS_INDEX_PATH and its matcher, the RESERVED_SEGMENTS entry, the sitemap row and the all-locales hreflang helper, MoodFinder, server/moods.ts with visitorTimeOfDay and its cf.timezone read, the `moods` block type, and the meditations-index a11y fixture. /meditations is a CMS page served by [slug]. In: MeditationLibrary, the counterpart of MusicLibrary. The `meditations` block now resolves to { choices, meditations } through two reads — the chosen user-choices on the block's own endpoint at the page's locale and depth 0, then the meditations by id at locale=all. locale=fr answers totalDocs: 0 and locale=en would drop a localized slot meditation, so `all` is the only spelling that serves both. Every (choice, slot) tile link and every card is in the server's HTML; the browser narrows the tile rows to the visitor's own slot after mount, so the page works without JavaScript and a crawler sees every link. A slot is read off its own field rather than off `timings`: `timings` is the choice's claim, and a slot claimed with nothing in it is reported instead of rendered as a tile linking nowhere. Durations are not known to carry `timings` at all, so pairing on it would have dropped every duration tile. The head's ItemList follows the new shape through the same label helper the organism uses, rather than silently losing the claim a meditations block made. Kept: withRetry on fetchContentIndexDocs, the QUERY_BY_TYPE lookup inside the try, both documentHref fixes, headingLevel, timeOfDaySlot (fed a browser zone now) and warnOnce. Co-Authored-By: Claude Opus 5 <[email protected]> Claude-Session: https://claude.ai/code/session_01Mg9rjVjPd5UW9q1WXiPxqm
…s a second use Two claims this branch makes false. `server/sahajcloud/AGENTS.md` named `fetchContentIndexDocs` as the one read still missing `withRetry` (#128). It has one. The `locale=all` section said there was exactly one locale-agnostic fact worth reading that way. Reaching a `meditations` row by id is a second, and a different kind: the collection's own locale filter answers zero docs at any single non-English locale, so `all` is what answers at all rather than what answers in every language. Co-Authored-By: Claude Opus 5 <[email protected]> Claude-Session: https://claude.ai/code/session_01Mg9rjVjPd5UW9q1WXiPxqm
The comment on this read's retry claimed the wrapper reports every retried attempt, so one failed 5xx read cost three Sentry events. #327 made a retried attempt a breadcrumb: the cost is the wrapper's one captureException plus this caller's degrade, whatever the attempt count. Co-Authored-By: Claude Opus 5 <[email protected]> Claude-Session: https://claude.ai/code/session_01Mg9rjVjPd5UW9q1WXiPxqm
|
Reworked to the rewritten #291 in d87371b, a3c43db, b14aa4a, 3c321bd. Gate green: 173 files, 1793 tests, plus Removed, all verified gone by grep: the code route and test, Built: Your retry thread is resolved — #327 made a retried attempt a breadcrumb, so the three-events premise is gone and A stands. ⚠ One thing I could not confirm: no 🤖 Written by the sydevs autonomous loop — see what this is Generated by Claude Code |
|
Scope change (owner, 2026-11-23). This PR is cut back to #291 as rewritten today: the The mood picker moves to #334, on a new |
`ContentIndexBlockFields` restated every stored field of the generated `ContentIndexBlock`, so each field `pnpm types:cms` adds needs a hand edit here before any reader sees it — the second commit on this PR was exactly that edit. Deriving it with `Omit` makes the two new `user-choices` filter fields and the union member arrive for free. The `shortcut:` marker named #293 as the blocker. It is not one: the generated interface is exported today, so the derivation compiles now. `blocks.test.ts`'s type equality assertion goes with it. It proved the mirror matched; the mirror is gone. Co-Authored-By: Claude Opus 5 <[email protected]> Claude-Session: https://claude.ai/code/session_01Mg9rjWwKkRTjDFL8ppKTVM
Two conflicts, both where #342's contract re-sync landed on this branch's own edits to the same declarations. lib/content/blocks.ts — `ContentIndexBlockFields` takes main's derived form, `Omit<ContentIndexBlock, 'id' | 'blockName' | 'blockType'>`. The hand-written mirror this branch still carried was a `shortcut:` waiting on the generated block type, and main has since cashed it in. The three meditation types and `resolvedLibrary` stay as this branch has them. server/content-index.ts — `QUERY_BY_TYPE` keeps main's exhaustive keying, `Exclude<…, 'user-choices'>`, so a type the next re-sync adds fails the build rather than resolving to nothing. It also keeps this branch's runtime degrade: a block's fields are cast out of a lexical tree, so `type` is whatever SahajCloud sent, and a deploy one behind the schema must render an empty region rather than 500 the page. The widened annotation on the lookup is what lets both hold at once. main's `user-choices` early return now answers `{ docs: [] }`, the shape this branch gave `fetchContentIndexDocs`. `return []` merged clean and would not have compiled. Lean gate: lint, tsc --noEmit, 176 files / 1836 tests, all green. Co-Authored-By: Claude Opus 5 <[email protected]> Claude-Session: https://claude.ai/code/session_01Mg9rjYRNEwHS3ELjbpZsL7
|
Merged
🤖 Written by the sydevs autonomous loop — see what this is Generated by Claude Code |
Summary
meditationscontent-indexblock as aMeditationLibraryorganism, the counterpart ofMusicLibrary: "How are you feeling?" over the mood tiles, "How much time do you have?" over the duration tiles, then every meditation those choices name, narrowed one choice at a time.MoodFinder,server/moods.tsand themoodsblock type are gone;/meditationsis a CMS page served by[slug].locale=all, becausefilterMeditationsByLocalemakes any single non-English locale answertotalDocs: 0.fetchContentIndexDocswas the one SahajCloud read with nowithRetry(fix(server): the content-index read is the one CMS read with no retry #128), and two meditation paths were built inline instead of throughdocumentHref.FilterPillsfromContentIndex, which said to do so once a second consumer appeared.Change outline
Flow — what one render of a
meditationsblock now doesdata() pages/[slug]/+data.ts resolveContentIndexBlocks(page.content) server/content-index.ts songs → resolveContentIndexTracks pages | lectures → resolveContentIndexItems + meditations → resolveMeditationLibrary + fetchContentIndexDocs(fields) # the block's OWN apiEndpoint + depth=0, locale=<page> # slots stay bare ids by design + docs.slice(0, limit) # totalDocs > docs → warn once + meditationLibraryFromChoices(docs) server/meditation-library.ts + meditationChoice(doc) # type → kind; goal → drop, warn + slots read off each slot FIELD # `timings` is the claim, not the answer + claimed-but-empty slot → warn once + GET /api/meditations?locale=all&where[id][in]=…&select[_status] + one read, deduped ids; fails → warn, empty library + unpublished | missing | no length → drop the slot AND the card, warnlocale=allis the only spelling that answers.filterMeditationsByLocalefilters everyfindon that collection and every row islocale: en, so?locale=fr&where[id][in]=…returnstotalDocs: 0— which is why the block renders empty in nine locales today.locale=endoes answer, but it would drop a localized slot meditation, and a French choice may name a French one. The choices keep the page's own locale, wheretitleis localized.server/sahajcloud/AGENTS.mdnow carries this beside the only otherlocale=alluse.Behaviour — a slot is read off its field, not off
timingsA choice's
timingsis what it claims; the slot field is what it has. Soslotsis built from the fields, and a slot claimed with nothing in it is reported rather than rendered as a tile linking nowhere.This differs from the previous design, and the reason is new: durations are not known to carry
timingsat all. Pairing ontimingswould have dropped every duration tile. The two hazards the earlier branch review caught are still closed — a meditation named by two choices is listed once carrying both (choiceIds), and the commonest data gap is still reportable, becauseclaimedSlotsis still read.⚠ This is the one thing in the diff I could not confirm against the live API — this session has no SahajCloud key (see Notes for reviewer).
Components
The time of day comes from the browser, not the Worker.
Intl.DateTimeFormat().resolvedOptions().timeZoneafter mount, socf.timezoneand the server-side slot are gone. Before mount — and for a visitor without JavaScript, and for a crawler — every (choice, slot) tile link renders, which is what the server sends; the browser then keeps only the current slot's. An unusable zone keeps them all rather than guessing one.Single- vs multi-select stays the caller's, not a mode inside
FilterPills. The row reports each pill's own state througharia-pressedeither way; what differs is whetheronToggleadds to the selection or replaces it. That is what letsContentIndexstay multi-select with one row between them.Contract — nothing new is published
No code route, no
RESERVED_SEGMENTSentry, no sitemap row, no all-localeshreflanghelper./meditationswith no CMS page answers whatever any missing slug answers.The head's
ItemListfollows the new shape. A meditations block contributed its cards to the page's JSON-LDItemListbefore this PR; the new shape would have dropped that claim silently.libraryEntriesinlib/seo/content-seo.tsrestores it through the samemeditationLabelhelper the organism uses, so the name a crawler reads and the name a visitor reads cannot drift.Contract impact
Neither copied contract is hand-edited.
types/payload/payload-types.tsandlib/i18n/translations.en.jsonare whatpnpm types:cmsandpnpm sync:translationswrite.The six
meditation.generalkeys sydevs/SahajCloud#1223 declares but has not merged reach the app from two overlays, each deletable in one step and each carrying ashortcut:naming that producer:declare moduleinlib/i18n/web-translations.tsWebTranslationsandTranslationKeylib/i18n/translations.pending.ts, overlaid inlib/i18n/i18n.tsuseT()'s fallback, the guard test and LadleBoth now carry
length_questionandlength_meditation_label, which the rewritten producer adds. The producer declares no block type, so nothing overlays one.meditation.a11y.finder_regionneeds no overlay: #328 already ships it in all eighteen locale files.Delete both once the producer merges and the two scripts carry the keys. A key already in the snapshot wins over the overlay, so it goes stale rather than shadowing a word an editor has since typed upstream.
Test results
tsc --noEmit, and the full suite — 173 files, 1793 tests.server/content-index.test.ts,lib/content/blocks.test.ts,lib/time-of-day.test.ts(77 together),components/organisms/MeditationLibrary(16),components/organisms/ContentIndex(15),components/organisms/RichText(70),tests/a11y/page-types.test.tsx(16),tests/guards/.pnpm build.grep -rl "MediaPlayer\|useMediaStore" dist/serverfinds nothing, anddist/server/entries/no longer carries a meditations-index route.server/): ✓ no findings. The id interpolation intowhere[id][in]=was traced todepth: 0relationship ids andsahajCloudFetch's site-relative-path refusal; theHEX_COLORgate was bypass-tested; no new<a>,dangerouslySetInnerHTMLorwindow.location.grep -rn "cf.timezone\|MEDITATIONS_INDEX_PATH\|MoodFinder\|featuredMoodCards" .→ nothing.Manual verification
meditate-nowand itsmeditationsblock'slimitat 17 or more:curl -s <preview>/meditate-now | grep -c 'href="/meditations/'is at least the number of distinct meditations in the block.curl -s <preview>/de/meditate-now, once that locale is published, lists the same count — the check this goal exists to pass, and the one thelocale=allread fixes.curl -s <preview>/meditationsanswers whatever a missing slug answers, until the owner renames page 10.docs/accessibility-walkthrough.md) — the axe gate covers everything except a drawn hit area and a focus outline.Notes for reviewer
The sibling, and the merge order. sydevs/SahajCloud#1223 is the producer. It merges first —
tscandtests/guards/translation-keys.test.tshere depend on the six keys it declares, which the two overlays stand in for until it has.⚠ One assumption I could not confirm against live data, and it is the one worth your eye. This repo's
AGENTS.mdsays to settle a question like this against the real API rather than from source. This session has noSAHAJCLOUD_API_KEY, so I could not: whether adurationuser choice carriestimings. The code does not depend on the answer — slots are read off the slot fields, andtimingsonly drives the claimed-but-empty warning — which is precisely why it is built this way. But if durations do carrytimings, the gap warning covers them too, and if they do not, it covers moods only. Nothing renders differently either way. Worth oneGET /api/user-choices?where[type][equals]=duration&select[timings]=truefrom someone holding a key.Two things the rework deliberately did not keep.
The block now follows its own computed
apiEndpoint. The previous design spelled the featured-mood query itself, because/meditationshad no block and following the endpoint would have left two spellings. With the code route gone there is only one surface, so the endpoint is followed andFEATURED_MOODS_ENDPOINTis deleted — the opposite call from last time, for the reason that changed.fetchContentIndexDocsreturns{ docs, totalDocs }again. A previous round removed that shape when it removed amoodsexception. It is back becauselimitcapping the choices must be reportable — "showing fewer than the data holds" needs the pre-cap total — and now it serves every type uniformly rather than one exception.Two corrections to claims this PR used to make.
withRetryreports every retried attempt, so a failed 5xx read cost three Sentry events. refactor: reorganise folders by topic, import through @/, and keep server/ server-only #327 made a retried attempt a breadcrumb; the cost is the wrapper's onecaptureExceptionplus this caller's degrade. That also settles the open question thread on that line, which asked whether to bound it — there is nothing left to bound.docs/rules/testing.mdprescribedvi.resetModules()for thewarnOncememo and pointed atserver/moods.test.ts, now deleted.forgetReportedWarnings()is the established pattern onmain(four test files use it) and leaves every spy in place. It also gained theIntl.DateTimeFormatfake-timers trap, which cost real time here: the defaulttoFakeset replacesIntl, so a spy on its prototype is silently bypassed, every zone reads asUTC, and the suite goes green while testing nothing.What
min-h-24on a tile row does and does not hold. It keeps the row from collapsing when a slot offers fewer tiles than the last, so the list below does not jump between slots. It cannot absorb the hydration swap itself: the server renders all three slots, and no reserved height could hold three rows' worth. That one shift happens once, at mount, like any progressive enhancement.aria-pressed, notaria-current, on a single-select chip.aria-current="page"is whatButton'sisActiveemits and it is wrong here — these are filters, not pages.aria-pressedreports each chip's own state correctly in both modes, which is why the molecule has no mode at all.Closes #291
🤖 Generated with Claude Code
https://claude.ai/code/session_01Mg9rjVjPd5UW9q1WXiPxqm