Skip to content

style(list): class rows end with the same chevron as place rows - #488

Merged
Ardnived merged 11 commits into
mainfrom
ux/event-row-chevron
Nov 25, 2026
Merged

Ardnived merged 11 commits into
mainfrom
ux/event-row-chevron

Conversation

@Ardnived

@Ardnived Ardnived commented Nov 25, 2026 •

Copy link
Copy Markdown
Contributor

Summary

  • Class rows in a list now end with the same grey chevron as place rows, so they look as tappable.
  • A new ListRow component is the shell both list rows render into. It owns the <li><a>, the row's look and the chevron, so the two rows can't drift apart.
  • CHANGELOG.md records the arrow, because a host can see it.
  • Two docblocks that argued from a "1000-row ceiling" now name the real one, MAX_REVEAL (400).

Change outline

Components — the list row shell

List/ exports ListRow in place of the listRow class recipe.

  • The two rows used to repeat the same shell by hand: an <li> wrapping a Link with the shared classes, ending in a chevron. Now ListRow renders it once.
  • Anchor props (handlers, data-*) pass through to the Link.
  • The row's old base, block items-stretch, existed only for the flex-col event card, and both rows overrode it. The shell is now a centred flex row.
 src/components/molecules/List/List.tsx
-export const listRow = tv({ base: 'block items-stretch px-gutter …' })
+const listRow = tv({ slots: { row: 'flex items-center px-gutter …', chevron: 'text-gray-9 rtl:-scale-x-100' } })
+export function ListRow({ className, children, ...linkProps }: LinkProps)
+  <li>
+    <Link className={row({ className })} {...linkProps}>
+      {children}
+      <ChevronRight className={chevron()} size={20} />

The event card renders into ListRow. Its content sits in one left-aligned column that may shrink (min-w-0), so a long title wraps instead of pushing the chevron out.

 EventListItem                                           src/components/molecules/EventListItem/EventListItem.tsx
-  <li><Link data-event-row className={listRow('flex flex-col gap-1.5 py-4')} …handlers>
-    title · EventFacts · EventChips (mt-1.5)
+  <ListRow data-event-row className="py-4" …handlers>
+    <div flex-col min-w-0 flex-1 gap-1>
+      title · EventFacts (mt-0.5 mb-1) · EventChips (mt-1)

ListItem stays the generic row: label, count and an optional icon. Countries, sub-regions and the "Online classes" entry all use it, now through ListRow.

 ListItem                                                src/components/molecules/ListItem/ListItem.tsx
-  <li><Link className={listRow('flex min-h-14 flex-row items-center py-3')}>
+  <ListRow className="min-h-14 py-3">
     icon · label · count
-    <ChevronRight className="text-gray-9 rtl:-scale-x-100" size=20>

Docs

  • src/AGENTS.md says a directional glyph declares rtl:-scale-x-100 at its call site. It now names list rows as the one exception: they render into ListRow, which carries the flip.
  • DESIGN_SYSTEM.md:
    • The List/ row lists ListRow.
    • The shared-recipe rule now says to share a component, not a recipe, where every user renders the same markup.
  • CHANGELOG.md gains a ### Changed entry. No parameter, origin, CSP or capability changes, so docs/embedding.md is unchanged.

Preview

Preview pending. Once Cloudflare posts the branch alias, open:

  • /gb/south-east/london at 390 px and 1280 px: every class row ends in an arrow, lined up with the place-row arrows on /gb.
  • /search?format=online at 390 px: online class rows show the arrow too.
  • The playground's EventListItem and ListItem stories.

Test results

  • Lean gate (.claude/skills/pr-prep/check.sh: lint, typecheck, test:run): ✓ on the merged tree (627c87c).

  • Targeted specs (List, ListItem, EventListItem, gutter, Icons): 16 passed.

    • ListRow's specs in List.test.tsx cover the <li><a> nesting, the centred row, attribute pass-through, and the chevron's tone, size, RTL flip and position.
    • I broke the code on purpose and checked those specs fail:
      • chevron dropped
      • RTL flip removed
      • base reverted to block
  • Browser lane (pnpm test:browser): ✓ (10 scenarios), run by the loop on c46d487.

  • Build: N/A locally (CI runs build + size).

  • Measured in headless Chromium against the local dev server after the ListRow change:

    Page Rows With chevron Chevron right edge, 390 / 1280 px
    London 18 class rows 18 366 / 343
    /gb 9 place rows 9 366 / 343
    /search?format=online 22 class rows 22 366 / 342

    With dir=rtl, the chevron sits at the start of the row and is mirrored (scale: -1 1).

