Skip to content

feat(translations): add the Atlas registration captcha-blocked message to sy-atlas-translations - #1272

Merged
Ardnived merged 1 commit into
mainfrom
feat/atlas-captcha-blocked-copy
Nov 25, 2026
Merged

Ardnived merged 1 commit into
mainfrom
feat/atlas-captcha-blocked-copy

Conversation

@Ardnived

Copy link
Copy Markdown
Contributor

Summary

  • Adds registration.form.captcha_blocked to sy-atlas-translations, for the Atlas sign-up form.
  • It shows above "Try again", with Register disabled, when the hidden Turnstile check fails to load.
  • English ships as a schema default, so the deploy's boot fills production with no migration.

Change outline

Contract — sy-atlas-translations

One new key in the Registration tab's form group. The widget in sydevs/SahajAtlasWeb reads it. A locale that omits it is served English by the client read.

 registration.form                    src/globals/SahajAtlasTranslations/translationsSchema.json
   captcha_retry
+  captcha_blocked                    default "We couldn't load the security check, so you can't register just yet."
   subscribe

Preview

No preview surface

Contract impact

  • Consumer: sydevs/SahajAtlasWeb. It reads registration.form.captcha_blocked from the sy-atlas-translations API.
  • Generated types. src/payload-types.ts gains an optional captcha_blocked field. A copied contract is re-synced in a bot PR after this merges (pnpm types:cms in each consumer).
  • common.errors.captcha_blocked is untouched. The deployed widget still reads it. The Atlas PR marks it retiring. A follow-up PR drops it here once that has deployed. Retiring a key is a data migration, per src/globals/AGENTS.md.

Test results

  • Lean gate: ✓ (.claude/skills/pr-prep/check.sh: lint, format, typecheck of src and tests, 294 unit files, 3916 tests)
  • Targeted specs: atlas-translations-schema, translations-english-defaults and translations-no-a11y unit specs pass, 81 tests in all with the check below.
  • Not committed: a throwaway int spec ran reconcileEnglishDefaults against a real database for this global. It filled the key in English on the main row and the latest version row, wrote nothing into fr, and kept an editor's value across two runs. feat(translations): declare a key's English in the schema, reconciled on boot #1218's own int spec covers wm-web-translations only.
  • Build: N/A

Manual verification

  1. After the deploy, open Atlas translations, Registration, in English. The key shows the English text, filled by the boot.

Notes for reviewer

  • Tiny diff, read inline.
  • No data migration. src/globals/AGENTS.md ("A key's English is declared beside it, as default") and src/migrations/AGENTS.md ("A new translation key needs no migration at all") retired the hand-written one per key. feat(translations): add the inline embed's strings, drop the compact tab #1268 shipped the atlas's last three keys this way.
  • No line in seeds/sy-atlas-translations/data.en.json. The corpus must not carry a key that declares a default, and atlas-translations-schema.spec.ts holds that.
  • Visible text, so it lives here. It is not screen-reader-only, so the no-a11y rule that keeps spoken-only strings in the Atlas repo does not apply.
Detail

🤖 Generated with Claude Code

…e to sy-atlas-translations

`registration.form.captcha_blocked` is the line the Sahaj Atlas sign-up form
shows above its "Try again" button, with Register disabled, when the hidden
Turnstile check fails to load (sydevs/SahajAtlasWeb). It is visible text, so
it belongs here and not in the widget's screen-reader-only set. Browsing the
rest of the Atlas still works in that state.

The English is declared as `default` beside the key, the convention #1218
set and #1268 followed for the atlas keys before it: the deploy's own boot
delivers it through `reconcileEnglishDefaults`, so production needs no
hand-written data migration and the corpus file carries no copy of it.
Checked against a real database for this global: the key lands on the main
row and the latest version row, English only, and a stored value is kept.

`common.errors.captcha_blocked` stays: the deployed widget still reads it,
and a follow-up drops it once the widget stops.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@railway-app

railway-app Bot commented Nov 25, 2026 •

Copy link
Copy Markdown

🚅 Deployed to the SahajCloud-pr-1272 environment in sahajcloud

Service Status Web Updated
SahajCloud ✅ Success (View Logs) Web Nov 25, 2026 at 8:21 pm UTC
1 service not affected by this PR
  • mailpit

@sydevs-dispatcher

sydevs-dispatcher Bot commented Nov 25, 2026 •

Copy link
Copy Markdown

🤖 no session running

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

@sydevs-dispatcher sydevs-dispatcher Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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

@sydevs-dispatcher

Copy link
Copy Markdown

Adversarial review skipped: 2 file(s), 9 changed line(s), under review.skipWhen. Say @sydevs-bot review to force one.

🤖 sydevs dispatcher

This branch was successfully deployed

No deployments
sahajcloud / SahajCloud-pr-1272 — e702ca2b Deployed Nov 25, 2026 by railway-app[bot]
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.

1 participant