Repository navigation
feat(translations): add countries.browse_heading and online.subtitle to the atlas translations - #1273
Conversation
The section heading between the Online classes row and the country list. Co-Authored-By: Claude Opus 5.5 <[email protected]>
|
🚅 Deployed to the SahajCloud-pr-1273 environment in sahajcloud
1 service not affected by this PR
|
|
🤖 no session running recent dispatchesWritten by the sydevs dispatcher. Sessions never edit this comment. |
The line under the Online classes row. Co-Authored-By: Claude Opus 5.5 <[email protected]>
sydevs-bot
left a comment
There was a problem hiding this comment.
🧐 Adversarial review
Two keys, declared where the schema says a key's English goes, with the nine seeds and payload-types.ts following them. Nothing is smuggled in and no code changes: buildTranslationTabs derives the admin field from the JSON, so neither needs DDL or a migration, as the body claims. Producer-first is the right order — SahajAtlasWeb main has no reader for either key yet, so sync:translations has nothing to pull until this deploys. Both findings are a name and a convention, not the shape.
Findings
should-fix— a heading named like a control, beside an existingbrowse*key:translationsSchema.json:286.consider— three other defaulted keys carry no non-English seed entry, so these nine edits either set a convention or are dead weight:data.cs.json:78.
What was checked
- Diff read whole from
origin/main...origin/<branch>(11 files, +54/-18).new-pieces.mjs:NONE, so no streamliner ran. - Walked every schema leaf for a key this duplicates. The near neighbours are
common.errors.browse_countries("Browse all countries", the error-fallback link) andonline.title— distinct surfaces. 5 leaves declare adefault. englishDefaults.tsandtranslationsField.ts:defaultstays out of the Ajv schema and reaches a live database throughreconcileEnglishDefaults, sodata.en.jsoncarrying none is correct.- Consumer: SahajAtlasWeb
mainreads neither key, and itstranslations.en.jsonholdscountries.titlealone. "The widget uppercases it" is not true there yet —uppercaseappears only onChip. - Every path the body cites exists on the branch, and
fixture.surfacePathsin.claude/workflow.jsonlists nosrc/globals/, so "No preview surface" holds. - Profile read. No question threads. The body notes no author-side review covered this diff.
🤖 Written by the sydevs autonomous loop — see what this is
Generated by Claude Code
`countries.browse` read like a control key — the schema keeps a bare verb for one (`common.map.expand`, `common.map.close`) and a role for text (`title`, `place_title`, `*_heading`). `common.errors.browse_countries` already holds `browse` for the onward link, so the two sat one group apart with unrelated jobs. Nothing reads the key yet: SahajAtlasWeb `main` has no call site and no open PR there consumes it, so the rename costs its consumer nothing. Co-Authored-By: Claude Opus 5 <[email protected]> Claude-Session: https://claude.ai/code/session_01Mg9rjWQDVMBru3gqQ85iWE
|
Both review threads addressed. The branch was level with Adopted — naming. Rebutted — seed coverage. The nine seeds omit 74 of the schema's 253 seedable keys, so a Gate green: lint, format, both typechecks, unit lane 3916 tests. The three targeted integration specs pass, 50 tests. 🤖 Written by the sydevs autonomous loop — see what this is Generated by Claude Code |
#1267 reworded every "peek-strip name" description to name Back instead, including `online.title`, on the line this branch added `online.subtitle` below. Kept main's wording and this branch's new key. Co-Authored-By: Claude Opus 5 <[email protected]> Claude-Session: https://claude.ai/code/session_01Mg9rjWQHx3cC1KcdquFkiU
|
Merged #1267 reworded
Lean gate passed: 294 files, 3916 tests. 🤖 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. 🤖 Written by the sydevs autonomous loop — see what this is
Summary
sy-atlas-translationsdeclarescountries.browse_heading, "Or browse by country": the grey heading between the Online classes row and the country list on the atlas first screen.online.subtitle, "Join from anywhere": the short line under the Online classes row.pnpm sync:translations --writeonce this is deployed.Change outline
Contract —
sy-atlas-translationsTwo keys added, each in an existing group. Each declares its own English as a
default, sodata.en.jsoncarries neither, as forplace_titlein #1268.The nine other locale seeds (
seeds/sy-atlas-translations/data.<locale>.json) each gain both keys beside their group'stitle.src/payload-types.tsis regenerated:SyAtlasTranslationsCountriesStrings.browse_heading?: stringandSyAtlasTranslationsOnlineStrings.subtitle?: string.Preview
No preview surface
Contract impact
countries.browse_headingandonline.subtitlein its Online-classes change. After this merges and Railway has booted the deploy,pnpm sync:translations --writepulls the English from production intosrc/config/translations.en.json. It reads production, so run it only after that boot.pnpm types:cmsin SahajAtlasWeb and WeMeditateWeb picks up the two new optional fields frommain. Nothing is removed or renamed.Test results
tests/unit/atlas-translations-schema.spec.ts(in the unit lane);tests/int/translations-english-defaults.int.spec.tsandtests/int/translations-globals.int.spec.ts, 41 passed;seeds/tests/atlas-translations-import.test.ts, 9 passedsecurityReview.triggerPatternNotes for reviewer
reconcileEnglishDefaultsfills each absent key fromonIniton every boot.Detail
Machine translations, sentence case like the neighbouring
titlestrings:countries.browse_headingonline.subtitle🤖 Generated with Claude Code