Skip to content

fix(column-carousel): a dot's 44px hit area is stolen by its neighbour - #201

Merged
sydevs-bot merged 16 commits into
mainfrom
claude/fix-135-carousel-dot-cells
Nov 18, 2026
Merged

sydevs-bot merged 16 commits into
mainfrom
claude/fix-135-carousel-dot-cells

Conversation

@sydevs-bot

@sydevs-bot sydevs-bot commented Oct 27, 2026 •

Copy link
Copy Markdown
Contributor

Summary

  • Each slide dot is now a 44×44 cell drawing an 8px <span>, so no two hit areas can overlap and a tap selects the dot you aimed at.
  • The dots sit on a line of their own, so the nav row keeps the full width and each title reads in full instead of ellipsising to about eight characters. The reviewer's ask, 2026-11-17.
  • The prev nav button could not shrink, so its hit area reached 69px into the first two dots. Found by measuring, not listed on the ticket.
  • Each dot draws focus-ring and carries aria-pressed, and both nav buttons draw the ring too. From the review pass, not the ticket.
  • CarouselNavButton is built from the Button atom, which gains the icon-plus-truncating-label form it needed. The reviewer's answer to this PR's first open question, option C.
  • Three columns go back to a flex row at tablet, which the component's own documented behaviour already promised. The reviewer's answer to this PR's second open question, option A.
  • MasonryGrid's aria-label goes: the atom change above made it the accessible name, and it did not contain the visible "Show More".

Change outline

The dots row stops sharing the nav row, and the cells reach the house 44px.

 ColumnCarousel                              components/molecules/ColumnCarousel/ColumnCarousel.tsx
-  nav row  <div flex items-center mb-6>     # dots row + both nav slots, one line
+  nav row  <div flex items-center>          # both nav slots, nothing else
     CarouselNavButton direction="prev"
-    dots row  <div flex gap-0 shrink-0 px-4>    # shrink-0: the nav slots paid for every pixel
-      per column: <button group flex w-10 h-10 …>   # 40px, under the house minimum
     CarouselNavButton direction="next"
+
+  dots row  <div flex justify-center mb-6>  # its own line, so neither row pays for the other
+    per column:
+      <button group flex w-11 h-11 items-center justify-center focus-ring
+              aria-pressed={index === selectedIndex}>   # the 44px cell IS the hit area
+        <span w-2 h-2 rounded-full>         # the 8px drawn dot

The nav button no longer has to shrink to its floor, so the two props that made it fit go.

 CarouselNavButton({ direction, column, … })  components/molecules/ColumnCarousel/ColumnCarousel.tsx
   <div flex-1 min-w-0 flex [+ justify-end when direction="next"]>   # the slot, from `direction`
     Button variant="ghost" truncate
-           size="xs" className="max-w-40"   # the shrink-to-44px form, and a 12px chevron
+           size="sm"                        # 16px chevron, and the slot alone caps the width
            icon={prev ? ChevronLeftIcon : ChevronRightIcon}
            iconPosition={prev ? 'leading' : 'trailing'}
            aria-label={ariaLabel}
       {column?.title}                       # the atom wraps it in the truncating span

The atom keeps the form it gained for the old layout; nothing in the tree uses it now, and the Button story's Carousel Navigation example is where it is shown.

 Button                                       components/atoms/Button/Button.tsx
+  iconPosition?: 'leading' | 'trailing'      # default 'leading'
+  truncate?: boolean                         # wraps the label in <span min-w-0 truncate>
-  aria-label={isIconOnly ? ariaLabel : undefined}
+  aria-label={ariaLabel}                     # a text button may owe a name too

That last line is why MasonryGrid changes: its aria-label never reached the DOM before, and it replaces the visible "Show More" rather than containing it.

 MasonryGrid                                  components/molecules/MasonryGrid/MasonryGrid.tsx
-  <Button variant="outline" aria-label={t('common.a11y.show_more_items', …)}>
+  <Button variant="outline">                 # the visible label is the name, as on main
     {t('common.general.show_more')}

And each breakpoint branch now keys on the threshold that decides it.

 ColumnCarousel                              components/molecules/ColumnCarousel/ColumnCarousel.tsx
-  showCarousel = useCarouselMobile || useCarouselTablet   # 4 ≥ 3, so the right side adds nothing
+  showCarousel = useCarouselMobile
   carousel wrapper
