Skip to content

feat(list): the meditating figure, a subtitle and a country heading on the first screen - #493

Merged
Ardnived merged 7 commits into
mainfrom
ux/online-classes-figure
Nov 25, 2026
Merged

Ardnived merged 7 commits into
mainfrom
ux/online-classes-figure

Conversation

@Ardnived

@Ardnived Ardnived commented Nov 25, 2026 •

Copy link
Copy Markdown
Contributor

Summary

  • The first screen's Online classes row was reading as one more country. It now shows the We Meditate meditating figure in coral, with "Join from anywhere" under the label.
  • A small grey heading, "OR BROWSE BY COUNTRY", now separates the online row from the country list, so visitors see two ways to find a class.
  • Joined at the owner's request: the "Join from anywhere" subtitle, through a new optional description on ListItem.

Change outline

Components — the first screen's list

The online row moves out of the country list into its own list. The row, the heading and the country list are three flat siblings, and showBrowseHeading holds the heading's condition: an online row above it and at least one country below it.

 CountriesView                                   src/views/CountriesView/CountriesView.tsx
+  showBrowseHeading = onlineCount > 0 && sortedCountries.length > 0
   DrawerBody
     ActiveFilterPills, GeolocationSuggestion(above)
+    onlineCount > 0 →
+      List
+        ListItem  icon=MeditateFigure  label=t('online.title')
+                  description=t('online.subtitle')
+    showBrowseHeading →
+      h3 px-gutter, text-xs, uppercase, gray-11    t('countries.browse_heading')
     noMatches ? FallbackPanel
-              : List [ online ListItem (Monitor), …countries ]
+              : List [ …countries ]
     GeolocationSuggestion(below)

Components — ListItem's label

description adds a quieter line under the label. A row without a description renders the same markup as before.

 ListItem({ label, count, href, icon })          src/components/molecules/ListItem/ListItem.tsx
+         + description?: string
   ListRow
     icon slot (24px)
     div.flex-grow.text-lg
       label
+      description → div.text-sm.text-gray-11
     count

Files — a brand mark beside the lucide gallery

 src/components/atoms/Icons/
   Icons.stories.tsx          # gallery of the lucide glyphs in use, + a "Brand mark" section
   Icons.usage.test.tsx       # unchanged: still pins the lucide gallery to the app's imports
+  MeditateFigure.tsx         # the app's figure: currentColor, aria-hidden, no ids, its coral on the <path>
+  index.ts                   # the folder's surface, and now the only one atoms have
 src/components/
-  atoms/index.ts             # the tier barrel: 17 folders re-exported to no importer
   molecules/index.ts         # unchanged: five view callers
   organisms/index.ts         # unchanged

Preview

  • App, first screen (/) — preview pending. The pr-<n> alias appears once CI's publish step has run.
  • Component library, Atoms → Icons ("Brand mark") and Molecules → List — preview pending.

Contract impact

Test results

  • Lean gate: ✓ (lint, typecheck, test:run: 2471 passed, 1 skipped). Two fewer than before the barrel went: Widget.standalone.test.ts runs its BARRELS list once per entry, so a row is two cases.
  • Targeted specs:
    • MeditateFigure.test.tsx (3) and ListItem.test.tsx (4) pass.
    • Each new assertion was watched failing against a reintroduced defect: a hex stroke on the figure, a dropped description line in the row, and the mark's colour class back on the <svg>.
  • Browser lane: ✓ (10 passed) — the first screen is what a host page renders, so the review pass re-ran it.
  • Build: the browser lane's production build of this head ✓. ladle:build not re-run since the review pass. git diff origin/main -- src | grep -cE "dangerouslySetInnerHTML|\.svg\?raw" prints 0.

Manual verification

  1. At 390×844 on /, check the Online classes row. It should show a thin coral figure with "Join from anywhere" under the label, then "OR BROWSE BY COUNTRY", then the first country.
  2. Choose Dark from the cog menu. The figure should turn a lighter coral and stay easy to see.
  3. Open /gb. It should have no "Or browse by country" heading.

