Skip to content

feat: add groupware calendar app - #3838

Open
tammi-23 wants to merge 12 commits into
mainfrom
feat/groupware-calendar
Open

tammi-23 wants to merge 12 commits into
mainfrom
feat/groupware-calendar

Conversation

@tammi-23

Copy link
Copy Markdown
Contributor

Description

Adds a read-only calendar app (web-app-appointments) for the Groupware API backed by Stalwart. This replaces #3358, which came from a fork and was 470+ commits behind main. The commits of #3358 are cherry-picked onto main, followed by fixes from a review.

What the app does

  • Month view with a mini month and the calendar list in the sidebar, plus the account switch known from mail and contacts
  • Shows timed, all-day and multi-day appointments; more than three per day collapse into "+N more"
  • Appointment details in a modal (time, calendar, location, participants, status, privacy, time zone)
  • Calendars can be toggled; the app is only shown when groupware is enabled

Changes compared to #3358

  • Aligned with main: vue-router 5.4.0 and zod 4.6.5 like mail and contacts, and translations are loaded through virtual:l10n/web-app-appointments
  • The Groupware API can't filter events by date. Events are now loaded once per account instead of on every month change, and narrowed down to the visible month in the store
  • A still running request of the previous account is cancelled on an account switch, so its events can't show up in the new account
  • A calendar whose event collection is capped by the server shows the events it got instead of failing completely
  • Times with a time zone that is not an IANA one (e.g. Exchange's W. Europe Standard Time) are read as they are instead of dropping the event
  • Only the days of the visible grid are grouped, and the occurrence id no longer depends on the calendar it is shown in
  • Calendars are ordered by sortOrder
  • Accessibility of the month view: week rows inside the grid, the weekday header inside the grid, aria-selected and aria-current, the number of appointments in the day name, the grid stays mounted while loading and the focus stays in it when paging months with the keyboard
  • The empty hint only considers the current month and tells when no calendar is selected
  • Small screens: title and appointment times are hidden below md
  • Plurals and the participant status are translated properly; the app menu item has its own priority

Known limitations

  • Recurring events are shown only at their first occurrence. The Groupware API doesn't expand recurrences and the app doesn't either.
  • isVisible of a calendar is not taken into account, because the Groupware API reports it as false for the default calendar.
  • The app is read-only: no creating, editing or responding to invitations yet.

Related Issue

How Has This Been Tested?

  • test environment: local dev stack, OpenCloud built from the groupware branch, Stalwart 0.16.12, Chrome on macOS
  • test case 1: pnpm test:unit --run packages/web-app-appointments (91 tests), pnpm check:types, pnpm lint, pnpm format:check
  • test case 2: calendar with timed, all-day, multi-day (across the month end), recurring and Windows time zone events, and five events on one day: all are shown on the right days, "+2 more" expands
  • test case 3: changing the month sends no new requests
  • test case 4: toggling a calendar hides its events; with no calendar selected, "No calendar selected" is shown
  • test case 5: keyboard navigation in the grid with the arrow keys, Home/End and PageUp/PageDown keeps the focus on the same day of the next month; closing the details modal returns the focus to the appointment
  • test case 6: switching between the personal and a shared account shows only the events of the selected account

Types of changes

  • Bugfix
  • Enhancement (a change that doesn't break existing code or deployments)
  • Breaking change (a modification that affects current functionality)
  • Technical debt (addressing code that needs refactoring or improvements)
  • Tests (adding or improving tests)
  • Documentation (updates or additions to documentation)
  • Maintenance (like dependency updates or tooling adjustments)

tamminski23 and others added 11 commits November 23, 2026 15:15
… zones

The Groupware API can't filter events by date, so every month change
downloaded all events of all calendars again. They are now loaded once
per account and narrowed down to the visible month in the store.

- cancel a still running request of the previous account on a switch
- show the events of a capped collection instead of failing completely
- read times with a non IANA time zone (e.g. Exchange) as they are
  instead of dropping the event
- only group the days of the visible grid
- keep the occurrence id independent of the calendar it is shown in
- order calendars by their sort order
…th view

- group the day cells in week rows inside the grid and move the weekday
  header into it
- keep the grid mounted while loading and keep the focus in it when
  paging months with the keyboard
- mark the selected day and today, and name the number of appointments
  of a day
- only consider days of the current month for the empty hint and hint
  when no calendar is selected
- hide the title and appointment times on small screens
- translate plurals and the participant status properly
- give the app menu item its own priority
@tammi-23
tammi-23 force-pushed the feat/groupware-calendar branch from bd9f001 to d388c46 Compare November 23, 2026 14:44
@codacy-production

codacy-production Bot commented Nov 24, 2026 •

Copy link
Copy Markdown

Not up to standards ⛔

🔴 Issues 100 high

Alerts:
⚠ 100 issues (≤ 0 issues of at least minor severity)

Results:
100 new issues

Category Results
ErrorProne 90 high
Security 10 high

View in Codacy

🟢 Metrics 445 complexity · 20 duplication

Metric Results
Complexity 445
Duplication 20

View in Codacy

NEW Get contextual insights on your PRs based on Codacy's metrics, along with PR and Jira context, without leaving GitHub. Enable AI reviewer
TIP This summary will be updated as you push new changes.

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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants