Ship deep links#50
Conversation
|
Caution Review failedThe pull request is closed. WalkthroughThis pull request implements deep linking support for the Superset Desktop application. It adds protocol scheme registration in the Electron Builder configuration, handles incoming deep link URLs in the main process via a dedicated manager, exposes deep link URLs through an IPC channel, and provides a React hook for renderer-side consumption via polling. Changes
Sequence DiagramsequenceDiagram
participant User as External App
participant MainProc as Main Process
participant Manager as Deep Link Manager
participant IPC as IPC Channel
participant Renderer as Renderer Process
participant Hook as useDeepLink Hook
User->>MainProc: Trigger deep link (open-url event)
MainProc->>Manager: setUrl(deepLinkUrl)
Manager->>Manager: Store URL + log
rect rgb(200, 220, 255)
Note over Hook: Poll Loop (every 1000ms)
Hook->>IPC: invoke("deep-link-get-url")
end
IPC->>Manager: getAndClearUrl()
Manager-->>IPC: Return stored URL + clear
IPC-->>Hook: URL or null
alt URL received
Hook->>Hook: Log URL
Hook->>Renderer: handler(url) callback
Renderer->>Renderer: Process deep link
else No URL
Hook->>Hook: Continue polling
end
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~25 minutes
Poem
✨ Finishing touches
🧪 Generate unit tests (beta)
📜 Recent review detailsConfiguration used: CodeRabbit UI Review profile: CHILL Plan: Pro 📒 Files selected for processing (8)
Comment |
Description
Related Issues
Type of Change
Testing
Screenshots (if applicable)
Additional Notes
Summary by CodeRabbit