Repository navigation
chore(translations): drop the retired common.errors.captcha_blocked atlas key - #1280
Conversation
…tlas key The widget no longer renders the full-page security-check error (sydevs/SahajAtlasWeb#490); the registration form's own registration.form.captcha_blocked (#1272) replaces it. Translators were still asked to fill the old key in every locale. Removes it from the schema, the ten seed files and the generated types, and adds a data migration sweeping the stored copy out of common_errors on the main and every version row, since the group declares additionalProperties: false and a leftover would refuse every later save. Uses the shared dropEnglishKey helper. down restores nothing: the old schema declares the key but requires none. Closes #1278 Co-Authored-By: Claude Opus 5.5 <[email protected]>
|
🚅 Deployed to the SahajCloud-pr-1280 environment in sahajcloud
1 service not affected by this PR
|
sydevs-bot
left a comment
There was a problem hiding this comment.
🧐 Adversarial review
The diff is the size of the ticket: one key out of the schema, ten seeds, the generated type, a data-only sweep. No layer is added — dropEnglishKey is reused over hand-written SQL, and the .json is re-stamped as src/migrations/AGENTS.md asks. Dropping the ticket's step 3 was right: those counts are floors.
Ordering is the live risk and the body names it: #490 is open, and Fallbacks.tsx:257 on its main still reads this key. ## Contract impact names one of two consumers though: WeMeditateWeb commits the same generated file, and its copy carries the key at types/payload/payload-types.ts:8993.
Findings
should-fix—scripts/audit-challenge-parents.ts:5still says a refused parent makes the widget showerror.captcha_blocked"in place of the whole atlas". #490 removes that screen, so the header describes a system now gone. No thread: the file is outside the diff.should-fix—tests/int/atlas-drop-captcha-blocked.int.spec.ts:8cites a precedent that does not exist.consider— the spec's second case re-pinsenglish-key-backfill.int.spec.ts.
What was checked
Read whole on the branch: the migration, englishKeyBackfill.ts and its spec, the new spec, the common.errors group (additionalProperties: false, 15 keys left), atlas-translations-schema.spec.ts. new-pieces.mjs: NONE — no streamliner ran, and the ladder had no piece or dependency to walk. Snapshot byte-identical to 20261125_191844_merge_snapshot_heal, id included, as 035055/035100 was. Consumers followed: Fallbacks.tsx, use-turnstile-guard.ts, SahajAtlasWeb's RETIRING_KEYS, WeMeditateWeb's types. git grep captcha_blocked: one leftover, above; registration.form.captcha_blocked untouched. Every path the body names exists. No ## Preview owed, nothing under fixture.surfacePaths, no question threads.
🤖 Written by the sydevs autonomous loop — see what this is
Generated by Claude Code
`atlas-drop-time-in-place` names nothing in this repo: the migration was squashed away, and it never had a spec, so it was never prior art for importing a migration's `up`. The `withSchema` sentence carries the whole why on its own. Co-Authored-By: Claude Opus 5 <[email protected]> Claude-Session: https://claude.ai/code/session_01Mg9rjVGVci3ZHbyqR2fem6
The header described `error.captcha_blocked` replacing the whole atlas. sydevs/SahajAtlasWeb#490 retires that screen: the atlas renders, and only registration and issue reports are refused. Co-Authored-By: Claude Opus 5 <[email protected]> Claude-Session: https://claude.ai/code/session_01Mg9rjVGVci3ZHbyqR2fem6
The retired screen replaced the whole atlas. sydevs/SahajAtlasWeb#490 leaves the atlas rendering and refuses only registration and issue reports, so the line beside the challenge gate said more than is true. Co-Authored-By: Claude Opus 5 <[email protected]> Claude-Session: https://claude.ai/code/session_01Mg9rjVGVci3ZHbyqR2fem6
|
Addressed the critic's three findings. Adopted
Rebutted
Gate green, plus 🤖 Written by the sydevs autonomous loop — see what this is Generated by Claude Code |
There was a problem hiding this comment.
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
Summary
common.errors.captcha_blockedfromsy-atlas-translations, so translators stop being asked for copy nothing displays.scripts/audit-challenge-parents.ts's header anddocs/rules/api-clients.md's challenge-gate note.Change outline
Schema and corpus
translationsSchema.json:common.errors.captcha_blockedremoved.registration.form.captcha_blocked(feat(translations): add the Atlas registration captcha-blocked message to sy-atlas-translations #1272) is untouched.seeds/sy-atlas-translations/data.*.json: the key's line removed.src/payload-types.ts: the one matching hunk.Prose the dropped key made stale
scripts/audit-challenge-parents.ts: a refused parent now costs registration and issue reports, not the atlas.docs/rules/api-clients.md: the same correction beside the challenge gate.tests/int/atlas-drop-captcha-blocked.int.spec.ts: drops a citation of a migration squashed away.Data migration
20261125_230000_atlas_drop_captcha_blockedcallsdropEnglishKeyoncommon_errors, insy_atlas_translations_localesand_sy_atlas_translations_v_locales, every locale and version row.Contract impact
Generated Payload types lose one field. SahajAtlasWeb re-syncs its snapshot (
pnpm sync:translations --write, then delete itsRETIRING_KEYSentry) after this merges.Migration
src/migrations/20261125_230000_atlas_drop_captcha_blocked.tscommon_errorsJSON column in the main and versions tables; the.jsonis the prior snapshot re-stamped.downis a no-op. The old schema declares the key but requires none, so a rolled-back database is accepted. The ten stored values are not restored.Test results
.claude/skills/pr-prep/check.sh), re-run on the merged base: ✓ lint, format, typecheck, 294 unit files / 3924 testsatlas-translations-schemaandtranslations-no-a11y69 passed; newatlas-drop-captcha-blocked.int.spec.ts2 passed (fails with the stale key, passes afterup)Notes for reviewer
origin/mainis merged in, so the gate above ran on the merged tree.Merge only after sydevs/SahajAtlasWeb#490 is merged and deployed: the live widget reads this key until then. The key-count assertions in
atlas-translations-schema.spec.tsneeded no edit; they passed unchanged.Closes #1278
🤖 Generated with Claude Code