Skip to content

fix(registration): give the collapsed captcha slot no gap of its own - #373

Merged
sydevs-bot merged 13 commits into
mainfrom
claude/fix-367-captcha-slot
Nov 8, 2026
Merged

sydevs-bot merged 13 commits into
mainfrom
claude/fix-367-captcha-slot

Conversation

@sydevs-bot

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

Copy link
Copy Markdown
Contributor

Summary

  • One menuChrome recipe for the three Radix dropdown menus, with each menu's difference a named variant.
  • downloadEventIcs is local again, and the Apple Calendar row's stale WCAG comment is gone.
  • Joined, not listed: useTurnstile's interactive had no reader left after fix(search): embed, search and navigation fixes from the 6 Nov bug sweep #371, so it is gone.
  • Joined, not listed: main neither typechecks nor builds — a duplicate declaration blocked this ticket's gate.
  • From review: panelChrome gives Select and Combobox one recipe for the panel their triggers open — the hand-copied pair the first pass named nowhere.
  • From review: the two menus' ItemCheck is pinned identical rather than merged, check-bundle-size.mjs records the payload as measured, and the root guide states the overlay rule once.
  • From review: the skin's home is answered — menuChrome sits in atoms/Menu, the atom that owns the chrome, and lib/overlay.ts keeps only what it holds state for.

The captcha-slot half of this ticket already shipped in #371, which says so in its own commit ("The captcha-slot half of #367; its AddToCalendar follow-ups are untouched"). So the first three acceptance criteria are met on main before this branch, and no form is touched here. What was left was the slot's now-dead flag plus the three AddToCalendar follow-ups.

Change outline

The menu skin was a responsibility living in three places. It moves to one: atoms/Menu, the atom that owns the chrome, which is where review placed it (option B).

 src/lib/overlay.ts                   # the frame, the portal target, the collision boundary

 src/components/atoms/
+└── Menu/Menu.ts                     # menuChrome — tv(): slots { surface, row }, variants { rows, submenus }

 src/components/molecules/
-├── AddToCalendar/AddToCalendar.tsx  # own `menu` + `item` strings, min-w-56 / px-3
-├── SortMenu/SortMenu.tsx            # own `menu` + `item` strings, min-w-44 / px-2
-└── SettingsMenu/SettingsMenu.tsx    # own `menu` + `item` strings, min-w-44 / px-2 + data-[state=open]
+├── AddToCalendar/AddToCalendar.tsx  # menuChrome({ rows: 'stacked' })
+├── SortMenu/SortMenu.tsx            # menuChrome()
+└── SettingsMenu/SettingsMenu.tsx    # menuChrome({ submenus: true })

Naming each difference is the point, not the dedupe. While every menu spelled the whole pair, an intended difference and an accidental one looked identical — which is how three copies diverged with every gate green.

 menuChrome                            src/components/atoms/Menu/Menu.ts
   slots
     surface  z-50 rounded-xl border border-divider bg-background p-1 …
     row      flex cursor-pointer rounded-lg py-2 text-sm … data-[highlighted]:bg-primary-3
   variants
+    rows.inline   surface min-w-44   row items-center gap-2 px-2        # the default
+    rows.stacked  surface min-w-56   row flex-col items-start px-3      # a label over a sub-label
+    submenus      row data-[state=open]:bg-primary-3                    # a SubTrigger, while open

The folder holds no component, and the skin is why there is nothing else to share: each menu composes the primitive differently — a radio group, a radio group with submenus, a column of link-outs — so an atom wrapping Radix DropdownMenu would have to model all three. Icons/ is the other folder in that tier without one. Its story opens all three variants side by side, which no live menu's story can.

The same shape one tier down, found in review

Select and Combobox each spelled the same six-class panel surface. They are the other two members of BOUNDED, the closed list this PR already edits, and the first pass named neither.

 src/components/atoms/Select/Select.tsx   # fieldChrome — the field controls' skin, shared by both
+└── panelChrome                          # tv(): base + variants { popper }

 src/components/atoms/
-├── Select/Select.tsx                    # own `overflow-hidden rounded-lg border-gray-6 …` + select width
-└── Combobox/Combobox.tsx                # the same six classes + popover width
+├── Select/Select.tsx                    # panelChrome({ popper: 'select' })
+└── Combobox/Combobox.tsx                # panelChrome({ popper: 'popover' })

