61e0393f012fae049ce45d9354fa4a92c852aedd
- 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>
Nachklang Calendar
Event calendar for Nachklang e.V.: a public landing page for subscribing to the calendar, and an
admin area (/admin) for editing events in all calendars.
Next.js (App Router) + TypeScript + Tailwind + shadcn, the same stack as nachklang-feedback.
Rewritten from Angular in September 2026 (docs/rewrite-plan.md).
Documentation: architecture · features · gotchas · deployment · API wish list
Development
cp .env.local.example .env.local # then adjust if needed
npm install
npm run dev # http://localhost:4200
Port 4200 is not arbitrary: it is the port the API's better-auth origins and the admin app's redirect allow-list trust. Another port breaks sign-out and the return redirect after sign-in.
The admin area needs the API (:3000) and the admin app (:3002) running locally.
Other scripts
npm run build # production build (output: standalone; see docs/deployment.md)
npm run lint
npm test # Vitest, pure logic in lib/
Languages
TypeScript
97.2%
CSS
2.6%
JavaScript
0.2%