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
+21
View File
@@ -1,5 +1,26 @@
## Changelog
### v0.165.1 — Native "Megosztás…" button in the share modal (Web Share API) (2026-07-24)
No agent coupling; MinAgent unchanged. Template JS + tests only — no backend, no routes, no
settings, no dependency changes.
The "Indítópult megosztása" modal gains a **"Megosztás…"** button that opens the OS share sheet via
`navigator.share` (Messenger / WhatsApp / email / anything installed), sending the share **title +
text + URL only**. Feature-detected: the button is `display:none` in the markup and revealed only
when `navigator.share` exists; the universal **"Link másolása"** stays as the fallback and is never
demoted. A user cancel (`AbortError`) is silent; any other rejection falls back to `copyShareLink()`
so the user still keeps the link on the clipboard.
- **The QR is deliberately NOT attached** to the share payload (no Web Share Level-2 `files:`):
file-share support is narrow and several targets drop the URL when handed file+URL, leaving an
unscannable QR picture in a chat. The QR's job — physical cross-device scanning — is already served
by the modal image (mobile long-press covers "send the picture" with zero code).
- Share copy (user-to-user, deliberately conjugation-free): title `Indítópult — <domain>`, text
"Az otthoni alkalmazások egy helyen.".
- Tests: Group A (button hidden-by-default + feature-detect reveal + title/text/url-only payload,
no `files:`) + Group B (AbortError-silent + non-abort fallback to copy); 2 red-proofs verified red.
### v0.165.0 — Indítópult megosztása: guest launcher via capability URL (2026-07-24)
No agent coupling; MinAgent unchanged. New dependency: `github.com/skip2/go-qrcode`