Notes for reviewer

  • The translation snapshot was edited by hand, deliberately. The two lines in src/config/translations.en.json are byte-identical to production. A full pnpm sync:translations --write would also pull drift that belongs to other open PRs: production no longer serves compact.open and others that main still renders, after SahajCloud#1268. That drift is for the inline-embed PR (feat(widget): open every embed inline; expand the map over the page #466) to sync.
  • The colour departs from the ticket. The ticket asked for a new --ornament token in globals.css. Three reviewers pointed out that the contrast ramp's own steps already clear 3:1, so this ships text-contrast-10 dark:text-contrast and no new token. That also leaves src/styles/ untouched, so no security review is triggered. The classes now sit on MeditateFigure's own <path> rather than at each call site.
  • The atoms tier barrel is deleted, answering the one open thread with A. git grep "from '@/components/atoms'" src matched no file, so its 17 re-exported folders had no importer. DESIGN_SYSTEM.md and src/components/AGENTS.md stop promising a barrel per tier, and Widget.standalone.test.ts's BARRELS drops its row. No thread is open now.
  • Dismissed review findings:
    • The h3 skips a level: dismissed. The drawer's Vaul.Title renders an h2 ("Free Meditation Classes") above it. Measured in the DOM.
    • The story should import from the tier barrel: dismissed. Stories inside src/components import by folder path throughout, for example List in the same file.
    • Truncate or clamp the description: dismissed. Clipping would hide translated copy, and a wrap is acceptable in a row with min-h-14.
    • Build the figure with createLucideIcon: dismissed. It saves about 20 lines, but it needs a carve-out in Icons.usage.test.tsx and adds lucide classes to a brand mark. The JSX is small and pinned by its own spec.
    • tracking-[0.08em] against Chip's 0.3px: kept. The ticket specifies it for this heading's register.
