Open Nostr event links from the search field #134

Merged
raucao merged 2 commits from feature/nostr_search into master 2026-11-28 16:36:55 +00:00
2 Commits
Author SHA1 Message Date
raucao ad19c32719 Make the Nostr cancel test deterministic
CI / Lint (pull_request) Successful in 53s
CI / Test (pull_request) Successful in 58s
Release Drafter / Update release notes draft (pull_request) Successful in 15s
The test's mock resolved on a fixed 200ms timer, racing the ~200ms
window between the spinner appearing and the lookup completing. On a
slower CI browser the lookup finished (and toasted) before the query
was shortened, so the assertion failed. Hold the lookup open with a
manually released promise so it is always pending when the query is
shortened.
2026-11-28 19:46:35 +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