46 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 64d26951d4 Extend the expanded mobile sheet up to the search field
CI / Lint (pull_request) Successful in 56s
CI / Test (pull_request) Successful in 1m27s
Release Drafter / Update release notes draft (pull_request) Successful in 16s
The tallest detent now fills the viewport down from the top of the search
field, so a fully expanded sheet covers the search field and avatar while
leaving that little strip visible above.

- DETENT_FRACTIONS.expanded is now the whole sheet; the sheet height is the
  viewport minus a top gap (replacing the 0.92 fraction cap).
- The modifier measures that gap from the search field, relative to the sheet's
  container (the viewport top is not the app's top), falling back to 8px.
- Update the sheet-detents unit test and read the real --sheet-height in the
  stacked-sheets acceptance test.
2026-11-30 18:08:02 +04:00
raucao 0e099972f6 WIP: Rework drawer headers and sheet scrolling
Drawer headers: a shared DrawerHeader component renders the desktop nav-bar
layout (back + centered title + close) and a mobile variant (left title, no
back button, a single X that dismisses the top sheet — back when there is a
parent, otherwise close). Place details uses the place name as its title with
a compact, borderless header, and on mobile moves the photos below the place
type. The X and back buttons now have aria-labels.

Sheet scrolling: the content only scrolls while the sheet is at its largest
detent; below that, dragging anywhere on the sheet (including list rows and
links, not just the header) resizes it. At the largest detent, pulling down on
the content while it is scrolled to the top shrinks the sheet (overscroll to
shrink).

Place details opens at the medium detent again. The mobile photo carousel no
longer bleeds to the sheet edges, gets a wider gap and the same corner radius
as the action buttons.
2026-11-30 17:38:35 +04:00
raucao 5c7d5d6de0 WIP: Per-sheet drawer heights and minimized background sheets
Give each bottom sheet its own default height and remember the size the
user drags it to, per sheet, so one sheet's height no longer leaks into the
next.

- App menu now opens at the medium detent instead of near-full-screen.
- Place details opens at the short (collapsed) detent; the results and list
  sheets stay at medium.
- Detent memory is keyed by route (map-ui.sheetDetents) instead of one
  shared slot, and the `detent` arg is authoritative on mount.
- Background (parent) sheets are pinned to the minimum reachable detent on
  mount and on viewport changes, so they can never peek above the top sheet
  no matter how short it is. They still never write the detent memory.
2026-11-30 15:43:15 +04:00
raucao c56917e122 WIP: Stack parent sheets behind the mobile bottom drawer
Derive the sheet stack from the URL instead of mutating it: the route
template keeps rendering the top sheet, and application.gjs renders the
service-driven parent (search results, lists index, app menu) behind it on
mobile, inert, so closing the top sheet reveals the parent at its
remembered size.

- bottom-sheet modifier: `background` arg — background instances settle
  immediately, inject no handle, take no gestures, never own the inset slot,
  and never write the remembered detent (restore-only).
- z-index: demote background sheets below the top sheet, including the app
  menu whose desktop z-index was inverted.
- outside tap on mobile pops to the parent without hideSidebar(), keeping
  the session and detent alive; desktop keeps today's close-all.
- tracked matchMedia-backed viewport service for the mobile breakpoint.
- lists index extracted into a component so it can render top or background.
- scope .sidebar-content lookups and test selectors to .sheet-top.

Known v1 limitation: popping hard-cuts to the parent route (no exit
animation). The full derived stack with independent detents for 3-level
chains is deferred.
2026-11-30 15:17: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 bba9a2a444 Open Nostr event links from the search field
CI / Lint (pull_request) Successful in 57s
CI / Test (pull_request) Failing after 1m9s
The full-text search field now detects anything the /e/ handler can open
(raw 64-hex ids, note1/nevent1/naddr1 codes, nostr: URIs, kind:pubkey:d
coordinates and permalinks) and opens it instead of running a Photon or
bookmark search.

As-you-type, a pasted reference resolves through the event store while the
field shows a spinner and the popover offers a single row labelled by kind
("Place photo" / "Place review", or a generic "Nostr event"). A reference
that cannot be found shows the usual not-found toast, and an unlinked event
is flagged as such. Submitting a reference, and direct /search?q=<ref>
links, route straight to the /e/ handler.
2026-11-28 19:36:02 +04:00
raucao e74c01b1d1 Save/restore scroll position for bookmark lists
CI / Lint (pull_request) Successful in 1m6s
CI / Test (pull_request) Successful in 1m25s
Release Drafter / Update release notes draft (pull_request) Successful in 6s
Keep items loaded, same as for Activity and My Contributions lists
2026-09-25 15:55:47 +02: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 12e746c2a3 Clear search with no results when closing drawer
CI / Lint (pull_request) Successful in 1m12s
CI / Test (pull_request) Successful in 1m29s
Release Drafter / Update release notes draft (pull_request) Successful in 6s
2026-09-17 23:01:07 +02:00
raucao a41ad8c99c Retry unresolved profiles
CI / Lint (pull_request) Successful in 1m14s
CI / Test (pull_request) Successful in 1m33s
Release Drafter / Update release notes draft (pull_request) Successful in 5s
For now just with the same relays, in the future maybe with an extended
list
2026-09-17 20:20:23 +02:00
raucao c870a71e30 Fix lint error
CI / Lint (pull_request) Successful in 1m2s
CI / Test (pull_request) Successful in 1m19s
Release Drafter / Update release notes draft (pull_request) Successful in 5s
2026-09-03 13:34:29 -06:00
raucao ddce25f43a Rename Collections, add special list for all saved
CI / Lint (pull_request) Failing after 1m3s
CI / Test (pull_request) Successful in 1m21s
2026-09-03 13:29:36 -06:00
raucao 4653947454 WIP Saved places 2026-09-03 10:08:48 -06:00
raucao 35aa3c950f Auto-load older activities
Both initially (if not enough recent ones are available), and when
scrolling to the end of an activity timeline
2026-09-02 18:36:58 -06:00
raucao a4a8d123d3 Split Activity timeline in Home and Explore
Adds a new Explore timeline with contributions from anyone on trusted
relays.
2026-09-02 15:06:10 -06:00
raucao 92c6190d28 Add followee's photo uploads to Activity timeline 2026-09-02 11:23:34 -06:00
raucao 36989e1dc2 WIP Add activity photo item
Can show one or more photo additions in the activity timeline
2026-09-02 10:22:15 -06:00
raucao 3f6bd5267f WIP Add activity timeline route/sidebar showing incoming zaps 2026-08-29 12:01:48 -06:00
raucao 61242420d1 Migrate OSM cache to localForage/IndexedDB
We don't want to hit limits with localStorage, and it's non-blocking
2026-08-19 10:39:58 -06:00
raucao b9e5213c27 Add timeline/history for signed-in user's contributions
CI / Lint (pull_request) Successful in 53s
CI / Test (pull_request) Successful in 1m6s
2026-08-18 16:21:31 -06:00
raucao 8c3a805684 Sort collections by createdAt
CI / Lint (pull_request) Successful in 34s
CI / Test (pull_request) Successful in 57s
Release Drafter / Update release notes draft (pull_request) Successful in 8s
2026-06-30 23:07:53 +02:00
raucao 62407f5fa4 Sync search form query value
* Clear input when clearing search from anywhere
* Pre-fill input when opening search URL with query params
2026-06-30 19:12:38 +02:00
raucao 7f1c4b5f61 When search markers are visible, clear search on map click 2026-06-30 18:32:23 +02:00
raucao 59e334c499 Fix place route being active after closing place details
Depending on where a place was opened from, it now goes back to the
index or (active) search route
2026-06-30 18:06:12 +02:00
raucao fd8f04f902 Mock all map tile requests
CI / Lint (pull_request) Successful in 33s
CI / Test (pull_request) Successful in 58s
2026-06-30 17:05:04 +02:00
raucao f2e531c0f6 Make collection list loading async 2026-06-30 16:26:22 +02:00
raucao 6329ad986d Fix unnecessary browser console warnings 2026-05-13 12:27:16 +02:00
raucao 8572032481 Eliminate race condition in tests
CI / Lint (pull_request) Successful in 33s
CI / Test (pull_request) Successful in 1m0s
Release Drafter / Update release notes draft (pull_request) Successful in 4s
2026-04-27 15:47:23 +01:00
raucao cff19980d5 Refactor search route/loading
* Fetch results asynchronously after app launch
* Hide sidebar and search results when new search is issued
2026-04-27 15:18:17 +01:00
raucao 8e5b2c7439 Fix lint error
CI / Lint (pull_request) Successful in 28s
CI / Test (pull_request) Successful in 44s
Release Drafter / Update release notes draft (pull_request) Successful in 4s
2026-03-27 15:05:56 +04:00
raucao 0f29430e1a When request retries exhaust, show error in toast notification
CI / Lint (pull_request) Failing after 29s
CI / Test (pull_request) Failing after 44s
2026-03-27 15:01:04 +04:00
raucao 582ab4f8b3 Fix lint errors
CI / Lint (pull_request) Successful in 53s
CI / Test (pull_request) Successful in 47s
Release Drafter / Update release notes draft (pull_request) Successful in 38s
2026-03-23 18:32:18 +04:00
raucao 86b20fd474 Abort search requests when clearing search box
Also adds abort support for Photon queries
2026-03-23 18:07:29 +04:00
raucao 8478e00253 Add loading indicator for search queries 2026-03-23 17:50:21 +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 4008a8c883 Use "Results" header for category search results 2026-03-20 17:59:11 +04:00
raucao eb7cff7ff5 Add tests for category quick search 2026-03-20 17:49:54 +04:00
raucao 37cf47b3dd Properly handle place removals
CI / Lint (pull_request) Failing after 23s
CI / Test (pull_request) Successful in 36s
* Transition to OSM route or index instead of staying on ghost route/ID
  (closes sidebar if it was a custom place)
* Ensure save button and lists are in the correct state
2026-03-13 15:33:29 +04:00
raucao 845be96b71 Fix linting errors, improve lint scripts 2026-02-24 16:31:22 +04:00
raucao de1b162ee9 Different sidebar headers for nearby and full search 2026-02-24 12:49:07 +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 2aa59f9384 Fetch place details from OSM API, support relations
* Much faster
* Has more place details, which allows us to locate relations, in
  addition to nodes and ways
2026-02-20 12:34:48 +04:00
raucao 39a7ec3595 Improve code based on linting 2026-02-10 19:20:38 +04:00
raucao 59e3d91071 Fix back button behavior
fixes #12
2026-02-08 16:59:53 +04:00