97 Commits
Author SHA1 Message Date
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 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 543d810ab2 Remove the unused canUseClipboard helper
CI / Lint (pull_request) Successful in 55s
CI / Test (pull_request) Successful in 1m22s
Release Drafter / Update release notes draft (pull_request) Successful in 15s
canCopyText covers the same capability checks and is the one the app actually uses.
2026-11-29 17:31:45 +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 d0275918b3 Merge pull request 'Add NIP-89 app handler docs and Nostr publishing scripts' (#132) from feature/nip-89 into master
CI / Lint (push) Successful in 53s
CI / Test (push) Successful in 1m13s
Reviewed-on: #132
2026-11-28 14:09:37 +00:00
raucao fc9f496416 Add the NIP-89 client tag to published events
CI / Lint (pull_request) Successful in 59s
CI / Test (pull_request) Successful in 1m21s
Release Drafter / Update release notes draft (pull_request) Successful in 16s
Tag published photos (kind 360), deletions (kind 5) and zap requests
(kind 9734) with ["client","Marco","31990:1f79058c…:marco.earth","wss://nostr.kosmos.org/"]
so clients can attribute them to Marco. Uses applesauce's EventFactory
clientTag via a shared app/utils/client-tag helper.
2026-11-28 18:04:08 +04:00
raucao 4d5e36f4f8 Open places and their photo from shared event links
CI / Lint (pull_request) Successful in 52s
CI / Test (pull_request) Successful in 1m13s
Release Drafter / Update release notes draft (pull_request) Successful in 14s
Add an /e/:event_id route that resolves a NIP-19 event reference (nevent
with relay hints, note, naddr, raw hex id, an optional nostr: prefix, or a
full permalink) to the event, reads its i tag and opens the place. When the
event is a place photo, focus it in the place details carousel via a
?photo= query param.

Also keep the selected place's photo subscription open instead of completing
on the first relay's EOSE, so photos that live on a slower relay are no
longer dropped (the submission relay holds only a subset).
2026-11-28 13:49:58 +04:00
raucao 748bc626a8 Publish and consume x tags on kind 360 place photos
CI / Lint (pull_request) Successful in 59s
CI / Test (pull_request) Successful in 1m24s
Release Drafter / Update release notes draft (pull_request) Successful in 16s
Emit top-level x tags for the primary media and thumbnail SHA-256 hashes (with the primary also inside imeta) when publishing. Parsed photos expose the hash set, and photo deletion prefers it over extracting hashes from Blossom URLs, keeping URL extraction as a fallback for legacy events.
2026-11-27 19:23:16 +04:00
raucao 6c3715ffff Use bare app name for NIP-46 in production builds
CI / Lint (pull_request) Successful in 53s
CI / Test (pull_request) Successful in 1m12s
Release Drafter / Update release notes draft (pull_request) Successful in 15s
Remote signers truncate the app name in their connection list, and Amber turns the space in "Marco (host)" into a literal plus sign. Keep the host suffix only outside of production builds, where distinguishing dev and self-hosted instances is useful.
2026-11-23 23:40:20 +04:00
raucao c07b428509 Add NIP-46 app metadata with origin, icon and permissions
CI / Lint (pull_request) Successful in 1m18s
CI / Test (pull_request) Successful in 1m20s
Release Drafter / Update release notes draft (pull_request) Successful in 34s
Marco (host) as app name, absolute icon URL, requested signing kinds
2026-11-23 22:45:40 +04:00
raucao 52fd5c1b15 Add submission-relay client support
CI / Lint (pull_request) Successful in 53s
CI / Test (pull_request) Successful in 1m11s
Release Drafter / Update release notes draft (pull_request) Successful in 16s
Default write relay, untrusted read relay, kind-5 author checks
2026-11-18 13:41:03 +04:00
raucao 53b5c2d2a4 Add place sharing via Web Share API and Marco link
CI / Lint (pull_request) Successful in 54s
CI / Test (pull_request) Failing after 1m11s
Add a Share button to the place details actions row. On systems with the
Web Share API it opens the native share sheet; everywhere else it opens a
small fallback menu offering "Copy link" and "Copy coordinates".

- OSM places share the public Marco place URL plus the name and
  coordinates; custom places share name and coordinates only, since their
  internal id is private and their Marco URL would not resolve for others
- No external map links; copy falls back to document.execCommand so the
  feature keeps working on non-secure origins
- The button is hidden while editing and when there is nothing to share
2026-11-16 12:30:48 +04:00
raucao b9103b28a9 Add operator info to place details
CI / Lint (pull_request) Successful in 1m5s
CI / Test (pull_request) Successful in 1m23s
Release Drafter / Update release notes draft (pull_request) Successful in 5s
2026-09-24 19:02:27 +02:00
raucao fe5e85b029 Add fallback icon for buildings
CI / Test (pull_request) Successful in 59s
CI / Lint (pull_request) Successful in 42s
Release Drafter / Update release notes draft (pull_request) Successful in 5s
2026-09-20 15:35:20 +02:00
raucao c6a0b0da5e Add fallback icon for unlisted historic tags 2026-09-20 15:34:58 +02:00
raucao 553faa5edd Add fortress icon for historic monasteries 2026-09-20 15:34:44 +02:00
raucao dda0a9846d Add icons for cycleways and rail transit, prioritize historic places 2026-09-20 14:50:49 +02:00
raucao 4f423c8abc Use bridge icon for historic aqueducts 2026-09-20 14:50:07 +02:00
raucao 231a08c2f9 Add icons for landuse tags 2026-09-20 14:49:57 +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 e9be615c9a WIP Add payment methods to place details 2026-09-08 12:33:06 -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 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 ad762b138f Add resorts to accommodation category, add icon
CI / Lint (pull_request) Successful in 1m7s
CI / Test (pull_request) Successful in 1m18s
Release Drafter / Update release notes draft (pull_request) Successful in 5s
2026-08-31 17:21:32 -06:00
raucao 23444a49a8 Omit year for current year, tweak layout
CI / Lint (pull_request) Successful in 1m2s
CI / Test (pull_request) Successful in 1m17s
Release Drafter / Update release notes draft (pull_request) Successful in 4s
2026-08-29 15:50:49 -06:00
raucao c7fc98d4bd Add place names to Activity timeline
Create a new place name resolver service with the logic previously used
for My Contributions only
2026-08-29 14:34:56 -06:00
raucao 3f6bd5267f WIP Add activity timeline route/sidebar showing incoming zaps 2026-08-29 12:01:48 -06:00
raucao 474bc8cd63 Add relay trust settings, provenance cache
By default, only automatically show photos for relays marked as trusted
(which by default is the required read relay). For other relays, only
show the user's own events by default, but allow showing all events via
link in place details (drawer bottom)
2026-08-26 18:06:06 -06:00
raucao 45c18100d3 Tune tag search/results
CI / Lint (push) Successful in 1m1s
CI / Test (push) Successful in 1m15s
2026-08-23 11:37:52 -06:00
raucao 7f9ee29136 Add more place icons
CI / Lint (pull_request) Successful in 1m0s
CI / Test (pull_request) Successful in 1m14s
Release Drafter / Update release notes draft (pull_request) Successful in 4s
Add 12 new icon/POI mappings, 10 of which are new icons/imports
2026-08-23 11:35:24 -06:00
raucao bf1fcbcb40 Improve photo tags
CI / Lint (pull_request) Successful in 1m1s
CI / Test (pull_request) Successful in 1m15s
Release Drafter / Update release notes draft (pull_request) Successful in 5s
2026-08-23 10:21:40 -06:00
raucao 5d9c6ebc89 Prioritize craft before amenity for place type
CI / Lint (push) Successful in 1m0s
CI / Test (push) Successful in 1m13s
It's usually more distinct and useful/interesting
2026-08-23 10:08:48 -06:00
raucao bfcf855020 Render data and uploader name for current photo in gallery
CI / Lint (pull_request) Successful in 1m0s
CI / Test (pull_request) Successful in 1m12s
Release Drafter / Update release notes draft (pull_request) Successful in 5s
2026-08-19 18:05:52 -06:00
raucao 21d261ef17 Fix perpetual "loading" titles when first opening the contributions list
CI / Lint (pull_request) Successful in 54s
CI / Test (pull_request) Successful in 1m8s
Release Drafter / Update release notes draft (pull_request) Successful in 5s
2026-08-19 09:22:46 -06:00
raucao 78687b63ff Move formatRelativeDate() to formatText util, add util tests
CI / Lint (pull_request) Successful in 54s
CI / Test (pull_request) Successful in 1m7s
Release Drafter / Update release notes draft (pull_request) Successful in 5s
2026-08-18 16:57:11 -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 9807a2b822 Add alt text to photo uploads
CI / Lint (pull_request) Successful in 53s
CI / Test (pull_request) Successful in 1m6s
Release Drafter / Update release notes draft (pull_request) Successful in 5s
- Form field for optionally adding a description
- Publish as `imeta` `alt`
- Render as `<img>` alt when set

Fixes a placeholder being published instead. Also strips the current
placeholder if set as alt text (for existing uploads).
2026-08-07 07:25:53 -06:00
raucao 1822c4893f Update pinhead icon paths for 15.25.0 2026-08-06 16:12:37 -05:00
raucao f01730fef5 Add icon and quick search results for tourist information
CI / Lint (pull_request) Successful in 33s
CI / Test (pull_request) Successful in 58s
Release Drafter / Update release notes draft (pull_request) Successful in 4s
2026-06-29 17:32:26 +02:00
raucao 448c51bab6 Add icons for city gates and historic towers 2026-06-29 17:28:57 +02:00
raucao 0bcbae374b Use "yes" tag values only as fallbacks if there isn't a more specific
OSM key
2026-06-29 17:28:00 +02:00
raucao c33fe3b268 Add icon for car repair shops 2026-06-29 17:08:55 +02:00
raucao 18bda60310 Add guest houses to hotel quick search 2026-06-29 17:02:43 +02:00
raucao f2c2eb1fdc Add icon for amenity=townhall 2026-06-29 15:55:28 +02:00
raucao b18e299eca Add missing icons, test for missing icons in rules
CI / Lint (pull_request) Successful in 34s
CI / Test (pull_request) Successful in 59s
Release Drafter / Update release notes draft (pull_request) Successful in 5s
2026-06-29 15:32:48 +02:00
raucao 76897c9e69 Turn default relays into required relays
CI / Lint (pull_request) Failing after 31s
CI / Test (pull_request) Successful in 55s
2026-06-07 16:21:26 +04:00
raucao 200100686d Optionally add tag to place photo
CI / Test (pull_request) Failing after 56s
CI / Lint (pull_request) Successful in 52s
2026-06-05 18:24:36 +04:00