v0.165.1: native Megosztás… button in the share modal (Web Share API)

Feature-detected navigator.share opens the OS share sheet with title+text+URL only
(no QR files: — narrow support drops the URL when given file+URL). Hidden unless
supported; Link másolása stays the universal fallback and catches the non-cancel
rejection; AbortError is silent. Template JS + tests only. 2 red-proofs verified red.
This commit is contained in:
2026-07-24 12:43:14 +02:00
parent 570fb30147
commit a04afc367b
6 changed files with 161 additions and 98 deletions
+5 -1
View File
@@ -311,7 +311,11 @@ template partial; the app slice comes from the extracted `Server.launcherApps()`
(`GET /launcher/share/qr.png`, ~256px PNG via `github.com/skip2/go-qrcode`, admin-authed, `no-store`),
set/clear share password, "Új link készítése" (rotate), "Megosztás kikapcsolása" (clears token AND
password). The management POSTs live under `/launcher/share/*` and ride the normal admin session +
session CSRF; rotate/disable use the inline `data-confirm` (felhomConfirm) affordance.
session CSRF; rotate/disable use the inline `data-confirm` (felhomConfirm) affordance. A
feature-detected **"Megosztás…"** button (v0.165.1) opens the OS share sheet via `navigator.share`
(title + text + URL only — never the QR as a `files:` attachment); hidden unless the browser
supports it, with "Link másolása" as the universal fallback (the non-cancel rejection path falls
back to it too).
Design ruling: member accounts are superseded by this capability-URL model; per-member tile
visibility is parked under the SSO arc.