From 5e097f99437776312ce7239340b66710e79dc78f Mon Sep 17 00:00:00 2001 From: "dobby-yivi-agent[bot]" <275734547+dobby-yivi-agent[bot]@users.noreply.github.com> Date: Tue, 2 Jun 2026 14:48:24 +0000 Subject: [PATCH] fix(filesharing): announce decrypt progress to AT, trim removal comment MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Follow-up to #241. - Wrap DecryptionProgress in `role="status" aria-live="polite"` so the Yivi → Decrypting transition is announced to assistive tech (WCAG 4.1.3 Status Messages). - Indeterminate progressbar: drop `aria-valuemin`/`aria-valuemax` (only meaningful alongside `aria-valuenow`) and add `aria-busy="true"`. - Trim the multi-line removal-context comment in fallback/Decrypt.svelte to a single line stating the current invariant. Closes #138 --- src/lib/components/fallback/Decrypt.svelte | 7 ++----- src/lib/components/filesharing/DecryptionProgress.svelte | 5 ++--- 2 files changed, 4 insertions(+), 8 deletions(-) diff --git a/src/lib/components/fallback/Decrypt.svelte b/src/lib/components/fallback/Decrypt.svelte index a2631ae..03ff210 100644 --- a/src/lib/components/fallback/Decrypt.svelte +++ b/src/lib/components/fallback/Decrypt.svelte @@ -104,11 +104,8 @@ }, }) - // pg-js auto-unwraps `data:`-mode payloads (single-entry zip - // with `data.bin`) into DecryptDataResult.plaintext. Email - // fallback uploads are always `data:` mode, so this branch is - // the expected one. If we ever receive a multi-file result - // here, fall back to the first entry's bytes. + // Email fallback uploads are `data:` mode → plaintext; + // `files[0]` is a defensive fallback for unexpected shapes. const plaintext = result.plaintext ?? new Uint8Array(await result.files[0].blob.arrayBuffer()) diff --git a/src/lib/components/filesharing/DecryptionProgress.svelte b/src/lib/components/filesharing/DecryptionProgress.svelte index 0589ee6..00eb05d 100644 --- a/src/lib/components/filesharing/DecryptionProgress.svelte +++ b/src/lib/components/filesharing/DecryptionProgress.svelte @@ -10,7 +10,7 @@ let determinate = $derived(typeof percentage === 'number') -
+

{$_('filesharing.decryptpanel.downloadingAndDecrypting')}

@@ -35,8 +35,7 @@ class="bar-track" role="progressbar" aria-labelledby="decryption-progress-label" - aria-valuemin="0" - aria-valuemax="100" + aria-busy="true" >