You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Add per-account toggle to select all calendars in a group - #1070
Each account section in Preferences → Calendars (iCloud, Exchange, Subscribed Calendars, ...) now has a switch in its header. It selects or deselects every calendar of that account in one click, which is handy for accounts with many calendars.
The switch is on when all calendars of the group are selected. With a partial selection it shows off, and clicking it selects the whole group.
It reuses the existing toggleCalendarSelection path for each calendar, so no new settings or persistence changes. The existing refresh throttle in CalendarSync collapses the resulting burst of selection changes into one fetch.
The switch uses the section title as its accessibility label, so no new localization strings are needed.
User-visible behavior
New switch on the right side of every calendar group header in the Calendars tab. Individual calendar switches work as before.
Validation
make build succeeds.
Checked visually in the running app with macOS Calendar as the source: the header switch renders next to each group title and matches the size of the row switches.
No dependency, entitlement, signing, URL scheme, script, workflow or localization changes.
Summary by CodeRabbit
New Features
Added a switch beside each calendar source name to select or deselect all calendars from that source.
No actionable comments were generated in the recent review.
Walkthrough
Calendar source sections now use a header with a switch. The switch is on when all calendars in the source are selected. Changing the switch applies the selected state to every calendar in that source.
Changes
Calendar source selection
Layer / File(s)
Summary
Source group selection switch MeetingBar/Preferences/CalendarsTab.swift
Each source section uses CalendarSourceHeader. Its switch reflects whether all calendars in the source are selected and applies changes to every calendar in the group.
This adds a per-source group switch in Preferences → Calendars that reuses the existing per-calendar toggle path. No concrete merge-blocking risk was found.
Pre-merge checks: 4
Check name
Status
Explanation
Title check
The title "Add per-account toggle to select all calendars in a group" matches the main change. The PR adds a switch to each source (account) group header in the Calendars preferences. The switch shows…
Linked Issues check
Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check
Check skipped because no linked issues were found for this pull request.
Description Check
Check skipped - CodeRabbit’s high-level summary is enabled.
Full details: Title check
Explanation
The title "Add per-account toggle to select all calendars in a group" matches the main change. The PR adds a switch to each source (account) group header in the Calendars preferences. The switch shows on when all calendars in the group are selected, and turning it on selects the whole group. The title is specific, short, and describes the primary change without noise.
Finishing Touches
Generate unit tests (beta)
Create a new PR
Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts
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.
A rabbit taps the switch with care, The source name and state are there. All calendars join the view, One small toggle updates the crew. Then off they hop beneath the moon.
Recent review info
Run configuration
Source mode: Auto
Repository: Unavailable
Branch: Unavailable
File: No configuration file from this repository applied
Commit: Unavailable
Layers: Repository UI
Review profile: CHILL
Plan: Advanced
Run ID: 92fdcb24-a56e-488f-9b77-53ca2ef42b3c
Commits
Reviewing files that changed from the base of the PR and between c8deee4 and 4a9537d.
Files selected for processing: 1
MeetingBar/Preferences/CalendarsTab.swift
Included review availability: This review used your included allowance. Your plan provides up to 8 included reviews per hour; 7 remain after this review.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What changed and why
Each account section in Preferences → Calendars (iCloud, Exchange, Subscribed Calendars, ...) now has a switch in its header. It selects or deselects every calendar of that account in one click, which is handy for accounts with many calendars.
toggleCalendarSelectionpath for each calendar, so no new settings or persistence changes. The existing refresh throttle inCalendarSynccollapses the resulting burst of selection changes into one fetch.User-visible behavior
New switch on the right side of every calendar group header in the Calendars tab. Individual calendar switches work as before.
Validation
make buildsucceeds.Summary by CodeRabbit