Skip to content

Add per-account toggle to select all calendars in a group - #1070

Open
xenofex7 wants to merge 1 commit into
leits:masterfrom
xenofex7:feature/calendar-group-toggle
Open

xenofex7 wants to merge 1 commit into
leits:masterfrom
xenofex7:feature/calendar-group-toggle

Conversation

@xenofex7

@xenofex7 xenofex7 commented Nov 23, 2026 •

Copy link
Copy Markdown

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.

  • 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.

@coderabbitai

coderabbitai Bot commented Nov 23, 2026 •

Copy link
Copy Markdown

Explain Change →

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.

Estimated code review effort: 2 (Simple) | ~8 minutes

Change: Feature

Suggested reviewers: leits

Merge Risk: Minimal · up to 4a953

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: Passed 4

Check name Status Explanation
Title check Passed 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 Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check Passed Check skipped because no linked issues were found for this pull request.
Description Check Passed 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.

Share

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant