Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
26 commits
Select commit Hold shift + click to select a range
b156a18
Add Google Calendar workspace, attendance and desktop reminders
klaudworks Sep 28, 2026
8855ab3
Add calendar setup guidance and full-day scrolling
klaudworks Sep 28, 2026
fdcd1a8
Fix navigation test isolation for persistent composers
klaudworks Sep 28, 2026
e110c7d
Fix calendar test fixtures for macOS and labelled visibility controls
klaudworks Sep 28, 2026
afa97c3
Add mail contact suggestions to calendar guests
klaudworks Sep 28, 2026
612a92a
Fix calendar guest selection test viewport
klaudworks Sep 28, 2026
56841c1
Fix calendar editor feedback and expose reminder actions
klaudworks Sep 28, 2026
2f6fa07
Add concurrent reminder storage regression coverage
klaudworks Sep 28, 2026
c50c3f1
Fix concurrent lock-file creation on macOS
klaudworks Sep 28, 2026
76c4e3a
Fix calendar provider limits for gestures and reminders
klaudworks Sep 28, 2026
3704706
Fix calendar RSVP compatibility, settings, DST moves and reminders
klaudworks Sep 28, 2026
f047b5d
chore: Fix native agent test cleanup race
klaudworks Sep 29, 2026
60992ab
Fix RSVP writes to a calendar event that only shares the invitation's…
huacnlee Sep 29, 2026
6b83d97
Fix calendar names reaching Qt's rich text engine in calendar settings
huacnlee Sep 29, 2026
c408e35
Fix Google guests, Meet and drag moves on the API 5 backend
huacnlee Sep 29, 2026
b116db9
Fix calendar undo reverting a change in another account
huacnlee Sep 29, 2026
eff1d8c
Fix calendar lists rebuilding and the agenda scrolling to the top eve…
huacnlee Sep 29, 2026
fd5813d
Fix the busy-day preview swallowing every calendar shortcut
huacnlee Sep 29, 2026
fbf94f7
Fix the native Google sign-in accepting a grant without calendar list…
huacnlee Sep 29, 2026
52d82c9
Fix the standalone app refusing the backend built from this checkout
huacnlee Sep 29, 2026
677560e
Fix calendar settings to use switches and the settings page's row layout
huacnlee Sep 29, 2026
8bb9be9
Fix calendar settings alignment, repeated addresses and the standalon…
huacnlee Sep 29, 2026
7f7aa69
Fix event deletion to choose its consequence in one named confirmation
huacnlee Sep 29, 2026
d393151
Fix the event editor's mixed label styles and unemphasised save action
huacnlee Sep 29, 2026
918c9d3
Merge branch 'main' into feat/calendar-workspace
klaudworks Sep 29, 2026
63b6716
Fix calendar organizer mismatch diagnostics allowlist
klaudworks Sep 29, 2026
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 5 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -66,14 +66,15 @@ QML_FILES := ui/Service.qml ui/BarWidget.qml ui/App.qml ui/compose/RecoveryContr
ui/components/SettingsSidebar.qml \
ui/components/CalendarSettings.qml \
ui/components/CalendarEventComposer.qml \
ui/components/CalendarEventDetail.qml \
ui/components/CalendarEventDetail.qml ui/components/CalendarReminderPanel.qml \
ui/components/CalendarPalette.qml \
ui/components/ConfirmDeleteDialog.qml \
ui/components/SetupPage.qml \
ui/components/ShortcutHelp.qml \
ui/calendar/CalendarController.qml ui/calendar/CalendarCache.qml \
ui/calendar/CalendarController.qml ui/calendar/CalendarCache.qml ui/calendar/CalendarReminders.qml ui/calendar/CalendarReminderInbox.qml \
ui/components/CalendarView.qml \
ui/components/WeekCalendarView.qml \
ui/components/WindowMoveArea.qml \
ui/bar/BarPreview.qml
APP_QML_FILES := app/qml/Main.qml app/qml/StandaloneShell.qml app/qml/StandaloneManifest.qml
APP_BUILD_DIR ?= app/build
Expand Down Expand Up @@ -138,6 +139,7 @@ test-js:
node ui/tests/test_calendar_cache.js
node ui/tests/test_calendar_feed.js
node ui/tests/test_calendar_sources.js
node ui/tests/test_calendar_reminders.js
node ui/tests/test_calendar_palette.js
node ui/tests/test_bar_preview.js
node ui/tests/test_unsubscribe.js
Expand Down Expand Up @@ -179,6 +181,7 @@ test-shell-portable:
sh tests/test_dev.sh
python3 tests/test_attachment_common.py
python3 tests/test_notification.py
python3 tests/test_calendar_notifications.py
python3 tests/test_curl_config.py
python3 tests/test_public_http.py
python3 tests/test_contacts.py
Expand Down
41 changes: 36 additions & 5 deletions app/qml/imports/qs/Ui/Dropdown.qml
Original file line number Diff line number Diff line change
Expand Up @@ -67,14 +67,45 @@ Item {
palette.button: root.background
palette.highlight: root.accent
palette.window: root.background
font.family: root.fontFamily
font.pixelSize: Style.font.bodySmall
// One row per option at the shell's popup row height: the cursor row takes
// the hover fill, the chosen one a check, and neither is coloured with the
// accent.
delegate: QQC.ItemDelegate {
id: option
required property var modelData
width: combo.width
required property int index
width: combo.width - 2
height: root.popupRowHeight
text: String(modelData.label || "")
font.family: root.fontFamily
palette.text: root.foreground
palette.highlight: root.accent
leftPadding: Style.spacing.controlPaddingX
rightPadding: Style.spacing.controlPaddingX
highlighted: combo.highlightedIndex === index
contentItem: Row {
spacing: Style.space(6)
Text {
width: Style.space(12)
anchors.verticalCenter: parent.verticalCenter
text: option.index === combo.currentIndex ? "✓" : ""
color: root.foreground
font.family: root.fontFamily
font.pixelSize: Style.font.bodySmall
}
Text {
anchors.verticalCenter: parent.verticalCenter
width: option.availableWidth - Style.space(18)
text: String(option.modelData.label || "")
textFormat: Text.PlainText
elide: Text.ElideRight
color: root.foreground
font.family: root.fontFamily
font.pixelSize: Style.font.bodySmall
}
}
background: Rectangle {
color: option.highlighted || option.hovered
? Style.hoverFillFor(root.foreground, root.accent) : "transparent"
}
}
onActivated: function(index) {
if (index < 0 || index >= root.options.length) return
Expand Down
96 changes: 96 additions & 0 deletions app/qml/styles/Omamail/ComboBox.qml
Original file line number Diff line number Diff line change
@@ -0,0 +1,96 @@
import QtQuick
import QtQuick.Templates as T
import qs.Commons

// The shell's Dropdown, drawn here: a platform ComboBox brings its own
// up/down arrows and its own type size, which read as a foreign control in a
// settings row whose other controls follow the shell's scale.
T.ComboBox {
id: control

readonly property color semanticForeground: palette.buttonText
readonly property color semanticAccent: palette.highlight
readonly property int chevronSize: Math.max(8, Math.round(Style.font.bodySmall * 0.7))

implicitWidth: Style.spacing.dropdownWidth
implicitHeight: Style.spacing.controlHeight
leftPadding: Style.spacing.controlPaddingX
rightPadding: Style.spacing.controlPaddingX * 2 + chevronSize
font.pixelSize: Style.font.bodySmall

contentItem: Text {
text: control.displayText
font: control.font
color: control.semanticForeground
verticalAlignment: Text.AlignVCenter
elide: Text.ElideRight
textFormat: Text.PlainText
}

indicator: Canvas {
objectName: "omamail-combobox-chevron"
x: control.width - width - Style.spacing.controlPaddingX
y: (control.height - height) / 2
width: control.chevronSize
height: Math.round(control.chevronSize / 2) + 2
onPaint: {
var ctx = getContext("2d")
ctx.reset()
ctx.strokeStyle = control.semanticForeground
ctx.lineWidth = 1.5
ctx.beginPath()
ctx.moveTo(1, 1)
ctx.lineTo(width / 2, height - 1)
ctx.lineTo(width - 1, 1)
ctx.stroke()
}
Connections {
target: control
function onSemanticForegroundChanged() { parent.requestPaint() }
}
}

// The trigger holds the selected fill while its list is open, so the list
// reads as attached to the control that opened it.
background: Rectangle {
objectName: "omamail-combobox-background"
radius: Style.cornerRadius
color: control.pressed ? Style.pressedFillFor(control.semanticForeground, control.semanticAccent)
: control.popup.visible ? Style.selectedFillFor(control.semanticForeground, control.semanticAccent)
: control.visualFocus ? Style.focusFillFor(control.semanticForeground, control.semanticAccent)
: control.hovered ? Style.hoverFillFor(control.semanticForeground, control.semanticAccent)
: Style.normalFillFor(control.semanticForeground, control.semanticAccent)
border.width: Style.normalBorderWidth
border.color: control.visualFocus || control.hovered
? Style.hoverBorderFor(control.semanticForeground, control.semanticAccent)
: Style.normalBorderFor(control.semanticForeground, control.semanticAccent)
}

popup: T.Popup {
readonly property real below: control.mapToItem(null, 0, control.height).y
readonly property real windowHeight: control.Window.window ? control.Window.window.height : below + implicitHeight
// Below the trigger when it fits, above it when it does not, then kept
// inside the window.
y: below + implicitHeight <= windowHeight ? control.height + 2
: Math.max(-control.mapToItem(null, 0, 0).y, -implicitHeight - 2)
width: control.width
implicitHeight: Math.min(contentItem.implicitHeight + topPadding + bottomPadding,
Style.spacing.popupRowHeight * 8 + topPadding + bottomPadding)
padding: 1

contentItem: ListView {
clip: true
implicitHeight: contentHeight
model: control.delegateModel
currentIndex: control.highlightedIndex
boundsBehavior: Flickable.StopAtBounds
}

background: Rectangle {
color: Color.popups.background
border.width: 1
border.color: Color.popups.border
radius: Style.cornerRadius
}
}
}
2 changes: 2 additions & 0 deletions app/qml/styles/Omamail/qmldir
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,5 @@ Switch 2.0 Switch.qml
Switch 6.0 Switch.qml
ToolTip 2.0 ToolTip.qml
ToolTip 6.0 ToolTip.qml
ComboBox 2.0 ComboBox.qml
ComboBox 6.0 ComboBox.qml
29 changes: 11 additions & 18 deletions app/tests/qml/tst_standalone_composition.qml
Original file line number Diff line number Diff line change
Expand Up @@ -170,40 +170,33 @@ TestCase {
var settings = createTemporaryObject(calendarComponent, testCase)
verify(settings)
wait(0)
// A switch like every other setting on the page, and its input is the
// only thing that answers the pointer and the keyboard.
var trigger = findChild(settings, "calendar-source-toggle")
verify(trigger)
var input = findChild(trigger, "button-input")
var graphic = findChild(trigger, "toggle-switch-input")
var ring = findChild(trigger, "toggle-switch-cursor-ring")
verify(input && graphic && ring)
compare(graphic.enabled, false)
compare(graphic.focusPolicy, Qt.NoFocus)
var position = trigger.mapToItem(testCase, trigger.width / 2, trigger.height / 2)
var input = findChild(trigger, "toggle-switch-input")
verify(input)
compare(trigger.checked, true)
var position = input.mapToItem(testCase, input.width / 2, input.height / 2)
verify(position.x >= 0 && position.x < testCase.width
&& position.y >= 0 && position.y < testCase.height, "toggle location: " + position)
verify(trigger.visible && trigger.enabled && input.visible && input.enabled,
"trigger visible/enabled: " + trigger.visible + "/" + trigger.enabled
+ ", input: " + input.visible + "/" + input.enabled)
mouseClick(trigger, trigger.width / 2, trigger.height / 2)
verify(input.visible && input.enabled, "input visible/enabled: " + input.visible + "/" + input.enabled)
mouseClick(input, input.width / 2, input.height / 2)
compare(calendarFixture.toggleCalls, 1)
compare(calendarFixture.enabledValue, false)
wait(0)
trigger = findChild(settings, "calendar-source-toggle")
input = findChild(trigger, "button-input")
ring = findChild(trigger, "toggle-switch-cursor-ring")
input = findChild(trigger, "toggle-switch-input")
compare(trigger.checked, false)
focusParking.forceActiveFocus()
for (var tab = 0; tab < 20 && !input.activeFocus; tab++) keyClick(Qt.Key_Tab)
verify(input.activeFocus, "the wrapper, not the decorative switch, receives Tab")
verify(trigger.hot)
verify(ring.visible, "keyboard focus keeps the switch's cursor ring visible")
verify(input.activeFocus, "the visibility switch receives Tab")
keyClick(Qt.Key_Space)
compare(calendarFixture.toggleCalls, 2)
compare(calendarFixture.enabledValue, true)
wait(0)
trigger = findChild(settings, "calendar-source-toggle")
graphic = findChild(trigger, "toggle-switch-input")
compare(trigger.checked, true)
compare(graphic.checked, true)
}

function test_standalone_controls_use_semantic_omamail_style() {
Expand Down
50 changes: 48 additions & 2 deletions backend-api.json
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,8 @@
"public.unsubscribe",
"calendar.request",
"calendar.discover",
"calendar.attendance",
"calendar.reminders",
"auth.form",
"auth.begin",
"auth.poll",
Expand Down Expand Up @@ -231,6 +233,50 @@
"params": {"provider": "imap", "operation": "query", "mailbox": "all"},
"equals": {"value": "search:ALL"}
},
{
"name": "Reminder view cache has an independent namespace",
"method": "cache.calendarRead",
"params": {"name":"calendar-reminders"},
"equals": {"version":3},
"types": {"ranges":"object"}
},
{
"name": "Reminder actions validate before opening the ledger",
"method": "calendar.reminders",
"params": {"operation":"dismiss","now":1,"key":"../outside"},
"errorCode": -32602
},
{
"name": "Simultaneous reminders retain each event identity",
"method": "calendar.reminders",
"params": {
"operation": "poll", "now": 1400000, "lastCheck": 1300000,
"candidates": [
{"key":"contract-one","occurrence":"contract-one","eventId":"one","sourceId":"calendar","accountId":"synthetic","title":"First meeting","start":2000000,"end":5600000,"due":1400000},
{"key":"contract-two","occurrence":"contract-two","eventId":"two","sourceId":"calendar","accountId":"synthetic","title":"Second meeting","start":2000000,"end":5600000,"due":1400000}
]
},
"equals": {"notifications.length":2,"notifications.0.eventId":"one","notifications.1.eventId":"two","notifications.1.title":"Second meeting"},
"types": {"notifications.0.key":"string","notifications.1.key":"string"}
},
{
"name": "Google attendance rejects unsupported answers before authentication",
"method": "calendar.attendance",
"params": {"accountId":"missing@example.org","uid":"invite","organizer":"organizer@example.org","response":"yes"},
"errorCode": -32602
},
{
"name": "Google attendance requires the invitation organizer before authentication",
"method": "calendar.attendance",
"params": {"accountId":"missing@example.org","uid":"invite","response":"accepted"},
"errorCode": -32602
},
{
"name": "Google calendar identity is validated before authentication",
"method": "calendar.request",
"params": {"source":{"kind":"google","accountId":"missing@example.org","calendarId":".."},"operation":"get","eventId":"event"},
"errorCode": -32000
},
{
"name": "iCloud request refuses an external credential origin",
"method": "calendar.request",
Expand Down Expand Up @@ -810,7 +856,7 @@
}
],
"unreleased": {
"methods": [],
"cases": ["IMAP All mail resolves to account-wide listing", "IMAP text search includes archived mail", "Outlook text search includes archived mail", "IMAP address search includes archived mail", "IMAP account search refuses an expired work continuation", "IMAP account search refuses a malformed page cursor"]
"methods": ["calendar.attendance", "calendar.reminders"],
"cases": ["IMAP All mail resolves to account-wide listing", "IMAP text search includes archived mail", "Outlook text search includes archived mail", "IMAP address search includes archived mail", "IMAP account search refuses an expired work continuation", "IMAP account search refuses a malformed page cursor", "Google calendar identity is validated before authentication", "Google attendance rejects unsupported answers before authentication", "Google attendance requires the invitation organizer before authentication", "Reminder actions validate before opening the ledger", "Reminder view cache has an independent namespace", "Simultaneous reminders retain each event identity"]
}
}
12 changes: 11 additions & 1 deletion docs/KEYS.md
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ readonly property string keyContext:
| `reader` | A message open | The mailbox keys, plus reply/forward and zoom. `j`/`k` move the mailbox cursor and immediately open its message; `Shift+J`/`Shift+K` scroll the message body |
| `search` | A query being typed | `Escape`, and the modified keys |
| `compose` | A draft being written | `Escape`, `Ctrl+Return`, and the modified keys |
| `eventCompose` | Creating or editing an event | `Enter` saves and closes after success; `Escape` closes; modified keys remain available |
| `assistant` | Typing or reading in the AI dock | `Return`/`Enter` sends, `Escape`, and the modified keys |
| `assistantCommands` | Choosing an AI slash command | `Up`, `Down`, `Return`, `Enter`, `Escape`, and the modified keys |
| `page` | Setup or settings | `Escape`, and the modified keys |
Expand Down Expand Up @@ -79,7 +80,7 @@ event is left alone, preserving normal typing, IME input and line breaks.
context.