-    ${useCarouselMobile ? '' : 'md:hidden'}  # always true inside the branch — never emitted
-    ${useCarouselTablet ? 'md:block' : ''}   # `block` is the default — drew nothing
+    useCarouselTablet ? 'lg:hidden' : 'md:hidden lg:hidden'
   flex row
-    ${!useCarouselMobile ? 'flex flex-col md:flex-row' : 'hidden'}
-    ${useCarouselTablet ? 'md:hidden!' : ''}     # the intent; the base `hidden` beat it
+    ${useCarouselMobile ? 'hidden' : 'flex flex-col'}
+    ${useCarouselTablet ? 'md:hidden!' : 'md:flex md:flex-row'}

Preview

Both previews are deployed and both were measured on, not just opened. Narrow the window to see the carousel — the dots are lg:hidden.

  • The ColumnCarousel story — Three, Four and Five Columns sections. Ladle's StoryWrapper adds px-12, so a 454px window reproduces the 358px canvas a real page gives at 390px.
  • The Button story — the Carousel Navigation example under Examples shows the truncating form giving way as the window narrows.
  • /vishuddhi-chakra — the real Container maxWidth="md" path, 3 dots. /heart-chakra, /agnya-chakra, /mooladhara-chakra, /nabhi-chakra and /swadhistan-chakra are the same shape.

No published page uses a 5-item tabs block — every one that renders the carousel has 3. So the 5-column case is covered by the story and by the measurements below, not on the web preview.

Test results

  • Lean gate: ✓ .claude/skills/pr-prep/check.sh — lint, tsc --noEmit, vitest run (102 files, 1003 tests)
  • Targeted specs: 17 in ColumnCarousel.test.tsx, 21 in Button.test.tsx, 2 in the new MasonryGrid.test.tsx
  • Build: N/A (no build/server/Wrangler change); pnpm ladle served every measurement round

Manual verification

Every geometric criterion was measured in Chromium, so these steps re-check rather than discover.

  1. Open the story preview at a 454px window. Tap each dot's visible circle in the Three, Four and Five Columns sections; the slide that appears should be the one its aria-label names.
  2. In devtools, confirm each dot's box is 44×44 and that no two intersect.
  3. Confirm both nav titles read in full at 390px, and that neither row scrolls sideways.
  4. Tab to a dot and confirm the focus ring draws around the 44px cell, not the 8px circle.
  5. Tab to a nav button and confirm its accessible name still reads "Previous: …" / "Next: …", not just the title.
  6. Widen to about 900px with three columns and confirm the flex row replaces the carousel.
  7. Open /vishuddhi-chakra at 390px and tap each of the three dots. Ignore the sideways page scroll there — it is the sticky header nav, not this change, and is fix(components): the sticky nav overflows the viewport on mobile #202.

Notes for reviewer

Your ask is built: the dots have their own line. Sharing one row, the dots were shrink-0 and the two flex-1 nav slots paid for every pixel they took. That is why the titles were unreadable, and it is also what forced the 40px cells. A separate line fixes both at once, so the documented 44px exception, max-w-40 and the load-bearing size="xs" are all gone, and with them the arithmetic that argued for them.

At a 390px viewport Before Now
Width available to each nav title 61px (3 columns) · 21px (5) 107px, at every column count
Dot cell 40×40, a documented exception 44×44, the house minimum
Chevron 12px (xs) 16px (sm)

At 320px, the narrowest width checked, the title box is 72px rather than about 0.

Three columns at tablet: answered A, and built. showCarousel or-ed the two thresholds, but the tablet one is the higher, so it implied the mobile one. Inside that branch the mobile guard was then always true, md:hidden never emitted, and three columns kept the carousel from 768px up — where this component's own documented behaviour, and the md:hidden! on the flex row beside it, both say a flex row. The reviewer chose the documented behaviour on 2026-11-18, which 35541f0 had already built. #135 records it.

The chevron and the hover tint. sm draws a 16px chevron, against the 20px main had and the 12px this branch had. variant="ghost" keeps the house animated hover tint the hand-rolled button did not draw.

The ticket's per-button figure was wrong, and its conclusion no longer holds either. It assumed each nav button needs 60px because "the truncate title shrinks to 0" — truncate never fired, which was the second bug here. Its whole 40px-versus-44px table assumed one shared row, which is the premise the separate line removes.

