Repository navigation
Description
Summary
Since #366 the captcha frame is 0px tall until Cloudflare asks for a click, which is the state most visitors now see. The frame is still a flex item, so it keeps consuming its column's gap on both sides: RegistrationForm shows about 24px of blank where 12px belongs. ReportIssueForm cancels the same gap by hand with a negative margin, so the two forms space one shared slot two different ways.
Approach
One owner for the collapsed slot
useTurnstile publishes interactive (src/hooks/use-turnstile.ts:219) only so each caller can patch its own column gap, and the two callers patch it differently:
src/components/organisms/RegistrationForm/RegistrationForm.tsx:387—className={interactive ? 'mt-4' : undefined}, in the form'sgap-3column (:339). Nothing cancels the gap, so the collapsed slot costs 12px.src/components/organisms/ReportIssueForm/ReportIssueForm.tsx:498—className={interactive ? undefined : '-mt-4'}, in agap-4column (:475), which does cancel it.
Each spelling hardcodes its own parent's gap value, which is how the registration one was missed. Move the collapse to the one place that already owns the slot: the hook holds challengeRef, and already toggles the frame's height where it handles interactive and settled (src/hooks/use-turnstile.ts:260 and :264). Setting the wrapper's own block margin there leaves no form reading interactive, and a third caller cannot get it wrong.
Keep the 0px frame rather than display: none. probeTurnstile deliberately avoids display: none for its own frame, to stay close to the frame a form mounts (src/hooks/use-turnstile.ts:185).
AddToCalendar follow-ups
All in src/components/molecules/AddToCalendar/AddToCalendar.tsx:
:55and:57— themenuanditemclass strings are now a third copy.SortMenuandSettingsMenucarry the same pair, and SortMenu's comment justifying the duplication still says "the two menus". They have already drifted:min-w-56againstmin-w-44,px-3againstpx-2. Hoist the shared surface and row classes to one export, and leave only the per-menu difference local.src/lib/overlay.tsalready owns the Radix-popper concerns for these three files, andsrc/lib/overlay.popper.test.tsalready pins the call-site list.:40—downloadEventIcsis exported, but nothing outside the file imports it, and it was a local closure before feat(registration): tidy the confirmation screen, one calendar menu, hidden captcha #366. Make it local again.calendarLinkTargetskeeps its export, which the spec reads.:90— the comment states that the accessible name contains the visible label (WCAG 2.5.3), but thearia-labelit describes is gone: the name is now simply the row's text. Delete the comment.
Acceptance criteria
- With the challenge collapsed,
RegistrationFormspaces the slot exactly as if it were absent — no extra blank band between the fields and what follows. - With the challenge open, both forms space the 300x65 frame identically.
- No form hardcodes a gap value for the slot; either neither reads
interactive, or both read one shared spelling. -
AddToCalendar,SortMenuandSettingsMenuread their dropdown surface and row classes from one place. -
downloadEventIcsis not exported. - The WCAG comment above the Apple Calendar row is gone.
Verification checklist
- A spec pins the collapsed slot's contributed height at 0 for both forms, watched failing before the fix.
-
pnpm test:run src/hooks/use-turnstile.test.tsx src/components/molecules/AddToCalendar/AddToCalendar.test.tsx src/lib/overlay.popper.test.ts -
.claude/skills/pr-prep/check.sh - In Ladle, open the sort menu and the add-to-calendar menu: same surface radius, border, shadow and row height.
- On the register route with a challenge that never turns interactive, no blank band sits between the last field and the buttons; with one that does, the 300x65 frame is spaced as before.
Notes
- Found reviewing feat(registration): tidy the confirmation screen, one calendar menu, hidden captcha #366, which merged before the review could post, so these never reached a review thread.
- feat(registration): tidy the confirmation screen, one calendar menu, hidden captcha #366 also defers two copy edits to SahajCloud's
sy-atlas-translations(registration.form.followup,registration.form.online_notice). Until they land, the merged confirmation notice reads "You will receive an email confirmation shortly" above "The link to this class will be emailed to you." — "emailed" twice, with the former "Online Session" title gone. That is the author's own pending work, named in feat(registration): tidy the confirmation screen, one calendar menu, hidden captcha #366, and not part of this ticket.
Metadata
Metadata
Assignees
Labels
Type
Fields
Priority
Hold Until
Projects
- StatusShow more project fieldsDone
Activity
fix(search): embed, search and navigation fixes from the 6 Nov bug sw…
Ardnived commentedon Nov 7, 2026
@sydevs-bot implement
sydevs-bot commentedon Nov 7, 2026
🤖 no session running
approved by Ardnived
recent dispatches
Written by the sydevs dispatcher. Sessions never edit this comment.
docs(agents): say the overlay rule once, and leave the skin rule to i…
fix(deps): raise the eager-payload budget to 336 KiB