Skip to content

feat(translations): add countries.browse_heading and online.subtitle to the atlas translations - #1273

Merged
Ardnived merged 4 commits into
mainfrom
feat/atlas-countries-browse
Nov 25, 2026
Merged

Ardnived merged 4 commits into
mainfrom
feat/atlas-countries-browse

Conversation

@Ardnived

@Ardnived Ardnived commented Nov 25, 2026 •

Copy link
Copy Markdown
Contributor

Summary

  • sy-atlas-translations declares countries.browse_heading, "Or browse by country": the grey heading between the Online classes row and the country list on the atlas first screen.
  • It also declares online.subtitle, "Join from anywhere": the short line under the Online classes row.
  • Producer half of SahajAtlasWeb's Online-classes change, which consumes both and runs pnpm sync:translations --write once this is deployed.

Change outline

Contract — sy-atlas-translations

Two keys added, each in an existing group. Each declares its own English as a default, so data.en.json carries neither, as for place_title in #1268.

 countries                  src/globals/SahajAtlasTranslations/translationsSchema.json
   title
+  browse_heading           # small section heading above the country list, after the Online classes row
+                           #   default "Or browse by country" (sentence case; the widget uppercases it)
   place_title
 online
   title
+  subtitle                 # short line under the Online classes row on the Countries list
+                           #   default "Join from anywhere"

The nine other locale seeds (seeds/sy-atlas-translations/data.<locale>.json) each gain both keys beside their group's title. src/payload-types.ts is regenerated: SyAtlasTranslationsCountriesStrings.browse_heading?: string and SyAtlasTranslationsOnlineStrings.subtitle?: string.

Preview

No preview surface

Contract impact

  • SahajAtlasWeb: reads countries.browse_heading and online.subtitle in its Online-classes change. After this merges and Railway has booted the deploy, pnpm sync:translations --write pulls the English from production into src/config/translations.en.json. It reads production, so run it only after that boot.
  • Generated types: pnpm types:cms in SahajAtlasWeb and WeMeditateWeb picks up the two new optional fields from main. Nothing is removed or renamed.

Test results

  • Lean gate: ✓ lint, format check, typecheck (src and tests), unit lane (294 files, 3916 tests)
  • Targeted specs: tests/unit/atlas-translations-schema.spec.ts (in the unit lane); tests/int/translations-english-defaults.int.spec.ts and tests/int/translations-globals.int.spec.ts, 41 passed; seeds/tests/atlas-translations-import.test.ts, 9 passed
  • Build: N/A
  • Security review: skipped, no path matched securityReview.triggerPattern

Notes for reviewer

  • No migration. Each leaf group is one jsonb column, so an added key needs no DDL. feat(translations): add the inline embed's strings, drop the compact tab #1268 had one because it retired a tab.
  • English reaches production with no write. reconcileEnglishDefaults fills each absent key from onInit on every boot.
  • The nine translations do not. Seed files reach only a fresh database, and every non-English locale falls back to English until its value is entered or imported, which is a production data write this PR does not make.
  • Read inline: the review skill reads the session's working tree, which was another repo's checkout, so no review agent covered this diff.
Detail

Machine translations, sentence case like the neighbouring title strings:

Locale countries.browse_heading online.subtitle
cs Nebo procházejte podle země Připojte se odkudkoli
de Oder nach Land stöbern Von überall teilnehmen
en (schema default) Or browse by country Join from anywhere
es O explora por país Únete desde cualquier lugar
fr Ou parcourez par pays Rejoignez de n’importe où
hu Vagy böngéssz ország szerint Csatlakozz bárhonnan
nl Of blader per land Doe mee vanaf elke plek
pt-BR Ou navegue por país Participe de qualquer lugar
ru Или выберите страну Присоединяйтесь откуда угодно
uk Або оберіть країну Приєднуйтесь звідусіль

🤖 Generated with Claude Code

The section heading between the Online classes row and the country list.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@railway-app
railway-app Bot temporarily deployed to sahajcloud / SahajCloud-pr-1273 November 25, 2026 20:01 Destroyed
@railway-app

railway-app Bot commented Nov 25, 2026 •

Copy link
Copy Markdown

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

Service Status Web Updated
SahajCloud 😴 Sleeping (View Logs) Web Nov 25, 2026 at 9:14 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

recent dispatches
  • 20:38Z resolve-conflicts · attempt 1 · session · done
  • 20:38Z resolve-conflicts · attempt 1 · session
  • 20:26Z address-review · attempt 1 · session · done
  • 20:26Z address-review · attempt 1 · session
  • 20:17Z review-pr · attempt 1 · session · done

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

@sydevs-dispatcher sydevs-dispatcher Bot added the bot:working Lock: a cloud session is running on this item. Removed when it ends. label Nov 25, 2026
@sydevs-dispatcher sydevs-dispatcher Bot moved this from Pending to Working in SYDevelopers Technical Roadmap Nov 25, 2026
The line under the Online classes row.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@railway-app
railway-app Bot temporarily deployed to sahajcloud / SahajCloud-pr-1273 November 25, 2026 20:23 Destroyed
@Ardnived Ardnived changed the title feat(translations): add countries.browse to the atlas translations feat(translations): add countries.browse and online.subtitle to the atlas translations Nov 25, 2026