Round one's dismissal is superseded, not reversed. Drop the dots row's px-4 and take the cells to 44px was dismissed on measurement: on a shared row 44px cells overlapped the nav buttons by 10px at 320px. On a row of their own they fit at every width checked, so the cells are 44px now. The measurement stands; its premise is gone.

MasonryGrid is barrel-exported with no call site, so nothing rendered regresses. Its accessible name is the visible text, as it was on main.

Filed earlier: #202. The sticky header nav has no breakpoint guard, so several pages scroll sideways at 390px. Not this change.

Detail

Measured in Chromium at 320/360/375/390/414/430px page widths against 3/4/5 columns, 36 rows: every cell 44×44, every drawn dot 8×8, no dot–dot intersection, no dot–nav intersection, and neither the nav row nor the dots row scrolling. All 21 dots across the story's six visible carousels selected their own slide when clicked on the drawn 8px circle, not the cell.

Breakpoints, measured at 500/900/1200px across 1, 2, 3, 4 and 5 columns: every cell of the component's documented table holds — stacked below md: for 1–2 columns, a flex row from md: for 1–3, the carousel below md: for 3+ and below lg: for 4+, a flex row at lg: for all. Only three columns at tablet changes.

Why the prev button and not the next one (the second fix, from an earlier round). touch-target's min-width replaces a flex item's min-width: auto. The next slot was flex-1 min-w-0 flex justify-end; the prev slot was flex-1 min-w-0, i.e. display: block. A block-level <button> is sized fit-content, floored at its own min-content width, which no min-width lowers — so the prev button sat at 132px inside a 63px slot while the next one shrank to 63px.

Rejected alternatives. Removing the dots on mobile behind a counter: it loses jump-to-slide, which #135's first two criteria are about, and the ticket's Notes already rejected it. A two-line layout only below md:: the carousel renders below lg: only, the tablet widths have room to spare, and one uniform layout is what deletes the arithmetic rather than moving it up a breakpoint. Putting the dots below the carousel viewport: on mobile a column is tall, so the indicator would leave the screen while its controls stayed.

Docs. The 40px exception is deleted, not moved: docs/rules/design-system.md no longer has an exception section, and the quick-reference bullet and DESIGN_SYSTEM.md drop their pointers to it. What replaces it is the lesson under the overlay utilities — a grown box needs the room, and the row is where you find it. The Button section keeps the shrink-to-floor form and names the story as its worked example, since no component uses it now. layouts/tailwind.css keeps the flex min-width mechanism and stops naming CarouselNavButton as the thing that wants the floor.

Tool note. vitest runs environment: 'node' with no jsdom, so the spec pins what the SSR string can show — w-11 and h-11 per dot button, both nav buttons preceding the first dot, the dots' own centred row, px-6 on the nav buttons, the breakpoint class per column count, and MasonryGrid's show-more button carrying no aria-label. The boxes live in the measurements above.

Closes #135

🤖 Generated with Claude Code

https://claude.ai/code/session_01Mg9rjUuxqXBaMPJBMQ4DAf

A 44x44 `touch-target-overlay` on an 8px dot spans 2.75 of the 16px
centres `gap-2` produced, so consecutive overlays covered each other.
With no `z-index` the later sibling won the shared strip, and dot i+1's
overlay began 6px left of dot i's visible circle: tapping the dot you
could see selected the next slide, for every dot but the last.

Each dot is now a 40x40 `<button>` drawing an 8px `<span>`, with the row
at `gap-0`. Abutting cells cannot overlap, so the collision goes away by
construction rather than by tuning a gap.

40px and not the house 44px: five 44px cells plus both nav buttons need
372px, and `Container maxWidth="md"` leaves this row 358px at a 390px
viewport. 40px still clears WCAG 2.2 AA 2.5.8's 24px, which 16px centres
could not meet even by its spacing exception. Recorded in
docs/rules/design-system.md as the one documented exception.

The dots were the example both the rule and the stylesheet comment gave
for `touch-target-overlay`; they now name the dismiss cross instead.

Closes #135

Co-Authored-By: Claude Opus 5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01B883kuvJoNugv9A8a7zCBR
Measured in Chromium against the Ladle build: at a 390px viewport the
prev button was 132px wide inside a 63px wrapper and its hit area
reached 69px into the first two dot cells. The dots row is the later
sibling, so it won that strip — tapping the visible "◀ <title>" text
near its right edge selected a dot instead of going back.

