Skip to content

feat(translations): the atlas filters' When label and Where scope line - #1302

Merged
Ardnived merged 4 commits into
mainfrom
feat/atlas-when-label
Nov 27, 2026
Merged

Ardnived merged 4 commits into
mainfrom
feat/atlas-when-label

Conversation

@Ardnived

@Ardnived Ardnived commented Nov 27, 2026 •

Copy link
Copy Markdown
Contributor

Summary

  • sy-atlas-translations gains filters.when.label ("When"), the label of the When button SahajAtlasWeb shows above the map on a computer, beside Where and Language.
  • It also gains filters.where.scope ("%{near} within %{distance}, plus %{online} online"), the line under a searched place or Near me in the Where question.
  • This is the producer half for the atlas filter-buttons PR. Nothing is removed or renamed.

Change outline

Contract — the sy-atlas-translations schema

 filters                                         src/globals/SahajAtlasTranslations/translationsSchema.json
   where
     label · near_me
+    scope    default "%{near} within %{distance}, plus %{online} online"  # under a searched place or Near me
+  when                                          # new leaf group
+    label    default "When"                     # the When button: days, times of day, More filters

The nine other locale seeds each gain both keys as machine translations, with the placeholders kept verbatim, and their _meta.schema_version now counts 43 leaf groups. src/payload-types.ts is regenerated.

Preview

No preview surface

Contract impact

  • SahajAtlasWeb: the filter-buttons PR reads both keys. After this merges and Railway has booted the deploy, pnpm sync:translations --write pulls the English from production.
  • Generated types: pnpm types:cms in SahajAtlasWeb and WeMeditateWeb picks up one optional group. Nothing is removed or renamed.

Migration

20261127_171125_atlas_filters_when, generated: a new leaf group is one jsonb column on both locales tables (filters_when, version_filters_when). Add-only, nullable, no data. The English arrives through reconcileEnglishDefaults on boot.

Test results

  • Lean gate (.claude/skills/pr-prep/check.sh): lint, format check, typecheck, unit lane (294 files, 3924 tests) all passed
  • Integration specs: left to CI (no local database in this worktree)
  • Build: N/A

Notes for reviewer

Locale filters.when.label filters.where.scope
cs Kdy %{near} do %{distance} a %{online} online
de Wann %{near} im Umkreis von %{distance}, dazu %{online} online
es Cuándo %{near} a menos de %{distance}, más %{online} en línea
fr Quand %{near} à moins de %{distance}, plus %{online} en ligne
hu Mikor %{near} %{distance} körzetben, és %{online} online
nl Wanneer %{near} binnen %{distance}, plus %{online} online
pt-BR Quando %{near} a até %{distance}, mais %{online} online
ru Когда %{near} в радиусе %{distance} и %{online} онлайн
uk Коли %{near} у радіусі %{distance} і %{online} онлайн

🤖 Generated with Claude Code

One sy-atlas-translations key for SahajAtlasWeb's filter buttons on a computer:
filters.when.label, "When", the button that opens the days, times of day and
More filters. It declares its English as a schema default, and the nine other
locale seeds carry machine translations.

It is a new leaf group, filters.when, so a generated migration adds its jsonb
column to both locales tables.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@railway-app

railway-app Bot commented Nov 27, 2026 •

Copy link
Copy Markdown

🚅 Environment SahajCloud-pr-1302 in sahajcloud has no services deployed.

1 service not affected by this PR
  • mailpit

@sydevs-dispatcher

sydevs-dispatcher Bot commented Nov 27, 2026 •

Copy link
Copy Markdown

🤖 no session running
conflict held since 17:14Z, waiting for the base to settle
CI fix 1

recent dispatches
  • 23:12Z fix-ci · attempt 2 · session · done
  • 23:12Z fix-ci · attempt 2 · session
  • 17:38Z fix-ci · attempt 1 · session · timed out
  • 17:38Z fix-ci · attempt 1 · session

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

filters.where.scope: "%{near} within %{distance}, plus %{online} online", under a
searched place or Near me, so "near" never suggests more locality than the
results hold. It joins the existing where group, so no migration.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@Ardnived Ardnived changed the title feat(translations): the atlas filters' When label feat(translations): the atlas filters' When label and Where scope line Nov 27, 2026
@railway-app
railway-app Bot temporarily deployed to sahajcloud / SahajCloud-pr-1302 November 27, 2026 17:14 Destroyed
The filters.when migration is regenerated on the merged tree and named after
main's 20261127_190000_atlas_calendar_words, so its snapshot is the newest.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@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
@sydevs-dispatcher sydevs-dispatcher Bot moved this from Pending to Working in SYDevelopers Technical Roadmap Nov 27, 2026
@Ardnived
Ardnived merged commit 50a6633 into main Nov 27, 2026
9 checks passed
@Ardnived
Ardnived deleted the feat/atlas-when-label branch November 27, 2026 18:04
@sydevs-dispatcher sydevs-dispatcher Bot moved this from Working to Done in SYDevelopers Technical Roadmap 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-bot sydevs-bot removed the bot:working Lock: a cloud session is running on this item. Removed when it ends. label Nov 27, 2026
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.

2 participants