Skip to content

feat(translations): the atlas filter buttons' "N languages" and "N timings" - #1307

Merged
Ardnived merged 1 commit into
mainfrom
feat/atlas-filter-counts
Nov 27, 2026
Merged

Ardnived merged 1 commit into
mainfrom
feat/atlas-filter-counts

Conversation

@Ardnived

Copy link
Copy Markdown
Contributor

Summary

Change outline

Contract — the sy-atlas-translations schema

 filters                                         src/globals/SahajAtlasTranslations/translationsSchema.json
   language
     label · all
+    count    plural   # "%{count} language" / "%{count} languages"
   when
     label
+    count    plural   # "%{count} timing" / "%{count} timings"

The nine other locale seeds carry machine translations in each locale's own plural forms (one/few/many/other for cs, ru and uk). src/payload-types.ts is regenerated.

Preview

No preview surface

Contract impact

Migration

  • New migration: src/migrations/20261127_220000_atlas_filter_counts.ts, data only. Its .json is the prior snapshot re-stamped.
  • Impact: adds the two English plural families to the en row of sy_atlas_translations_locales and the latest version row, where absent. No DDL: both keys join existing groups.
  • Reversible: yes. down removes every plural form of both keys from every locale.

Test results

  • Lean gate (.claude/skills/pr-prep/check.sh): lint, format check, typecheck, unit lane all passed
  • Targeted: translations-globals.int.spec.ts, translations-english-defaults.int.spec.ts, seeds/tests/atlas-translations-import.test.ts (50) passed; db:migrations:create probe wrote no files
  • Build: N/A

Notes for reviewer

Locale filters.language.count filters.when.count
cs jazyk / jazyky / jazyka / jazyků termín / termíny / termínu / termínů
de Sprache / Sprachen Zeit / Zeiten
es idioma / idiomas horario / horarios
fr langue / langues créneau / créneaux
hu nyelv időpont
nl taal / talen tijd / tijden
pt-BR idioma / idiomas horário / horários
ru язык / языка / языков / языка вариант / варианта / вариантов / варианта
uk мова / мови / мов / мови варіант / варіанти / варіантів / варіанта

🤖 Generated with Claude Code

…mings"

Two plural sy-atlas-translations keys for SahajAtlasWeb's filter buttons on a
computer, which name a count once more than two answers are picked:

- filters.language.count: "%{count} language" / "%{count} languages"
- filters.when.count: "%{count} timing" / "%{count} timings"

A plural key's English cannot be a schema default, so a data-only migration
adds both English families to production; the nine locale seeds carry machine
translations in each locale's plural forms.

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

railway-app Bot commented Nov 27, 2026 •

Copy link
Copy Markdown

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

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

@railway-app
railway-app Bot temporarily deployed to sahajcloud / SahajCloud-pr-1307 November 27, 2026 19:42 Destroyed
@sydevs-dispatcher

sydevs-dispatcher Bot commented Nov 27, 2026 •

Copy link
Copy Markdown

🤖 no session running

recent dispatches
  • 23:12Z review-pr · attempt 2 · session · done
  • 23:12Z review-pr · attempt 2 · session
  • 19:59Z review-pr · attempt 1 · session · timed out
  • 19:59Z review-pr · attempt 1 · session

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 27, 2026
@sydevs-dispatcher sydevs-dispatcher Bot moved this from Pending to Working in SYDevelopers Technical Roadmap Nov 27, 2026
@Ardnived
Ardnived merged commit 0f35289 into main Nov 27, 2026
10 checks passed
@Ardnived
Ardnived deleted the feat/atlas-filter-counts branch November 27, 2026 20:02
@sydevs-dispatcher sydevs-dispatcher Bot moved this from Working to Done in SYDevelopers Technical Roadmap Nov 27, 2026
Ardnived added a commit to sydevs/SahajAtlasWeb that referenced this pull request Nov 27, 2026
…answers

- CheckboxGroup (molecule): checkboxes with a count at each row's end and the
  row's hover tint. Past 10 options it adds a search box and opens with the
  checked options first (order taken at mount, so nothing moves under the
  pointer). Both language lists, the phone's dropdown and the button's menu,
  use it.
- The When and Language buttons name a count ("3 timings", "3 languages")
  once more than two answers are picked (filters.when.count,
  filters.language.count, from sydevs/SahajCloud#1307).

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Ardnived added a commit to sydevs/SahajAtlasWeb that referenced this pull request Nov 27, 2026
Hand-added from sydevs/SahajCloud#1307, as production serves them: the full
sync stays blocked on main until #466 lands.

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 the bot:working Lock: a cloud session is running on this item. Removed when it ends. label 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

This branch was successfully deployed

No deployments
sahajcloud / SahajCloud-pr-1307 — cb4e4b40 Deployed Nov 27, 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.

2 participants