77 Commits
Author SHA1 Message Date
raucao 76067e011d Fix detail issues in the stacked mobile bottom drawers
Release Drafter / Update release notes draft (pull_request) Successful in 48s
CI / Lint (pull_request) Successful in 1m42s
CI / Test (pull_request) Successful in 2m5s
- Place details header now keeps the same top gap as the standard 56px
  drawer header, so the place name is not crammed against the drag handle.
- Read the sheet inset untracked in the map's pin/center helpers so
  updateSelectedPin no longer re-runs on every drag frame. This stops the
  selected marker from jittering while a drawer is dragged.
- Re-center the selected place in the resized visible area when a drawer
  settles at a new detent, and pan it clear of the sheet on a same-size
  settle (restores the auto-pan that untracking removed).
- Commit the sheet's hidden position with the transform transition
  disabled so the entrance animates from fully hidden and slides up,
  instead of shrinking down from the top.
- Add acceptance tests for the header gap, the per-frame pin recompute,
  and the settle recenter/pan behaviour.
2026-12-01 10:45:47 +04:00
raucao fabf2ffa50 WIP: Keep mobile place selection centered
The map centering helpers gated their mobile branch on `sheetInsetPx > 0`,
but the inset is published on a deferred animation frame and is briefly 0
during a sheet-to-sheet transition. On mobile that skipped the mobile branch
and fell into the desktop sidebar branch, which shifts the map center left to
make room for the sidebar and pushed the selected pin to the right edge.

Make the mobile and desktop branches mutually exclusive by viewport so the
desktop logic can never run on mobile; with a 0 inset the mobile math is a
no-op and the existing sheet-snap re-pan corrects the vertical position once
the sheet publishes its height.
2026-11-30 17:49:20 +04:00
raucao 97eddbf3d3 Add swipe-to-resize mobile bottom drawer
Mobile sheets (search results, place details, lists, menu, contributions,
activity, new place) become draggable bottom sheets with three detents
(collapsed / medium / expanded), fling-snapping, and swipe-down-to-dismiss.
The sheet is transform-based and content never reflows while dragging.

The map, crosshair, and pin-centering react to the live covered height through
mapUi.sheetInsetPx, replacing the old hardcoded "bottom 50%" assumptions.

Also fixes a backtracking crash that made the drawer disappear when opening a
place from search results: the modifier no longer writes tracked service state
during render. Writes are coalesced into an animation-frame flush and gated by
an ownership token, so a stale sheet can't corrupt the inset.
2026-11-30 14:42:54 +04:00
raucao b295636799 Show Nearby search in search input field
CI / Lint (pull_request) Successful in 1m8s
CI / Test (pull_request) Successful in 1m28s
Release Drafter / Update release notes draft (pull_request) Successful in 4s
Add a special Nearby category, show it in the input field, and make it
dismissable via X button (same as other searches)
2026-09-17 23:38:50 +02:00
raucao 0d92fc9937 Fix lint errors
CI / Lint (pull_request) Successful in 1m5s
CI / Test (pull_request) Successful in 1m20s
Release Drafter / Update release notes draft (pull_request) Successful in 5s
2026-09-03 14:21:22 -06:00
raucao 7e2bce84db Immediately load OSM place when selecting a map feature
CI / Lint (pull_request) Failing after 1m3s
CI / Test (pull_request) Successful in 1m20s
No waiting for Overpass when selecting visible POIs anymore
2026-09-03 14:16:11 -06:00
raucao d6e47a1b27 Zoom out to fit ways/relations in the view when necessary 2026-08-18 16:51:25 -06:00
raucao f48045c35d Fix flaky test by adding safe guard
CI / Lint (pull_request) Successful in 33s
CI / Test (pull_request) Successful in 57s
Release Drafter / Update release notes draft (pull_request) Successful in 4s
2026-06-30 19:28:01 +02:00
raucao 7f1c4b5f61 When search markers are visible, clear search on map click 2026-06-30 18:32:23 +02:00
raucao 59c447fe1f Hide quick-search pills on low zoom levels
CI / Lint (pull_request) Successful in 30s
CI / Test (pull_request) Successful in 56s
Release Drafter / Update release notes draft (pull_request) Successful in 7s
2026-05-05 07:10:28 +02:00
raucao b4c3f5c88d Improve map centering on mobile
CI / Lint (pull_request) Successful in 33s
CI / Test (pull_request) Failing after 1m1s
2026-04-27 15:37:13 +01:00
raucao d2eb888dcf Keep search results, only hide sidebar when closed 2026-04-27 14:37:19 +01:00
raucao 8ca7481a79 Mock nostr service globally in tests 2026-04-22 09:03:38 +04:00
raucao 99cfd96ca1 Fetch and cache photo events while browsing map and when opening place details 2026-04-21 21:28:57 +04:00
raucao 2423b67f94 Use SVG icon for locate-me button 2026-04-02 12:20:37 +04:00
raucao 2a3ad26eb9 Prevent OL from loading webfonts for our default font
* Fixes flash of bold text on app launch
* Fixes Noto Sans being used instead of system font where not available
2026-04-02 11:42:19 +04:00
raucao dc9e0f210a Hide search result markers when result is selected 2026-03-28 15:30:27 +04:00
raucao 818ec35071 Ensure map marker clicks preserve search context
Fixes the back button just closing the sidebar and clearing the whole
search after having seleted a result via map marker
2026-03-23 16:42:32 +04:00
raucao a92b44ec13 Ensure nearby search isn't doing category search 2026-03-23 13:51:11 +04:00
raucao 438bf0c31c Add icons to search result markers 2026-03-22 14:05:49 +04:00
raucao af57e7fe57 Add map markers for search results 2026-03-22 10:59:11 +04:00
raucao f2a2d910a0 WIP Search places by category 2026-03-20 16:43:57 +04:00
raucao 8877a9e1c8 Remove unnecessary whitespace
CI / Lint (pull_request) Successful in 49s
CI / Test (pull_request) Successful in 56s
Release Drafter / Update release notes draft (pull_request) Successful in 18s
2026-03-17 13:18:17 +04:00
raucao 03d6a86569 Increase sidebar width, improve auto-panning
CI / Lint (pull_request) Failing after 54s
CI / Test (pull_request) Has been cancelled
* Increase sidebar with on desktop to fit more content
* Move sidebar width to CSS variable
* Auto-pan when a selected place would be obstructed by the desktop
  sidebar
