Repository navigation
feat(atlas): render the challenge interaction-only, and say when it needs a click - #1090
Merged
Merged
Conversation
…eeds a click The atlas challenge page now renders Turnstile with `appearance: 'interaction-only'`, so most visitors never see it. It posts two new messages to the parent: `interactive` before Cloudflare asks for a click, and `settled` after. The widget uses them to keep its frame collapsed until then. Backward compatible: the deployed widget ignores unknown message types and keeps its fixed 300×65 frame, so this can ship before the widget change. Co-Authored-By: Claude Opus 5.5 <[email protected]>
railway-app
Bot
temporarily deployed
to
sahajcloud / SahajCloud-pr-1090
November 6, 2026 16:10
Destroyed
|
🚅 Deployed to the SahajCloud-pr-1090 environment in sahajcloud
1 service not affected by this PR
|
sydevs-bot
enabled auto-merge
November 6, 2026 16:24
Ardnived
disabled auto-merge
November 6, 2026 16:28
Ardnived
added a commit
to sydevs/SahajAtlasWeb
that referenced
this pull request
Nov 6, 2026
…hidden captcha (#366) - One notice under the event summary: the confirmation email, plus the join link for an online class. - "Add to calendar" is one button opening a menu of providers, sharing a row with a grey "Okay". - Closing the native share sheet keeps the Share button. Only a sheet that cannot open reveals the fallback grid (AbortError vs NotAllowedError). - The captcha frame stays collapsed until Cloudflare asks for a click, on the registration and report forms (sydevs/SahajCloud#1090). Co-authored-by: Claude Opus 5.5 <[email protected]>
This branch was successfully deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Most visitors should never see the captcha on the atlas registration and report forms. The challenge page (
GET /api/atlas/challenge) now renders Turnstile withappearance: 'interaction-only', so it stays invisible unless Cloudflare needs a click. It also tells the widget when that happens:interactivebefore-interactive-callbacksettledafter-interactive-callbackCross-repo contract
⚠ This extends the protocol with sydevs/SahajAtlasWeb's
src/hooks/use-turnstile.ts. It is safe to ship first: the deployed widget ignores unknown message types (readChallengeEventreturnsnull) and keeps its fixed 300×65 frame, which now sits blank unless a challenge is interactive. The consumer change rides on the SahajAtlasWeb branchfeat/registration-confirmation-ux.Testing
pnpm test:unit tests/unit/atlas-challenge.spec.ts tests/unit/csp-frame-src.spec.ts— 55 passed, including a new spec for the two messages and theappearanceoption🤖 Generated with Claude Code