Skip to content

fix: open Yivi app on mobile /decrypt page instead of QR#201

Closed
dobby-coder[bot] wants to merge 1 commit into
mainfrom
fix/issue-163-mobile-decrypt-deeplink
Closed

fix: open Yivi app on mobile /decrypt page instead of QR#201
dobby-coder[bot] wants to merge 1 commit into
mainfrom
fix/issue-163-mobile-decrypt-deeplink

Conversation

@dobby-coder

@dobby-coder dobby-coder Bot commented May 9, 2026

Copy link
Copy Markdown
Contributor

Summary

On mobile, visiting the /decrypt fallback page (e.g. via the link in a PostGuard email) showed a QR code, which is useless when the user is already holding the phone they would scan with. Mirrors the existing /download page pattern by detecting mobile and switching the underlying YiviQRCode component into deeplink mode, which auto-clicks the Yivi-app button and triggers the universal link to open the Yivi app directly.

  • src/lib/components/fallback/Decrypt.svelte: import isMobile from $lib/browser-detect, compute isMobileDevice once at component init, and pass mode={isMobileDevice ? 'deeplink' : 'qr'} to YiviQRCode.

No locale or component-API changes; uses the existing deeplink mode already supported by YiviQRCode.svelte and used by /download.

Conflict awareness

PR #198 (issue #162) also touches src/lib/components/fallback/Decrypt.svelte but only edits the <h3> text and adds a <p class="card-subtitle"> inside the QR card. This PR only edits the <YiviQRCode ... /> line and the imports/state at the top — non-overlapping line ranges, so it should rebase cleanly whichever lands first.

Test plan

  • npm run check (svelte-check) — 0 errors / 0 warnings
  • npm run build — clean static build
  • npx prettier --check on touched file — formatted
  • Manual: open the /decrypt page on a mobile device; the Yivi app should open via universal link instead of rendering a QR code
  • Manual: open the /decrypt page on desktop; QR code should still render as before

Reviewer quickstart:

git fetch origin && git checkout fix/issue-163-mobile-decrypt-deeplink && npm install --legacy-peer-deps && npm run dev

Closes #163

The /decrypt fallback page rendered a QR code on mobile, which is
useless when the user is already on their phone. Mirror the /download
page's pattern: detect mobile and pass mode=deeplink to YiviQRCode so
it auto-clicks the Yivi-app button and triggers the universal link.

Closes #163
@dobby-coder

dobby-coder Bot commented May 9, 2026

Copy link
Copy Markdown
Contributor Author

Superseded by #203 (consolidation per encryption4all/dobby#53). Closing to keep the queue tidy.

@dobby-coder dobby-coder Bot closed this May 9, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Decrypt page with QR code on mobile does not open Yivi app

0 participants