Repository navigation
feat(map): city and country on result rows, and one merged filter row - #362
Merged
Merged
Conversation
Rows showed only the type, so two places sharing a name prefix could not be told apart. The second line is now 'type · city, country' (distance last when known), the name may take two lines before truncating, and the three row actions are 44px touch targets below the lg sidebar breakpoint. Their aria-labels are unchanged. Closes #354
…ilter row Chips and presets both set the same types filter under different labels. The chip row stays (it carries counts and the pin colours), the one combo chips cannot express, SAT plus foreign-language exam centres, becomes a leading 'All exam centres' chip, and the single-type presets go. The row gains an 'N categories selected' line with Clear, and the scrolling row fades its right edge instead of clipping a chip. Labels come from PLACE_TYPE_LABELS only. Closes #352
Contributor
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
This was referenced Nov 24, 2026
This branch was successfully deployed
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.
What this changes
Two issues in the map side panel, one commit each.
#354, result rows. The second line is now
type · city, country(distance last when known), so two places that share a name prefix can be told apart without hovering. The name may take two lines (line-clamp-2) before truncating. The three row actions get a 44px touch target below thelgbreakpoint, where the list sits in the mobile sheet; theiraria-labels are unchanged. A private saved place with no country shows just the city, with no stray comma.#352, one filter row. The chip row stays: it carries counts and the pin colours. The one combo chips could not express, SAT plus foreign-language exam centres, becomes a leading "All exam centres" chip. The single-type presets (Libraries, SAT centres, Govt offices, Airports) duplicated chips under different labels, so
filter-presets.tsxand its test are removed. The row also gains "N categories selected" with a Clear action, and the scrolling row fades its right edge instead of clipping a chip. Every chip label comes fromPLACE_TYPE_LABELS.Type of change
Testing
npm run typecheck,npm run lint,npm run test:unit(778 tests) andprettier --check srcpass.PLACE_TYPE_LABELS, the combo, the selected count and Clear, one filter group only, the edge fade).places-map.test.tsxnow drives the Airport chip instead.Not covered
Closes #354
Closes #352