Connect Google Calendar for the next meeting without turning on Mail

Open
#963 0 comments 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 2 days

Nobody has claimed this yet.

Assessment

Difficulty
5/5
Estimated time
Over a week
Newbie friendliness
20/100
Issue type
Feature
Clarity
Needs clarification
Activity status
Active
Tech stack
swift

Research direction

The issue names OutlookCalendars, MeetingsGoogle, and MailClient.underReview, and says the non-visible sign-in, account, and reading work is already on a branch with tests. Start by reviewing that branch and its tests, then clarify the proposed Connect menu and Settings › Tabs behavior and Google consent flow with the author. Done means those decisions are settled and the two UI parts are implemented; the issue does not name specific files or tests.

Written by the indexing model from the issue text.

Description

area: media Polish proposal
The problem

A pinned Google Calendar shows "No calendar connected" with Connect until Yab can read a calendar. Today that takes one of:

  • the Mac's calendars, which means adding the Google account in System Settings › Internet Accounts;
  • a Gmail account connected in Yab Mail, which is experimental and off by default;
  • Outlook, calendar only, still off until Yab has a Microsoft app.

With Mail off, Connect only asks for the Mac's calendars. People who live in Google Calendar (or Notion Calendar, which sits on Google Calendar and has no public API) and don't use the Mac's Calendar never see the meeting list, the countdown or Join.

What you'd like
Proposal

Connect a Google account for its calendar alone, the way Outlook already can (OutlookCalendars):

  • Sign-in: the Mac's sheet, like Mail's Google sign-in, with Yab's Google client asking only for calendar.events.readonly, calendar.calendarlist.readonly, plus openid email to know which account it is. No Gmail scope.
  • Token: the refresh token in the keychain, apart from Mail's.
  • Reading: the meetings are read with the code Mail's accounts already use (MeetingsGoogle), so the card, the countdown, Join and ⌃⌘J are unchanged.
  • Shared address: an address connected in Mail too is read once. Remove doesn't revoke at Google while Mail holds the same address.

Two visible changes, mocked up here:

  1. Connect on the card, Mail off: a short menu instead of going straight to the Mac's question.
 No calendar connected      [Connect ▾]
                             ├ Google Calendar
                             └ Calendars on This Mac

(Outlook Calendar would join the list once Yab has a Microsoft app.) With Mail on, Connect keeps opening Settings › Mail.

  1. Settings › Tabs, under "Your next meeting":
 Your next meeting                                  [on]
 Google Calendar     [email protected]            [Remove]
                     [email protected]  Signed out  [Sign In Again]
                     [Add Google Calendar]
Questions
  • Is a menu on Connect the shape you want, or would you rather Connect go straight to Google and keep the Mac's calendars in Settings?
  • While MailClient.underReview is true, does a sign-in with only the calendar scopes still show Google's "hasn't verified this app" page? If it does, a warning step with calendar wording comes first (as warnFirst does for Mail).
  • Are openid and email fine to add to the client, or would you prefer the address read from the calendar list?

The non-visible part (sign-in, accounts, reading) is ready on a branch with tests. I'll build the two UI parts once you say yes to a shape.

How you manage today (optional)

No response

Yab version (optional)

Version 0.48.0 (202611161400)

Dominant language
Swift
Stars
648
Forks
56
Avg merge
21h 14m
Merged PRs (30d)
22

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from yetanotherbrowser/yab

All issues in yetanotherbrowser/yab

Similar issues

More Swift issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.