feat(desktop): improve auto-updater with user notifications#243
feat(desktop): improve auto-updater with user notifications#243
Conversation
- Add dialog prompt when update is downloaded with "Restart Now" / "Later" options - Add "Check for Updates..." menu item in app menu (macOS) - Remove legacy make:release script from package.json - Wire up main window reference for proper dialog display 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
|
Caution Review failedThe pull request is closed. WalkthroughThis PR establishes a macOS-focused interactive update flow by refactoring the auto-updater module to display user dialogs for update checks and installations, wires the main window into the auto-updater for UI rendering, adds a "Check for Updates" menu item, and removes the make:release script and redundant imports. Changes
Sequence DiagramsequenceDiagram
actor User
participant Menu as Menu
participant AutoUpdater as Auto-Updater
participant Dialog as System Dialog
participant Electron as Electron Update
User->>Menu: Clicks "Check for Updates..."
Menu->>AutoUpdater: checkForUpdatesInteractive()
AutoUpdater->>AutoUpdater: Platform/Dev Guard Check
AutoUpdater->>Electron: Check for updates
Electron-->>AutoUpdater: Update available or not
alt Update Available
AutoUpdater->>Dialog: Show update dialog
Dialog-->>User: Update ready. Restart now?
User->>Dialog: Confirm restart
Dialog->>AutoUpdater: User confirmed
AutoUpdater->>Electron: quitAndInstall()
else No Update
AutoUpdater->>Dialog: Show "No updates" dialog
Dialog-->>User: You are up to date
end
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~25 minutes
Possibly related PRs
Poem
✨ Finishing touches
🧪 Generate unit tests (beta)
📜 Recent review detailsConfiguration used: CodeRabbit UI Review profile: CHILL Plan: Pro 📒 Files selected for processing (5)
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. Comment |
🤖 Generated with Claude Code
Description
Related Issues
Type of Change
Testing
Screenshots (if applicable)
Additional Notes
Summary by CodeRabbit
Release Notes
New Features
Chores
✏️ Tip: You can customize this high-level summary in your review settings.