Skip to content

feat(map): city and country on result rows, and one merged filter row - #362

Merged
yakew7 merged 2 commits into
mainfrom
fix/map-results-and-filters
Nov 24, 2026
Merged

yakew7 merged 2 commits into
mainfrom
fix/map-results-and-filters

Conversation

@propcgamer20-png

Copy link
Copy Markdown
Member

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 the lg breakpoint, where the list sits in the mobile sheet; their aria-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.tsx and 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 from PLACE_TYPE_LABELS.

Type of change

  • Code or fix

Testing

  • npm run typecheck, npm run lint, npm run test:unit (778 tests) and prettier --check src pass.
  • New tests for the row text (same-name places, distance, a place with no country, the two-line name, unchanged action labels) and for the chips (labels match PLACE_TYPE_LABELS, the combo, the selected count and Clear, one filter group only, the edge fade).
  • The old presets test in places-map.test.tsx now drives the Airport chip instead.

Not covered

  • Checked through unit tests, not by eye in a browser (no MapTiler key on my machine). A look at the panel at 1366x768 and at a phone width would be worth doing on the preview: the issue wants at least five rows visible and row height under about 72px, which depends on the font and the real data.
  • Results list shows every place in the dataset, not the ones on screen #351 (list filtered by the visible map area) is a separate PR because it touches the map viewport state.
  • No changelog line, to avoid conflicts with the other open PRs touching the same section.

Closes #354
Closes #352

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
@vercel

vercel Bot commented Nov 24, 2026 •

Copy link
Copy Markdown
Contributor

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
study-map Ready Ready Preview Nov 24, 2026 9:19am UTC

@yakew7
yakew7 merged commit 35e1d26 into main Nov 24, 2026
6 checks passed

This branch was successfully deployed

1 active deployment
Preview — bd980cfa Deployed Nov 24, 2026 by vercel[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Results rows hide city and country and truncate names to one line Category chips and filter presets are two overlapping controls, and the chips clip

2 participants