**A text-entry context binds no bare key but `Escape`, except AI send and command
selection described above.**
selection described above and Enter to save in the single-line event editor.**
There is no "is the user typing" question anywhere in the code, because there is
nothing left for it to answer: if a bare letter is not bound in `compose`, it
cannot fire there, and the field gets it the way any other character arrives.
Expand Down Expand Up @@ -147,8 +148,15 @@ used to exist, and they had.
| `calendarNextPeriod` | `l`, `Right` | calendar | Next week or month |
| `calendarToday` | `t` | calendar | Go to today |
| `calendarWeek` | `w` | calendar | Show week view |
| `calendarDay` | `d` | calendar | Show day view |
| `calendarAgenda` | `a` | calendar | Show agenda view |
| `calendarUndo` | `u` | calendar | Undo the last event change |
| `calendarMonth` | `m` | calendar | Show month view |
| `send` | `Ctrl+Return`, `Ctrl+Enter` | compose | Send |
| `saveEvent` | `Return`, `Enter`, `Ctrl+Return`, `Ctrl+Enter` | eventCompose | Save and close the event |
| `guestNext` | `Down` | eventGuests | Next guest suggestion |
| `guestPrevious` | `Up` | eventGuests | Previous guest suggestion |
| `guestChoose` | `Return`, `Enter` | eventGuests | Choose guest suggestion |
| `undoSend` | `Alt+Z` | all | Undo send |
| `search` | `/` | mail | Search |
| `goMailbox` | `Ctrl+1`, `Ctrl+2`, `Ctrl+3`, `Ctrl+4`, `Ctrl+5`, `Ctrl+6`, `Ctrl+7`, `Ctrl+8`, `Ctrl+9` | mail | Go to that mailbox |
Expand Down Expand Up @@ -185,6 +193,8 @@ The delayed-send toast does not create a keyboard context. The current screen ke