Manual verification

  1. Hover, press and keyboard-focus a class row. The whole row is still one link, and the map pin highlights as it does on main.
  2. Check a long title. It wraps to at most two lines, and the chevron stays whole.

Notes for reviewer

  • This deliberately reverses feat(event): redesign event display & registration surfaces #52's "no chevron". It costs about 24 px of title width. In London, it makes one more title wrap to two lines at 390 px (Friends Meeting House) and two more at 1280 px (Croydon Town Hall, Creative Nature HQ).
  • The card column keeps 119fbac's spacing on purpose. The owner chose this knowing it gives the same 6 px and 12 px as main's gap-1.5 + mt-1.5, plus 4 px under a card with no chips. cc48bb5 had switched to main's pair, and the merge restores 119fbac's.
  • ListRow supersedes ListRowChevron from d409e0e. It takes the whole shell, not only the glyph: both rows rendered identical markup around it, so a component fits better than a recipe plus an element.
  • Review findings dismissed:
    • The chevron is centred on tall cards, not on the title line. This is intended, as on place rows.
    • The tests should use a DOM render. This repo bans @testing-library/react, and these specs read static markup as their siblings do.
Detail
  • 119fbac did not cherry-pick onto main, because main has since taken the ux/polish title line (style(ui): one type scale, one 24px panel edge and one corner rule #471). So the chevron was rebuilt here.
  • shrink-0 was dropped from the chevron. Lucide's width="20" already sets the SVG's minimum flex size, so the chevron cannot shrink without it.
  • /simplify and /code-review high ran (the pr-review-toolkit plugin is not installed).
    • /security-review did not run, because no path or content matched its triggers.
    • atoms/Link is a trigger path, and it is untouched.
  • Merging in origin/main was clean. The only conflicts were with the loop's ListRowChevron commits, all in the list files.

Related: #52

🤖 Generated with Claude Code

Ardnived and others added 3 commits November 25, 2026 13:15
Place rows in a list end with a small grey chevron and class rows did not,
so classes looked less tappable than places, though they are what visitors
came for. A class row is now a centred flex row: the title, facts and chips
in one left-aligned column that may shrink, then ListItem's chevron (20px,
text-gray-9, mirrored in RTL). This reverses #52's "no chevron" on purpose.
It costs about 24px of title width, so a few long titles wrap to a second
line. Spacing follows 119fbac on ux/polish.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Both list rows now take their chevron from a `chevron` slot on `listRow`,
so a place row and a class row cannot drift apart again. The row slot is
`flex items-center`: `items-stretch` only existed for the old flex-col
event card, and both callers overrode it. The redundant `flex-row`,
`gap-1` and `shrink-0` go with it. The specs pin the recipe once in
List.test.tsx, and each row checks it uses it.

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

sydevs-dispatcher Bot commented Nov 25, 2026 •

Copy link
Copy Markdown
Contributor

🤖 no session running

recent dispatches
  • 20:56Z address-review · attempt 1 · session · done
  • 20:56Z address-review · attempt 1 · session
  • 20:47Z review-pr · attempt 1 · session · done
  • 20:47Z review-pr · attempt 1 · session

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

The diff is the right size for its goal: one recipe, two callers, one doc row. It does not deliver its own headline. listRow owns the chevron's colour, not the chevron, so the element and the lucide import stay duplicated, held together by a docblock sentence. The spacing rework reproduces main's pixels with four utilities where main used two. No contract surface is touched, but a host can see this change and CHANGELOG.md has no entry. There is no ticket, so I judged the diff against the body — whose "the ticket asks for a centred row" points at nothing.

Findings

  • should-fix List.tsx:20 — export the chevron element, which also makes the slots conversion unnecessary.
  • should-fix List.tsx:24 — src/AGENTS.md:44 still says the RTL mirror lives at each call site.
  • should-fix EventListItem.tsx:140 — four spacing utilities for main's two, plus a trailing 4px.
  • should-fix CHANGELOG.md — no ### Changed entry. #471 and #482 logged smaller visual changes.
  • should-fix EventListItem.tsx:57 — the docblock the diff edits still claims a "1000-row ceiling". MAX_REVEAL is 400 (lib/shape/reveal.ts:93). The join rule puts that fix here, not in a follow-up. Same claim at hooks/use-prefetch-event.ts:81.

What was checked. Read whole on the branch: the three components, their three specs, EventFacts, EventChips, atoms/Link, styles/tv.ts, lib/shape/reveal.ts. Checked all five listRow consumers. Walked the ladder: no new dependency and no new piece, so new-pieces.mjs returned NONE and no streamliner ran. Re-derived the spacing by hand: 6px and 12px on both sides. No question threads. The body names no preview link, and this repo's config declares no preview pattern. CI is green, so the lane was not re-run.

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


