feat(backend): implement phases 0-6 (auth, kc, wahl, files, chat, sync)

Full NestJS backend for the KC-App platform:
- auth: Authentik OIDC resource-server strategy + guest invite-code JWT
  login, plus TokenVerificationService for the WS handshake path
- kc: Leitungsteam-only KC (event) creation/listing
- wahl: Wahl/Workshop admin, Force-Zuteilung overrides, ZuteilungService
  (port of the WP plugin's kc_run_zuteilung), CSV export
- files: LT-only upload with visibility tiers; list/download filtered by
  caller tier; StorageProvider abstraction (WebDAV/Nextcloud default, S3)
- chat: Gemeinde group / DM / LT-wide / broadcast channels; REST + raw ws
  gateway sharing ChatService access rules
- sync: append-only SyncLogEntry replication log + local<->cloud
  push/pull scheduler, shared-secret guarded
- common: Role enum, @Roles decorator, KC-scoped RolesGuard (LT global)
- serves client/web/ interim static web client under / (API under /api)

Typecheck, nest build and boot test pass; needs real Postgres/Authentik/
Nextcloud to run end to end.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
This commit is contained in:
2026-09-09 16:23:45 +02:00
co-authored by Claude Sonnet 5
parent e49eed871c
commit 7aba87368d
47 changed files with 3003 additions and 115 deletions
+62
View File
@@ -0,0 +1,62 @@
body {
font-family: system-ui, sans-serif;
max-width: 640px;
margin: 2rem auto;
padding: 0 1rem;
color: #1a1a1a;
}
header {
margin-bottom: 2rem;
}
.subtitle {
color: #666;
font-size: 0.9rem;
}
section {
margin-bottom: 2rem;
}
form,
#app-section > div {
display: flex;
flex-direction: column;
gap: 0.5rem;
max-width: 360px;
margin-bottom: 1rem;
}
label {
display: flex;
flex-direction: column;
font-size: 0.9rem;
gap: 0.25rem;
}
input {
padding: 0.4rem;
font-size: 1rem;
}
button {
padding: 0.5rem;
cursor: pointer;
}
#chat-log,
#file-list {
list-style: none;
padding: 0;
border: 1px solid #ddd;
border-radius: 4px;
max-height: 200px;
overflow-y: auto;
}
#chat-log li,
#file-list li {
padding: 0.4rem 0.6rem;
border-bottom: 1px solid #eee;
}