Repository navigation
feat(filters): apply each tap, close onto the matching classes, open at the content's height - #528
Merged
Merged
Conversation
…at the content's height The filters keep no draft. Each tap writes the URL, so the markers behind the sheet and the bottom button's count change at once. The button reads Close with nothing picked and "Show N classes" with an answer, beside Clear all. When nothing matches, the filters say so and offer the one removal that brings the most classes back (bestRecovery), or make Clear all the way out. Closing by X, swipe, Esc or "Show N classes" runs one decision, backStep: over the search or the calendar it steps back there and rewrites the landed entry's query to the answers; over any other view, answers replace the filters' own entry with the search scoped to that place. It never pops the host's history. On a phone the sheet opens just tall enough for its questions, with the bar pinned to the bottom edge, and grows as More filters opens. The fit measure now runs from the body's top to the last child's bottom margin, so gaps count. A sheet leaving less than the map strip hides the control column, and the filters dim what is left. A fresh link frames its place once. Each time of day shows its hours through the shared formatter. Evening runs 17-24 and Night 0-6, offered only while classes in view start then. Co-Authored-By: Claude Opus 5.5 <[email protected]>
…rs and a count; no rule above More filters Co-Authored-By: Claude Opus 5.5 <[email protected]>
Inactive listings ("Contact host for timings") name no session, so no time of day can rule
them out. Night still shows only where a class really starts then.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Rethink Sans draws "(1)" to "(20)" as circled digits through a standard ligature; the literal-count utility turns common ligatures off for the Filters button's count only. 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]>
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]>
Contributor
|
🤖 no session running recent dispatchesWritten by the sydevs dispatcher. Sessions never edit this comment. |
5 tasks
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
Change outline
Flow — closing the filters (
backStep,src/lib/shape/navigation.ts;DrawerStack.tsx)X, swipe, Esc and "Show N classes" run one decision. The filters keep no draft, so closing shows the answers rather than undoing them.
Components — FilterView (
src/views/FilterView/)Behaviour — counts and times (
src/lib/shape/filters.ts,facets.ts)Behaviour — the phone sheet (
use-fit-snap.ts,DrawerStack.tsx)Preview
Test results
.claude/skills/pr-prep/check.sh): ✓ lint, typecheck, unit lanebackStep,sameRoute,bestRecovery, timeless counts,contentExtent,parseBounds, FilterView's footer states, and the times of day in SearchFiltersManual verification
/gb/filtersand tap Tue. The URL, the markers and the button change at once ("Show 8 classes")./gb, then Filters, tap Tue, and close with X, then a downward swipe, then Esc on desktop. Each lands on/search?days=2®ion=gb, and Back returns to/gb./gb/filters?days=7&time=evening. It shows "No classes match" with "Remove Sunday (37 classes)"./calendar/filters. The overlay stays full height and reads Close.Notes for reviewer
show_classes,no_matchandwiden. I added these totranslations.en.jsonby hand, because a full sync is still blocked on feat(widget): open every embed inline; expand the map over the page #466. I checked the values against production.filters.chrome.applyis listed inRETIRING_KEYSuntil SahajCloud drops it.time=eveningnow takes in 21:00–24:00. No in-tree host builds atime=link, and the CHANGELOG says so.field-heightcomment back onto its own utility;backStep;z-30;Detail
parseBoundsmoved topath.ts, andMIN_MAP_STRIP_PXtoconfig/responsive.ts, because each now has a second caller.liga. Theliteral-countutility turns that off on the Filters button only.🤖 Generated with Claude Code