Skip to content

feat(pages): editor-picked discover actions close the home, featured and knowledge pages, with a share row on the rest - #311

Merged
sydevs-bot merged 25 commits into
mainfrom
claude/feat-discover-and-share
Nov 24, 2026
Merged

sydevs-bot merged 25 commits into
mainfrom
claude/feat-discover-and-share

Conversation

@sydevs-bot

@sydevs-bot sydevs-bot commented Nov 19, 2026 •

Copy link
Copy Markdown
Contributor

Summary

  • Visitors. The home page, every featured nav page and every knowledge page now end with the "Discover it for yourself!" section. It offers one action for each page an editor picked in 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.
  • Visitors. Every other SahajCloud content page (the 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.
  • Editors. Reordering, swapping or renaming a page in classPages changes the actions, and moving one in or out of featuredPages or knowledgePages changes 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.
  • Developers. The share row reads the canonical the route's own seo document carries, so the shared URL and the <head>'s cannot disagree. SocialShare no longer sorts its platforms prop 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

  • / — the page ends with "Discover it for yourself!": Classes Near Me, Live Meditations and Meditate Now, in classPages order, and no share row.
  • /about-meditation — a knowledge page: the Facebook, Pinterest, LinkedIn and Bluesky share icons, each sharing the page's canonical URL, and then the discover section.
  • /meditate-now — a featured page that is also a class page: the share row, then the section with two actions, Meditate Now absent from its own row.
  • /press — a page in none of the three sets: the share row and nothing after it.
  • DiscoverMeditation story — the section driven by a pages list, for the contrast over the photo at each width.

What changed and why

  • DM-destinations: actions come from classPages, not literals. components/organisms/DiscoverMeditation/DiscoverMeditation.tsx:25-83 takes a required pages: readonly NavPage[].
    • It renders every page it is handed, in order, as Links. classPages is maxRows: 5 upstream (WeMeditateWebConfig.ts:91), so the cap binds where an editor picks the pages and the component keeps no copy of the number.
    • Each href is documentHref('pages', page), so it carries the locale prefix.
    • A page with no link is skipped. If no page has one, the section renders nothing.
    • Live, the config order is classes-near-me, live-meditations, meditate-now: the reverse of the old cards.
    • Pinned by DiscoverMeditation.pages.test.tsx (order, titles, skip and render-nothing) and DiscoverMeditation.locale.test.tsx (fr hrefs are /fr/…, the headings come from SahajCloud, and no per-action key renders).
  • DM-subtitle-icon: the line and picture under each action.
    • The line is the page's meta.description, trimmed and clamped to 2 lines at max-w-60. With no description there is no line, as on the legacy actions footer.
    • The picture is the aria-hidden LeafSvg, on every action. A page's meta.image is 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).
    • Live on 2026-11-19, all three class pages have no description, so each action shows a title alone under its leaf.
    • Design rationale:
      • The SEO description is used rather than the six position-based translation keys. Matching those keys by position would mislabel today's order, and their wording describes fixed choices that classPages no longer has.
      • A meaning-bearing icon (play, monitor, pin) cannot be derived from data, and the wrong one on an editor-chosen page would mislead. A repeated brand leaf reads as ornament, and feat(components): an editor picks each discover action's glyph in WmWebConfig #330 is where a configured glyph comes from.
    • Pinned by DiscoverMeditation.pages.test.tsx ("draws a page's description…", "pictures every action with the same leaf…").
  • DM-typed-select: meta.description in the config read.
    • NavPage meta now includes description (types/sahajcloud.ts:73), and NAV_PAGE_SELECT (server/sahajcloud/selects.ts:184) asks for it, so the typed select and the type still cannot drift.
    • The live depth-2 config read with populate[pages][meta][description] answers 200.
    • A shortcut: on WEB_CONFIG_POPULATE records the cost. populate is 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 in getWebConfig.
    • Pinned by server/sahajcloud/index.test.ts ("populates a config page with exactly the fields NavPage promises").
  • DM-placement: which pages close with the section. pages/[slug]/+Page.tsx:19,39-45,65-66 mounts it on the home page, on every featuredPages entry and on every knowledgePages entry — the three sets wm-web-config names as a seeker's way in. lib/content/featured-nav.ts already owned the last two predicates (isFeaturedNavPage:33, isKnowledgePage:46), so the header's highlight and this condition read one rule.
    • Home is a routing fact rather than a config read: / routes as index (+data.ts:55), and any other URL spelling the configured home page's slug 302s to / before a render (+data.ts:83). So an unresolved homePage cannot draw / as an ordinary page.
    • A page is left out of its own actions. meditate-now is in featuredPages and classPages at 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.
    • The section sits after the padded column, so the page's pb-12 does not stack a second gap above the footer.
    • A featured or knowledge page therefore carries both the share row and the section, in that order. Only home drops the row.
    • Pinned by 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.
    • The axe gate (tests/a11y/page-types.test.tsx) renders the section on its home target and passes. Both content targets carry the route's own seo document and its slug.
  • SS-placement: the share row. pages/[slug]/+Page.tsx:56-60 puts SocialShare in Container maxWidth="md" with mt-12, aligned with the RichText column. Its title is the page's title.
    • It is hidden on home and under any open live preview, including the config and translations scopes.
    • Pinned by 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".
  • SS-canonical-reuse: one URL for the head and the row. +data.ts builds one SeoDocument per page, and pages/[slug]/+Page.tsx:27 reads its canonical for the share row. lib/seo/head-html.ts publishes that same string as <link rel=canonical>, so the two cannot disagree.
    • Live-preview suppression is an explicit check in the route, because +data.ts builds seo under 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.
    • Pinned by page.test.tsx, which builds the route's seo with the very builder +data.ts calls, renders the head from it, and asserts the canonical and the Facebook share URL both name https://wemeditate.com/fr/about-meditation.
  • SS-hydration: the row survives hydration. The canonical rides data to the browser, so nothing is rebuilt from urlParsed, whose origin is null there.
    • This failed before feat(seo): share metadata and JSON-LD at parity with the old site #282's document landed: the row existed only in the server HTML, React threw "Hydration failed" and dropped it, and Playwright counted 1 share link at DOMContentLoaded and 0 after hydration. The window-origin fallback that fixed it went with publishedContentUrl.
    • Checked on 9c48b71 against live SahajCloud: /about-meditation and /classes-near-me show 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.
    • Pinned by page.test.tsx ("renders the same markup in the browser, whose pageContext carries no origin"): the article renders twice off one data, and the two must come out identical.
  • SS-sort: SocialShare keeps the caller's order. The old platforms.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:105 now maps the prop as given, and the prop is typed ReadonlyArray.
    • The default row now reads Facebook, Pinterest, LinkedIn, Bluesky, which matches the story's caption.
    • Pinned by SocialShare.test.tsx: a frozen ['whatsapp','facebook','pinterest'] renders in that order. It fails on main with a TypeError.
  • DM-contrast: the action cards. At 375px the third stacked action sits over the photo's dark rock. Its title measured a median 3.10:1 (worst 1.76:1) on the old 40%-white card.
    • The cards are now bg-white/85 (hover /95).
    • Worst case per action: 7.27, 7.02 and 5.54 at 375px; 7.24, 6.38 and 5.63 at 320px; 7.12 at 1280px.
    • The row aligns items-start, so cards of different heights share a top line.
  • Review blocker: the heading block on the photo. Below 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:

      Width Subtitle, gray-700 (before), min Subtitle, gray-900 (after), min / median h2, gray-900, min
      320 3.96 6.04 / 6.54 6.38
      375 4.03 6.15 / 6.60 6.38
      414 3.88 5.93 / 6.31 6.21
      640 3.81 5.82 / 6.14 5.99
      768 (24px, large text) 3.85 5.88 / 6.14 5.99
      1280 (24px, large text) 4.06 6.20 / 6.31 6.15
    • jsdom computes no colour, so DiscoverMeditation.pages.test.tsx ("draws its heading and subtitle in gray-900…") pins the class: the section carries text-gray-900 and neither the h2 nor the p names a gray step of its own. It fails on the previous head.

  • Review nit: the overlay overhang. The left gradient overlay had -bottom-16, so it hung 64px below the section. On the home page only LayoutChrome's pb-8 separates the section from the footer, so it painted a pale block over the gap and the footer's separator.
    • It is now clipped to the section (DiscoverMeditation.tsx:60).
    • At 320, 375 and 1280 the overlay's bottom equals the section's bottom (for example 5761 = 5761 at 375). Horizontal overflow is 0 and there are no page errors.
    • Screenshots at 375 and 1280 show the photo ending cleanly above the white gap and the footer ornament.
    • Not pinned by a test: the change is the removal of one class, and the measurement covers it.
  • Review: the live-preview condition has a name (eebcc80). lib/live-preview/session.ts exists because two call sites spelled livePreview?.active by hand, and the route was the third. It reads useLivePreviewState().active now — not useDocumentPreviewActive(), which would miss a wm-web-config session on a published page.
  • Review: isHome comes off the route slug (3d626a0). See DM-placement above.
  • Review: title and subtitle leave DiscoverMeditation (1df059a). Nothing passed either, so the headings read discover.general.title and .subtitle directly and the override spec went with the props.
  • Review: the locale spec stops blocking the upstream cleanup (8ff5c3b). 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 whatever discover.general holds now.
  • Review: the browser-origin spec pins what survived (c22d643). It was written against the window-origin fallback, so its reason described a system that is gone and it could no longer fail. It now asserts the server and browser renders are identical, which is the hydration contract the row still owes.
  • Review: the leaf is the glyph, and meta.image is not (c109964). Option A was chosen, so the three identical leaves ship. meta.image went 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 per classPages entry in wm-web-config — with three options for where an editor picks it, and it needs the field in SahajCloud first.
  • Review ask: more pages end with the discover actions (cc46fd8). The ask named the homePage plus every featuredPages and knowledgePages entry. See DM-placement above for what it mounts and what it excludes.
  • Review: the cap upstream already sets is gone (b3687ec). See DM-destinations above. The "at most five" case went with it, since every config SahajCloud can produce now renders the same row.
  • Review: the locale prop is gone (b0ff5dd). Nothing passed it, and Link resolves locale ?? pageLocale itself (Link.tsx:131), so it threaded undefined through DiscoverMeditation and ActionItem. DiscoverMeditation.locale.test.tsx proves the /fr/… hrefs through that fallback, having never passed the prop.
  • Review: one story fixture, rendered once (2f3391e). 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 at min-h-screen each. One CLASS_PAGES, described on two of three, shows the no-description action on its own third entry.
  • Review: two comments carry the constraint, not the diff (f119d79). 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.
  • Review: the a11y seo helper takes Page (33829c8). typeof articlePage typed the parameter from the article target's fixture while the home target passes homePage through it; pageSeo takes page: Page (lib/seo/content-seo.ts:269), which both satisfy.
  • Review note, built as a joined finding: the header's page links go through documentHref (10aa4e5). The critic named useSiteNav.ts:81, where the header's class-page action spelled '/' + classPages[0].slug by hand. layouts/headerDropdown.ts:13,26 spelled the same path the same way for the knowledge links and the article cards. All three now call documentHref('pages', page), which AGENTS.md makes the one place a document path is spelled. partitionPublishedPages guarantees a non-empty slug on every list, so the ?? '/' fallback is unreachable today and the rendered hrefs are unchanged.

Not in this PR

  • A visible "Share:" label. The legacy row and the story show one. That needs a new visitor-facing key, which this PR may not add by hand, so the row ships without a visible label. The region and group keep their accessible names (blocks.a11y.share_region, share_group, share_on). Key needed upstream: blocks.general.share, English "Share:", used as SocialShare's label in pages/[slug]/+Page.tsx.
  • Which networks. The decision did not name them, so the row keeps the component default (Facebook, Pinterest, LinkedIn, Bluesky). The legacy row used Facebook, Twitter, Pinterest and WhatsApp. SocialIcon has no X/Twitter glyph, and WhatsApp is one prop value away.
  • A share row on meditation and lecture pages. "Every SahajCloud content page" is read here as the pages/[slug] route (the Pages collection). Meditations and lectures have their own templates and EmbedButton.
  • Six translation keys this PR stops reading. discover.general.meditate_now, meditate_now_subtitle, live_guidance, live_guidance_subtitle, classes_near_me and classes_near_me_subtitle. Remove them from the wm-web-translations schema in sydevs/SahajCloud (translationsSchema.json, around lines 210-235), then re-sync lib/i18n/translations.en.json. discover.general.title and subtitle stay. 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.
  • A French page in the browser. Live wm-web-config.availableLocales is ['en'], so the local dev server 404s /fr. The locale test covers localized hrefs and titles. Live classPages in 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.ts has the same null origin on the client, and pages/map/_components/AtlasContent.tsx renders with it, so /map may 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 with git 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 adds layouts/useSiteNav.ts and layouts/headerDropdown.ts, which no open branch touches either.

Test results

.claude/skills/pr-prep/check.sh (lint + prettier + tsc --noEmit + test:run) on the pushed head:

  • Lint: clean, prettier included, at the --max-warnings 0 fix(ci): any lint warning fails the gate, and the repo is formatted to pass it #313 set.
  • tsc: clean.
  • Vitest: 173 files, 1763/1763 tests pass.
  • Security review: the branch diff touches server/, so the sweep ran. No findings. It traced the new meta.description in the config populate (the page's own public SEO meta, never a draft's — partitionPublishedPages drops an unresolved relationship), every new editor-controlled href (each reaches an anchor through the Link atom and its isSafeLinkHref gate), and the share URL (encodeURIComponentd into fixed https:// endpoints).
  • Build: not re-run this round. pnpm build last 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.
  • Browser: not opened this round. The section itself is unchanged — it was measured on / 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.
  • Tests against main: the reviewer swapped in main's sources, and all 14 new or changed specs in page.test, DiscoverMeditation.pages/.locale, SocialShare.test and the server/sahajcloud select pin failed. The heading-colour spec fails on the head before 9c48b71.

🤖 Generated with Claude Code

https://claude.ai/code/session_01Mg9rjZcE8bs5uRJ6dsg6kw

`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
@cloudflare-workers-and-pages

cloudflare-workers-and-pages Bot commented Nov 19, 2026 •

Copy link
Copy Markdown

Deploying with  Cloudflare Workers  Cloudflare Workers

The latest updates on your project. Learn more about integrating Git with Workers.

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

@cloudflare-workers-and-pages

cloudflare-workers-and-pages Bot commented Nov 19, 2026 •

Copy link
Copy Markdown

Deploying with  Cloudflare Workers  Cloudflare Workers

The latest updates on your project. Learn more about integrating Git with Workers.

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

@sydevs-bot sydevs-bot added the bot:working Lock: a cloud session is running on this item. Removed when it ends. label Nov 20, 2026
@sydevs-bot

sydevs-bot commented Nov 20, 2026 •

Copy link
Copy Markdown
Contributor Author

🤖 no session running
CI fix 1

recent dispatches
  • 22:32Z address-review · attempt 1 · session · done
  • 22:32Z address-review · attempt 1 · session
  • 22:22Z review-pr · attempt 1 · session · done
  • 22:22Z review-pr · attempt 1 · session
  • 22:10Z address-review · attempt 1 · session · done

Written by the sydevs dispatcher. Sessions never edit this comment.

@sydevs-bot sydevs-bot moved this from Awaiting to Working in SYDevelopers Technical Roadmap Nov 20, 2026
#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
@sydevs-bot

Copy link
Copy Markdown
Contributor Author

Merged main (61d4674) in. One conflicted file, lib/head.tsx.

  • Took main's side whole. feat(seo): share metadata and JSON-LD at parity with the old site #282 replaced ContentHead with a SeoDocument each route builds in its +data.ts, so publishedContentUrl had nothing left to serve.
  • The share row now reads data.seo.canonical — the same URL seoHeadHtml publishes as canonical, so the two still cannot disagree.
  • The window-origin fallback is gone, not lost. The canonical rides data to the browser, so there is nothing to rebuild from a path-only urlParsed.
  • Live-preview suppression is an explicit check in +Page.tsx. +data.ts builds seo under an open preview too, where no head is published at all.
  • tests/a11y/page-types.test.tsx gained an seo fixture. Without one the page reads canonical off undefined and both content targets throw.

Lean gate on 5a89b10: 0 lint errors, tsc clean, 1664/1664 tests.

The body's publishedContentUrl and window-fallback paragraphs now describe code that is gone.

🤖 Written by the sydevs autonomous loop — see what this is


Generated by Claude Code

@sydevs-bot sydevs-bot removed the bot:working Lock: a cloud session is running on this item. Removed when it ends. label Nov 20, 2026
@sydevs-bot sydevs-bot moved this from Working to Awaiting in SYDevelopers Technical Roadmap Nov 20, 2026
@sydevs-bot sydevs-bot added the bot:working Lock: a cloud session is running on this item. Removed when it ends. label Nov 21, 2026
@sydevs-bot sydevs-bot moved this from Awaiting to Working in SYDevelopers Technical Roadmap Nov 21, 2026
#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
@sydevs-bot

Copy link
Copy Markdown
Contributor Author

Merged main (e370a55) in. Both conflicts were #313, which reformatted the repo and made any lint warning fail the gate.

  • SocialShare.tsx: main'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. fix(ci): any lint warning fails the gate, and the repo is formatted to pass it #313 has now fixed the 7 warnings the PR body logged as unfixable on lines this PR does not write.
  • DiscoverMeditation.stories.tsx: main's side only reformats the old story body, which this branch replaces. pages is required now, so a propless <DiscoverMeditation /> would not typecheck. Took this branch's file.

Main carries no DiscoverMeditation.test.tsx, so the add/add the body anticipated from #288 did not arrive.

Lean gate on d38a548: lint and prettier clean, tsc --noEmit clean, 164 files / 1706 tests pass.

🤖 Written by the sydevs autonomous loop — see what this is


Generated by Claude Code

@sydevs-bot sydevs-bot removed the bot:working Lock: a cloud session is running on this item. Removed when it ends. label Nov 21, 2026
@sydevs-bot sydevs-bot moved this from Working to Awaiting in SYDevelopers Technical Roadmap Nov 21, 2026
@sydevs-bot sydevs-bot added the bot:working Lock: a cloud session is running on this item. Removed when it ends. label Nov 21, 2026
@sydevs-bot sydevs-bot moved this from Awaiting to Working in SYDevelopers Technical Roadmap Nov 21, 2026

@sydevs-bot sydevs-bot left a comment

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🧐 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 — isHome re-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/subtitle have 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

Comment thread pages/[slug]/+Page.tsx Resolved
Comment thread pages/[slug]/+Page.tsx Resolved
Comment thread pages/[slug]/+Page.tsx Resolved
Comment thread pages/[slug]/page.test.tsx Resolved
@sydevs-bot sydevs-bot added bot:working Lock: a cloud session is running on this item. Removed when it ends. and removed bot:working Lock: a cloud session is running on this item. Removed when it ends. labels Nov 21, 2026
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
@sydevs-bot

Copy link
Copy Markdown
Contributor Author

Answered both notes on DiscoverMeditation.tsx:128. Pushed c109964.

A, and meta.image with it. The leaves ship. The meta.image fallback went too, so a class page carrying a SEO image still draws the leaf: that field is a share picture, not a glyph an editor picks for this row. The spec pins that half.

Follow-up: #330 — a glyph configured per classPages entry in wm-web-config, with three options for where an editor picks it (a fixed icon set, an upload, a field on pages). It needs the SahajCloud field first, so it is roadmap-sized and revise promotes it. "No meta.image" is a criterion on it, since this PR has no ticket to carry one.

Merged main (6ffa178) with the work, no conflicts. Body refreshed: the meta.image claims, and the paths #327 moved. Gate green on c109964 — lint, prettier, tsc, 1762 tests.

🤖 Written by the sydevs autonomous loop — see what this is


Generated by Claude Code

@sydevs-bot sydevs-bot added bot:working Lock: a cloud session is running on this item. Removed when it ends. and removed bot:working Lock: a cloud session is running on this item. Removed when it ends. labels Nov 22, 2026

@sydevs-bot sydevs-bot left a comment

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🧐 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_ACTIONS copies upstream's maxRows: 5.
  • should-fix DiscoverMeditation.tsx:21 — locale has no setter, and Link defaults 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 articlePage types one caller's fixture.
  • consider layouts/useSiteNav.ts:81 — the header's class-page link still spells '/' + slug by hand, while this diff makes documentHref('pages', …) how a classPages entry 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

Comment thread tests/a11y/page-types.test.tsx Resolved
@sydevs-bot sydevs-bot added bot:working Lock: a cloud session is running on this item. Removed when it ends. and removed bot:working Lock: a cloud session is running on this item. Removed when it ends. labels Nov 22, 2026
`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
@sydevs-bot sydevs-bot changed the title feat(components): the home page ends with editor-picked discover actions, other pages with a share row feat(pages): editor-picked discover actions close the home, featured and knowledge pages, with a share row on the rest Nov 22, 2026
@sydevs-bot

Copy link
Copy Markdown
Contributor Author

Pushed 5331ff4.

Your ask — the section now closes the home page and every featuredPages and knowledgePages entry (cc46fd8), actions unchanged. A page is left out of its own row: meditate-now is in both lists, and an action back to the page it closes is a dead end. Say if you want it kept.

Adopted, each reply carrying its SHA — the maxRows: 5 copy (1), the locale prop Link defaults (2), the second story fixture (3), two narrating comments (4), and seoFor's fixture type (5).

Joined — the review's loose useSiteNav.ts:81 note: all three header page links now use documentHref (10aa4e5).

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

@sydevs-bot sydevs-bot removed the bot:working Lock: a cloud session is running on this item. Removed when it ends. label Nov 22, 2026
@sydevs-bot sydevs-bot moved this from Working to Awaiting in SYDevelopers Technical Roadmap Nov 22, 2026
@sydevs-bot
sydevs-bot added this pull request to the merge queue Nov 24, 2026
@sydevs-dispatcher sydevs-dispatcher Bot moved this from Awaiting to Pending in SYDevelopers Technical Roadmap Nov 24, 2026
Merged via the queue into main with commit b8c7ba3 Nov 24, 2026
90 of 96 checks passed
@sydevs-bot
sydevs-bot deleted the claude/feat-discover-and-share branch November 24, 2026 01:23
@sydevs-dispatcher sydevs-dispatcher Bot moved this from Pending to Done in SYDevelopers Technical Roadmap Nov 24, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Development

Successfully merging this pull request may close these issues.

3 participants