It sits beside fieldChrome, the skin these same two already share — the same answer review then gave for the menus' own skin, so all four shared recipes now live in the atom that owns the chrome.

Types

useTurnstile published interactive only so a caller could patch its own column gap. #371 moved that into the hook, leaving no reader.

 export type UseTurnstile = {
   challengeRef: RefObject<HTMLDivElement>
   token: string | null
-  interactive: boolean
   status: TurnstileStatus
   reset: () => void
 }

Its two setState calls also re-rendered the whole registration or report form each time Cloudflare opened or closed the challenge, for a frame height and a slot position the hook writes to the DOM directly.

Behaviour — the blocker

main carries const hasRealPointer = useHasRealPointer() twice in one scope, four lines apart, from the 6 Nov bug sweep. tsc reports TS2451 twice and pnpm build fails, so every PR branched off current main is red before it changes anything.

 Map()                                                  src/components/organisms/Mapbox/Map.tsx
   const hasRealPointer = useHasRealPointer()
-  const hasRealPointer = useHasRealPointer()           # byte-identical, with its comment

Preview

Nothing should look different: both recipes reproduce every original class set exactly, checked set-wise against main's strings by running each recipe. The region filter's combobox and any Select are worth a glance alongside the menus now.

Those three links were checked at ca217e6, two pushes ago — 200 text/html carrying that build's app shell. They are not re-checked here: the run pushes and ends rather than waiting on a deploy, so treat them as pointing at whatever the preview last built.

Two things are deliberately not linked. The add-to-calendar menu sits on the registration confirmation, reachable only by completing a sign-up, so AddToCalendar.stories.tsx is where to compare it. And the Ladle playground built green for this branch (Workers Builds: sahajatlas-design) but published only Cloudflare dashboard links, no public alias — and deriving one from the branch slug is what finalize-pr forbids, since two branches agreeing in their first 28 characters would serve the wrong build.

Test results

Each new assertion was watched failing against the defect it exists for:

assertion defect reintroduced went red
no menu spells a skin class SortMenu re-spells the whole skin ✓
no menu spells a skin class SortMenu re-adds min-w-52 through the recipe ✓
no menu spells a skin class a legitimate min-w-0 on a flex child stayed green, as intended
the menu runs appear only in atoms/Menu SortMenu's local copy restored ✓
the menu runs appear only in atoms/Menu the run re-added to lib/overlay.ts, the old home ✓
both pickers read panelChrome Combobox stops reading the recipe ✓
the panel run appears only in atoms/Select Combobox re-spells the panel surface ✓
the panel run appears only in atoms/Select overflow-hidden added to dropdownPanel stayed green, as intended
the two ItemCheck copies are identical SettingsMenu's slot drifts w-4 → w-5 ✓

Three rows are cases a weaker assertion could not catch. min-w-52 through the recipe needs the widths inside it — the first version of this branch left them at the call sites, with nothing to assert against. overflow-hidden on dropdownPanel is the false positive a shorter panel run would have produced: the asserted run carries the background token, which is exactly where that third panel diverges. And the lib/overlay.ts row is the move's own check — the block names one home, so a copy left behind in the old one reddens the lane rather than shipping two.

