feat: complete CMS v2 with Docker, Fischerei, Meetings, Verband modules + UX audit fixes
Some checks failed
Workflow / ʦ TypeScript (push) Failing after 6m26s
Workflow / ⚫️ Test (push) Has been skipped

Major changes:
- Docker Compose: full Supabase stack (11 services) equivalent to supabase CLI
- Fischerei module: 16 DB tables, waters/species/stocking/catch books/competitions
- Sitzungsprotokolle module: meeting protocols, agenda items, task tracking
- Verbandsverwaltung module: federation management, member clubs, contacts, fees
- Per-account module activation via Modules page toggle
- Site Builder: live CMS data in Puck blocks (courses, events, membership registration)
- Public registration APIs: course signup, event registration, membership application
- Document generation: PDF member cards, Excel reports, HTML labels
- Landing page: real Com.BISS content (no filler text)
- UX audit fixes: AccountNotFound component, shared status badges, confirm dialog,
  pagination, duplicate heading removal, emoji→badge replacement, a11y fixes
- QA: healthcheck fix, API auth fix, enum mismatch fix, password required attribute
This commit is contained in:
Zaid Marzguioui
2026-03-31 16:35:46 +02:00
parent 16648c92eb
commit ebd0fd4638
176 changed files with 17133 additions and 981 deletions

View File

@@ -11,47 +11,18 @@ import { createNewsletterApi } from '@kit/newsletter/api';
import { CmsPageShell } from '~/components/cms-page-shell';
import { StatsCard } from '~/components/stats-card';
import { AccountNotFound } from '~/components/account-not-found';
import {
NEWSLETTER_STATUS_VARIANT,
NEWSLETTER_STATUS_LABEL,
NEWSLETTER_RECIPIENT_STATUS_VARIANT,
NEWSLETTER_RECIPIENT_STATUS_LABEL,
} from '~/lib/status-badges';
interface PageProps {
params: Promise<{ account: string; campaignId: string }>;
}
const STATUS_VARIANT: Record<
string,
'secondary' | 'default' | 'info' | 'outline' | 'destructive'
> = {
draft: 'secondary',
scheduled: 'default',
sending: 'info',
sent: 'outline',
failed: 'destructive',
};
const STATUS_LABEL: Record<string, string> = {
draft: 'Entwurf',
scheduled: 'Geplant',
sending: 'Wird gesendet',
sent: 'Gesendet',
failed: 'Fehlgeschlagen',
};
const RECIPIENT_STATUS_VARIANT: Record<
string,
'secondary' | 'default' | 'info' | 'outline' | 'destructive'
> = {
pending: 'secondary',
sent: 'default',
failed: 'destructive',
bounced: 'destructive',
};
const RECIPIENT_STATUS_LABEL: Record<string, string> = {
pending: 'Ausstehend',
sent: 'Gesendet',
failed: 'Fehlgeschlagen',
bounced: 'Zurückgewiesen',
};
export default async function NewsletterDetailPage({ params }: PageProps) {
const { account, campaignId } = await params;
const client = getSupabaseServerClient();
@@ -62,7 +33,7 @@ export default async function NewsletterDetailPage({ params }: PageProps) {
.eq('slug', account)
.single();
if (!acct) return <div>Konto nicht gefunden</div>;
if (!acct) return <AccountNotFound />;
const api = createNewsletterApi(client);
@@ -102,8 +73,8 @@ export default async function NewsletterDetailPage({ params }: PageProps) {
<CardTitle>
{String(newsletter.subject ?? '(Kein Betreff)')}
</CardTitle>
<Badge variant={STATUS_VARIANT[status] ?? 'secondary'}>
{STATUS_LABEL[status] ?? status}
<Badge variant={NEWSLETTER_STATUS_VARIANT[status] ?? 'secondary'}>
{NEWSLETTER_STATUS_LABEL[status] ?? status}
</Badge>
</CardHeader>
<CardContent>
@@ -175,10 +146,10 @@ export default async function NewsletterDetailPage({ params }: PageProps) {
<td className="p-3">
<Badge
variant={
RECIPIENT_STATUS_VARIANT[rStatus] ?? 'secondary'
NEWSLETTER_RECIPIENT_STATUS_VARIANT[rStatus] ?? 'secondary'
}
>
{RECIPIENT_STATUS_LABEL[rStatus] ?? rStatus}
{NEWSLETTER_RECIPIENT_STATUS_LABEL[rStatus] ?? rStatus}
</Badge>
</td>
</tr>