Back and `Escape` close an untouched composition immediately without saving, including a prefilled reply, forward, or existing provider draft. After a user edit, they open a modal with Cancel, Discard, and Save draft. Save draft initially has focus; Tab and Shift+Tab cycle through the buttons, and Enter activates the focused choice. Escape inside the popup cancels and returns to composing. A failed save restores the changed draft. The composer's bottom Discard button exits immediately.

The event and label delete confirmation initially focuses Delete. Tab and Shift+Tab cycle between Delete and Cancel; Return or Enter activates the focused button. Escape cancels.

## Why the rail is numbered and not chorded

`g i`, `g s`, `g u` and `g t` used to open the mailboxes, and they were two
Expand Down
19 changes: 19 additions & 0 deletions manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,8 @@
"oauthPort": 9481,
"undoSendSeconds": 10,
"unifiedCalendarView": false,
"calendarRemindersEnabled": true,
"calendarSnoozeMinutes": 5,
"openOnClick": "Window",
"showBarIcon": true,
"suggestEvents": false
Expand Down Expand Up @@ -152,6 +154,23 @@
"defaultValue": false,
"description": "Show calendars from every connected account instead of following the current mailbox."
},
{
"key": "calendarRemindersEnabled",
"type": "boolean",
"label": "Calendar desktop reminders",
"defaultValue": true,
"description": "Show reminders while Omamail is running. Configure calendars and timing inside Calendar settings."
},
{
"key": "calendarSnoozeMinutes",
"type": "integer",
"label": "Calendar snooze minutes",
"min": 1,
"max": 1440,
"step": 1,
"defaultValue": 5,
"description": "How long to snooze a calendar desktop reminder."
},
{
"key": "openOnClick",
"type": "enum",
Expand Down
3 changes: 3 additions & 0 deletions scripts/diagnostics.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,9 @@
auth_random_failed auth_redirect_refused auth_refresh_failed auth_response_too_large
auth_secret_invalid auth_signed_out auth_timeout auth_too_many_accounts auth_too_many_flows
auth_transport_failed calendar_auth_refused calendar_auth_required calendar_input_too_large
calendar_ambiguous_invitation calendar_attendance_unconfirmed calendar_attendee_not_found
calendar_conflict calendar_invitation_cancelled calendar_invitation_not_found calendar_not_found calendar_organizer_mismatch
calendar_reminder_not_found calendar_reminders_invalid calendar_reminders_unavailable calendar_too_many_reminders
calendar_invalid_input calendar_invalid_operation calendar_invalid_response calendar_invalid_url
calendar_keyring_failed calendar_network_failed calendar_origin_refused calendar_password_invalid
calendar_password_missing calendar_provider_unsupported calendar_request_failed
Expand Down
Loading
Loading