1 Changelog V1.21.80
Forgejo Actions edited this page 2026-10-14 12:19:57 +00:00
This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

v1.21.80

Date: 2026-10-14

Features

  • Map place search (topbar): the shared header search field becomes a place search on /map — no separate overlay field. From 2 characters it offers debounced local gazetteer suggestions (main names + imported alternates, so German/English/Danish names all match) in an ARIA combobox under the input (↑/↓/Enter/Esc, quiet loading/no-match/error states); picking one flies the Leaflet map to the place with a level-appropriate zoom. Mobile: the search icon expands an inline field in the topbar with identical behavior. Every other page keeps the plain media-search box. Backend: new GET /api/places/search?q=&limit= (standard user auth) forward-searches the already-imported GeoNames data (PRs #1190, #1192, #1207, #1216) — no external calls, same local-first privacy posture as reverse lookup (ADR 0018/0022).
  • Enter semantics on /map (user-confirmed): Enter with no active suggestion row picks the best match — it waits out the in-flight search (no duplicate request) and flies; Enter routinely beats the 300 ms debounce. Zero results stay on /map with the quiet no-match line; never falls through to the media search. Enter on an active row picks that row; queries under 2 characters keep the plain /search media submit (#1216).
  • Place-search field wording: on /map the input (desktop + mobile, incl. sr-only labels) reads "Search places" / „Nach Orten suchen" / "Søg efter steder"; other pages unchanged (#1207).

Fixes

  • Topbar place search refocus: after picking a place, the suggestion list no longer stayed shut until a real window blur/focus cycle (Alt+Tab) resynced the state — the pick kept DOM focus, so the reopen-on-focus edge never fired again. A query that moves on from the committed pick now reopens the list immediately; regression-tested pick → search again → pick (#1207).
  • Mobile reachability: place search was desktop-only on first attempt — the small-screen bar had only a search icon link. Now an expanding topbar field on mobile too; also fixed a stranded-open suggestion list on click-away, a wrong "No matches" caption while results showed, and the list sliding under MapView's split-toggle stacking (#1192 fix commit).
  • Spec hardening: upload-status e2e raced SvelteKit hydration (file-input change events could land before handlers attached — terminal CI failures under load, previously mislabeled flake, ISSUE-154); specs now gate on the processing-summary hydration marker. All place-search specs use cold-boot hydration gates (18–22/22 green twice on consecutive cold boots) (#1207).

Notes

  • API: PlaceSearchService/PlaceSearchController (exact → prefix → substring ranking, then prominence log10(population) DESC, level weight, stable name tiebreaker; provider enabled + dataset completed scope identical to PlaceLookupService; LIKE-wildcard escaping, forced LIMIT), migration V163__place_search_name_trgm_index.sql (pg_trgm + GIN index on lower(name_variants.name), join index place_name_candidates(dataset_id, provider_native_id)), 20 new tests, full API suite green (1990 tests at merge time).
  • Web: placeSearch.ts client, TopbarPlaceSuggestions.svelte (owns lookup/ARIA/keyboard/quiet states; seq race guard; settle-and-await mechanism for Enter-picks reusing the scheduled request), AppHeader optional onPlaceSearchSelect prop (zero markup change without it), pageHeaderPlaceSearch store wired through AppShell (map registers fly handler, clears on destroy), paraglide keys en/de/da.
  • Release: version bump 1.21.79 → 1.21.80 (PR branch, gradle.properties).