feat(updates): toggle to disable background update check (closes #528)#529
Conversation
|
Caution Review failedFailed to post review comments WalkthroughThis PR adds functionality to enable or disable background update checks via a user-facing toggle in the Tweaks settings. When disabled, any scheduled update checks are canceled; when enabled, they are rescheduled. The feature includes new repository methods, state management, UI components, and boot-time handling across multiple languages. ChangesUpdate Check Toggle Feature
Sequence DiagramsequenceDiagram
participant User
participant UI as UI Toggle
participant ViewModel
participant Repository
participant Scheduler
User->>UI: Toggle update checks on/off
UI->>ViewModel: OnUpdateCheckEnabledToggled(enabled)
ViewModel->>Repository: setUpdateCheckEnabled(enabled)
Repository->>Repository: Persist preference
ViewModel->>ViewModel: Update state
alt enabled == true
ViewModel->>Scheduler: reschedule(interval)
Scheduler->>Scheduler: Schedule periodic checks
else enabled == false
ViewModel->>Scheduler: cancel()
Scheduler->>Scheduler: Cancel pending checks
end
ViewModel->>UI: updateCheckEnabled = enabled
UI->>User: Display toggle state
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~25 minutes Possibly related PRs
Poem
🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
Tip 💬 Introducing Slack Agent: The best way for teams to turn conversations into code.Slack Agent is built on CodeRabbit's deep understanding of your code, so your team can collaborate across the entire SDLC without losing context.
Built for teams:
One agent for your entire SDLC. Right inside Slack. 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 |
Closes #528
Summary
Adds a "Background update check" toggle in Tweaks → Updates so users who don't want periodic update checks can disable them entirely. Saves battery for users who prefer to check manually from each app's details screen.
What changed
Test plan
Summary by CodeRabbit
New Features
Localization