Repository navigation
feat(translations): the atlas filters' Show N classes, No classes match and Remove keys - #1293
Merged
Merged
Conversation
…ch and Remove keys
Three sy-atlas-translations keys for SahajAtlasWeb's live-applying filter sheet:
- filters.chrome.show_classes (plural): "Show %{count} class" / "classes", the
main button once an answer is picked.
- filters.chrome.no_match: "No classes match", declared as a schema default.
- filters.chrome.widen (plural): "Remove %{label} (%{count} class)" / "classes",
the way out when nothing matches.
A plural key's English cannot be a schema default, so a data-only migration
adds the two English families to production. The nine locale seeds carry
machine translations. filters.chrome.apply stays until the atlas stops reading it.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
railway-app
Bot
temporarily deployed
to
sahajcloud / SahajCloud-pr-1293
November 26, 2026 23:17
Destroyed
|
🚅 Deployed to the SahajCloud-pr-1293 environment in sahajcloud
1 service not affected by this PR
|
|
🤖 no session running Written by the sydevs dispatcher. Sessions never edit this comment. |
…et-keys # Conflicts: # seeds/sy-atlas-translations/data.cs.json # seeds/sy-atlas-translations/data.de.json # seeds/sy-atlas-translations/data.en.json # seeds/sy-atlas-translations/data.es.json # seeds/sy-atlas-translations/data.fr.json # seeds/sy-atlas-translations/data.hu.json # seeds/sy-atlas-translations/data.nl.json # seeds/sy-atlas-translations/data.pt-BR.json # seeds/sy-atlas-translations/data.ru.json # seeds/sy-atlas-translations/data.uk.json # src/globals/SahajAtlasTranslations/translationsSchema.json # src/migrations/index.ts
railway-app
Bot
temporarily deployed
to
sahajcloud / SahajCloud-pr-1293
November 27, 2026 00:12
Destroyed
sydevs-dispatcher Bot
pushed a commit
to sydevs/SahajAtlasWeb
that referenced
this pull request
Nov 27, 2026
Ardnived
pushed a commit
to sydevs/SahajAtlasWeb
that referenced
this pull request
Nov 27, 2026
* chore(contracts): re-sync from sydevs/SahajCloud#1291 * chore(contracts): re-sync from sydevs/SahajCloud#1288 * chore(contracts): re-sync from sydevs/SahajCloud#1292 * chore(contracts): re-sync from sydevs/SahajCloud#1293 * chore(contracts): re-sync from sydevs/SahajCloud#1294 * chore(contracts): re-sync from sydevs/SahajCloud#1295 * chore(contracts): re-sync from sydevs/SahajCloud#1298 --------- Co-authored-by: sydevs-bot <[email protected]>
This branch was successfully deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
sy-atlas-translationskeys for SahajAtlasWeb's live-applying filter sheet: Show N classes, No classes match, Remove ….default, so a data-only migration ships the two English plural families to production.Change outline
Contract —
filters.chrome(src/globals/SahajAtlasTranslations/translationsSchema.json)Three keys join an existing leaf group, so the
filters_chromejsonb column gains keys and no DDL runs.Flow — how each key's English reaches production
no_matchfollows the #1218 default path. The two plural keys take the one path that route leaves out.downsweeps every stored form (_one/_few/_many/_other) andno_matchfrom every locale, since the previous schema refuses them.Files — seeds and docs
seeds/sy-atlas-translations/data.*.json: English plural families indata.en.json(nono_match, which has a default), and machine translations for all three keys in the nine other locales, withfew/manyfor cs, ru and uk.src/migrations/AGENTS.mdandsrc/globals/AGENTS.md: a plural key is the one translation key that still ships its English by data migration.Preview
No preview surface. To see the keys in the admin, open the global's Filters tab:
show_classesandwidenas plural rows.Contract impact
src/payload-types.tsgains the three keys. SahajAtlasWeb picks them up throughpnpm types:cmsandpnpm sync:translations --writein the filters-sheet PR, which follows this one. WeMeditateWeb copies the types but reads none of these keys.Migration
src/migrations/20261126_233000_atlas_filter_sheet_plurals.ts(data only; the.jsonis the prior snapshot re-stamped)sy_atlas_translations_locales.filters_chromeand_sy_atlas_translations_v_locales.version_filters_chrome, English row and latest version row only; only absent keys are added, so stored words are never overwrittendowndrops every form of the new keys from every locale and version row.Test results
.claude/skills/pr-prep/check.sh): ✓ lint, format, typecheck, unit (294 files, 3924 tests)atlas-translations-schema,client-english-fallback,translations-no-a11y: 80 passedNotes for reviewer
filters.chrome.applystays for now. Retiring it, with its sweep migration, is a follow-up once the atlas stops reading it.addEnglishKeycalls, because 8 UPDATEs on one global row once per deploy is immaterial and every sibling migration loops the same way. Also dismissed: theindex.tstrailing comma, which matches the hand-written entries above it.default(schemaWalker.ts,englishDefaults.ts, about 8 files) would retire this kind of migration. It is the first plural key since feat(translations): declare a key's English in the schema, reconciled on boot #1218, so it hasn't earned the mechanism yet.maxLengthdropped from the new keys. Nothing anchors a budget until the widget's slot exists.Detail
The machine translations reuse each locale's existing word for "class" (hu "foglalkozás", ru "занятие", and so on). French and Hungarian take one form for both counts, matching how
event.display.sessions_countis seeded there.🤖 Generated with Claude Code