Skip to content

feat(translations): seed atlas landing-page SEO copy in ten locales - #781

Merged
sydevs-bot merged 8 commits into
mainfrom
claude/feat-778-atlas-seo-copy
Sep 14, 2026
Merged

sydevs-bot merged 8 commits into
mainfrom
claude/feat-778-atlas-seo-copy

Conversation

@sydevs-bot

@sydevs-bot sydevs-bot commented Sep 14, 2026 •

Copy link
Copy Markdown
Contributor

Summary

  • The atlas landing page now has a title and a meta description of its own in all ten locales, instead of the widget's self-label and no description at all.
  • The English coverage test now guards both seo keys, so neither can go missing again.
  • Seeding the group makes it seed-owned, and every description of who owns that copy now says so — the field description an operator reads, and the OpenAPI schema a host reads, included.

Changes

  • seeds/sy-atlas-translations/data.<locale>.json — each gains a seo group. Ten titles, ten descriptions.
  • tests/unit/atlas-translations-schema.spec.ts — drops the seo. exemption from the English coverage check.
  • src/globals/SahajAtlasTranslations/translationsSchema.json — the admin now says the group is seeded, where new copy goes, and that all ten locales carry a description.
  • src/plugins/openapi/customEndpoints.ts — the published title/description schema stops calling the copy operator-written.
  • src/endpoints/atlas/seo/{index,rootStrings,atlasRoute}.ts, src/endpoints/responseTypes.ts — the same claim, in four docblocks.
  • docs/architecture.md, tests/COVERAGE.md, tests/unit/atlas-seo-root-strings.spec.ts, tests/int/atlas-seo.int.spec.ts — claims this branch falsifies.
  • src/payload-types.ts — regenerated. cf2145d edited the schema JSON without it, so the generated docblock still carried main's wording.

Preview

  • Atlas SEO endpoint — preview pending

Test results

  • Lean gate: ✓ pnpm lint, pnpm typecheck, pnpm typecheck:tests, pnpm test:unit (1961 passed), re-run on f3e9aad
  • Targeted specs: tests/int/atlas-seo.int.spec.ts 53 passed, tests/unit/atlas-translations-schema.spec.ts + seeds/tests/atlas-translations-import.test.ts 58 passed
  • Build: N/A — no source behaviour changed

Manual verification

⚠ One thing needs a person, and it is the whole of it: nobody fluent has read these eighteen strings. Nine titles and nine descriptions, each built from fragments that locale's own translator wrote, joined by grammar calls this branch made. They land in a <head> on up to 29 domains.

  1. Czech first. The title says ve vašem okolí where compact.open says ve svém okolí. That is required grammar — svém agrees with the imperative's implied subject, and a verbless title has no subject — and the description, which does have an imperative, correctly reverts to svém. Two deliberate divergences in one locale, from one source string.
  2. Then the register of each description, which follows that locale's own compact.open: du in de, jij in nl, tú in es, vous in fr, ön in hu, vykání in cs. A <head> that addresses a visitor differently from the button below it reads as two voices.
  3. Then the brand. Each description names Sahaja Yoga in that locale's own spelling, taken from registration.questions.experience — Сахаджа-йога in ru and uk, Sahadža jóga in cs, Sahaja Yoga elsewhere.

Notes for reviewer

Your call on the descriptions is in. f3e9aad writes seo.root_description in the nine locales that had none, so every locale the seed covers now carries both keys.

The fallback rule is unchanged, and still #646's. resolveRootStrings never serves English into another locale's <head>. A locale outside these ten still gets description: null and the host writes its own line. This changed the data, not the rule — which is why no source file moved for it.

The copy stays seed-owned. A leaf group is one localized JSON column, replaced wholesale on write (seeds/translations/import.ts:65-73), so a description typed into the admin lasts until the next pnpm seed translations. New wording belongs in seeds/sy-atlas-translations/data.<locale>.json. If you want operators tuning this copy in the CMS instead, say so and seo needs fillBlanks treatment before this is seeded to production — the mechanism already exists two functions away, for emails. That decision is written where the people it binds will read it: the admin field description, the OpenAPI schema, rootStrings.ts's own header, and docs/architecture.md.

Rejected, with a reason, since three review lenses proposed it: seed root_title for English alone and let each locale's widget_label answer the rest. It is cheaper and keeps one copy of the phrase per locale. But a widget's self-label is not a page title — Kostenlose Meditationskurse is the German failure #778 opens with — and "near you" is the search intent a landing page exists for. The cost is accepted and named: nine titles can now drift from the widget_label they were built from.

