-
Notifications
You must be signed in to change notification settings - Fork 4
fix: deeplink issue #337
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix: deeplink issue #337
Conversation
Caution Review failedThe pull request is closed. WalkthroughRefactors scan-qr page to show an in-drawer persistent success UI for signing/blind voting, adds a confirm handler, and aligns camera control. Introduces a global deep-link event bridge in layout, dispatching/storing payloads and routing to scan-qr, with listeners and cleanup. Adds guards to prevent duplicate deep-link processing. Changes
Sequence Diagram(s)sequenceDiagram
autonumber
actor User
participant OS as OS/Browser
participant Layout as +layout.svelte
participant Session as sessionStorage
participant Scan as scan-qr/+page.svelte
OS->>Layout: Deep link arrives (auth/sign/reveal data)
Note over Layout: Dispatch CustomEvent "deepLinkReceived"
Layout->>Session: Save deepLinkData (backup)
alt Current route != /scan-qr
Layout->>OS: navigate(/scan-qr)
end
Layout-->>Scan: Event "deepLinkReceived" (if on page)
Scan->>Scan: Guard against duplicate/in-flight\nprocessing
Scan->>Scan: Process deep link payload
Scan->>Scan: startScan or cancelScan per flow
sequenceDiagram
autonumber
participant Scan as scan-qr/+page.svelte
participant Camera as Camera
participant Drawer as Signing Drawer
participant Nav as Router
Scan->>Camera: startScan()
Camera-->>Scan: QR data → sign/blind-vote
Scan->>Scan: Perform sign / submit blind vote
Scan->>Camera: cancelScan()
Scan->>Drawer: showSigningSuccess = true
Note over Drawer: Success screen shown with “Okay”
User->>Drawer: Click Okay
Drawer->>Scan: handleSuccessOkay()
Scan->>Scan: Reset state
Scan->>Nav: navigate(/main)
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~25 minutes Possibly related PRs
Suggested reviewers
Poem
Tip 🔌 Remote MCP (Model Context Protocol) integration is now available!Pro plan users can now connect to remote MCP servers from the Integrations page. Connect with popular remote MCPs such as Notion and Linear to add more context to your reviews and chats. 📜 Recent review detailsConfiguration used: CodeRabbit UI Review profile: CHILL Plan: Pro 💡 Knowledge Base configuration:
You can enable these sources in your CodeRabbit configuration. 📒 Files selected for processing (2)
✨ Finishing Touches🧪 Generate unit tests
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. 🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
SupportNeed help? Create a ticket on our support page for assistance with any issues or questions. CodeRabbit Commands (Invoked using PR/Issue comments)Type Other keywords and placeholders
CodeRabbit Configuration File (
|
Description of change
Issue Number
Type of change
How the change has been tested
Change checklist
Summary by CodeRabbit
New Features
UX Improvements
Behavior Changes
Reliability