Repository navigation
Add a redesigned calendar and native Google integration - #300
Merged
Merged
Conversation
Contributor
|
CI failed at 918c9d3 (run). What each failed gate needs: Portable tests failedThe Rust, JavaScript and portable shell suites, the release checks or the contract inventory did not pass. Run the same set locally and read the first failing name in the log: Fix, push, and the gates run again; this comment updates itself. |
… UID A UID is not a secret: anyone who saw one invitation can mail another naming the same UID. calendar.attendance now takes the invitation's organizer and refuses the calendar copy, before any read-back or PATCH, when its organizer differs. An invitation naming no organizer makes no request, and a mismatch offers only the explicit email reply. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Discovery lists calendars other people shared, and their owners choose the names. The settings rows now draw the name and the source detail as plain text, and test_qml_text_format.py treats a model's `name` and `sourceDetail` as untrusted so a later row cannot drop it. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The pinned API 5 backend sends neither sendUpdates, conferenceDataVersion nor If-Match, so an event created there saved without its Meet link and added guests without telling them, and a drag overwrote edits made elsewhere. The composer offers these controls only with the API 6 backend, the controller refuses them rather than dropping them, and drag moves go through CalendarController.rescheduleRefusal, which requires it too. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
CalendarController.undoChange outlived an account switch, so `u` in account B quietly reverted the last edit made in account A. The undo now records the calendar scope it was made in; a write finishing after the view moved offers none, and an undo from another scope is dropped without a request. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…ry minute The minute refresh reassigned CalendarController.events even when nothing had changed, so every month and week delegate and the busy-day preview were rebuilt on the shell's GUI thread, and the agenda's model was recomputed on every clock tick. The controller now replaces the list only when Calendar.sameEvents says it differs, and the agenda keeps its model until the events it shows change. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The month overflow preview was a QQC.Popup, and an open Popup takes every key before the window's shortcuts, focused or not. Resting the pointer on a busy day silenced j, k, t and the view keys until it left. The preview is now an item drawn above the window, and Escape closes it through goBack() via CalendarView.dismissPreview. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
… access OAuth.SCOPES asks for calendar.calendarlist.readonly and AuthManager refuses a grant without it, but finish_google checked only the mail and calendar event scopes, so the two sign-in paths disagreed about what a usable grant was. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
huacnlee
previously approved these changes
Sep 29, 2026
A bundled runtime accepted exactly the pinned API 5, while `make app-run` bundles the backend this checkout builds, which answers with the unreleased API 6 step, so the handshake reported "Incompatible backend". Bundled mode now accepts the same one step past the pin the plugin does; features keep gating on the API the connected binary reports. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Calendar settings drew binary settings as "✓ Show in calendar" buttons, reminder timing as a "Desktop reminders: ..." button that disclosed a dropdown, and listed every calendar under a repeat of its account address. CalendarSettings now uses the rows the rest of the settings page uses: CALENDARS lists each mailbox with its calendars beneath it, each with a colour and a visibility switch; NEW EVENTS holds one default calendar row per account; REMINDERS holds the desktop reminder switch, the snooze minutes and one timing row per Google calendar. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…e dropdown A Google primary calendar is named after its address, so the account row, the calendar row, the default picker and the reminder row all repeated it; CalendarSettings.displayName calls it Primary beside its account. The account action now reads Refresh calendars whenever the account lists calendars, the colour dots sit on the account title's edge, and the default calendar row appears only where there is a choice. The standalone app gains an Omamail ComboBox style: one chevron, body-small text, the shared state fills, the selected fill while its list is open, and option rows marked with a check rather than the accent. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Event details drew Delete... as a toggle that disclosed up to three red buttons, each opening the confirmation again, and the detail view read the parent series itself. The details now hold one Delete... that opens ConfirmDeleteDialog, which names the event and offers a button per consequence from Calendar.deleteRequest: without email, notifying guests, one occurrence or the series, with the last as the default. CalendarController.deleteRequest, confirmDelete and deleteSeries own the decision, so App.qml only relays it. The details also drop the colour bar, set guest names below the title's weight and give Copy location a copy icon. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The editor labelled its calendar with an upper-case eyebrow, its dates with a wider left column and every other field with a label above it, so the form had three label styles and two left edges; the location's placeholder repeated its label; and Create event, the action Enter takes, looked like every other button. Every field is now labelled above on one edge, the location field suggests what to type, and the save action carries the accent on its edge and text. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
huacnlee
previously approved these changes
Sep 29, 2026
This was referenced Sep 30, 2026
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
A more complete calendar in Omamail
This PR redesigns the calendar: clearer views, easier navigation, better event editing, and useful reminders. Google Calendar is the first provider with the deeper native integration in this work, including calendar discovery, attendance updates and event management.
The redesigned views and navigation apply to the calendar as a whole. New drag/resize writes and desktop reminders are Google-only; other providers retain their existing, more limited create/edit/delete behavior. Google-specific features are called out below.
1. A clearer month view
Multi-day events now form one continuous bar, with continuation marks when they cross a week boundary. Overlapping trips and all-day events get separate rows. The month uses five or six weeks as needed, with lighter grid lines, a clearer today marker and more room for events.
Narrow Month rows put the event title before the time, so a short cell still tells you what is happening. Busy-day previews show the event count and cap their height, with a visible scrollbar for longer lists.
Before/after: narrow Month titles and a long busy-day preview
Narrow Month — title first instead of a time taking most of the row.
Busy-day preview — bounded height, event count and scrolling.
The same synthetic month is shown in both images. Look at Lakeside holiday, Design sprint and Design conference: repeated daily blocks become readable spans.
See everything on a busy day
Hover a day with “+ more…” to see its complete event list. The day stays highlighted, entries can be opened directly, and longer lists scroll. You can inspect a busy day while keeping the rest of the month in view.
Here, Friday has eight events across three calendars. The after image shows all eight, alongside the multi-day bars and redesigned month layout.
2. Better Day and Week views
This comparison combines a long timed conference, a two-day workshop, a birthday, overlapping meetings and the current-time indicator.
Before/after: an empty all-day lane is still useful
The same week with the top-lane events removed. The new lane remains available for click/drag creation.
Navigation that takes less space
Before/after: timed-span labels and a readable current meeting
Day, Week, Month and Agenda share one dropdown, with their keyboard shortcuts shown beside them. Previous/next arrows surround the date, clicking the date opens a picker, and Today sits alongside it. The separate Create event button is replaced by direct calendar interaction and the existing keyboard shortcut.
Agenda lists upcoming and ongoing events. Finished events drop out automatically.
Screenshots: Day, Agenda and the date picker
These are new views/states; the Week comparison above shows the previous calendar experience.
Day
Agenda
Date picker
3. A more capable event editor
The editor brings the calendar, dates, times and event options together:
A compact form with visible feedback
Description sits directly below Title with a persistent label. Typing a guest's name or email shows the same contact suggestions as composing mail. Enter chooses a suggestion while the list is open; Escape dismisses it without closing the event. Choosing a guest inserts only the email address and never submits the event.
Before/after: persistent labels, simpler default form and fixed action footer.
Before/after: a failed save in the same 660 × 900 window. The error was below the scrolling viewport; it is now visible beside the save actions without manual scrolling.
More editor comparisons: guest suggestions, reminder units and dark theme
4. Google integration that updates the actual calendar
This goes beyond displaying Google events:
If an invitation cannot be matched to Google Calendar, or the connected backend is API 5, Omamail offers Open Calendar and clearly labelled email-only responses. An email-only reply does not mark Calendar attendance as confirmed. Gmail-generated travel events also explain their editing restrictions instead of offering unsupported time changes.
Before/after: Gmail invitations on the pinned API-5 backend
The API-5 backend cannot execute native attendance updates. The invitation now offers explicit email-only responses instead of native choices that fail. These synthetic production-component captures use identical 900 × 600 dimensions, Solarized Light and scale 1; baseline
76c4e3a.The fallback shows one clear set of response choices. Event details put Join meeting and Edit near the title, followed by the description and guests. One Delete... control reveals the notification/series choices before the existing confirmation dialog.
Before/after: meeting details, delete choices and email-only invitation fallback
Screenshot: guest responses and meeting details
This synthetic capture illustrates the UI. It is not evidence of a live Google RSVP round trip; testing and remaining checks are listed below.
Other providers keep their limited behavior
Microsoft/Outlook, iCloud and generic CalDAV keep the shared redesigned views and their existing basic event operations, with read-only and recurring-CalDAV restrictions preserved. Deep native attendance, transfers and advanced Google options remain Google-specific. New drag/resize writes and desktop reminders are explicitly restricted to Google, including polling and candidate generation: previously saved non-Google reminder settings cannot enable them. Microsoft creation omits the unsupported Repeat control and ignores stale repeat state after switching calendars.
This is a compatibility boundary, not an expansion of the other provider adapters. Inherited limitations remain, including Outlook's preview-based description editing and incomplete attendee-status normalization; the new gestures no longer expose that editing path.
Before/after: limited Microsoft editor and calendar settings
Synthetic production-component captures at identical 1000 × 1100 dimensions, Solarized Light, font base 14 and scale 1; baseline
c50c3f1. The Microsoft editor no longer offers repetition that saving would reject. Settings remove non-Google reminder controls, including the global reminder section when no Google calendar is connected.5. Clearer setup and reminders
Settings now start with accounts and use one calendar list for visibility and reminder preferences. Each account has a dropdown for its default calendar for new events. Default-calendar and reminder settings can be saved for any available account, even when another mailbox is selected; event writes retain their mailbox scope. Google setup reuses the Gmail account and shared OAuth client, with specific actions to retry discovery, sign in again or enable the Calendar API.
Google desktop reminders have a global on/off switch, per-calendar timing and a snooze duration. They run while Omamail is running, even with its window closed. Hiding a Google calendar does not turn off its reminders. Google event reminders respect events that explicitly have no reminders.
Notifications request Open, Snooze and Dismiss, but some desktop notification cards expose only the default action. Delivered reminders therefore also appear in the calendar and matching event details, with visible Snooze and Dismiss buttons. Opening a notification no longer dismisses its reminder. Failed reminder actions leave the controls available with an error; successful actions remove the notice. Old notification callbacks cannot acknowledge a newer delivery in the same running instance.
A private persistent ledger prevents duplicate claims across shell and standalone instances. Each due event retains its own details and independent actions: dismissing one cannot dismiss or cancel another event's snooze, including records from an older grouped ledger. Reaching the desktop notification-process limit does not remove events from the in-app inbox. The in-app action list is session-local; restoring that list across restarts and cross-instance action synchronization remain runtime verification gaps.
Before/after: two reminders due in the same poll
The grouped response exposed only the first event and a count. Each event now has its own title, Open, Snooze and Dismiss controls. These synthetic production-component captures replay the old and new response shapes for the same events at identical 900 × 600 dimensions, Solarized Light and scale 1; baseline
76c4e3a.Before/after: reminder actions in narrow event details.
Reminder actions in the calendar and a failed-action state
After: failure keeps the reminder and its actions available.
More setup screenshots: connected accounts, selection, recovery and narrow layouts
These pairs show the final settings refinement compared with the earlier version of this calendar implementation.
Reminder timing: Off, Use Google event reminders, or Custom timing.
Testing and review status
Latest diagnostics repair (
63b6716): added the backend’scalendar_organizer_mismatchidentifier to the exact diagnostics allowlist, fixing the portable-test failure ond393151. The full portable shell suite and fullmake validatepass locally on this head. Fresh CI is pending; earlier green runs do not establish the status of this commit.Validation: Full
make validatepasses for3704706: Rust, JavaScript, shell/source checks, QML suites, standalone UI tests, QML lint and plugin validation. Both the development API-6 contract and pinned 0.10.7/API-5 released contract pass. Regression tests first failed against the original implementation, then passed for API-5 email-only replies, settings for another account, all-day drag moves across spring/autumn DST, and independent simultaneous reminders. The reminder tests also cover legacy grouped records and retaining inbox entries when the desktop process limit is reached. Provider-limit, editor interaction, reminder retry/stale-callback and event-identity coverage remain included. All 85 synthetic audit after captures, four provider-limit images and four review-repair images were inspected. This follow-up has not been installed locally. Cross-platform CI for3704706is pending.Previous cross-platform CI passed all 14 checks, including both macOS jobs, Linux/Windows standalone apps and backends, native credential contracts, portable tests and published/unreleased backend gates. Results for the newly pushed head must be checked separately.
The concurrency regression reproduced a first lock-file creation failure on macOS with OS error
ENOENT, matching the documented Darwinopenat(O_CREAT)create-or-open race (upstream report). The fix uses exclusive creation followed, only onEEXIST, by a non-creating open of the existing lock file. Both calls remain descriptor-relative and no-follow; ownership, link-count, private-mode and ACL validation still precede locking. Concurrent initialization, reminder claims and unsafe-existing-lock regressions now pass in macOS CI as well as locally.Focused tests cover multi-day layout, overlap selection, full-day scrolling and 23:00 event creation, drag/resize rollback, Enter-to-save, invalid dates, timed/all-day request conversion, discovery recovery, attendance handling and reminder behavior. One user-requested calendar transfer was also checked against Google with a follow-up read.
Ready for review; remaining verification: broader live Google checks remain, especially attendance matching outside the primary calendar, recurrence exceptions, all-day conversion and partial-transfer/Undo behavior. Reminder restart, suspend, cross-instance actions and Do Not Disturb behavior also need more runtime coverage. Desktop notification delivery is currently Linux-specific. Synthetic invitation and reminder interaction screenshots are included above; these do not establish live provider or desktop lifecycle behavior.
Implementation and security notes for reviewers
Security verdict: NOT VERIFIED for release. The scoped checks pass, but the complete new Google integration and reminder lifecycle still need the runtime evidence described above before approval.
About the screenshots
All images are synthetic Qt component captures using production calendar components and standalone UI adapters, with synthetic accounts/events and Solarized Light colours. They are not private live-mail screenshots. PNGs are uploaded to GitHub attachments and are not committed.
Each before/after pair uses the same events, dates, window dimensions, theme, font size and scale. Main Month/Week scenes are 1440 × 1000, font base 14, scale 1. Editor/settings and additional view captures are 1200 × 1000. Settings-refinement pairs are 1000 × 1200, or 660 × 1200 for the narrow view.
The main baseline is the pre-workspace calendar at
d583ab6; settings-refinement pairs use976c97a. Before/after hover captures place the pointer over the same busy date. Week captures show each version's initial presentation of the same date range; the redesign's morning scroll position and long-event placement are intentional differences.The labelled side-by-side audit comparisons use
612a92aas their baseline. Each half retains the same dimensions, fixture state, theme and scale: 1200 × 1100 for the editor, 660 × 900 for save failure and narrow details, 660 × 1000 for narrow Month, 1440 × 1000 for Week, and 900 × 700 for the invitation fallback. Dark editor and reminder/overflow comparisons use 1200 × 1000. The evidence includes 85 after-state captures and matched baselines; images were reviewed at contact-sheet and full resolution. No real event or RSVP mutation was made for this audit.Release Notes