Detail

Lengths, against the schema's advisory limits. Titles 32–46 of 60, descriptions 119–156 of 160 (French is the longest). Neither field sets strict (src/fields/translationsField.ts:35-40), so an over-length string would still save; these are the widths a result page truncates at.

The titles, and what each is made of.

Locale seo.root_title Built from
en Free Meditation Classes Near You countries.title + compact.open
cs Bezplatné kurzy meditace ve vašem okolí countries.title + compact.open
de Kostenlose Meditationskurse in deiner Nähe countries.title + compact.open
es Clases gratuitas de meditación cerca de ti countries.title + compact.open
fr Cours de méditation gratuits près de chez vous countries.title + compact.open
hu Ingyenes meditációs órák a közelében common.chrome.widget_label + compact.open
nl Gratis meditatielessen bij jou in de buurt countries.title + compact.open
pt-BR Aulas gratuitas de meditação perto de você countries.title + compact.open
ru Бесплатные занятия медитацией рядом с вами countries.title + compact.open
uk Безкоштовні заняття з медитації поблизу countries.title + compact.open

Hungarian takes widget_label because its countries.title is still the English string — one of 22 values in data.hu.json that never got translated, against at most six in any other locale and none in four of them. Filed as #782; it is not this ticket's to fix.

The descriptions. Each is the English sentence's four clauses, rebuilt from that locale's own strings rather than translated from English: the imperative of compact.open, the brand as registration.questions.experience spells it, the in-person/online pair online.title implies, and common.chrome.all_classes_free as the closing sentence.

Locale seo.root_description Chars
en Find Sahaja Yoga meditation classes and events near you, in person or online, anywhere in the world. Every class is free. 121
cs Najděte ve svém okolí kurzy a akce meditace Sahadža jóga, osobně i online, kdekoli na světě. Všechny lekce jsou zdarma. 119
de Finde Sahaja Yoga Meditationskurse und Veranstaltungen in deiner Nähe, vor Ort oder online, überall auf der Welt. Alle Kurse sind kostenlos. 140
es Encuentra clases y eventos de meditación Sahaja Yoga cerca de ti, presenciales o en línea, en cualquier parte del mundo. Todas las clases son gratuitas. 152
fr Trouvez des cours et des événements de méditation Sahaja Yoga près de chez vous, sur place ou en ligne, partout dans le monde. Tous les cours sont gratuits. 156
hu Találjon Sahaja Yoga meditációs tanfolyamokat és eseményeket a közelében, személyesen vagy online, bárhol a világon. Minden óra ingyenes. 137
nl Vind Sahaja Yoga meditatielessen en evenementen bij jou in de buurt, op locatie of online, overal ter wereld. Alle lessen zijn gratis. 134
pt-BR Encontre aulas e eventos de meditação Sahaja Yoga perto de você, presenciais ou on-line, em qualquer lugar do mundo. Todas as aulas são gratuitas. 146
ru Найдите занятия и мероприятия по медитации Сахаджа-йога рядом с вами, очно или онлайн, в любой точке мира. Все занятия бесплатны. 129
uk Знайдіть заняття та заходи з медитації Сахаджа-йога поблизу, особисто або онлайн, у будь-якій точці світу. Усі заняття безкоштовні. 131

They claim only what the seed already claims. "Every class is free" restates common.chrome.all_classes_free; "in person or online" restates the existence of online.title beside venue events. Nothing about who teaches, or for whom, since no seeded string says it.

Recombining is not copying, and Czech shows it twice. compact.open is an imperative (Najděte kurz ve svém okolí), so its reflexive svém agrees with the implied subject. The title has no verb, so it must read vašem. The description opens with the same imperative, so it reverts to svém. Both are correct, which is exactly why they are worth a native read — a wrong one would look just as plausible.

Verified against a seeded local database on the previous head, and by spec on this one:

  • pnpm seed translations --dry-run reported <locale>:seo — created for all ten.
  • de returned Kostenlose Meditationskurse before this branch and Kostenlose Meditationskurse in deiner Nähe after, which is the defect the ticket opens with.
  • The dry run was not re-run for the nine descriptions — this session has no seed credentials. seeds/tests/atlas-translations-import.test.ts and tests/unit/atlas-translations-schema.spec.ts cover the shape instead: every key is declared, non-blank, and invents no placeholder English lacks.

