Skip to content

feat(translations): the atlas's class-worded lines, under new keys - #1289

Merged
Ardnived merged 4 commits into
mainfrom
feat/atlas-class-keys
Nov 26, 2026
Merged

Ardnived merged 4 commits into
mainfrom
feat/atlas-class-keys

Conversation

@Ardnived

@Ardnived Ardnived commented Nov 26, 2026 •

Copy link
Copy Markdown
Contributor

Summary

  • Eight new sy-atlas-translations keys so the atlas says "class" where it said "event" or "meditation".
  • Each is new because its meaning changed, so other languages get a fresh translation, not a stale one.

Change outline

Contract — sy-atlas-translations gains eight keys, each with an English default

reconcileEnglishDefaults fills them in production on boot. The old keys stay, and their descriptions now point translators at the new ones.

 common.errors                                  src/globals/SahajAtlasTranslations/translationsSchema.json
   share_unavailable    # Retiring
+  share_unavailable_class   "There is no link to share for this class yet."
   no_events            # Retiring
+  no_classes                "No classes found."
   near_city            # Retiring
+  classes_near_city         "See classes near %{city}"
 search.results
   no_nearby            # Retiring
+  no_nearby_classes         "No classes within %{km} km."
 filters.chrome
   no_results           # Retiring
+  no_results_classes        "No classes match your filters."
 event.display
   event_ended          # Retiring
+  class_ended               "This class is over"
   event_full           # Retiring, maxLength 36 strict
+  class_full                "This class is full"       # maxLength 36 strict, pinned in the schema spec
   type_oneoff          # Retiring
+  type_oneoff_class         "One-off class"

Preview

Contract impact

src/payload-types.ts gains the eight keys on SyAtlasTranslation. Consumer: SahajAtlasWeb. Its feat(ui): say "class" everywhere PR reads these keys and merges after this one deploys.

Test results

  • Lean gate: ✓ (lint, format, typecheck, 294 unit files / 3924 tests)
  • Targeted specs: atlas-translations-schema 60 passed; translations-english-defaults, translations-globals, available-locales int specs 60 passed
  • Build: N/A (CI)

Manual verification

  1. Once the preview boots, open the translations global's English and check that the eight keys hold the values above, with no manual publish.

Notes for reviewer

  • Tiny diff, read inline. Self-review ran as /code-review high.
  • Sibling PRs: this one first, then SahajAtlasWeb's. The eleven English-only edits ("Dark theme", "Online classes", "See classes in %{region}", and others) were published to production on 2026-11-26 through the Local API, not in this diff.
Detail

Review findings dismissed:

  • Non-English locales fall back to English for these eight lines. Deliberate. Only English is switched on in availableLocales, and the ticket leaves other languages out. A seed file reaches only a fresh database, so seeding translations would not reach production anyway.
  • Mixed key names (classes_near_city vs class_full). They match the ticket and the atlas branch. The atlas types every t() key from its snapshot, so a mistyped key fails its typecheck.
  • gating.ts still says "This event has ended." / "This event is full." The atlas maps each refusal code to its own key (RegistrationForm.tsx) and never renders the server's message.

🤖 Generated with Claude Code

Ardnived and others added 3 commits November 26, 2026 15:00
Seven sy-atlas-translations keys so SahajAtlasWeb says "class" where these
lines said "event" or "meditation". The meaning changed, so each is a new
key and other languages get a fresh translation, not a stale one:

- event.display.type_oneoff_class: "One-off class"
- event.display.class_ended: "This class is over"
- event.display.class_full: "This class is full"
- common.errors.share_unavailable_class
- common.errors.no_classes, common.errors.classes_near_city
- search.results.no_nearby_classes

Each declares its English as a schema default, so production fills on boot.
The old keys stay until the atlas no longer reads them.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
…t their class-worded keys

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@railway-app
railway-app Bot temporarily deployed to sahajcloud / SahajCloud-pr-1289 November 26, 2026 22:04 Destroyed
@railway-app

railway-app Bot commented Nov 26, 2026 •

Copy link
Copy Markdown

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

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

@sydevs-dispatcher

sydevs-dispatcher Bot commented Nov 26, 2026 •

Copy link
Copy Markdown

🤖 no session running

recent dispatches
  • 14:40Z review-pr · attempt 3 · session · done
  • 14:40Z review-pr · attempt 3 · session
  • 04:45Z review-pr · attempt 2 · session · timed out
  • 04:45Z review-pr · attempt 2 · session
  • 22:32Z review-pr · attempt 1 · session · timed out

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

@railway-app
railway-app Bot temporarily deployed to sahajcloud / SahajCloud-pr-1289 November 26, 2026 22:18 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 26, 2026
@sydevs-dispatcher sydevs-dispatcher Bot moved this from Pending to Working in SYDevelopers Technical Roadmap Nov 26, 2026
@Ardnived
Ardnived merged commit f391f3f into main Nov 26, 2026
10 of 12 checks passed
@Ardnived
Ardnived deleted the feat/atlas-class-keys branch November 26, 2026 22:40
@sydevs-dispatcher sydevs-dispatcher Bot moved this from Working to Done in SYDevelopers Technical Roadmap Nov 26, 2026
Ardnived added a commit that referenced this pull request Nov 26, 2026
…1292)

The widget reads their class-worded replacements (#1289) since
sydevs/SahajAtlasWeb#517, so translators were still asked to fill
common.errors.share_unavailable, no_events and near_city,
search.results.no_nearby, filters.chrome.no_results, and
event.display.event_ended, event_full and type_oneoff for nothing.

Removes them from the schema, the ten seed files and the generated types,
and adds a data migration sweeping the stored copy out of each group's
column on the main and every version row, since each group declares
additionalProperties: false and a leftover would refuse every later save.
down restores nothing: the old schema declares the keys but requires none.
The replacements' descriptions drop their "Replaces" notes, and the strict
budget spec keeps class_full alone.

Co-authored-by: Claude Opus 5.5 <[email protected]>
@sydevs-dispatcher sydevs-dispatcher Bot removed the bot:working Lock: a cloud session is running on this item. Removed when it ends. label Nov 27, 2026
@sydevs-dispatcher sydevs-dispatcher 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 Nov 27, 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 27, 2026
@Ardnived Ardnived removed the bot:working Lock: a cloud session is running on this item. Removed when it ends. label Nov 27, 2026

This branch was successfully deployed

No deployments
sahajcloud / SahajCloud-pr-1289 — 414f84cb Deployed Nov 26, 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