Skip to content

Plan calls in a Teams-style calendar (CAL-01) - #160

Open
Mcm190 wants to merge 1 commit into
UCSLabs:mainfrom
Mcm190:claude/teams-calendar
Open

Mcm190 wants to merge 1 commit into
UCSLabs:mainfrom
Mcm190:claude/teams-calendar

Conversation

@Mcm190

@Mcm190 Mcm190 commented Dec 6, 2026 •

Copy link
Copy Markdown

Adds a Teams-style Calendar to Veil, built on Mailcraft's calendar (took the liberty of adding CAL-01 on the roadmap).

What it does

  • Rail. A left rail on desktop with Calls, Calendar and Settings, as in Teams' app bar. The Calendar item shows a badge while a meeting reminder is showing.
  • Calendar page. This ports Mailcraft's day, work-week and week grid, mini month, side-by-side block packing, working-hours shading, today tint and now line. It also adds a "Coming up" list, Import .ics and Calendar settings (working hours and days, first day of the week, time scale, 12-hour clock, week numbers, default reminder).
  • Meetings. You can create, edit and delete meetings with title, date and start, length, reminder, people and notes. A meeting you host can start a call straight from its details or from its reminder. A meeting someone sent you has an invite field and a Join button.
  • Sending. Copy invitation, or save an .ics (PUBLISH). Importing an .ics adds meetings or updates ones you were sent (matched by UID). It never replaces a meeting you host.
  • Reminders. A banner on Home and the Calendar ("starts in 5 minutes") with Start meeting/Open and Dismiss.

Design rules kept

  • No invites in meetings. A calendar entry holds the plan only. Invites are signed, expire and work once, so the host shares a fresh invite when the meeting starts.
  • Local only. Meetings are saved in calendar.json with atomic writes. Size, count and field limits bound hostile files. A file that fails to load is renamed to .bad rather than lost.
  • Mailcraft reuse. mailcraft-time, mailcraft-model and mailcraft-ical are git dependencies pinned by commit. deny.toml now allows that one git source. Please check this policy change.

Also fixed

House dialogs taller than 400 px were clipped, which cut off Notes and Save in the meeting editor and Calendar settings. A new egui modal is first sized at the default area height, and its scroll area never grew past that. The scroll area now gets a minimum height (screens/dialog.rs).

Screenshots

The data is sample data, with two reminders due now.

Week view, reminder banner and rail badge Home with the rail and the same reminder
Calendar week view Home with rail
New meeting Meeting details (hosting)
New meeting dialog Meeting details
Calendar settings
Calendar settings

dev-ui builds can open each of these states with VEIL_START=calendar, calendar-new, calendar-meeting or calendar-settings.

Verification

  • cargo test -p veil-app --features dev-ui: 418 passed, 0 failed, 11 ignored. This includes 13 new calendar tests: storage limits, import/update rules, invitations and file names.
  • Clippy reports no errors. tools/licences.py --check passes, and cargo deny check sources bans passes.
  • Screenshots were taken on Linux (Xvfb). The banner and grid were also checked by hand on Linux.

Not verified: Windows and macOS, sending and joining between two devices from a calendar entry, and Android (there is no calendar on Android yet).

AI tool assistance - Claude Opus 5.5

Summary by CodeRabbit

  • New Features
    • Added a desktop calendar for viewing meetings by day, work week, or week, with options to create, edit, and delete meetings.
    • Added calendar reminders, plus .ics import and export, invitation copying, and joining with a pasted meeting link.
    • Added a navigation rail for Calls, Calendar, and Settings, with a badge for due reminders.
  • Bug Fixes
    • Improved dialog scrolling so the content area better fits the available window height.

Adds a Calendar page beside Home, reached from a Teams-style rail (Calls,
Calendar, Settings). It reuses Mailcraft's calendar crates (time, model,
iCalendar) pinned by commit, and ports Mailcraft's day/work-week/week grid,
mini month, block packing and calendar settings.

- Meetings are saved locally in calendar.json (atomic write, size and count
  limits, a bad file is set aside rather than lost).
- A meeting holds a plan only, never an invite: invites are signed, expire
  and work once, so the host shares a fresh one when the meeting starts.
- Sending: copy an invitation or save an .ics; importing an .ics adds or
  updates meetings you were sent and never replaces one you host.
- Reminders show a banner on Home and the Calendar, with a badge on the rail.
- Dialogs taller than 400 px are no longer clipped: a new egui modal is
  sized at the default area height, so the scroll area now gets a minimum.
- dev-ui builds can open the calendar with a dialog showing, for screenshots.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@coderabbitai

coderabbitai Bot commented Dec 6, 2026

Copy link
Copy Markdown

Explain Change →

Note

CodeRabbit ASCII loading animation

Currently processing new changes in this PR. This may take a few minutes, please wait...

Review info

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: defaults
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 5d361f33-3d92-47e2-b884-37ea85108c31
Commits

Reviewing files that changed from the base of the PR and between 86b7f2d and cf2cd1b.

Files ignored due to path filters: 1

  • Cargo.lock is excluded by !**/*.lock
Files selected for processing: 18

  • crates/veil-app/Cargo.toml
  • crates/veil-app/src/app.rs
  • crates/veil-app/src/calendar.rs
  • crates/veil-app/src/dev_start.rs
  • crates/veil-app/src/icons.rs
  • crates/veil-app/src/lib.rs
  • crates/veil-app/src/screens/calendar.rs
  • crates/veil-app/src/screens/dialog.rs
  • crates/veil-app/src/screens/home.rs
  • crates/veil-app/src/screens/mod.rs
  • crates/veil-app/src/screens/rail.rs
  • deny.toml
  • docs/DEPENDENCIES.md
  • docs/HANDOFF.md
  • docs/ROADMAP.md
  • docs/roadmap-state.json
  • docs/roadmap.html
  • tools/render-roadmap.py

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

@sonarqubecloud

sonarqubecloud Bot commented Dec 6, 2026

Copy link
Copy Markdown

This branch has not been deployed

No deployments
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