Two causes, both pre-existing and both only exposed once the dots row
grew from 104px to 232px:

`touch-target`'s 44px `min-width` shrinks a flex item. The prev wrapper
was the one without `flex`, so its `<button>` was sized fit-content with
its own min-content width as the floor, which no `min-width` lowers. The
next wrapper already had `flex`, which is why only one side overflowed.

`truncate` never fired either: the title span's `min-width: auto` floored
it at the nowrap text width, so the button's min-content carried the full
title. `min-w-0` lets it ellipsise, which is what the ticket's width
arithmetic already assumed.

Both nav buttons now sit at 63px at a 390px viewport, leaving 16px
between each one and the nearest dot cell. Swept 320-430px: 40x40 cells,
no dot-dot overlap, no dot-nav overlap, no row or document scroll. At
320px the clearance is exactly 0 — touching, not overlapping — because
the dots row's own `px-4` is fully absorbed there.

Co-Authored-By: Claude Opus 5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01B883kuvJoNugv9A8a7zCBR
Four is the one count between MOBILE_CAROUSEL_THRESHOLD and MAX_COLUMNS
with no section of its own, and the count that turns the tablet carousel
on. #135 asks for the dot hit areas at every count from 3 up, so the
story has to render the count a reviewer is asked to check.

Co-Authored-By: Claude Opus 5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01B883kuvJoNugv9A8a7zCBR
Per the /simplify and /code-review passes.

`CarouselNavButton` documented, in a comment on itself, a requirement about
a wrapper 120 lines away ("both wrappers set `flex`"). The wrapper exists
only to give the button a flex context and absorb the row's slack, and the
two differed by `justify-end`, which `direction` already decides. Owning its
own slot makes the invariant unstateable instead of merely stated, and drops
the class-string assertion that was holding it.

Also from those passes: the stale `{/* Dot indicators - absolutely centered
*/}` label (nothing there is absolutely positioned), the flex `min-width`
mechanism restated in four places (layouts/tailwind.css owns it now, and the
rule defers to it), and the comment and test-header narration the
code-comments rule routes to the commit message.

Co-Authored-By: Claude Opus 5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01B883kuvJoNugv9A8a7zCBR
…ated flatly

DESIGN_SYSTEM.md states the 44x44 minimum with no exception, so it
contradicted docs/rules/design-system.md the moment the carousel dots
became one.

Co-Authored-By: Claude Opus 5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01B883kuvJoNugv9A8a7zCBR
@cloudflare-workers-and-pages

cloudflare-workers-and-pages Bot commented Oct 27, 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 6c17130 Commit Preview URL

Branch Preview URL
Nov 18 2026, 12:12 AM

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

1 question for the reviewer, one per thread.

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


Generated by Claude Code

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

sydevs-bot commented Oct 27, 2026 •

Copy link
Copy Markdown
Contributor Author

🤖 no session running
CI fix 1

recent dispatches
  • 18:13Z address-review · attempt 1 · session · done
  • 18:13Z address-review · attempt 1 · session
  • 00:00Z fix-ci · attempt 1 · session · done
  • 00:00Z fix-ci · attempt 1 · session
  • 23:40Z address-review · attempt 1 · session · done

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

@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 fix is right and proven. The dots own abutting 40px cells, the prev button's missing flex slot was found by measuring rather than assumed, and the preview serves the new markup. That second fix is joined to the ticket, not smuggled in.

Where the PR is larger than its problem is the prose: ~30 lines of runtime change carry ~70 of new comment and documentation, and the overlay spacing rule now lives in two files while the 40px exception lives in three.

Two gaps sit in the markup it rewrote, on a ticket under the screen-reader epic: no focus-ring, and no programmatic selected state. Both have a house answer already.

Findings

  • should-fix — the dot button draws no focus-ring, against the rule in the file this PR edits — ColumnCarousel.tsx:191
  • should-fix — the selected dot is colour-only; aria-pressed is the house pattern — ColumnCarousel.tsx:194
  • should-fix — the spacing rule and the 40px exception are each stated twice over — docs/rules/design-system.md:48
  • consider — the spec pins exact class attributes, so finding 1's fix breaks it — ColumnCarousel.test.tsx:25

