metube/ui
Helmut 6ff364aacf feat(ui): warn before share + surface failures for large files
Web Share fails silently when iOS' share sheet refuses the payload,
typically because the file exceeds the platform's soft size limit
(~50–100 MB depending on iOS version). The previous patch logged to
the console but the user saw nothing — staring at a button that
'does nothing' is poor UX.

Adds two layers of feedback:

1. Pre-flight size check (SHARE_SIZE_WARN_BYTES = 80 MB, conservative
   relative to iOS' actual limit) with a confirm() dialog before the
   fetch. Avoids spending bandwidth pulling a 150 MB blob into the
   browser only for navigator.canShare to reject it.

2. Surfaces canShare-rejection AND share()-failure as a visible
   alert() suggesting the user fall back to the download link next
   to the share button.

Tested locally with files from 0.7 MB up to 150.7 MB: small files
share unchanged, the 150 MB file now produces a pre-flight warning
the user can dismiss, and any subsequent rejection produces a clear
alert instead of silently no-op'ing.
2026-05-29 04:56:52 +02:00
..
src feat(ui): warn before share + surface failures for large files 2026-05-29 04:56:52 +02:00
.editorconfig upgrade dependencies (migrate to Angular 10) 2021-02-02 21:09:28 +02:00
angular.json code review fixes 2026-03-15 20:53:13 +02:00
eslint.config.js feat(frontend): modernize Angular app 2025-12-15 01:56:47 +01:00
ngsw-config.json exclude index.html from service worker 2024-12-08 18:24:40 +06:00
package.json upgrade dependencies 2026-04-21 16:20:39 +03:00
pnpm-lock.yaml upgrade dependencies 2026-04-21 16:20:39 +03:00
pnpm-workspace.yaml fix pnpm build 2026-04-12 23:07:22 +03:00
tsconfig.app.json feat(frontend): modernize Angular app 2025-12-15 01:56:47 +01:00
tsconfig.json feat(frontend): modernize Angular app 2025-12-15 01:56:47 +01:00
tsconfig.spec.json feat(frontend): modernize Angular app 2025-12-15 01:56:47 +01:00