Repository navigation
feat(pages): editor-picked discover actions close the home, featured and knowledge pages, with a share row on the rest - #311
Conversation
`platforms.sort()` sorted the prop in place: it reordered a caller's own array behind its back, threw on a frozen one, and drew every row alphabetically whatever order the caller chose. The row now renders the platforms as given, and the prop is typed `ReadonlyArray` so the compiler holds that. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01Mg9rjZcE8bs5uRJ6dsg6kw
Its three actions were hard-coded to /meditations, /live and /classes,
and all three 404 on the deployed site. The destinations now come from
`wm-web-config.classPages` ("Select up to 5 pages for seekers to start
meditating"), one action per page in the editor's order, capped at the
five upstream allows, each linked through `documentHref` and named by
the page's own title.
The line under a title is the page's `meta.description` and the picture
above it its `meta.image`, so the config read now populates
`meta.description` and `NavPage` says so. Neither is set on a live class
page today (checked 2026-11-19), so each action falls back to its title
alone under a leaf glyph — the legacy footer's own shape, which carried
a title and an icon and no subtitle. A section with no linkable page
renders nothing.
The cards were 40% white, which measured 3.1:1 for the last action a
phone stacks over the photo's dark rock; at 85% the worst case is 5.5:1.
Six `discover.general.*` keys are no longer read: meditate_now,
meditate_now_subtitle, live_guidance, live_guidance_subtitle,
classes_near_me, classes_near_me_subtitle. `title` and `subtitle` stay.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01Mg9rjZcE8bs5uRJ6dsg6kw
The home page now ends with DiscoverMeditation, full-bleed after its content, its actions from `settings.classPages`. Every other SahajCloud content page ends with a SocialShare row in the body column, titled with the page's title. The share URL is the canonical `ContentHead` emits, read from one place: `publishedContentUrl` in lib/head.tsx now answers the origin, path and canonical for both. It answers `null` under an open live preview, so a draft offers no share row, as it already advertised no canonical. On the client, vike parses a path-only URL, so `urlParsed.origin` is null in the browser. The share row then rendered on the server only and hydration threw the page's markup away (seen in a browser against the dev server); `publishedContentUrl` falls back to the window's origin, which is the one the server rendered for. `ContentHead` runs only on the server, so its output is unchanged. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01Mg9rjZcE8bs5uRJ6dsg6kw
Mounted on the home page, the section's subtitle is 20px light text (normal size under WCAG 2.1 SC 1.4.3) below `md`, drawn straight on the photo in gray-700. Measured in Chromium with the text made transparent, it reached 3.81-4.06:1 at 320-640px, short of the 4.5:1 it needs. The heading block now takes the section's gray-900, the step the action cards already use: the subtitle measures 5.82:1 or more and the h2 5.99:1 or more at every width from 320 to 1280. The left gradient overlay hung 64px below the section, where only LayoutChrome's pb-8 separates it from the footer, so it painted a pale block over the gap and the footer's separator. It is clipped to the section now, and the story drops the empty spacer that replaced the room it once reserved. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01Mg9rjZcE8bs5uRJ6dsg6kw
Deploying with
|
| Status | Name | Latest Commit | Preview URL | Updated (UTC) |
|---|---|---|---|---|
| ✅ Deployment successful! View logs |
wemeditate-design | 4bca500 | Commit Preview URL Branch Preview URL |
Nov 22 2026, 10:41 PM |
Deploying with
|
| Status | Name | Latest Commit | Preview URL | Updated (UTC) |
|---|---|---|---|---|
| ✅ Deployment successful! View logs |
wemeditate-web | 5331ff4 | Commit Preview URL Branch Preview URL |
Nov 22 2026, 10:46 PM |
|
🤖 no session running recent dispatchesWritten by the sydevs dispatcher. Sessions never edit this comment. |
#282 replaced `lib/head.tsx`'s `ContentHead` with a `SeoDocument` each route builds in its `+data.ts`, so `publishedContentUrl` had nothing left to serve. Took main's file whole, and moved the share row onto `seo.canonical` from the route data — the same URL `seoHeadHtml` publishes as canonical, so the two still cannot disagree. Two behaviours survive the move rather than being rebuilt: - The window-origin fallback is gone. The canonical rides `data` to the browser already, so there is nothing to rebuild from a path-only `urlParsed`. - Live-preview suppression is now an explicit check in `+Page.tsx`. `+data.ts` builds `seo` under an open preview too, and `seoHeadHtml` drops the whole head there; a draft's URL 404s publicly, so it is not one to hand a sharer. `tests/a11y/page-types.test.tsx` now gives its two content targets the `seo` document the route hands a page, built by `pageSeo`. Without one the page reads `canonical` off `undefined`, and the article target would walk an axe run missing the share row. Co-Authored-By: Claude Opus 5 <[email protected]> Claude-Session: https://claude.ai/code/session_01Mg9rjZRp55YtiuL4Mk3wrn
The share row now reads its URL from `data.seo.canonical` (#282's shape), so a target whose route data carries no `seo` reads `canonical` off `undefined` and the render throws. `pageSeo` builds the fixture, so the article target walks an axe run with the row on it rather than without. Co-Authored-By: Claude Opus 5 <[email protected]> Claude-Session: https://claude.ai/code/session_01Mg9rjZRp55YtiuL4Mk3wrn
|
Merged
Lean gate on 5a89b10: 0 lint errors, tsc clean, 1664/1664 tests. The body's 🤖 Written by the sydevs autonomous loop — see what this is Generated by Claude Code |
#313 reformatted the repo and made any lint warning fail the gate, which touched both of this branch's conflicted files. - `SocialShare.tsx`: the hunk is #313's prop reordering against this branch's removal of `platforms.sort()`. Took main's formatting with this branch's `.map`, so the caller's order survives and the file clears `--max-warnings 0`. Those were the 7 warnings the PR body logged as unfixable on lines it does not write; main has now fixed them. - `DiscoverMeditation.stories.tsx`: main's side is #313 reformatting the old story body, which this branch replaces — `pages` is required now, so `<DiscoverMeditation />` with no props would not typecheck. Took this branch's file. Main carries no `DiscoverMeditation.test.tsx`, so the add/add the PR body anticipated from #288 did not arrive. Lean gate on the merge: lint clean under `--max-warnings 0`, prettier clean, `tsc --noEmit` clean, 164 files / 1706 tests pass. Co-Authored-By: Claude Opus 5 <[email protected]> Claude-Session: https://claude.ai/code/session_01Mg9rjYq1nwFopvLJWfb9Jv
|
Merged
Main carries no Lean gate on d38a548: lint and prettier clean, 🤖 Written by the sydevs autonomous loop — see what this is Generated by Claude Code |
sydevs-bot
left a comment
There was a problem hiding this comment.
🧐 Adversarial review
The diff is the size of its claim: three 404 links become editor-chosen destinations, and every other content page ends with a share row. Nothing is smuggled — the SocialShare sort fix and the contrast work sit in code this diff already touches. Two shapes want your call: the share row sits in the route, where both sibling templates own their tail, and +Page.tsx hand-spells a condition lib/live-preview/session.ts was built to name.
The body no longer describes this branch. Two main merges took #282's lib/head.tsx whole, so publishedContentUrl, ContentHead and the window-origin fallback are gone from it, yet SS-canonical-reuse, SS-hydration and the Summary still describe them, and Test results cite head 9c48b71 and 1289 tests where the gate runs 1706.
Findings
- should-fix the body above. No inline thread.
- should-fix
+Page.tsx:23— a third hand-spelled preview condition. - should-fix
+Page.tsx:37—isHomere-derives the route slug. - should-fix
+Page.tsx:50— the row is in the route, not the template. - should-fix
locale.test.tsx:99—toHaveLength(6)blocks its own cleanup. - should-fix
page.test.tsx:158— a case for machinery that is gone. - consider
DiscoverMeditation.tsx:22—title/subtitlehave no caller. - consider
DiscoverMeditation.tsx:138— every action ships the same leaf.
What was checked
Beyond the diff: +data.ts, live-preview/session.ts, PageTemplate.tsx, useSiteNav.ts, a11y/fixtures.ts, read whole. The contract holds — NAV_PAGE_SELECT and NavPage gain description together, and partitionPublishedPages keeps a bare id out of pages. Ladder: MAX_ACTIONS, the locale pass-through, the story fixtures. Streamliner: 5 pieces, 3 kept, 6 found, 3 posted. No preview opened. No ticket, no question threads.
🤖 Written by the sydevs autonomous loop — see what this is
Generated by Claude Code
A page's `meta.image` is the picture it hands a sharer, and an editor filling it in was never choosing a glyph for the home page's discover row. So the fallback branch is gone: every action draws the leaf until the row has a glyph of its own, configured beside the page in `wm-web-config` (#330). The spec now pins that a page carrying a `meta.image` still gets the leaf, which is the half that would otherwise regress silently. Co-Authored-By: Claude Opus 5 <[email protected]> Claude-Session: https://claude.ai/code/session_01Mg9rjXyevrhSXJicbLLPw2
|
Answered both notes on A, and Follow-up: #330 — a glyph configured per Merged main (6ffa178) with the work, no conflicts. Body refreshed: the 🤖 Written by the sydevs autonomous loop — see what this is Generated by Claude Code |
sydevs-bot
left a comment
There was a problem hiding this comment.
🧐 Adversarial review
Second look, on @sydevs-bot review. Every finding from 2026-11-21 landed, the body now describes this branch, and the glyph question is settled — A, meta.image dropped in c109964, #330 filed. The diff matches its claim.
What is left is the file rather than what the diff added to it. Three pieces of DiscoverMeditation.tsx restate something that already decides them: upstream's maxRows, Link's locale fallback, and one fixture copied into a second. The description plumbing renders nothing live today, but the shortcut: on WEB_CONFIG_POPULATE names that cost and its trigger, and ~300 B does not cross it.
Findings
- should-fix
DiscoverMeditation.tsx:9—MAX_ACTIONScopies upstream'smaxRows: 5. - should-fix
DiscoverMeditation.tsx:21—localehas no setter, andLinkdefaults it. - should-fix
DiscoverMeditation.stories.tsx:18— a near-copy fixture, and a second full-height render. - consider
DiscoverMeditation.tsx:77— the comment narrates the change. - consider
tests/a11y/page-types.test.tsx:100—typeof articlePagetypes one caller's fixture. - consider
layouts/useSiteNav.ts:81— the header's class-page link still spells'/' + slugby hand, while this diff makesdocumentHref('pages', …)how aclassPagesentry becomes a link. Upstream's note says the first entry is the header's. No inline thread: outside the diff.
What was checked
Read whole beyond the diff: document-routes.ts, web-config.ts, useSiteNav.ts, Link.tsx, content-seo.ts, WeMeditateWebConfig.ts upstream. partitionPublishedPages guarantees a non-empty slug and Page['slug'] is string, so the skip branch is the type's; the empty return stays live for a cleared classPages. NavPage, NAV_PAGE_SELECT and the populate pin move together. Streamliner: 5 pieces, 3 posted.
🤖 Written by the sydevs autonomous loop — see what this is
Generated by Claude Code
`classPages` is `maxRows: 5` in SahajCloud's WeMeditateWebConfig, so the cap binds where an editor picks the pages. `MAX_ACTIONS` and the `.slice()` were a second copy of that number, defending a looser schema nobody has shipped. Co-Authored-By: Claude Opus 5 <[email protected]> Claude-Session: https://claude.ai/code/session_01Mg9rjYiBnNoNya6T4uLBag
Nothing passed `locale` to `DiscoverMeditation`: not the route, not the stories. `Link` resolves `locale ?? pageLocale` itself, so the prop threaded `undefined` through two layers. `DiscoverMeditation.locale.test.tsx` proves the French hrefs through that fallback, having never passed the prop. Co-Authored-By: Claude Opus 5 <[email protected]> Claude-Session: https://claude.ai/code/session_01Mg9rjYiBnNoNya6T4uLBag
`DESCRIBED` was `CONFIGURED` with two descriptions spread in and a no-op clone of its third entry, so both subsections drew the same three pages. The section is `min-h-screen`, so the story ran two viewports tall for a difference the described fixture shows on its own third action. Co-Authored-By: Claude Opus 5 <[email protected]> Claude-Session: https://claude.ai/code/session_01Mg9rjYiBnNoNya6T4uLBag
`not gray-700` and `where 40% measured 3.1:1` read correctly only to someone who saw the diff, which docs/rules/code-comments.md rules out. Both keep the measurement that explains the value and drop the value it replaced. Co-Authored-By: Claude Opus 5 <[email protected]> Claude-Session: https://claude.ai/code/session_01Mg9rjYiBnNoNya6T4uLBag
`typeof articlePage` typed the parameter from the article target's fixture, while the home target passes `homePage` through the same helper. `pageSeo` takes `page: Page`, which both fixtures satisfy. Co-Authored-By: Claude Opus 5 <[email protected]> Claude-Session: https://claude.ai/code/session_01Mg9rjYiBnNoNya6T4uLBag
The home page was the only one closing with the section. `wm-web-config` names three sets as a seeker's way in, so `featuredPages` and `knowledgePages` now close with it as well, still offering the `classPages` actions. A page is left out of its own actions: `meditate-now` sits in `featuredPages` and `classPages` at once, and an action leading back to the page it closes is a dead end. The share row is unchanged, so a featured or knowledge page carries both. Co-Authored-By: Claude Opus 5 <[email protected]> Claude-Session: https://claude.ai/code/session_01Mg9rjYiBnNoNya6T4uLBag
Three sites in the header spelled a page path as `'/' + page.slug`, while
`documentHref('pages', …)` is how a `classPages` or `knowledgePages` entry
becomes a link everywhere else. AGENTS.md puts that spelling in
`lib/urls/`, not in a consumer.
Co-Authored-By: Claude Opus 5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01Mg9rjYiBnNoNya6T4uLBag
Prettier joins them onto one line now that `locale` no longer passes through. Co-Authored-By: Claude Opus 5 <[email protected]> Claude-Session: https://claude.ai/code/session_01Mg9rjYiBnNoNya6T4uLBag
|
Pushed 5331ff4. Your ask — the section now closes the home page and every Adopted, each reply carrying its SHA — the Joined — the review's loose Title and body refreshed. Gate green, 1763 tests. Security sweep clean. 🤖 Written by the sydevs autonomous loop — see what this is Generated by Claude Code |
Summary
wm-web-config.classPages, in the editor's order — today Classes Near Me, Live Meditations and Meditate Now — minus the page it is closing. Before this PR the section was not mounted anywhere, and its three hard-coded links (/meditations,/live,/classes) all returned 404 on the deployed Worker.pages/[slug]route, home excepted) ends with a row of share icons for Facebook, Pinterest, LinkedIn and Bluesky. Each icon shares the page's canonical URL under its title.classPageschanges the actions, and moving one in or out offeaturedPagesorknowledgePageschanges which pages carry them. Nothing in code needs to follow. Once a page has a SEO description, the action shows it under the title. Every action draws the same leaf, and a glyph an editor picks is feat(components): an editor picks each discover action's glyph in WmWebConfig #330. Live preview never shows the share row.seodocument carries, so the shared URL and the<head>'s cannot disagree.SocialShareno longer sorts itsplatformsprop in place, which mutated the caller's array and threw on a frozen one. The section's heading block and action cards now clear WCAG 2.1 AA over the photo at every width.Preview
classPagesorder, and no share row.pageslist, for the contrast over the photo at each width.What changed and why
classPages, not literals.components/organisms/DiscoverMeditation/DiscoverMeditation.tsx:25-83takes a requiredpages: readonly NavPage[].Links.classPagesismaxRows: 5upstream (WeMeditateWebConfig.ts:91), so the cap binds where an editor picks the pages and the component keeps no copy of the number.documentHref('pages', page), so it carries the locale prefix.DiscoverMeditation.pages.test.tsx(order, titles, skip and render-nothing) andDiscoverMeditation.locale.test.tsx(fr hrefs are/fr/…, the headings come from SahajCloud, and no per-action key renders).meta.description, trimmed and clamped to 2 lines atmax-w-60. With no description there is no line, as on the legacy actions footer.LeafSvg, on every action. A page'smeta.imageis the picture it hands a sharer, and an editor filling that in is not choosing a glyph for this row, so nothing here reads it (c109964).classPagesno longer has.DiscoverMeditation.pages.test.tsx("draws a page's description…", "pictures every action with the same leaf…").meta.descriptionin the config read.NavPagemeta now includesdescription(types/sahajcloud.ts:73), andNAV_PAGE_SELECT(server/sahajcloud/selects.ts:184) asks for it, so the typed select and the type still cannot drift.populate[pages][meta][description]answers 200.shortcut:onWEB_CONFIG_POPULATErecords the cost.populateis per collection, so all 15 config pages carry the field: about 19 B each while it is null, up to about 160 B once written. The upgrade path is to strip it from the non-class lists ingetWebConfig.server/sahajcloud/index.test.ts("populates a config page with exactly the fields NavPage promises").pages/[slug]/+Page.tsx:19,39-45,65-66mounts it on the home page, on everyfeaturedPagesentry and on everyknowledgePagesentry — the three setswm-web-confignames as a seeker's way in.lib/content/featured-nav.tsalready owned the last two predicates (isFeaturedNavPage:33,isKnowledgePage:46), so the header's highlight and this condition read one rule./routes asindex(+data.ts:55), and any other URL spelling the configured home page's slug 302s to/before a render (+data.ts:83). So an unresolvedhomePagecannot draw/as an ordinary page.meditate-nowis infeaturedPagesandclassPagesat once (live, 2026-11-22), so without the filter the section would offer an action leading back to the page it closes. The section already renders nothing when no page is left.pb-12does not stack a second gap above the footer.pages/[slug]/page.test.tsx: "closes the home page with one discover action per configured class page", "closes a featured page and a knowledge page with the same actions", and "leaves a page out of its own actions, and ends a page in no set with the row alone". The last two fail on c109964.tests/a11y/page-types.test.tsx) renders the section on its home target and passes. Both content targets carry the route's ownseodocument and itsslug.pages/[slug]/+Page.tsx:56-60putsSocialShareinContainer maxWidth="md"withmt-12, aligned with the RichText column. Its title is the page's title.page.test.tsx: "shares any other page at the canonical its head publishes, under its title" and "offers no share row under an open live preview".+data.tsbuilds oneSeoDocumentper page, andpages/[slug]/+Page.tsx:27reads itscanonicalfor the share row.lib/seo/head-html.tspublishes that same string as<link rel=canonical>, so the two cannot disagree.+data.tsbuildsseounder an open preview too, where no head is published at all. A draft's URL 404s publicly, so it is not one to hand a sharer. The⚠comment states that.page.test.tsx, which builds the route'sseowith the very builder+data.tscalls, renders the head from it, and asserts the canonical and the Facebook share URL both namehttps://wemeditate.com/fr/about-meditation.datato the browser, so nothing is rebuilt fromurlParsed, whoseoriginis null there.publishedContentUrl./about-meditationand/classes-near-meshow 1 link before and after hydration, the share URL equals the emitted<link rel=canonical>, and there are no page errors./has the section, no row and no errors.page.test.tsx("renders the same markup in the browser, whose pageContext carries no origin"): the article renders twice off onedata, and the two must come out identical.SocialSharekeeps the caller's order. The oldplatforms.sort()sorted the prop in place, so it mutated the caller's array, threw on a frozen one, and discarded the caller's order.components/molecules/SocialShare/SocialShare.tsx:105now maps the prop as given, and the prop is typedReadonlyArray.SocialShare.test.tsx: a frozen['whatsapp','facebook','pinterest']renders in that order. It fails on main with a TypeError.bg-white/85(hover/95).items-start, so cards of different heights share a top line.md, the subtitle is 20px light text (normal size under SC 1.4.3) drawn straight on the photo in gray-700 (#717171).The heading block now takes the section's gray-900 (
#555555), the step the cards already use (DiscoverMeditation.tsx:43, with the h2 and p carrying no colour of their own).Measured in Chromium against live SahajCloud, with the text made transparent and every background pixel in its box sampled:
jsdom computes no colour, so
DiscoverMeditation.pages.test.tsx("draws its heading and subtitle in gray-900…") pins the class: the section carriestext-gray-900and neither the h2 nor the p names a gray step of its own. It fails on the previous head.-bottom-16, so it hung 64px below the section. On the home page only LayoutChrome'spb-8separates the section from the footer, so it painted a pale block over the gap and the footer's separator.DiscoverMeditation.tsx:60).lib/live-preview/session.tsexists because two call sites spelledlivePreview?.activeby hand, and the route was the third. It readsuseLivePreviewState().activenow — notuseDocumentPreviewActive(), which would miss awm-web-configsession on a published page.isHomecomes off the route slug (3d626a0). See DM-placement above.titleandsubtitleleaveDiscoverMeditation(1df059a). Nothing passed either, so the headings readdiscover.general.titleand.subtitledirectly and the override spec went with the props.toHaveLength(6)asserted the schema still carried the six dead keys, and the French fixture named them, so removing them upstream would have turned the spec red twice over. Both derive from whateverdiscover.generalholds now.meta.imageis not (c109964). Option A was chosen, so the three identical leaves ship.meta.imagewent with the choice: it is a share picture, not a glyph an editor picks for this row, so the fallback branch is gone and a page carrying one still draws the leaf. feat(components): an editor picks each discover action's glyph in WmWebConfig #330 holds the better approach — a glyph configured perclassPagesentry inwm-web-config— with three options for where an editor picks it, and it needs the field in SahajCloud first.featuredPagesandknowledgePagesentry. See DM-placement above for what it mounts and what it excludes.localeprop is gone (b0ff5dd). Nothing passed it, andLinkresolveslocale ?? pageLocaleitself (Link.tsx:131), so it threadedundefinedthroughDiscoverMeditationandActionItem.DiscoverMeditation.locale.test.tsxproves the/fr/…hrefs through that fallback, having never passed the prop.DESCRIBEDwasCONFIGUREDwith two descriptions spread in and a no-op clone of its third entry, so both subsections drew the same three pages atmin-h-screeneach. OneCLASS_PAGES, described on two of three, shows the no-description action on its own third entry.not gray-700andwhere 40% measured 3.1:1read correctly only to someone who saw the diff, whichdocs/rules/code-comments.mdrules out. Both keep the measurement that explains the value.Page(33829c8).typeof articlePagetyped the parameter from the article target's fixture while the home target passeshomePagethrough it;pageSeotakespage: Page(lib/seo/content-seo.ts:269), which both satisfy.documentHref(10aa4e5). The critic nameduseSiteNav.ts:81, where the header's class-page action spelled'/' + classPages[0].slugby hand.layouts/headerDropdown.ts:13,26spelled the same path the same way for the knowledge links and the article cards. All three now calldocumentHref('pages', page), which AGENTS.md makes the one place a document path is spelled.partitionPublishedPagesguarantees a non-empty slug on every list, so the?? '/'fallback is unreachable today and the rendered hrefs are unchanged.Not in this PR
blocks.a11y.share_region,share_group,share_on). Key needed upstream:blocks.general.share, English "Share:", used asSocialShare'slabelinpages/[slug]/+Page.tsx.SocialIconhas no X/Twitter glyph, and WhatsApp is one prop value away.pages/[slug]route (the Pages collection). Meditations and lectures have their own templates andEmbedButton.discover.general.meditate_now,meditate_now_subtitle,live_guidance,live_guidance_subtitle,classes_near_meandclasses_near_me_subtitle. Remove them from thewm-web-translationsschema in sydevs/SahajCloud (translationsSchema.json, around lines 210-235), then re-synclib/i18n/translations.en.json.discover.general.titleandsubtitlestay. The locale spec pins that no per-action key renders and derives its key list from the schema, so the removal will not turn it red.wm-web-config.availableLocalesis['en'], so the local dev server 404s/fr. The locale test covers localized hrefs and titles. LiveclassPagesin fr has only live-meditations published (the other two are bare ids), so a French home would show one action.useOrigin()(observation, not changed).hooks/usePageContext.tshas the same null origin on the client, andpages/map/_components/AtlasContent.tsxrenders with it, so/mapmay have the same kind of hydration mismatch. Not verified.Reconciled with open PRs
No open PR touches
pages/[slug]/+Page.tsx. Every open branch was compared withgit diff --name-only origin/main...origin/<branch>against this PR's files, 13 of them at the time of that sweep. It is 15 now: this round addslayouts/useSiteNav.tsandlayouts/headerDropdown.ts, which no open branch touches either.ContentHeadwith aSeoDocumenteach route builds in its+data.ts, sopublishedContentUrlhad nothing left to serve and main's side was taken whole. The share row readsdata.seo.canonical, live-preview suppression became an explicit check in+Page.tsx, and the window-origin fallback went with the builder.tests/a11y/page-types.test.tsxgained theseofixture both content targets need.SocialShare.tsxtook main's prop ordering with this branch's.map, so the caller's order survives and the file clears--max-warnings 0.DiscoverMeditation.tsx, which this PR deletes, so take this PR's file. It also addsDiscoverMeditation.test.tsx, which renders<DiscoverMeditation />with no pages and pins the hard-coded hrefs. Once both merge it will not typecheck (pagesis required), so delete it or rewrite it againstpages. This PR's spec is namedDiscoverMeditation.pages.test.tsxto avoid an add/add conflict./meditations). Its edit to the first hard-coded href (theMEDITATIONS_INDEX_PATHimport) becomes moot: take this PR's file./meditationsis a route, not a Pages document, so it cannot become aclassPagesdestination throughdocumentHref('pages'). ItsgetWebConfigand partition hunks (around 646-730) do not overlap this PR.types/sahajcloud.tsaround 185 and thegetWebConfigreturn.server/sahajcloud/index.test.tsregions other than the select pin.tests/a11y/fixtures.tsandpage-types.test.tsx. This PR edits neither. The home and article targets now include the new sections and pass axe.lib/i18n/a11y/) and chore(contracts): re-sync copied contracts from SahajCloud #329 (contract re-sync). No conflicts, and this branch reads noa11ykey of its own.Test results
.claude/skills/pr-prep/check.sh(lint + prettier +tsc --noEmit+test:run) on the pushed head:--max-warnings 0fix(ci): any lint warning fails the gate, and the repo is formatted to pass it #313 set.server/, so the sweep ran. No findings. It traced the newmeta.descriptionin the config populate (the page's own public SEO meta, never a draft's —partitionPublishedPagesdrops an unresolved relationship), every new editor-controlled href (each reaches an anchor through theLinkatom and itsisSafeLinkHrefgate), and the share URL (encodeURIComponentd into fixedhttps://endpoints).pnpm buildlast passed on 9c48b71; since then this branch has changed only component markup, a route condition and test files, and it touches neither the Worker config nor the build. CI builds both previews on every push./at 320 to 1280 on 9c48b71 — and what changed is which routes mount it, which the two new route cases assert from the server render. The preview links above are where to look at the three new shapes.page.test,DiscoverMeditation.pages/.locale,SocialShare.testand theserver/sahajcloudselect pin failed. The heading-colour spec fails on the head before 9c48b71.🤖 Generated with Claude Code
https://claude.ai/code/session_01Mg9rjZcE8bs5uRJ6dsg6kw