Repository navigation
feat(filters): ask only what can narrow the classes here, with live counts - #514
Merged
Merged
Conversation
…ounts 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]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
# Conflicts: # src/components/atoms/ToggleGroup/ToggleGroup.tsx # src/config/translations.test.ts
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]>
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]>
# Conflicts: # src/components/atoms/ToggleGroup/ToggleGroup.tsx
Co-Authored-By: Claude Opus 5.5 <[email protected]>
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]>
…ss embeds included Co-Authored-By: Claude Opus 5.5 <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Contributor
|
🤖 no session running recent dispatchesWritten by the sydevs dispatcher. Sessions never edit this comment. |
Co-Authored-By: Claude Opus 5.5 <[email protected]>
…asurement Co-Authored-By: Claude Opus 5.5 <[email protected]>
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]>
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]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
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]>
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]>
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]>
This was referenced Nov 26, 2026
Ardnived
added a commit
that referenced
this pull request
Nov 26, 2026
* chore(ui): remove the Combobox atom, cmdk and Radix Popover Nothing has rendered the Combobox since the filter form dropped its region list (#514), and it was cmdk's and Radix Popover's only user. The panel recipe it shared with Select folds back into Select, and the Search glyph leaves the Icons gallery with its last call site. Co-Authored-By: Claude Opus 5.5 <[email protected]> * docs(ui): the popper spec now guards the menu skin alone Co-Authored-By: Claude Opus 5.5 <[email protected]> --------- Co-authored-by: Claude Opus 5.5 <[email protected]>
Ardnived
added a commit
to sydevs/SahajCloud
that referenced
this pull request
Nov 26, 2026
…no longer reads (#1291) * chore(translations): drop the six atlas filter keys the rebuilt form no longer reads filters.region (all four keys, so the whole group and its column), filters.days.label and filters.language.empty leave sy-atlas-translations: the widget's filter form reads none of them since sydevs/SahajAtlasWeb#514. A generated migration drops the region columns; a data-only one sweeps the two keys from every locale and version row, as #1284 did. Closes #1286 Co-Authored-By: Claude Opus 5.5 <[email protected]> * style: format the schema spec Co-Authored-By: Claude Opus 5.5 <[email protected]> --------- Co-authored-by: Claude Opus 5.5 <[email protected]>
This was referenced Nov 26, 2026
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
SearchFiltersbecomes an organism built on the form kit (feat(forms): one form kit — field wiring, group fields, choice cards, one field height #501).FormFieldgains an optional per-field Clear.Change outline
Behaviour — which questions the form asks
Counting goes through the one predicate the list and the map apply, so the numbers can't drift from what Apply shows.
Flow — Near me and the place tag
Both move the URL under the open drawer, so a moved place counts as a change to apply.
Components — the form kit
Contract — strings and the embed guide
The five new strings came from SahajCloud (sydevs/SahajCloud#1285, deployed) and were added from production. The six now-unread keys are in
RETIRING_KEYSagainst sydevs/SahajCloud#1286.Preview
Preview pending: Cloudflare publishes the branch aliases once this push builds. Routes to open at 390×844:
/filtersshows Where (Near me), Online or in person, Day, Time of day, Language and More filters/gb/filtersshows counts, zero options greyed out, and the United Kingdom tag. Its × moves the form onto the unscoped search/cz/filtersasks no format question/gb/filters?cadence=WEEKLYopens More filters with Weekly selected/calendar/filtershas no Where headingContract impact
geolocation, including on map-less embeds, which previously never asked.docs/embedding.md's Permissions Policy row says so, and CHANGELOG.md has the entry. Both in-tree hosts (WeMeditateWeb/lib/atlas-embed.ts, the WordPress templates) already grantgeolocationfor the map. Nothing else a host observes changed: no parameter, origin, CSP or storage.Test results
facets.test.ts(counts againstmatchesFilters, relevance,shownGroups),SearchFilters.test.tsx(hidden questions, disabled options, a kept language, the dropdown, More filters opening by itself),FormField.test.tsx(the optional Clear)src/lib/shape/path.tsmatched the trigger pattern. No findings.Manual verification
/gb/filters: tap Near me (DevTools > Sensors > London). The URL'scenter=has 3 decimals and Apply appears. Reload, and the tag shows the place name./search?region=gblists only UK classes.Notes for reviewer
Checked in headless Chromium only. The date fix and the small-phone form have not been tried on a real iPhone.
Only the five strings were added, not a full translation sync. A full sync still carries
compact.open's removal, which breaksCompactEmbedViewuntil feat(widget): open every embed inline; expand the map over the page #466. The five values are copied exactly from production.Applying each tap at once is not in this PR. The draft-and-Apply model stays; that change is the g-filters-phone ticket. A moved place now counts as a change, so Apply survives Near me; X still discards everything, the place included.
Two copies of
origin/mainwere merged in (feat(forms): one form kit — field wiring, group fields, choice cards, one field height #501 form kit, feat(a11y): one focus outline, and forms that start in their first field #510 focus outline). OnlyToggleGroupconflicted: I took main's line with the new label colour.Dismissed review findings:
filters.language.labeltext.clear": the per-field Clear was asked for as aFormFieldparameter.DateTime": a few MB at the current feed size.Local adversarial review (a fresh sub-agent,
review-prmethod). Adopted:matchesFiltershad lost its docblock to the new cache.locatedPlaceis shared by find-me and Near me.useSearchFocusrequest replaces the polling.viewLayerKeyis named and specced, and the place-path helpers are specced.nearbyLimitKmis now private.Answered without a change:
ActiveFilterPills:53./calendar/filterswith no place, which is intended.🤖 Generated with Claude Code