Repository navigation
style(list): class rows end with the same chevron as place rows - #488
Conversation
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]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
sydevs-bot
left a comment
There was a problem hiding this comment.
🧐 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-fixList.tsx:20— export the chevron element, which also makes theslotsconversion unnecessary.should-fixList.tsx:24—src/AGENTS.md:44still says the RTL mirror lives at each call site.should-fixEventListItem.tsx:140— four spacing utilities for main's two, plus a trailing 4px.should-fixCHANGELOG.md— no### Changedentry. #471 and #482 logged smaller visual changes.should-fixEventListItem.tsx:57— the docblock the diff edits still claims a "1000-row ceiling".MAX_REVEALis 400 (lib/shape/reveal.ts:93). The join rule puts that fix here, not in a follow-up. Same claim athooks/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
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
|
Five findings adopted, pushed to
🤖 Written by the sydevs autonomous loop — see what this is Generated by Claude Code |
There was a problem hiding this comment.
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
Deploying with
|
| Status | Name | Latest Commit | Updated (UTC) |
|---|---|---|---|
| ✅ Deployment successful! View logs |
sahajatlas-design | 627c87c | Nov 25 2026, 10:29 PM |
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]>
…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]>
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]>
Summary
ListRowcomponent 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.mdrecords the arrow, because a host can see it.MAX_REVEAL(400).Change outline
Components — the list row shell
List/exportsListRowin place of thelistRowclass recipe.<li>wrapping a Link with the shared classes, ending in a chevron. NowListRowrenders it once.data-*) pass through to the Link.block items-stretch, existed only for the flex-col event card, and both rows overrode it. The shell is now a centred flex row.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.ListItemstays the generic row: label, count and an optional icon. Countries, sub-regions and the "Online classes" entry all use it, now throughListRow.Docs
src/AGENTS.mdsays a directional glyph declaresrtl:-scale-x-100at its call site. It now names list rows as the one exception: they render intoListRow, which carries the flip.DESIGN_SYSTEM.md:List/row listsListRow.CHANGELOG.mdgains a### Changedentry. No parameter, origin, CSP or capability changes, sodocs/embedding.mdis unchanged.Preview
Preview pending. Once Cloudflare posts the branch alias, open:
/gb/south-east/londonat 390 px and 1280 px: every class row ends in an arrow, lined up with the place-row arrows on/gb./search?format=onlineat 390 px: online class rows show the arrow too.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 inList.test.tsxcover the<li><a>nesting, the centred row, attribute pass-through, and the chevron's tone, size, RTL flip and position.blockBrowser lane (
pnpm test:browser): ✓ (10 scenarios), run by the loop onc46d487.Build: N/A locally (CI runs build + size).
Measured in headless Chromium against the local dev server after the
ListRowchange:/gb/search?format=onlineWith
dir=rtl, the chevron sits at the start of the row and is mirrored (scale: -1 1).Manual verification
Notes for reviewer
gap-1.5+mt-1.5, plus 4 px under a card with no chips.cc48bb5had switched to main's pair, and the merge restores 119fbac's.ListRowsupersedesListRowChevronfromd409e0e. 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.@testing-library/react, and these specs read static markup as their siblings do.Detail
119fbacdid 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-0was dropped from the chevron. Lucide'swidth="20"already sets the SVG's minimum flex size, so the chevron cannot shrink without it./simplifyand/code-review highran (the pr-review-toolkit plugin is not installed)./security-reviewdid not run, because no path or content matched its triggers.atoms/Linkis a trigger path, and it is untouched.origin/mainwas clean. The only conflicts were with the loop'sListRowChevroncommits, all in the list files.Related: #52
🤖 Generated with Claude Code