Manual verification

  1. In Ladle, open the sort menu, the cog and the add-to-calendar menu. Same surface radius, border, shadow and row height as on main, and the add-to-calendar rows still two-line and wider. Atoms / Menu Chrome shows all three variants at once, hover tint included.
  2. In Ladle, open a Select and the Combobox. Same panel radius, border and background as on main — the combobox panel still matches its trigger's width, the select listbox still caps at max-h-72 and scrolls.
  3. On the register route with a challenge that never turns interactive, no blank band between the last field and the buttons. (fix(search): embed, search and navigation fixes from the 6 Nov bug sweep #371 measured this at 20px; unchanged here, as no form is touched.)

Notes for reviewer

  • The home question is settled: B. menuChrome is in atoms/Menu and lib/overlay.ts keeps the frame, the portal target and the collision boundary. With panelChrome already beside fieldChrome, all four shared recipes now sit in the atom that owns the chrome, and both guides say so rather than arguing an exception.
  • ⚠ embed has 0.2 KiB of production margin, and no gate can see it. Re-measured on this build, uncredentialed: standalone 326.8, embed 328.6, loader 2.5. With the per-graph production gaps scripts/AGENTS.md records, that derives to 327.9 and 329.8 against a 330 budget, where CI reads 328.6 and reports 1.4 KiB spare. The move itself took 0.2 KiB off both graphs against the previous push's 328.8, so the derived figure is no longer the budget exactly — check-bundle-size.mjs carries what was measured. Taking space off the eager graph or moving the budget is still your call — this PR does neither.
  • One per-edit cost came with the move. A skin edit selected five specs through co-location with overlay.ts; it now selects none, measured through selectSpecs. That is the cost fieldChrome and panelChrome already carry in atoms/Select, and the lean gate and CI still refuse a drift.
  • ItemCheck is pinned, not merged. The first pass named the popper spec's shape as the obstacle, which was circular — this PR edits that spec. What actually holds is BOUNDED's membership on the package import: a shared ItemCheck renders ItemIndicator, so it would owe that list an entry it has no popper surface for, and narrowing membership from the import to a rendered surface is the one property the file exists for. So both copies are pinned identical instead, which is the src/loader/ seam's own answer (feat(widget): send the embed report and publish a readiness marker #153).
  • Two review lenses asked me to restore the WCAG 2.5.3 comment on the Apple Calendar row, arguing the constraint still binds on unchanged code (an aria-label added there would break it). I left it deleted because removing it is an explicit acceptance criterion with the ticket's own reasoning. One line to reverse if you disagree.
  • Named and left out: atoms/Dropdown's private dropdownPanel is the third spelling of panelChrome's surface — the same radius and border on bg-gray-2 rather than bg-background. Reconciling it changes how one of the two looks, so it is a design call, not a refactor. The asserted panel run carries the background token, so that panel does not trip it, checked both ways.
  • Filed separately: fix(ci): verify the merge result, not only each pull request #375 — ci.yml triggers on pull_request and merge_group only, so nothing ever typechecks main itself and a broken merge reddens the next author's branch instead. It also carries a measured second half: today's eslint.config.js never extends js.configs.recommended, so npx eslint passes the duplicate silently, while --rule '{"@typescript-eslint/no-redeclare":"error"}' reports it at the exact line.
  • /security-review skipped, re-checked against this push: neither securityReview.triggerPattern nor contentPattern matches any file in the diff.
Detail

Why a tv() recipe rather than shared strings plus a tail per call site. The first commit on this branch did the latter, and it left SortMenu and SettingsMenu each spelling min-w-44 and items-center gap-2 px-2 — the same drift class one level down, and unassertable, because the widths lived at the call sites by design. fieldChrome's docblock records this repo hitting the identical problem with the field controls ("several hand-copied strings that had drifted to different corner radii on inputs stacked in the same form"), fixed by making the difference a variant. src/components/AGENTS.md § Styling requires tv() over clsx concatenation for exactly this.

Why atoms/Menu, and what the first pass argued instead. That pass put the recipe in lib/overlay.ts: all three menus already import that module, it already reads the theme root and holds the frame — so it was never the pure domain helper the root guide described — and the alternative costs a folder, a barrel, a story and a DESIGN_SYSTEM.md row for three call sites. Review chose the precedent: controlSurface, fieldChrome, panelChrome and listRow each sit in the atom that owns the chrome, and a fourth home would have made that a coin toss for the next author. Both guides now name the atom, so nobody re-derives this.

Tailwind generates every hoisted class from its new home. Read back out of this build's bundle rather than assumed, and re-checked after the move: min-w-56, min-w-44, rounded-xl, shadow-xl, border-divider, flex-col, items-start all present, and :where(.sy-atlas) .data-\[highlighted\]\:bg-primary-3[data-highlighted] emitted and scoped. A class that failed to generate would stay in the DOM with no CSS behind it and keep every gate green.

Spec hygiene found in review. SKINNED duplicated BOUNDED's three menu paths in the same file, so a rename needed two edits; the three menu paths are now one MENUS list that BOUNDED is built from. The call-shape regex /clsx\(\s*dropdownSurface\b/ pinned a spelling rather than the invariant and would have reddened on the tv() form itself. /\bmin-w-/ was wider than its own rule — min-w-0 is this repo's flex-shrink idiom at five call sites — so it is matched on a numeric or arbitrary width only, checked both ways. The panel block added for the pair is call-shaped (/panelChrome\(/) for the reason the boundary assertion already gives: a bare mention satisfies a substring test, and unused-imports strips the import on the next edit.

Why both skin blocks live in lib/overlay.popper.test.ts, with each recipe in an atom. That file already holds BOUNDED, the closed list all five popper surfaces belong to. Keeping both blocks beside it means one file answers which surfaces exist and which skin each reads, rather than splitting that answer across two specs next to two atoms. Neither block imports an atom — both read source text — so the move changed what they assert about, not how.

Per-edit cost, measured. selectSpecs('src/components/atoms/Menu/Menu.ts') returns nothing: the skin block names the module as a src/-relative string, which the selector does not resolve, and no spec is co-located with the new folder. atoms/Select/Select.tsx returns nothing either, so this is the precedent's own cost rather than a new one, and lib/overlay.ts still selects its five. The selection-width pin (scripts/select-unit-specs.test.ts, at its ceiling of 20) is unaffected and passed: nothing was added to the widest edit.

Closes #367

AddToCalendar, SortMenu and SettingsMenu each spelled out the dropdown surface and
row class strings, and by the third copy they had drifted: min-w-56 against min-w-44,
px-3 against px-2. Nothing could catch it — an unintended Tailwind class is still a
valid one, so lint, typecheck and the unit lane stay green while two menus look
different.

The shared surface and row now live in lib/overlay.ts, which already serves these same
three files their collision boundary, so a fourth menu gets the look from an import it
already needs. Each menu composes only its own difference on top: AddToCalendar's rows
stack a sub-label and are wider for it, and SettingsMenu's stay tinted while their
submenu is open.

overlay.popper.test.ts pins both halves at the three call sites, and pins the two class
runs as appearing nowhere but lib/overlay.ts. Watched both fail with SortMenu's local
copy put back.

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

downloadEventIcs was exported, nothing outside AddToCalendar.tsx imported it, and it
was a local closure before #366. calendarLinkTargets keeps its export, which the spec
reads.

The comment above the Apple Calendar row described an aria-label that is gone: the
accessible name is now the row's own text, so the note explained a mechanism the file
no longer has.

Co-Authored-By: Claude Opus 5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01Mg9rjYt37XZ5sVWcuU4CWr
#371 moved the collapsed slot into useTurnstile, which left `interactive` on the
hook's return with no consumer: it existed only so each form could patch its own
column gap, and the hook now does that itself on the element it already holds.

Its two setState calls also re-rendered the whole registration or report form each
time Cloudflare opened or closed the challenge, for a frame height and a slot position
the hook writes to the DOM directly. The spec asserted the flag beside the frame
height it mirrored, so the height assertions stand alone now.

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

main does not compile: the 6 Nov bug sweep landed `hasRealPointer` and the comment
above it twice in Map.tsx, four lines apart, so `tsc` reports TS2451 twice and every
PR in the repo fails the typecheck gate. The second copy is byte-identical to the
first — a merge artifact, with no behaviour either way.

Found running this ticket's own lean gate, which could not pass until this did. tsc is
what identifies it: the same file scan flags several same-named declarations in
different function scopes, and this is the only genuine redeclaration among them.

Co-Authored-By: Claude Opus 5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01Mg9rjYt37XZ5sVWcuU4CWr
…erence a variant

The first pass hoisted the shared classes but left each menu appending its own tail, so
SortMenu and SettingsMenu still spelled `min-w-44` and `items-center gap-2 px-2`
separately — the exact drift class this ticket is about, one level down, and one the
spec could not assert against because the widths lived at the call sites by design.

`menuChrome` is a `tailwind-variants` recipe instead, which is what this repo already
does for the same failure one subsystem over: `fieldChrome`'s docblock records several
hand-copied field strings that had drifted to different corner radii, fixed by making
the difference a variant. `src/components/AGENTS.md` requires tv() over clsx
concatenation for exactly this. Each menu now names a shape — `rows: 'stacked'`,
`submenus: true` — and spells no class of its own.

The recipe reproduces all six original class sets exactly, verified set-wise against
the pre-change strings, so nothing renders differently.

The spec drops the call-shape regex, which pinned a spelling rather than the invariant,
and asserts instead that no menu names a `min-w-` at all. Watched it fail twice: once
with SortMenu re-spelling the whole skin, once with it re-adding a width through the
recipe — the second is the case the first pass missed. `SKINNED` is gone; the three
menu paths are one `MENUS` list that `BOUNDED` is built from, so the file no longer
holds two lists of the same files.

Costs 0.3 KiB gzipped on the embed graph (328.5 -> 328.8 of 330), measured against main
plus the Map.tsx fix. Plain strings would be 0.1 KiB; the PR body names that trade.

Co-Authored-By: Claude Opus 5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01Mg9rjYt37XZ5sVWcuU4CWr
Three review findings, all in prose or the spec rather than behaviour:

The docblock called `min-w-56` against `min-w-44` and `px-3` against `px-2` drift, which
is what the ticket called them — but the recipe deliberately keeps both as the `stacked`
and `inline` variants. A reader acting on the old wording would have collapsed
AddToCalendar's two-line rows onto a 176px surface with every gate green. What was
actually wrong is that each menu spelled the whole pair, so an intended difference and an
accidental one looked the same.

`/\bmin-w-/` was wider than the rule it stated. `min-w-0` is this repo's flex-shrink
idiom at five call sites, so a legitimate one on SettingsMenu's endonym span would have
failed the lane with a "fourth copy" diagnosis. Now matched only on a numeric or
arbitrary width. Checked both ways: a `min-w-0` there passes, a `min-w-52` on the surface
still fails.

The run comment claimed every other surface rounds to `2xl` or `lg`.
`CompactEmbedView.tsx:110` rounds to `xl`. Each run is distinctive as a run, not by its
first class.

Co-Authored-By: Claude Opus 5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01Mg9rjYt37XZ5sVWcuU4CWr
DESIGN_SYSTEM.md's shared-recipe list named `listRow` and `fieldChrome` only, and its
Styling section said to reach for `tv()` without saying that a skin several components
share is one recipe rather than a copy each. Both now name `menuChrome` and why its
per-menu differences are variants.

The root guide's `src/lib/` rule said "no React, no i18n", which `lib/overlay.ts` already
bent before this branch — it reads the theme root and holds the frame. It now says so, and
says not to read it as licence for a second presentation module there.

Nothing host-observable changed, so docs/embedding.md and CHANGELOG.md are untouched: no
attribute, no CSP origin, no sizing, no URL shape, and the rendered class sets are
identical to main's.

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

cloudflare-workers-and-pages Bot commented Nov 7, 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 04a2b23 Nov 08 2026, 10:04 PM

@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

Comment thread src/lib/overlay.ts Resolved
@sydevs-bot sydevs-bot added the bot:working Lock: a cloud session is running on this item. Removed when it ends. label Nov 8, 2026
@sydevs-bot

sydevs-bot commented Nov 8, 2026 •

Copy link
Copy Markdown
Contributor Author

🤖 no session running

recent dispatches
  • 21:51Z address-review · attempt 1 · session · done
  • 21:51Z address-review · attempt 1 · session
  • 01:45Z address-review · attempt 1 · session · done
  • 01:45Z address-review · attempt 1 · session
  • 01:36Z review-pr · attempt 1 · session · done

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

@sydevs-bot sydevs-bot moved this from Pending to Working in SYDevelopers Technical Roadmap Nov 8, 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

This is the right size for #367. The captcha half really did ship in #371, all six original class sets are set-equal to the recipe's output, and the Map.tsx and docs commits are joined rather than smuggled.

The one shape question is membership, not scope. The diff builds a shared owner for the dropdown skin, then leaves Select and Combobox — two files in the same closed list it edits — hand-copying one identical panel surface, unnamed, where ItemCheck and dropdownPanel are named and argued. Separately, the eager budget now has no production margin left.

Advisory only; approval is yours.

Findings

  • should-fix — the skin's nearest siblings stay hand-copied and unnamed — src/lib/overlay.ts:127
  • should-fix — embed hits the 330 budget exactly once production's +1.2 KiB lands — src/lib/overlay.ts:1
  • consider — ItemCheck duplicated across both menus — SortMenu.tsx:19
  • consider — the new AGENTS.md block restates DESIGN_SYSTEM.md, and one line does not parse — AGENTS.md:101

What was checked

Profile read. #367's first three criteria hold on main already — no form reads interactive, and collapseSlot predates this branch. Ladder on menuChrome: no existing recipe covers a popper surface (fieldChrome is field controls, listRow card rows), and tailwind-variants is already in 17 modules, so the package is not new weight. Read whole: overlay.ts, overlay.popper.test.ts, source-tree.ts, the three menus, Select, Combobox, Dropdown, check-bundle-size.mjs, scripts/AGENTS.md. src/loader/ does not reach overlay.ts, so the #153 seam is untouched. SKIN_RUNS is self-consistent: sourceFiles() drops specs and stories, so the spec's own literals cannot match it. All three preview links return 200 text/html carrying assets/main-DDD5LZF8.js.

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


Generated by Claude Code

Comment thread src/lib/overlay.ts Resolved
Comment thread src/lib/overlay.ts Resolved
Comment thread AGENTS.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 Nov 8, 2026
…ts owner

The root guide is loaded on every session, so a rule restated there is paid for
on every one. `DESIGN_SYSTEM.md` § Styling already carries where a shared skin
belongs, and the #367 story behind it, so this bullet points at it and states
only what is local to `src/lib/` — that `lib/overlay.ts` is its one
presentation module.

The middle sentence also did not parse.

Co-Authored-By: Claude Opus 5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01Mg9rjW2PaUuwu5P2JhyU31
`Select`'s listbox and `Combobox`'s popover each spelled the same six-class
surface — `overflow-hidden rounded-lg border border-gray-6 bg-background
shadow-xl` — so either could have drifted from the other with every gate green.
That is the hazard `menuChrome` addresses one layer up, in the two files the
`BOUNDED` closed list already pairs.

`panelChrome` sits beside `fieldChrome`, in the atom the repo already makes the
home of a skin these same two share. The one real difference becomes a variant:
each picker's width comes from a different Radix popper property, and the select
also scrolls its listbox inside a bounded column.

`atoms/Dropdown` stays out. It spells the same radius and border on a different
background token, so reconciling it changes how one of the two looks — a design
call, not a refactor. The run asserted in `overlay.popper.test.ts` includes the
background token, so Dropdown's panel does not trip it; both new assertions were
watched failing against a Combobox that re-spells the surface.

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

`ItemCheck` is byte-identical in SortMenu and SettingsMenu, and the obstacle to
one home was named as the popper spec's own shape — which is circular, since
this PR edits that spec.

It is not the shape that holds, though, it is the membership rule. A shared
`ItemCheck` renders `DropdownMenu.ItemIndicator`, so it imports a popper package
and owes `BOUNDED` an entry for a module that renders no popper surface.
Narrowing membership from the import to a rendered surface is the one property
that file exists to hold: #169's miss was a call site, and a surface spelled
another way falls straight out of a narrower scan.

So this takes the `src/loader/` seam's answer (#153) — where a boundary forbids
sharing, duplicate and pin both copies. A `w-4` drifting to `w-5` in one menu
now reddens the lane; watched failing before this landed.

Co-Authored-By: Claude Opus 5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01Mg9rjW2PaUuwu5P2JhyU31
…as no margin

The recorded pair was 324.4/326.2 uncredentialed, set when the budget moved to
330 for zod 4. Measured on this branch: standalone 327.0, embed 328.8, loader
2.5 — so with the per-graph Sentry gaps `scripts/AGENTS.md` records, production
derives to 328.1 and 330.0.

`embed` therefore ships at the budget exactly, and no gate can see it: CI builds
uncredentialed, reads 328.8, and passes with 1.2 KiB apparently spare. The
comment now carries the real figures and says so, rather than claiming 330
clears both.

Whether to take space off the eager graph or move the budget is a call for the
reviewer, so neither is done here.

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

Copy link
Copy Markdown
Contributor Author

Four threads, all built or answered. Base merged in clean.

Adopted

Answered differently

  • ItemCheck — BOUNDED's membership on the package import is the obstacle, not the spec's shape, and narrowing it costs more than the duplicate. Both copies pinned identical. 1b2c754

Still yours: the recipe's home.

Gate green, 1965 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 8, 2026
@sydevs-bot
sydevs-bot marked this pull request as ready for review November 8, 2026 02:06
@sydevs-bot
sydevs-bot requested a review from Ardnived November 8, 2026 02:06
@sydevs-bot
sydevs-bot enabled auto-merge November 8, 2026 02:06
@sydevs-bot sydevs-bot moved this from Working to Awaiting in SYDevelopers Technical Roadmap Nov 8, 2026
@sydevs-bot

Copy link
Copy Markdown
Contributor Author

Approved, but this thread still waits on you, and the ruleset will not merge until it is resolved: #373 (comment). Reply there, or resolve it.

🤖 sydevs dispatcher

@sydevs-bot sydevs-bot added the bot:working Lock: a cloud session is running on this item. Removed when it ends. label Nov 8, 2026
@sydevs-bot sydevs-bot moved this from Awaiting to Working in SYDevelopers Technical Roadmap Nov 8, 2026
The home question on #373 was answered B: the shared skin belongs in the
atom that owns the chrome, as `controlSurface`, `fieldChrome`, `panelChrome`
and `listRow` all do. So `menuChrome` leaves `src/lib/overlay.ts`, which
keeps the frame, the portal target and the collision boundary — the three
things it holds state for.

`atoms/Menu/` holds no component, and the skin is why there is nothing else
to share: each menu composes Radix DropdownMenu differently (a radio group,
a radio group with submenus, a column of link-outs), so an atom wrapping the
primitive would have to model all three. `Icons/` is the other folder in that
tier without a component. Its story opens all three variants at once, which
no live menu's story can do.

The skin assertions stay in `lib/overlay.popper.test.ts`, beside `BOUNDED`
and the panel block, so one file still answers which popper surfaces exist
and which skin each reads. Both of its defect checks were watched failing
against the new home.

One per-edit cost comes with the move: a skin edit selected five specs
through co-location with `overlay.ts` and now selects none, the same cost
`fieldChrome` and `panelChrome` already carry in `atoms/Select`. The lean
gate and CI still refuse a drift.

The eager pair is re-measured on this build: standalone 326.8, embed 328.6
uncredentialed, so `embed` derives to 329.8 of 330 rather than the 330.0 the
previous commit recorded.

Co-Authored-By: Claude Opus 5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01Mg9rjWjtQzG3EwveELeqaA
@sydevs-bot
sydevs-bot added this pull request to the merge queue Nov 8, 2026
@sydevs-bot

Copy link
Copy Markdown
Contributor Author

Answered B, and built.

Adopted

  • The recipe's home — menuChrome is in atoms/Menu, the atom that owns the chrome, as fieldChrome and listRow are. lib/overlay.ts keeps the frame, the portal target and the collision boundary. The folder holds no component: each menu composes Radix differently, so one would have to model all three. 04a2b23

The skin block in lib/overlay.popper.test.ts names the new home, watched failing both ways — a menu re-spelling the skin, and the run left behind in lib/overlay.ts.

Two figures in the body moved with it: the eager pair re-measured at 326.8/328.6 uncredentialed, so embed derives to 329.8 of 330 rather than the budget exactly; and a skin edit now selects no spec per edit, the cost fieldChrome already carries.

Gate green, 1965 tests. No thread left open.

🤖 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 8, 2026
@sydevs-bot sydevs-bot moved this from Working to Pending in SYDevelopers Technical Roadmap Nov 8, 2026
Merged via the queue into main with commit 3d91143 Nov 8, 2026
29 checks passed
@sydevs-bot
sydevs-bot deleted the claude/fix-367-captcha-slot branch November 8, 2026 22:08
@sydevs-bot sydevs-bot moved this from Pending to Done in SYDevelopers Technical Roadmap Nov 8, 2026
sydevs-bot pushed a commit that referenced this pull request Nov 9, 2026
The entry tells a host that most visitors now see no security check at all, and
stopped at the box closing. The form kept a row's worth of space where the box
would have been, which a visitor sees as a gap above the submit button, so the
entry overstated itself until that was fixed.

Credited to #371, which added `collapseSlot` and takes the slot out of its
column while the frame is collapsed. #373 carries the gap in its title but not
in its diff: it touched no form, and removed only the dead `interactive` flag
the hook had stopped needing once #371 wrote the slot itself.

Co-Authored-By: Claude Opus 5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01Mg9rjYDVNUh4RFz7MsjyV8
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(registration): give the collapsed captcha slot no gap of its own

3 participants