What was checked

  • #135 against the diff: every acceptance criterion is met, and 40px / gap-0 / 8px <span> is the decision recorded on the ticket.
  • Read whole: ColumnCarousel.tsx, the new spec, docs/rules/design-system.md, the touch-target block in layouts/tailwind.css.
  • Both ## Preview links returned 200. On /vishuddhi-chakra the dots are group flex w-10 h-10 … around an 8px <span>, with no overlay, no aria-pressed and no focus ring.
  • The 320px arithmetic holds: 200 + 32 against 288 leaves 28px a nav slot, so a 44px button reaches the dots row's padding and stops.
  • Greps behind findings 1 and 2: focus-ring on Button, Link, Image; aria-pressed on ContentIndex, Playlist, SubtleSystem.

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


Generated by Claude Code

Comment thread docs/rules/design-system.md 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 Oct 27, 2026
The dot button and both nav buttons are bare `<button>`s, so neither drew
`focus-ring` and both fell back to the UA outline. On the dot that outline
is now a 40px box around an 8px circle, since the cell became the hit area.

The nav buttons were not on the review thread, but they are the same defect
in the same component the thread names.

Co-Authored-By: Claude Opus 5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01Mg9rjWXP6dJEm3Koq538By
The selected dot differed by `bg-teal-600` alone, so a screen reader heard
five identical "Go to column N" buttons with no current one. `aria-pressed`
is what ContentIndex, Playlist and SubtleSystem already use.

Co-Authored-By: Claude Opus 5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01Mg9rjWXP6dJEm3Koq538By
The 40px exception was stated three times and the overlay's spacing
requirement twice, two of them inside one paragraph. The rule file's
exception section keeps the reason; the quick-reference bullet and
DESIGN_SYSTEM.md now only point at it, and the stylesheet keeps the one
thing the rule file does not carry — that Button puts an overlay on every
icon-only button.

Co-Authored-By: Claude Opus 5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01Mg9rjWXP6dJEm3Koq538By
The cell assertion pinned the whole class string in order and its adjacency
to the `<span>`, so adding `focus-ring` broke it with no behaviour change.
It now matches `w-10` and `h-10` on each dot button.

Dropped the `gap-0` pin: `gap` already computes to 0 on a flex container, so
the class draws nothing and the assertion proved nothing. Cells abutting is
a measurement, and it stays in Ladle with the rest of them.

Co-Authored-By: Claude Opus 5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01Mg9rjWXP6dJEm3Koq538By
@cloudflare-workers-and-pages

cloudflare-workers-and-pages Bot commented Oct 27, 2026 •

Copy link
Copy Markdown

Deploying wemeditate-design with  Cloudflare Pages  Cloudflare Pages

Latest commit: d0b927d
Status: ✅  Deploy successful!
Preview URL: https://8c49b588.wm-design.pages.dev
Branch Preview URL: https://claude-fix-135-carousel-dot.wm-design.pages.dev

View logs

@sydevs-bot

Copy link
Copy Markdown
Contributor Author

Four review findings, all adopted. Pushed e01f25b.

Lean gate green: 89 files, 901 tests. 9 of the spec's 11 cases fail against origin/main's component.

The CarouselNavButton question is still open and waits on you.

🤖 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 Oct 27, 2026
@sydevs-bot
sydevs-bot marked this pull request as ready for review October 27, 2026 02:39
@sydevs-bot
sydevs-bot requested a review from Ardnived October 27, 2026 02:39
@sydevs-bot
sydevs-bot enabled auto-merge October 27, 2026 02:39
sydevs-bot pushed a commit that referenced this pull request Oct 27, 2026
The paragraph named `ColumnCarousel`'s dots beside `Alert`'s cross. #135
decided the dots lose their overlay for 40×40 cells at `gap-0`, and open PR
#201 builds it — deleting the dot from the row above and rewriting this
paragraph. The citation is false the moment #201 merges, and the two edits
collide in the same hunk.

The cross carries the point alone: 16px drawn, `touch-target-overlay`, hit
area well outside its box and correct.

Refs: #202

Co-Authored-By: Claude Opus 5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01Mg9rjVARVUzPFpkZCoDEbf
The dots row was `shrink-0` and shared the nav row, so the two
`CarouselNavButton` slots paid for every pixel it grew. At a 390px
viewport that left each nav title 61px — about eight characters, so
"Vishuddhi Chakra" drew "Vishudd…" — and 21px at five columns. It also
forced the cells to 40px, under the house 44px minimum, to fit at all.