The coverage assertion was proven to bite. With seo deleted from data.en.json it fails and names seo.root_title and seo.root_description. A removed exemption that guards nothing would have passed either way. It is named data.en.json covers every key seeded from this file, not "every key the seed owns" — the seed does own English emails and event.title through the defaults fillBlanks merges in, and the filter exempts both.

No migration. The seo group is already declared in translationsSchema.json:1070-1085; only the seed data was missing, so no column changes. The description edits there are admin copy and reach the columns not at all — they do reach payload-types.ts, whose docblock is generated from them, which is the drift f3e9aad corrects.

Docs swept, twice. The first sweep corrected docs/architecture.md's "where seo is empty" clause and its ownership sentence, and tests/COVERAGE.md's "operator-written". This round found three more claims the nine descriptions falsify: the admin field description said English only, docs/architecture.md counted titles alone, and src/endpoints/atlas/seo/index.ts:421 still said an operator writes the copy — a survivor of cf2145d.

Security review skipped — no file in the diff matches this repo's securityReview.triggerPattern.

Efficiency, measured rather than assumed: the endpoint still costs one findGlobal per request. widget_label was already seeded in all ten locales, so the second English read was already unreachable for them; this changes which ?? arm wins, not the query count.

Closes #778

🤖 Generated with Claude Code

https://claude.ai/code/session_012tG8ZaLunkn1bEkDRrGDoi

`GET /api/atlas/seo` answers the atlas root from the `seo` group of
`sy-atlas-translations`, and no seed carried that group. Every locale's
root title fell back to its own `common.chrome.widget_label` — the
widget's name for itself, not a page title — and `description` was
`null` everywhere.

Ten titles, one description.

