Skip to content

feat(translations): add the atlas filters' Where, More filters and short question labels - #1285

Merged
Ardnived merged 3 commits into
mainfrom
feat/atlas-filter-keys
Nov 26, 2026
Merged

Ardnived merged 3 commits into
mainfrom
feat/atlas-filter-keys

Conversation

@Ardnived

Copy link
Copy Markdown
Contributor

Summary

  • sy-atlas-translations gains the five strings SahajAtlasWeb's rebuilt filter form reads: Where, Near me, "Online or in person", "Day" and "More filters".
  • This is the producer half. The widget PR syncs these keys once this has deployed. Six old filter keys are retired in a follow-up after that.

Change outline

Contract — the sy-atlas-translations schema

Five keys, each with its English as a schema default, so data.en.json carries none. where and more are new leaf groups. The other three keys join existing groups.

 filters                                         src/globals/SahajAtlasTranslations/translationsSchema.json
   chrome
+  where                                         # new leaf group
+    label        default "Where"                # heading above Near me and the place tag
+    near_me      default "Near me"              # lists the classes around the visitor
   format
     label · any · offline · online
+    question     default "Online or in person"  # the format question's heading in the drawer
   …
   days
     label
+    short_label  default "Day"   maxLength 12   # advisory
   …
   region
+  more                                          # new leaf group
+    label        default "More filters"         # disclosure holding Frequency and Dates

The nine other locale seeds each gain the five keys as machine translations, and every seed's _meta.schema_version now counts 44 leaf groups. src/payload-types.ts is regenerated, adding SyAtlasTranslationsFiltersWhereStrings and SyAtlasTranslationsFiltersMoreStrings.

Contract — migration tables

A leaf group is one localized jsonb column, so the two new groups are DDL. A new key alone needs no migration, and src/migrations/AGENTS.md now says that a new group does.

-- src/migrations/20261126_183458_atlas_filter_where_more.ts (generated)
ALTER TABLE sy_atlas_translations_locales     ADD COLUMN filters_where jsonb, filters_more jsonb
ALTER TABLE _sy_atlas_translations_v_locales  ADD COLUMN version_filters_where jsonb, version_filters_more jsonb

Preview

No preview surface

Contract impact

  • SahajAtlasWeb: the filters rebuild (branch ux/filters-rebuild, not yet pushed) reads all five 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 two new optional groups and two optional keys. Nothing is removed or renamed.

Migration

  • New migration: src/migrations/20261126_183458_atlas_filter_where_more.ts
  • Impact: adds two nullable jsonb columns to sy_atlas_translations_locales and two to _sy_atlas_translations_v_locales. No existing data is touched. On boot, reconcileEnglishDefaults fills the English into the new columns.
  • Reversible: yes. The down migration drops the four columns.

Test results

  • Lean gate: ✓ lint, format check, typecheck (src and tests), unit lane (294 files, 3924 tests)
  • Targeted specs: tests/int/translations-globals.int.spec.ts and tests/int/translations-english-defaults.int.spec.ts, 41 passed; seeds/tests/atlas-translations-import.test.ts, 9 passed
  • Build: N/A

Notes for reviewer

  • Retirement comes later, on purpose. filters.region.{all,empty,label,search}, filters.days.label and filters.language.empty stay until the widget PR has deployed. The live widget still reads them, and a sweep now would blank its region list.
  • The nine translations reach only a fresh database. In production every non-English locale falls back to English until its value is entered or imported.
  • Dismissed: reformat src/migrations/index.ts and trim the migration's unused payload/req bindings. Both are generator output, which .prettierignore and src/migrations/AGENTS.md say to leave as written.
  • Dismissed: derive the leaf list in translations-globals.int.spec.ts. That literal is the spec's dropped-group tripwire, and its own comment says so.
  • Review: /simplify plus /code-review medium. No security review, because no path matched securityReview.triggerPattern.
Detail

Machine translations:

Locale where.label where.near_me format.question days.short_label more.label
cs Kde V mém okolí Online nebo osobně Den Další filtry
de Wo In meiner Nähe Online oder vor Ort Tag Weitere Filter
es Dónde Cerca de mí En línea o presencial Día Más filtros
fr Où Près de moi En ligne ou en personne Jour Plus de filtres
hu Hol A közelemben Online vagy személyesen Nap További szűrők
nl Waar Bij mij in de buurt Online of op locatie Dag Meer filters
pt-BR Onde Perto de mim Online ou presencial Dia Mais filtros
ru Где Рядом со мной Онлайн или очно День Другие фильтры
uk Де Поруч зі мною Онлайн чи особисто День Інші фільтри

Each format.question reuses its locale's own format.offline wording.

🤖 Generated with Claude Code

Ardnived and others added 3 commits November 26, 2026 11:35
…ort question labels

Five keys for SahajAtlasWeb's rebuilt filter form: filters.where.label and
near_me, filters.format.question, filters.days.short_label and
filters.more.label. Each declares its English as a schema default; the nine
locale seeds carry machine translations. where and more are new leaf groups,
so a migration adds their jsonb columns.

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

railway-app Bot commented Nov 26, 2026 •

Copy link
Copy Markdown

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

Service Status Web Updated
SahajCloud 😴 Sleeping (View Logs) Web Nov 26, 2026 at 7:21 pm UTC
1 service not affected by this PR
  • mailpit

@railway-app
railway-app Bot temporarily deployed to sahajcloud / SahajCloud-pr-1285 November 26, 2026 18:50 Destroyed
@sydevs-dispatcher

sydevs-dispatcher Bot commented Nov 26, 2026 •