@sydevs-bot sydevs-bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

🧐 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 existing browse* 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) and online.title — distinct surfaces. 5 leaves declare a default.
  • englishDefaults.ts and translationsField.ts: default stays out of the Ajv schema and reaches a live database through reconcileEnglishDefaults, so data.en.json carrying none is correct.
  • Consumer: SahajAtlasWeb main reads neither key, and its translations.en.json holds countries.title alone. "The widget uppercases it" is not true there yet — uppercase appears only on Chip.
  • Every path the body cites exists on the branch, and fixture.surfacePaths in .claude/workflow.json lists no src/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

@sydevs-bot sydevs-bot removed the bot:working Lock: a cloud session is running on this item. Removed when it ends. label Nov 25, 2026
@sydevs-dispatcher sydevs-dispatcher Bot added the bot:working Lock: a cloud session is running on this item. Removed when it ends. label Nov 25, 2026
`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
@sydevs-bot sydevs-bot changed the title feat(translations): add countries.browse and online.subtitle to the atlas translations feat(translations): add countries.browse_heading and online.subtitle to the atlas translations Nov 25, 2026
@sydevs-bot

Copy link
Copy Markdown
Contributor

Both review threads addressed. The branch was level with origin/main, so there was no merge.

Adopted — naming. countries.browse is now countries.browse_heading, in 40699db, across the schema, the nine locale seeds and payload-types.ts. No call site moved. SahajAtlasWeb main reads neither name, and no open PR there consumes it.

Rebutted — seed coverage. The nine seeds omit 74 of the schema's 253 seedable keys, so a default does not decide whether a locale carries a key. The three keys named are 3 of those 74, not a gap these two open. Dropping the seed edits would cost nine locales a heading we have.

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

@sydevs-bot sydevs-bot removed the bot:working Lock: a cloud session is running on this item. Removed when it ends. label Nov 25, 2026
@sydevs-dispatcher sydevs-dispatcher Bot moved this from Working to Pending in SYDevelopers Technical Roadmap Nov 25, 2026
@railway-app
railway-app Bot temporarily deployed to sahajcloud / SahajCloud-pr-1273 November 25, 2026 20:37 Destroyed
@sydevs-dispatcher sydevs-dispatcher Bot added the bot:working Lock: a cloud session is running on this item. Removed when it ends. label Nov 25, 2026
@sydevs-dispatcher sydevs-dispatcher Bot moved this from Pending to Working in SYDevelopers Technical Roadmap Nov 25, 2026
@Ardnived
Ardnived enabled auto-merge November 25, 2026 20:40
#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
@sydevs-bot

Copy link
Copy Markdown
Contributor

Merged main in and resolved one conflict, in src/globals/SahajAtlasTranslations/translationsSchema.json.

#1267 reworded online.title's description to name Back rather than the peek strip, on the line this branch added online.subtitle below. I kept main's wording and this branch's new key.

src/payload-types.ts merged on its own, and both interfaces match the resolved schema. The merge changes nothing else against main.

Lean gate passed: 294 files, 3916 tests. translations-english-defaults and translations-globals integration specs passed, 41 tests. seeds/tests/atlas-translations-import.test.ts passed, 9 tests.

🤖 Written by the sydevs autonomous loop — see what this is


Generated by Claude Code

@sydevs-bot sydevs-bot removed the bot:working Lock: a cloud session is running on this item. Removed when it ends. label Nov 25, 2026
@railway-app
railway-app Bot temporarily deployed to sahajcloud / SahajCloud-pr-1273 November 25, 2026 20:46 Destroyed
@sydevs-dispatcher sydevs-dispatcher Bot moved this from Working to Pending in SYDevelopers Technical Roadmap Nov 25, 2026

@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. 🤖 Written by the sydevs autonomous loop — see what this is

@Ardnived
Ardnived added this pull request to the merge queue Nov 25, 2026
@sydevs-dispatcher sydevs-dispatcher Bot moved this from Pending to Awaiting in SYDevelopers Technical Roadmap Nov 25, 2026
Merged via the queue into main with commit 4aeb073 Nov 25, 2026
19 checks passed
@Ardnived
Ardnived deleted the feat/atlas-countries-browse branch November 25, 2026 21:17
@sydevs-dispatcher sydevs-dispatcher Bot moved this from Awaiting to Done in SYDevelopers Technical Roadmap Nov 25, 2026
sydevs-dispatcher Bot pushed a commit to sydevs/SahajAtlasWeb that referenced this pull request Nov 25, 2026

This branch was successfully deployed

No deployments
sahajcloud / SahajCloud-pr-1273 — a304cdee 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.

3 participants