Detail
  • Contrast, measured in Chromium against the panel:

    Theme Figure Heading
    Light 3.66:1 (3.50:1 on the row's hover tint) 6.04:1
    Dark 6.19:1 8.94:1
  • The ticket's --ornament mix (color-mix(contrast-9 55%, contrast-11)) measured 4.15:1 light. It is a duller, darker coral than the app's.

  • The atoms barrel is not imported here. CountriesView takes the figure by folder path (@/components/atoms/Icons). Importing the barrel hoisted RadioGroup from the lazy registration chunk into FullInterface.js: +785 B gzipped, measured by a reviewer's build.

  • So the barrel's two new exports were dropped first, then the barrel itself. Icons/index.ts was already the folder's surface. DESIGN_SYSTEM.md's tier-barrel bullet gave @/components/atoms as its example, the one import nothing performs; it now names a molecule and says atoms carry no barrel.

  • The mark's coral resolves per element. Measured in Chromium 158: a <path> carrying the colour class inside an <svg stroke="currentColor"> strokes coral while the surrounding row keeps its own text colour. That is what lets one home replace four pasted copies.

  • What the simplify pass changed:

    • It dropped the token.
    • It gated the heading with the online row.
    • It kept description-less rows' markup unchanged.
    • It trimmed the figure's dead focusable and strokeMiterlimit attributes and the vacuous assertions.
    • It shortened the docs to one rule in src/AGENTS.md § Icons.
  • The heading uses px-gutter, the panel's shared 24px edge from style(ui): one type scale, one 24px panel edge and one corner rule #471, not the ticket's px-4.

🤖 Generated with Claude Code

…n the first screen

On the first screen, Online classes read as one more country: a computer-screen icon and the
same divider as the countries. The row now carries the We Meditate app's meditating figure in
coral and a "Join from anywhere" subtitle, and a small grey "Or browse by country" heading
separates it from the countries, so visitors see two ways to find a class.

- MeditateFigure (atoms/Icons): the app's figure as a JSX SVG, currentColor, aria-hidden, no
  ids. The one documented exception to "glyphs come from lucide", which has no such figure.
- Coral from the contrast ramp's own steps, text-contrast-10 with dark:text-contrast: 3.66:1 on
  the light panel and 6.19:1 on the dark one, measured. No new colour token.
- ListItem gains an optional description line; rows without one render as before.
- The heading shows only with the online row above it and countries below it.
- countries.browse_heading and online.subtitle come from SahajCloud#1273, copied byte-for-byte
  from production; a full sync is blocked by unrelated drift from other open PRs.

Co-Authored-By: Claude Opus 5.5 <[email protected]>

@Ardnived Ardnived 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.

1 question for the reviewer, one per thread.

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

@sydevs-dispatcher

sydevs-dispatcher Bot commented Nov 25, 2026 •

Copy link
Copy Markdown
Contributor

🤖 no session running

recent dispatches
  • 23:15Z address-review · attempt 1 · session · done
  • 23:15Z address-review · attempt 1 · session
  • 23:00Z address-review · attempt 1 · session · done
  • 23:00Z address-review · attempt 1 · session
  • 22:49Z review-pr · attempt 1 · session · done

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

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

@sydevs-bot sydevs-bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

🧐 Adversarial review

Proportionate in shape: one glyph, one optional prop, one heading, no new token. noMatches already requires onlineCount === 0, so the new comment's claim that the online block never sits above the fallback holds. Both keys are declared upstream with these exact English defaults, and nothing a host observes changes, so the untouched docs/embedding.md and CHANGELOG.md are right.

What it adds does not all pay rent. A barrel gains two exports nothing imports, one skin is pasted at four call sites, and the same sentence about the mark now stands in three places — src/AGENTS.md, DESIGN_SYSTEM.md and the story description, the most internal line in that gallery.

No ticket is linked, and the body cites one four times, so the diff was judged against itself.

Findings

  • should-fix — src/components/atoms/index.ts:42: two exports with no caller.
  • should-fix — CountriesView.tsx:104: the mark's colour pasted four times.
  • should-fix — CountriesView.tsx:98: flatten the fragment and the nested condition.
  • should-fix — DESIGN_SYSTEM.md:61: restates src/AGENTS.md § Icons.
  • should-fix — src/AGENTS.md:43: the "written as JSX" clause is mechanism.

What was checked

  • Read whole on the branch: CountriesView.tsx, ListItem.tsx, List.tsx, MeditateFigure.tsx, Icons.usage.test.tsx, both barrels, three Markdown files.
  • Producer side: both keys are live in SahajCloud main — schema plus nine locale seeds.
  • Ladder: wemeditate-design-system is no dependency, so the path had to be copied. Monitor keeps its gallery row — EventFacts and SettingsMenu still import it.
  • Streamliner: 4 pieces covered, 1 kept. Its createLucideIcon sketch was dropped; the body dismisses it with reasons that hold.
  • Second opinion given on the one question thread.

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


Generated by Claude Code

Comment thread src/components/atoms/index.ts Resolved
Comment thread DESIGN_SYSTEM.md Resolved
Comment thread src/AGENTS.md Resolved
@sydevs-bot sydevs-bot removed the bot:working Lock: a cloud session is running on this item. Removed when it ends. label Nov 25, 2026
@sydevs-dispatcher sydevs-dispatcher Bot moved this from Working to Pending in SYDevelopers Technical Roadmap Nov 25, 2026
@sydevs-dispatcher sydevs-dispatcher Bot added the bot:working Lock: a cloud session is running on this item. Removed when it ends. label Nov 25, 2026
@sydevs-dispatcher sydevs-dispatcher Bot moved this from Pending to Working in SYDevelopers Technical Roadmap Nov 25, 2026
sydevs-bot and others added 5 commits November 25, 2026 23:05
`git grep "from '@/components/atoms'" src` matches no file. Both real call
sites take `@/components/atoms/Icons`, so the two re-exports had no caller
and `Icons/index.ts` is already the folder's surface.

That leaves DESIGN_SYSTEM.md's "App code imports from the tier barrel" the
stale half: its example is the one import nothing performs. The bullet now
names a molecule and records that the atoms barrel has no importer.

Co-Authored-By: Claude Opus 5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01Mg9rjYBfjKAUELib5wBPJG
The skin was pasted at all four call sites — CountriesView, both ListItem
story rows and the Icons gallery — so the colour could drift between them.
It now sits on the `<path>` inside MeditateFigure, where `currentColor`
resolves against that element's own colour and no caller's spread reaches it.

Measured in Chromium 158 on the bare mechanism: a `<path>` carrying the
colour class inside an `<svg stroke="currentColor">` strokes coral while the
surrounding row keeps its own text colour.

The new assertion was watched failing with the class back on the `<svg>`.

Co-Authored-By: Claude Opus 5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01Mg9rjYBfjKAUELib5wBPJG
`showBrowseHeading` sits beside `noMatches`, and the online row, the heading
and the country list render as three flat siblings. That drops the fragment,
one indent level and the second read of `sortedCountries.length`. Same rows
and same heading condition.

Co-Authored-By: Claude Opus 5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01Mg9rjYBfjKAUELib5wBPJG
The appended sentence restated `src/AGENTS.md` § Icons, and the Exports cell
one column left already names `MeditateFigure`. The rule keeps one home.

Co-Authored-By: Claude Opus 5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01Mg9rjYBfjKAUELib5wBPJG
"written as JSX rather than imported as SVG markup" is mechanism the file
beside it shows, and nothing here offers the alternative it contrasts with:
no svgr in `package.json`, no SVG plugin in `vite.config.ts`. The intent —
Lucide shipping no brand icons, the trademark reason, and no other brand mark
belonging here — stays.

Co-Authored-By: Claude Opus 5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01Mg9rjYBfjKAUELib5wBPJG
@Ardnived
Ardnived enabled auto-merge November 25, 2026 23:10
@sydevs-bot

Copy link
Copy Markdown
Contributor

Five Streamline threads, one commit each, on aced221.

Adopted and resolved

Adopted, thread left open

  • Barrel exports with no caller — d1f435d, with the stale doc half it named. The barrel itself has no importer either: delete it here, or file it? Nothing is built for either answer.

Lean gate ✓ (2473 passed, 1 skipped). Browser lane ✓ (10 passed).

🤖 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 25, 2026
@sydevs-dispatcher sydevs-dispatcher Bot moved this from Working to Pending in SYDevelopers Technical Roadmap Nov 25, 2026
@sydevs-dispatcher sydevs-dispatcher Bot added the bot:working Lock: a cloud session is running on this item. Removed when it ends. label Nov 25, 2026
@sydevs-dispatcher sydevs-dispatcher Bot moved this from Pending to Working in SYDevelopers Technical Roadmap Nov 25, 2026
`git grep "from '@/components/atoms'" src` matches no file. The barrel
surfaced 17 folders to nobody: every view, story and the eager shell takes an
atom by its folder path, and `Icons/index.ts` was already the one surface the
figure needed. Importing it also hoisted `RadioGroup` out of the lazy
registration chunk, measured at +785 B gzipped.

`Widget.standalone.test.ts`'s `BARRELS` drops its row, so the three barrels
left are the ones the lazy interface really imports. `DESIGN_SYSTEM.md` and
`src/components/AGENTS.md` stop promising a barrel per tier.

Co-Authored-By: Claude Opus 5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01Mg9rjZ2oiDyW4Ch7giMeUL
@sydevs-bot

Copy link
Copy Markdown
Contributor

One answer, one commit, on 2733b0c.

Answered and resolved

  • Delete the atoms barrel? — A, built in a14efb4. The file is gone: 67 lines, 17 folders re-exported to nobody. BARRELS in Widget.standalone.test.ts keeps the three the lazy interface really imports, and DESIGN_SYSTEM.md plus src/components/AGENTS.md stop promising one per tier.

No thread is open. The body's open-thread note and its test figures are refreshed.

Lean gate ✓ — 2471 passed, 1 skipped. Two fewer than before: that list runs once per entry, so a row is two cases.

🤖 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 25, 2026
@sydevs-dispatcher sydevs-dispatcher Bot moved this from Working to Pending in SYDevelopers Technical Roadmap Nov 25, 2026
@cloudflare-workers-and-pages

cloudflare-workers-and-pages Bot commented Nov 25, 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 Updated (UTC)
✅ Deployment successful!
View logs
sahajatlas-design a14efb4 Nov 25 2026, 11:24 PM

@sydevs-dispatcher sydevs-dispatcher Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Approved for Ardnived, who wrote it: GitHub refuses an author's own approval. CI is green and the automated review has run. 🤖 Written by the sydevs autonomous loop — see what this is

@Ardnived
Ardnived added this pull request to the merge queue Nov 25, 2026
@sydevs-dispatcher sydevs-dispatcher Bot moved this from Pending to Awaiting in SYDevelopers Technical Roadmap Nov 25, 2026
Merged via the queue into main with commit ff0a65d Nov 25, 2026
21 checks passed
@Ardnived
Ardnived deleted the ux/online-classes-figure branch November 25, 2026 23:32
@sydevs-dispatcher sydevs-dispatcher Bot moved this from Awaiting to Done in SYDevelopers Technical Roadmap Nov 25, 2026
sydevs-bot pushed a commit that referenced this pull request Nov 26, 2026
The accessibility gate failed `views--countries`:

    heading-order — Heading levels should only increase by one — 1×
    (moderate): <h3 …>Or browse by country</h3>

#493 added that `h3` on `main`, where the countries view's first heading
was its own. Inline, `PlaceHeading` is the `h1` above it and this view
renders no `DrawerTitle`, so `h3` skips a level. The classes are
unchanged, so nothing moves.

Verified: `node scripts/check-a11y.mjs` clean over all 55 stories, and
the lean gate green.

Co-Authored-By: Claude Opus 5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01Mg9rjV9bPXPKzui5NV51Sv
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