Each title is built from that locale's OWN already-translated strings:
`countries.title` / `common.chrome.widget_label` ("free meditation
classes") plus `compact.open` ("near you"). So a title is a
recombination of copy a translator already wrote, never a sentence this
run invented — "Kostenlose Meditationskurse in deiner Nähe" is both
halves of the German seed, joined.

A description is not. It is new prose, and `resolveRootStrings` refuses
to serve English into another locale's `<head>` on purpose (#646), so
the nine non-English descriptions are left for a translator and the
endpoint keeps sending `null` for them — exactly today's behaviour,
never a half-state. English carries both keys.

`atlas-translations-schema.spec.ts` no longer exempts `seo.` from the
English coverage check, so both keys are guarded from here. Verified
the assertion bites: with `seo` removed from `data.en.json` it fails
and names `seo.root_title` and `seo.root_description`.

Every value is inside the schema's advisory `maxLength` — titles 32-46
of 60, the description 121 of 160. Neither field sets `strict`, so the
limits do not block a save; they are the widths a result page truncates
at.

Verified against a seeded local database: `pnpm seed translations
--dry-run` reports `<locale>:seo — created` for all ten, and
`getRootSeoStrings` then returns each locale's own title with
`description` non-null for `en` and `null` for the other nine.

Refs #778

Co-Authored-By: Claude Opus 5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01BR7nsviQCZzQF2s9JfZ9Pt
The endpoint's own summary said the root `title` "falls back to English
and then to a constant". It has not since #739: `resolveRootStrings`
exhausts the locale first, taking `common.chrome.widget_label` before it
looks at English, so an unwritten locale is named in its own language
rather than in ours. That asymmetry is the module's whole point, and the
summary a reader meets first contradicted it.

Refs #778

Co-Authored-By: Claude Opus 5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01BR7nsviQCZzQF2s9JfZ9Pt
…itten

Review of the branch found three claims this branch falsifies or
duplicates, and one contradiction it introduced.

Falsified. `atlas-seo-root-strings.spec.ts` and `docs/architecture.md`
both said `common.chrome.widget_label` is the live root title "where
`seo` is empty" — true while no seed carried the group, false from the
commit before this one. The hop is not dead: it still answers for a
locale outside the ten, and for one an operator has blanked. Both now
say that instead.

Duplicated. The endpoint docblock enumerated all four fallback hops,
which `rootStrings.ts` already does twice at greater length. Enumerating
it a third time is what let it go stale in the first place, so it now
states the contract a consumer needs — `title` is never blank, and never
another language's while the locale has words of its own — and names
`./rootStrings` as the one place the order lives.

Contradicted. `atlas-translations-schema.spec.ts` calls `seo` not
widget-facing in one test and, since the exemption came off, required it
under a test titled "covers every widget-facing key". Renamed to what it
now checks — every key the seed owns — with the reason stated: English
is the one locale where a blank landing description is an omission
rather than the `null` the endpoint answers with on purpose.

Not taken: seeding `root_title` for English alone and letting each
locale's `widget_label` answer the rest. It is the cheaper change and it
keeps one copy of the phrase per locale, but a widget's self-label is
not a page title — that gap is the defect #778 opens with, and "near
you" is the search intent the landing page is for.

Refs #778

Co-Authored-By: Claude Opus 5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01BR7nsviQCZzQF2s9JfZ9Pt
@railway-app
railway-app Bot temporarily deployed to sahajcloud / SahajCloud-pr-781 September 14, 2026 13:53 Destroyed
@sydevs-bot sydevs-bot added the bot:working Lock: a cloud session is running on this item. Removed when it ends. label Sep 14, 2026
@sydevs-bot

sydevs-bot commented Sep 14, 2026 •

Copy link
Copy Markdown
Contributor Author

🤖 no session running

recent dispatches
  • 17:17Z address-review · attempt 1 · session · done
  • 17:17Z address-review · attempt 1 · session
  • 14:14Z address-review · attempt 1 · session · done
  • 14:14Z address-review · attempt 1 · session
  • 14:04Z adversarial-review · attempt 1 · session · done

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

@sydevs-bot sydevs-bot left a comment

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

🧐 Adversarial review

The diff is the right size for #778. Ten titles, one description, nothing under src/. The stale-claim sweep missed one line, in the file this PR calls canonical.

Two of the ticket's open questions are answered in the PR body, not by the reviewer. Seeding seo makes the group seed-owned, so the seed outranks an operator (question 2). The nine titles were drafted here, not by a translator (question 1). Both arguments are good. Neither call is yours yet.

Findings

  • should-fix — rootStrings.ts:71 still calls the group empty → index.ts:425
  • should-fix — a seed run deletes an operator's description → data.de.json:275
  • consider — nine <head> strings nobody fluent has read → data.cs.json:277
  • consider — the renamed test claims more than it asserts → schema.spec.ts:248

What was checked

Read #778, the diff, rootStrings.ts, translations/import.ts, the seo schema, and seo.php in SahajAtlasWordpress. Titles measure 32–46 against 60, description 121 against 160. Grepped for stale seo claims.
🤖 Written by the sydevs autonomous loop — see what this is


Generated by Claude Code

Comment thread src/endpoints/atlas/seo/index.ts Resolved
@sydevs-bot sydevs-bot added bot:working Lock: a cloud session is running on this item. Removed when it ends. and removed bot:working Lock: a cloud session is running on this item. Removed when it ends. labels Sep 14, 2026
`rootStrings.ts:71` still called the group blank until someone writes it.
Ten seeds in this branch make that false, and the endpoint docblock names
this file as the one place the chain is written down — so the survivor of
the stale-claim sweep sat in the file the sweep pointed at.

Co-Authored-By: Claude Opus 5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01RCPWTjvtu2VS5uNukAeuiE
…ribed

Seeding `seo` in ten locales makes the seed its owner: the importer
replaces the whole group on every run, so a description typed into the
admin is gone on the next `pnpm seed translations`. Nine strings still
told an operator or a host the opposite, and the decision lived only in
the PR body.

The three that make a promise now name the seed file instead — the field
description an operator reads in the admin, the OpenAPI schema a host
reads, and `rootStrings.ts`'s own header, which adds the `fillBlanks`
condition for handing the group back. The other six said
"operator-written" where they meant "lives on sy-atlas-translations".

Co-Authored-By: Claude Opus 5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01RCPWTjvtu2VS5uNukAeuiE
"covers every key the seed owns" claimed more than the filter checks:
the seed does own English `emails` and `event.title`, through the
defaults `fillBlanks` merges in, and the two lines below exempt both.
What the assertion actually covers is the keys this file carries.

Co-Authored-By: Claude Opus 5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01RCPWTjvtu2VS5uNukAeuiE
@railway-app
railway-app Bot temporarily deployed to sahajcloud / SahajCloud-pr-781 September 14, 2026 14:20 Destroyed
@sydevs-bot

Copy link
Copy Markdown
Contributor Author

Addressed the adversarial review — three adopted, one left open. Pushed 02ffc0f.

  • Adopted — rootStrings.ts:71 called the group blank until someone writes it, in the file the docblock names as canonical. Your wording, in 4e1fb08.
  • Adopted — who owns the copy. The admin description, the OpenAPI schema and rootStrings.ts:7 now say seed-owned and name the seed file. Six more docblocks swept. cf2145d.
  • Adopted — the coverage test's name now matches what it asserts. 02ffc0f.
  • Open, for you — the nine titles. Czech's vašem is required grammar, not a slip, which is your point. Manual verification names it.

Lean gate green: lint, both typechecks, 1961 unit 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 Sep 14, 2026
@sydevs-bot
sydevs-bot marked this pull request as ready for review September 14, 2026 14:31
@sydevs-bot
sydevs-bot requested a review from Ardnived September 14, 2026 14:31
@sydevs-bot sydevs-bot added awaiting bot:working Lock: a cloud session is running on this item. Removed when it ends. and removed awaiting labels Sep 14, 2026

@Ardnived Ardnived 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.

Add translations for the missing root_description in every locale

The reviewer's call on #781, open question 2: every locale carries a
`root_description`, not English alone. The endpoint still never falls
back — an eleventh locale gets `null`, not our sentence — so this changes
the data, not the rule #646 set.

Each description recombines strings that locale's translator already
wrote: `countries.title`, `compact.open`, `online.title`,
`common.chrome.all_classes_free`, and the rendering of "Sahaja Yoga
meditation" in `registration.questions.experience` — Сахаджа-йога in ru
and uk, Sahadža jóga in cs. Register follows each locale's own
`compact.open`: du in de, jij in nl, tú in es, vous in fr, ön in hu,
vykání in cs. Lengths 119–156 against the schema's advisory 160.

⚠ Written here, not by a native speaker. That is the same debt the open
thread names for the nine titles, now doubled — nine more `<head>`
strings on up to 29 domains that nobody fluent has read.

Three claims this falsifies, swept: the admin field description said
English only, `docs/architecture.md` counted titles alone, and
`index.ts:421` still said an operator writes the copy — a survivor of
cf2145d's sweep.

Co-Authored-By: Claude Opus 5 <[email protected]>
Claude-Session: https://claude.ai/code/session_012tG8ZaLunkn1bEkDRrGDoi
cf2145d rewrote `root_description`'s field description in
`translationsSchema.json` without running `pnpm generate:types`, so the
generated docblock still carried main's wording. Regenerated, and it now
matches this branch's text.

Co-Authored-By: Claude Opus 5 <[email protected]>
Claude-Session: https://claude.ai/code/session_012tG8ZaLunkn1bEkDRrGDoi
@railway-app
railway-app Bot temporarily deployed to sahajcloud / SahajCloud-pr-781 September 14, 2026 17:25 Destroyed
@sydevs-bot

Copy link
Copy Markdown
Contributor Author

Descriptions seeded in the nine locales that had none. Pushed f3e9aad.

  • Adopted — your review. Every locale now carries seo.root_description, not English alone. Each recombines that locale's own seeded strings: compact.open, online.title, all_classes_free, and Sahaja Yoga as registration.questions.experience spells it. 119–156 chars of 160.
  • Also pushed — payload-types.ts was stale since cf2145d, which edited the schema JSON without regenerating.
  • Still open, for you — the strings themselves. Eighteen <head> strings, up to 29 domains, nobody fluent has read them. The body tables all ten for a native check.

The null rule is untouched. A locale outside these ten still gets no description rather than English (#646).

Lean gate green: lint, both typechecks, 1961 unit tests. Targeted: atlas-seo.int 53, seed and schema specs 58.
🤖 Written by the sydevs autonomous loop — see what this is


Generated by Claude Code

@sydevs-bot sydevs-bot added awaiting and removed bot:working Lock: a cloud session is running on this item. Removed when it ends. labels Sep 14, 2026
@sydevs-bot
sydevs-bot merged commit a2f9979 into main Sep 14, 2026
14 checks passed
@sydevs-bot
sydevs-bot deleted the claude/feat-778-atlas-seo-copy branch September 14, 2026 17:42
@sydevs-bot sydevs-bot moved this from Revising to Done in SYDevelopers Technical Roadmap Sep 14, 2026

This branch was successfully deployed

No deployments
sahajcloud / SahajCloud-pr-781 — f3e9aad1 Deployed Sep 14, 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.

feat(translations): seed atlas landing-page SEO copy in ten locales

3 participants