On its own line neither row pays for the other. The cells are 44px, so
the documented exception goes; the nav row keeps the full width, so
`max-w-40` and the shrink-to-floor `size="xs"` go with it. `sm` restores
a 16px chevron in place of `xs`'s 12px and the available title width
rises to 107px at 390px and 72px at 320px, at every column count.

Measured in Chromium at 320/360/375/390/414/430px page widths against
3/4/5 columns, 36 rows: every cell 44×44, every drawn dot 8×8, no
dot-dot or dot-nav intersection, neither row scrolling. All 21 dots
across the story's six carousels select their own slide when tapped on
the drawn circle.

Addresses two review threads: #201 (discussion_r4607271528,
discussion_r4607273237).

Co-Authored-By: Claude Opus 5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01Mg9rjUuxqXBaMPJBMQ4DAf
`Button` dropped an `aria-label` on everything but its icon-only form
until this branch widened it, so "Show %{count} more items" never
reached the DOM. It does now, and it replaces the visible "Show More"
rather than containing it, which WCAG 2.1 2.5.3 Label in Name forbids.

The carousel needs the widening, so the label goes instead. Nothing
rendered changes: `MasonryGrid` is barrel-exported with no call site,
and on `main` the name was already the visible text.

Addresses a review thread: #201 (discussion_r4607272404).

Co-Authored-By: Claude Opus 5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01Mg9rjUuxqXBaMPJBMQ4DAf
`showCarousel` or-ed the two thresholds, but the tablet one is the
higher, so it implied the mobile one and added nothing. Inside that
branch the mobile guard was then always true, so `md:hidden` never
emitted and `md:block` only restated the default: three columns kept
the carousel at tablet, where the component's own documented behaviour
gives a flex row. The non-carousel block's `md:hidden!` shows the
intent — the base `hidden` beside it defeated it.

Each branch now keys on the threshold that decides it. Measured in
Chromium at 500/900/1200px across 1, 2, 3, 4 and 5 columns: every cell
of the documented table holds, and only three columns at tablet changes.

Addresses a point in the review body of #201.

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

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

1 question for the reviewer, one per thread.

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


Generated by Claude Code

@sydevs-bot

Copy link
Copy Markdown
Contributor Author

Pushed 35541f0. The base merge from main came in clean.

Each nav title has 107px at 390px now, against 61px and 21px. #135 carries your decision and two new criteria.

Lean gate green: 101 files, 997 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 18, 2026
`Smoke (ladle)` spent its whole reachability budget on a dead address and
exited 1:

    selected https://8c49b588.wm-design.pages.dev [pr-comment(...), project=wemeditate-design]
    reachability attempt 20: fetch failed
    Preview environment never became reachable.

That host is the Cloudflare Pages comment from 2026-10-27, three weeks
before the playground moved to Workers. It matched the target by project
name and sorted first, so it won. Its DNS no longer resolves.

Two changes, because this pull request needs both. Discovery now accepts a
`workers.dev` host and nothing else, which is what both previews are, so
the Pages leftover is no longer a candidate. And a pull request older than
the design Worker's Git integration gets no Workers comment for it at all,
which leaves the live preview in no source discovery reads — so once the
whole discovery window has named nothing, it spells the Worker's own branch
host, taking the account subdomain from whatever other preview the pull
request does carry. The derived address is checked for reachability like any
other, and it runs only after the window so it cannot pre-empt a build still
deploying with the branch's previous one.

`claude-fix-135-carousel-dot-cells-wemeditate-design.contact-c66.workers.dev`
answers 200. The same derivation reproduces, character for character, the
Branch Preview URL Cloudflare posted on #239.

The defect is on `main` too: every pull request opened before 2026-11-02
reddens this check the same way. Fixing it here is what makes this one
mergeable.

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

Copy link
Copy Markdown
Contributor Author

Smoke (ladle) read a dead address, not a broken story. Pushed 6c17130.

Discovery picked 8c49b588.wm-design.pages.dev — the Cloudflare Pages comment from 27 Oct, three weeks before the playground moved to Workers. That host no longer resolves. This PR also predates the design Worker's Git integration, so Cloudflare posts no Workers comment for it at all.

Discovery now takes a workers.dev host only, and spells the Worker's own branch host once the window has named nothing. That runs last and is reachability-checked.

