Add calendar labels and sixteen theme-aware colors #7

Merged
exler merged 5 commits from camila/calendar-event-labels into main 2026-10-18 22:09:41 +02:00
Collaborator

Summary

  • Reusable Settings → Labels with exactly16 named theme-aware colors; local label name/color configuration, synchronized event iCalendar CATEGORIES.
  • Exactly one category matching a configured label uses its color. One unknown category or multiple categories (including matching ones) show all names comma-separated as External, using calendar default color. Zero categories means no label.
  • Event editor/details allow one configured label or None; explicit selection replaces/clears categories, normal edits preserve external values. Category parsing handles repeated/folded properties and escaping.
  • Label rename/delete never rewrites remote events; unmatched names become External. Details label edits on recurring events apply to the whole series; recurrence time-move operations reject category edits.
  • Labeled creation/editor relabel await server acceptance; GET requires ETag and conditional PUT. 412/500/disconnect/missing ETag do not mutate categories locally. Sync retains stable instance IDs; commands validate object identity before network and again under DB lock before post-await cache update.

Verification

Parent independently repeated:

  • 47 Rust tests passed, including9 loopback CalDAV tests of actual command orchestration/HTTP client, conflict/failure handling and stale identity during an in-flight write.
  • 48 Playwright tests passed; production/test typecheck, Biome, Vite production build, all-target strict Clippy, scoped formatting and git diff --check passed.
  • RED/GREEN evidence for prior blockers: optimistic label creation/edit, recurring ignored changes, reordered refresh IDs, missing ETag and post-await stale cache overwrite.
  • Rendered contrast measured across16 colors and both themes; min label event text/background6.11:1, with ordinary text target4.5:1. Tested day/week/month/all-day/search and details, External and selection states.
  • Synthetic browser screenshots verified locally (no real accounts or CalDAV credentials). PR asset upload is blocked: repository token lacks issue scope and the previous Forgejo password credential is no longer available after the SSO transition. Browser credential bridge is locked/unavailable; images are kept outside Git and can be delivered directly.
  • Independent reviews found blockers; each addressed with regression tests. Final post-await identity fix independently inspected and its regression passed.

Limits / risk

No release, installation or production deployment. Native desktop smoke tools unavailable locally; both remote runs647 (push) and648 (PR) passed, including the native desktop smoke job. Network tests use loopback fixture, not a provider account. Existing ordinary non-label edits retain their pre-existing background sync behavior. If an older periodic sync overlaps a successful category write it can briefly display old values until the next120s sync. Existing delete/rsvp commands retain their older bare-ID API (outside this change). Labels/colors are local config; event category names sync across clients.

Copy follow-up (642d181)

Removed Labels explanatory paragraph and changed visible/accessibility/error/documentation wording to Color/color. Typecheck, Biome, all6 labels browser tests, focused Rust IPC validation and git diff --check passed. Updated synthetic browser screenshot verified. Prior CI result applies to f6627d2; new-head CI is pending.

## Summary - Reusable Settings → Labels with exactly16 named theme-aware colors; local label name/color configuration, synchronized event iCalendar CATEGORIES. - Exactly one category matching a configured label uses its color. One unknown category or multiple categories (including matching ones) show all names comma-separated as External, using calendar default color. Zero categories means no label. - Event editor/details allow one configured label or None; explicit selection replaces/clears categories, normal edits preserve external values. Category parsing handles repeated/folded properties and escaping. - Label rename/delete never rewrites remote events; unmatched names become External. Details label edits on recurring events apply to the whole series; recurrence time-move operations reject category edits. - Labeled creation/editor relabel await server acceptance; GET requires ETag and conditional PUT. 412/500/disconnect/missing ETag do not mutate categories locally. Sync retains stable instance IDs; commands validate object identity before network and again under DB lock before post-await cache update. ## Verification Parent independently repeated: - 47 Rust tests passed, including9 loopback CalDAV tests of actual command orchestration/HTTP client, conflict/failure handling and stale identity during an in-flight write. - 48 Playwright tests passed; production/test typecheck, Biome, Vite production build, all-target strict Clippy, scoped formatting and git diff --check passed. - RED/GREEN evidence for prior blockers: optimistic label creation/edit, recurring ignored changes, reordered refresh IDs, missing ETag and post-await stale cache overwrite. - Rendered contrast measured across16 colors and both themes; min label event text/background6.11:1, with ordinary text target4.5:1. Tested day/week/month/all-day/search and details, External and selection states. - Synthetic browser screenshots verified locally (no real accounts or CalDAV credentials). PR asset upload is blocked: repository token lacks issue scope and the previous Forgejo password credential is no longer available after the SSO transition. Browser credential bridge is locked/unavailable; images are kept outside Git and can be delivered directly. - Independent reviews found blockers; each addressed with regression tests. Final post-await identity fix independently inspected and its regression passed. ## Limits / risk No release, installation or production deployment. Native desktop smoke tools unavailable locally; both remote runs647 (push) and648 (PR) passed, including the native desktop smoke job. Network tests use loopback fixture, not a provider account. Existing ordinary non-label edits retain their pre-existing background sync behavior. If an older periodic sync overlaps a successful category write it can briefly display old values until the next120s sync. Existing delete/rsvp commands retain their older bare-ID API (outside this change). Labels/colors are local config; event category names sync across clients. ## Copy follow-up (642d181) Removed Labels explanatory paragraph and changed visible/accessibility/error/documentation wording to Color/color. Typecheck, Biome, all6 labels browser tests, focused Rust IPC validation and git diff --check passed. Updated synthetic browser screenshot verified. Prior CI result applies to f6627d2; new-head CI is pending.
Add synchronized calendar labels with sixteen theme-aware colors
All checks were successful
Verify and release / verify (push) Successful in 2m43s
Verify and release / build (push) Has been skipped
Verify and release / verify (pull_request) Successful in 2m58s
Verify and release / build (pull_request) Has been skipped
f6627d2020
Trim label settings copy and use American color spelling
All checks were successful
Verify and release / verify (push) Successful in 2m38s
Verify and release / build (push) Has been skipped
Verify and release / verify (pull_request) Successful in 2m49s
Verify and release / build (pull_request) Has been skipped
642d181998
feat(calendar): show label color in dropdown
All checks were successful
Verify and release / verify (push) Successful in 2m49s
Verify and release / build (push) Has been skipped
Verify and release / verify (pull_request) Successful in 2m46s
Verify and release / build (pull_request) Has been skipped
11c4c556cf
exler merged commit 142765bad0 into main 2026-10-18 22:09:41 +02:00
exler deleted branch camila/calendar-event-labels 2026-10-18 22:09:41 +02:00
exler referenced this pull request from a commit 2026-10-18 22:09:42 +02:00
Sign in to join this conversation.
No reviewers
No labels
No milestone
No assignees
2 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
exler/ambassador!7
No description provided.