* Consider the header obscuring selected places, too
* Only autopan when actually necessary
2026-03-17 13:14:21 +04:00
raucao ff68b5addc Move default yellow to var, add in list UI 2026-03-13 14:56:12 +04:00
raucao 990f3afa88 Fix lint errors
CI / Lint (pull_request) Successful in 21s
CI / Test (pull_request) Successful in 34s
2026-03-13 13:51:49 +04:00
raucao bcb9b20e85 WIP Add places to lists 2026-03-13 12:22:51 +04:00
raucao 7e94f335ac Prevent zooming when selecting saved places 2026-03-11 18:16:24 +04:00
raucao df336b87ac Smart auto zoom for search/select 2026-03-11 17:51:26 +04:00
raucao 34bc15cfa9 Only zoom out, not in, when fitting ways/relations 2026-02-24 22:27:52 +04:00
raucao 845be96b71 Fix linting errors, improve lint scripts 2026-02-24 16:31:22 +04:00
raucao d827fe263b Draw outlines/areas for ways and relations on map 2026-02-24 11:22:57 +04:00
raucao f73677139d Zoom to fit ways and relations into map view 2026-02-23 22:01:46 +04:00
raucao 43b2700465 Don't start nearby search when unfocusing search by clicking map 2026-02-20 19:48:41 +04:00
raucao bf12305600 Add full-text search
Add a search box with a quick results popover, as well full results in
the sidebar on pressing enter.
2026-02-20 12:39:04 +04:00
raucao 2734f08608 Formatting 2026-02-20 12:38:57 +04:00
raucao d30375707a Prevent map search when zoomed out too much
It's usually an accidental click, and if not, the search radius/pulse
wouldn't be clearly visible.
2026-02-10 18:33:44 +04:00
raucao 53300b92f5 Re-add zoom controls 2026-02-10 17:47:03 +04:00
raucao c37f794eea Auto-locate user on first app launch
closes #17
2026-02-10 17:18:59 +04:00
raucao 3d982a6a7c More kinetic panning optimizations 2026-01-27 15:04:25 +07:00
raucao a0f132ec64 Disable kinetic panning on mobile by default, add setting for it 2026-01-27 14:23:43 +07:00
raucao a73e5cda6a Clean up code comments 2026-01-27 13:25:54 +07:00
raucao 0212fa359b Change console statements to debug or warn 2026-01-27 12:58:36 +07:00
raucao 8c58a76030 Create new places
And find them in search
2026-01-27 12:58:23 +07:00
raucao 156280950f Refactor search results with dedicated route 2026-01-27 09:50:26 +07:00
raucao 2193f935cc Change default center and zoom to show the world on desktop 2026-01-26 17:52:14 +07:00
raucao 1a2aae631d Fix JS linting errors 2026-01-24 17:54:34 +07:00
raucao 9082fb9762 Fix template linting errors 2026-01-24 16:42:53 +07:00
raucao 721fe5f01d Fix linting/formatting 2026-01-24 12:52:19 +07:00
raucao f7e7480e51 Pan map to bring loaded place into view if necessary 2026-01-22 17:34:19 +07:00