Copy link
Copy Markdown

🤖 no session running
✋ handed back: review-pr did not finish after 3 attempts

recent dispatches
  • 22:47Z review-pr · attempt 3 · session · timed out
  • 22:47Z review-pr · attempt 3 · session
  • 20:42Z review-pr · attempt 2 · session · timed out
  • 20:42Z review-pr · attempt 2 · session
  • 19:07Z review-pr · attempt 1 · session · timed out

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 26, 2026
@sydevs-dispatcher sydevs-dispatcher Bot moved this from Pending to Working in SYDevelopers Technical Roadmap Nov 26, 2026
@sydevs-dispatcher sydevs-dispatcher Bot removed 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 added the bot:working Lock: a cloud session is running on this item. Removed when it ends. label Nov 26, 2026
@Ardnived
Ardnived merged commit f387c11 into main Nov 26, 2026
19 checks passed
@Ardnived
Ardnived deleted the feat/atlas-filter-keys branch November 26, 2026 21:14
@sydevs-dispatcher sydevs-dispatcher Bot moved this from Working to Done in SYDevelopers Technical Roadmap Nov 26, 2026
Ardnived pushed a commit to sydevs/SahajAtlasWeb that referenced this pull request Nov 26, 2026
* chore(contracts): re-sync from sydevs/SahajCloud#1285

* chore(contracts): re-sync from sydevs/SahajCloud#1287

---------

Co-authored-by: sydevs-bot <[email protected]>
Ardnived added a commit to sydevs/SahajAtlasWeb that referenced this pull request Nov 26, 2026
…ounts (#514)

* feat(filters): ask only what can narrow the classes here, with live counts

Filters opens straight on Where, Online or in person, Day, Time of day and
Language, with Frequency and Dates under "More filters" (open by itself when
either is set). A question that cannot change the results in this place is
not asked (shownGroups); every option shows how many classes it leaves, and
one that leaves none is disabled unless selected. The region combobox is
gone: the place in scope is a removable tag beside Near me, which asks for a
position only when pressed and rounds it before it reaches the URL.

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

* test(i18n): point the six retiring filter keys at sydevs/SahajCloud#1286

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

* refactor(filters): SearchFilters is an organism on the form kit

Each question is a FormField fieldset over a size="md" ToggleGroup, and
Frequency and Dates sit in the Disclosure atom. FormField gains an optional
Clear at the end of its label row, outside the legend, so a group keeps the
question as its name; it is hidden but keeps its place while the field is
empty.

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

* chore(i18n): add the filter form's five strings from production

Only the five keys sydevs/SahajCloud#1285 shipped: a full sync still carries
other tickets' drift (compact.open) until #466.

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

* fix(filters): the new filter controls take the one focus outline

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

* refactor: simplify per /simplify pass, and fix three review findings

Review findings:
- Near me and the place tag move the URL under the drawer, so a moved place
  now counts as a change to apply; Apply no longer vanishes after Near me.
- Removing the place tag over a region's page moves the drawer onto the
  unscoped search, so the list behind it stops naming that region.
- A chosen language the place lacks stays in the options (count 0), so it can
  still be undone; a location fix no longer drops answers tapped meanwhile.

Simplify:
- One predicate: the occurrence cache moves into matchesFilters, so facet
  counts call it directly; EVENT_CADENCES and FilterableEvent are shared.
- The facet scope uses the list's own nearby rule (isNearby, now exported
  from reveal.ts), useSearchCountry and isOnline.
- coarsePoint and LOCATE_POSITION_OPTIONS live in lib/geolocation for both
  the map's find-me and Near me.
- One Choices component for every question's options; the place tag is the
  Chip atom with the short place name.

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

* docs(embedding): Near me in the filters asks for location too, map-less embeds included

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

* docs(changelog): the filters rebuild, and Near me's location request

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

* feat(filters): a failed Near me shows as an Alert

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

* fix(filters): matchesFilters keeps its docblock, and the cache its measurement

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

* fix(filters): one locatedPlace for find-me and Near me

Both ways to locate the visitor now share how a fix becomes a place: the
point and its frame rounded, then the name and country from the reverse
lookup. Each keeps its own timing. The map's find-me frame is now rounded
as well.

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

* fix(filters): Search instead asks the list's search box for focus

A one-shot useSearchFocus request, honoured by SearchField when it mounts,
replaces polling the widget root for the input.

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

* docs(embedding): the reverse lookup names a visitor found by Near me too

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

* fix(forms): FormField's Clear sits in the label row's flow

No absolute position or reserved padding: a longer label or a translated
Clear wraps instead of colliding. A fieldset with a Clear names itself with
an off-screen legend beside the visible row.

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

* refactor(filters): name the drawer's layer key, and spec the place paths

viewLayerKey holds the filter drawer's one identity across /filters and
/search/filters, with a spec; placeFiltersPath and noPlaceSearch get theirs;
nearbyLimitKm is private to reveal.ts.

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

* fix(filters): the week strip keeps each day's 44px tap area

Seven gapped days measured 39px wide in the accessibility gate. The strip is
now one segmented control, and its story renders at the sheet's width.

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

---------

Co-authored-by: Claude Opus 5.5 <[email protected]>
@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 26, 2026
@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

Copy link
Copy Markdown

The session for review-pr did not finish after 3 attempts. I have stopped retrying. A @sydevs-bot verb or mention from you starts me again.

🤖 sydevs dispatcher

This branch was successfully deployed

No deployments
sahajcloud / SahajCloud-pr-1285 — bc67a890 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