Files
grimoire/src
Alejandro d172d67584 Add download button to Zapstore app renderers (#108)
* Add download button to Zapstore app renderers

Add a download button for the latest release to both the feed and detail
renderers for kind 32267 (Zapstore App Metadata). The feed renderer shows
a compact version button, while the detail renderer shows a prominent
download button in the header. Both fetch the latest release and link to
its file metadata event (kind 1063) for download.

* Add proper relay hints for fetching Zapstore releases

Use useLiveTimeline instead of eventStore.timeline() to actually fetch
release events from relays. Relay selection includes:
- Seen relays (where the app event was received from)
- Publisher's outbox relays (NIP-65)
- Aggregator relays as fallback

This ensures releases are properly fetched rather than just read from
the local event store cache.

* Add relay hints when opening file events for download

Pass relay hints from the release event's seen relays when opening
file metadata events (kind 1063) for download. This ensures the
event loader knows where to fetch the file event from.

Also adds relay hints to the ReleaseItem component for both opening
the release detail and the download file.

---------

Co-authored-by: Claude <noreply@anthropic.com>
2026-01-15 16:30:19 +01:00
..
2026-01-15 16:13:50 +01:00
2025-12-22 22:38:52 +01:00
2026-01-15 16:13:50 +01:00
2026-01-14 19:24:37 +01:00
2026-01-15 16:13:50 +01:00
2026-01-14 19:24:37 +01:00
2026-01-14 19:24:37 +01:00