Generated by Claude Code

Comment thread src/components/molecules/List/List.tsx Resolved
Comment thread src/components/molecules/List/List.tsx 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
The slotted recipe carried the chevron's classes while the element stayed
written at both call sites, held together by a docblock sentence. One
exported `ListRowChevron` owns the glyph, its size and its RTL flip, so
`listRow` goes back to a single base and nothing restates the contract in
prose.

Co-Authored-By: Claude Opus 5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01Mg9rjXn3BWJoLVJA2hNDBZ
`gap-1` with `mt-0.5`, `mb-1` and `mt-1` summed to the same 6px and 12px
that `gap-1.5` plus `mt-1.5` on the chips give on their own. The four-way
version also left `mb-1` trailing inside the column of a card with no
chips, since EventChips renders nothing there.

Co-Authored-By: Claude Opus 5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01Mg9rjXn3BWJoLVJA2hNDBZ
`src/AGENTS.md` sent a reader to declare `rtl:-scale-x-100` on each list
chevron, which `ListRowChevron` now owns for both row kinds. Every other
directional glyph still declares it at its own call site, so the rule
stands with the exception named.

Co-Authored-By: Claude Opus 5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01Mg9rjXn3BWJoLVJA2hNDBZ
`MAX_REVEAL` is `PAGE_SIZE * 16`, so both docblocks arguing from the list's
size were arguing from 2.5 times the real one. They name the constant now,
so the next change to it cannot leave them wrong again.

Co-Authored-By: Claude Opus 5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01Mg9rjXn3BWJoLVJA2hNDBZ
A chevron appearing on every class row is visible behaviour, which this
file records; #471 and #482 logged smaller visual changes. No parameter,
origin, CSP or capability moves, so `docs/embedding.md` is unchanged.

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

Copy link
Copy Markdown
Contributor

Five findings adopted, pushed to claude/relay-488-c46d487.

  • Export the chevron element — d409e0e. List.tsx exports ListRowChevron. listRow is one base again.
  • src/AGENTS.md:44 is stale — 160fd02. The rule names the one exception.
  • Four spacing utilities — cc48bb5. Main's pair, same pixels, no trailing 4px.
  • No CHANGELOG.md entry — c46d487. One ### Changed line. No parameter, origin or CSP moves, so docs/embedding.md stands.
  • The "1000-row ceiling" docblocks — 2778295. Both name MAX_REVEAL (400) now.

origin/main merged in clean. Lean gate and browser lane both green. The body's outline, test results and spacing note are refreshed.

🤖 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 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. Enable auto-merge when you want it merged: the queue tests it against its base. 🤖 Written by the sydevs autonomous loop — see what this is

@sydevs-dispatcher sydevs-dispatcher Bot moved this from Pending to Awaiting 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 627c87c Nov 25 2026, 10:29 PM

Ardnived and others added 2 commits November 25, 2026 15:26
ListItem and EventListItem rendered the same markup by hand: an <li>
wrapping a Link with the listRow classes, ending in the chevron. ListRow
(molecules/List) now owns that shell, so the <li><a> nesting (#65), the
row chrome and the chevron live and are tested in one place, and
`listRow` is no longer exported. ListItem stays the generic label, count
and icon row; anchor props such as EventListItem's `data-event-row` and
hover handlers pass through to the Link.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Keeps the loop's CHANGELOG entry, the 400-row ceiling docblocks and the
origin/main merge. ListRow (the whole row shell) replaces ListRowChevron,
and src/AGENTS.md's RTL exception now names it. The card column keeps
119fbac's spacing, as the PR owner chose over main's pair.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Merged via the queue into main with commit cff487a Nov 25, 2026
14 checks passed
@Ardnived
Ardnived deleted the ux/event-row-chevron branch November 25, 2026 22:37
@sydevs-dispatcher sydevs-dispatcher Bot moved this from Awaiting to Done in SYDevelopers Technical Roadmap Nov 25, 2026
Ardnived added a commit that referenced this pull request Nov 25, 2026
…the Skeleton atom

#488 made ListRow the shell both list rows render into, chevron included. The
placeholder rows now render into its inert twin, ListRowSkeleton, from the
same recipe (an `inert` variant drops the hover and press feedback), so a class
card's placeholder gains the chevron the card now has, and the two cannot drift.
The class card's column, title and facts spacing are shared constants with
EventListItemSkeleton.

The Skeleton atom gets its own Ladle story: lines beside the text they stand
for, blocks, and a pulsing group.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Ardnived added a commit that referenced this pull request Nov 25, 2026
CHANGELOG.md conflicted where both sides added an entry at the top of Changed:
both kept, this PR's first as the newest to land.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
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