The body's two story links are dead for the same reason. Live: ColumnCarousel, Button.

Every PR opened before 2026-11-02 reddens this check, main included.

Lean gate green: 102 files, 1003 tests.

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

Copy link
Copy Markdown
Contributor Author

Nothing to push: your answer picks what the branch already builds.

  • Three columns at tablet — A. 35541f0 built it: three columns carry md:hidden lg:hidden, so the flex row replaces the carousel from 768px. Thread resolved.

The base merge from main (d3e5eab) came in clean. It stays local, since no work rides with it.

#135 now carries the decision and a ninth criterion. The body's two Ladle links still pointed at the dead Pages host, so they now spell the live Worker one.

Every thread on this PR is resolved.

🤖 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 18, 2026
@sydevs-bot sydevs-bot moved this from Working to Awaiting in SYDevelopers Technical Roadmap Nov 18, 2026
@sydevs-bot
sydevs-bot added this pull request to the merge queue Nov 18, 2026
@sydevs-bot sydevs-bot moved this from Awaiting to Pending in SYDevelopers Technical Roadmap Nov 18, 2026
Merged via the queue into main with commit 081d123 Nov 18, 2026
52 of 53 checks passed
@sydevs-bot
sydevs-bot deleted the claude/fix-135-carousel-dot-cells branch November 18, 2026 19:16
@sydevs-bot sydevs-bot moved this from Pending to Done in SYDevelopers Technical Roadmap Nov 18, 2026
sydevs-bot pushed a commit that referenced this pull request Nov 18, 2026
…ontrast

Six conflicts, from #257 (the Link atom becomes the scheme gate), #201 (the
carousel dots take their own line) and #201's own preview-discovery fix.

SocialIcon.tsx, AudioPlayer.tsx — main's side. Both raw `<a>` elements became
`Link`, whose `variant="primary"` resolves to the retuned `teal-600`, so the
colours this branch set on them are what the atom now paints. SocialIcon keeps
this branch's `secondary: coral-600`, which sits outside the conflict.

ColumnCarousel.tsx — main's side. `CarouselNavButton` became the `Button` atom
at `variant="ghost"`, which draws `text-fg-muted`, the token this branch
retunes to `gray-700`. The branch's `text-gray-600` → `text-gray-700` had no
other effect here.

Link.stories.tsx — main's structure, this branch's sweep. main rewrote the
External Links section and added Refused Schemes; every `text-gray-500` and
`text-gray-600` it brought with it moves to `text-gray-700`, the step the rest
of the file already reads.

Playlist.tsx — both sides. The credit keeps this branch's `text-teal-50`
(4.92:1 on `teal-700`) and main's `transition-colors duration-200`.

scripts/get-cloudflare-preview-url.mjs, docs/cloudflare-previews-ci.md —
main's side, and this branch's `RETIRED_HOST_RE` goes with it. #201 fixed the
same red check by narrowing `PREVIEW_URL_RE` to `workers.dev`, so no candidate
can carry a `pages.dev` host and the branch's later filter can never fire.
main also derives the Worker's branch host when no comment names one, which
this branch's version does not.

Co-Authored-By: Claude Opus 5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01Mg9rjV73qfNDBaWPzRpeBE
sydevs-bot pushed a commit that referenced this pull request Nov 19, 2026
MasonryGrid was written after wemeditate.com's `.cb-grid-layout`, the old
rendering of the layout block's `grid` style, but could not render that
block: it took only a heading and a body, hard-coded `h3`, gave a linked
title no heading at all, dropped textarea line breaks, sliced every item
past the third out of the server's HTML, and laid out through
react-masonry-css.

It now takes each item's optional image, title, title link and text, a
`headingLevel` from its caller, and the `masonry` utility ContentGrid uses.
Every item reaches the server's markup; those past the first three carry
`hidden`, so they stay out of the accessibility tree and the tab order
until "Show More" reveals them. The button unmounts as it does, so focus
moves to the first revealed item rather than falling to <body>, and the
button is described (not named, #201) by `common.a11y.show_more_items`,
the existing key for exactly that count.

Three is hard-coded, as on the old site, because SahajCloud's block has no
count field; the default carries a `shortcut:` line.

With both grids on CSS, react-masonry-css has no importer and goes.

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

fix(column-carousel): a dot's 44px hit area is stolen by its neighbour

3 participants