Support the read-only calendar role, show "Vorstand", fix link buttons #23

Merged
Paddy merged 2 commits from feature/calendar-readonly into master 2026-11-08 21:38:40 +00:00
Owner
  • Read-only role: /admin/me's permissions decide via canEditCalendar
    (lib/permissions.ts, mirrors the API's canWrite: only access writes).
    Read-only accounts see everything but get no "Neuer Termin", no "+", no
    "Veröffentlichen"; an event opens as "Termin ansehen" with locked fields.
    A "Nur lesen" badge in the header explains why. The API refuses their
    writes regardless.
  • The management calendar is labelled "Vorstand"; the slug stays
    management for the API, URLs and iCal links.
  • The subscription dialog's Apple/Google links are plain anchors styled with
    buttonVariants instead of Base UI Buttons rendering an , which warned in
    dev and would have given them role="button".

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

- Read-only role: /admin/me's permissions decide via canEditCalendar (lib/permissions.ts, mirrors the API's canWrite: only `access` writes). Read-only accounts see everything but get no "Neuer Termin", no "+", no "Veröffentlichen"; an event opens as "Termin ansehen" with locked fields. A "Nur lesen" badge in the header explains why. The API refuses their writes regardless. - The management calendar is labelled "Vorstand"; the slug stays `management` for the API, URLs and iCal links. - The subscription dialog's Apple/Google links are plain anchors styled with buttonVariants instead of Base UI Buttons rendering an <a>, which warned in dev and would have given them role="button". Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Paddy added 1 commit 2026-11-08 21:17:40 +00:00
Support the read-only calendar role, show "Vorstand", fix link buttons
Test and deploy / test (pull_request) Successful in 2m18s
Test and deploy / deploy (pull_request) Skipped
61e0393f01
- Read-only role: /admin/me's permissions decide via canEditCalendar
  (lib/permissions.ts, mirrors the API's canWrite: only `access` writes).
  Read-only accounts see everything but get no "Neuer Termin", no "+", no
  "Veröffentlichen"; an event opens as "Termin ansehen" with locked fields.
  A "Nur lesen" badge in the header explains why. The API refuses their
  writes regardless.
- The management calendar is labelled "Vorstand"; the slug stays
  `management` for the API, URLs and iCal links.
- The subscription dialog's Apple/Google links are plain anchors styled with
  buttonVariants instead of Base UI Buttons rendering an <a>, which warned in
  dev and would have given them role="button".

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Paddy added 1 commit 2026-11-08 21:36:15 +00:00
Note on the API wish list that moving an event leaves no history
Test and deploy / test (pull_request) Successful in 2m16s
Test and deploy / deploy (pull_request) Skipped
c142c45edf
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Paddy merged commit 689a485fce into master 2026-11-08 21:38:40 +00:00
Sign in to join this conversation.
No Reviewers
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: Nachklang/Calendar_Frontend#23