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

@@ -3,10 +3,12 @@ import { createSiteBuilderApi } from '@kit/site-builder/api';
import { Card, CardContent, CardHeader, CardTitle } from '@kit/ui/card';
import { Badge } from '@kit/ui/badge';
import { Button } from '@kit/ui/button';
import { cn } from '@kit/ui/utils';
import { Plus, Globe, FileText, Settings, ExternalLink } from 'lucide-react';
import Link from 'next/link';
import { CmsPageShell } from '~/components/cms-page-shell';
import { EmptyState } from '~/components/empty-state';
import { AccountNotFound } from '~/components/account-not-found';
interface Props { params: Promise<{ account: string }> }
@@ -14,14 +16,15 @@ export default async function SiteBuilderDashboard({ params }: Props) {
const { account } = await params;
const client = getSupabaseServerClient();
const { data: acct } = await client.from('accounts').select('id').eq('slug', account).single();
if (!acct) return <div>Konto nicht gefunden</div>;
if (!acct) return <AccountNotFound />;
const api = createSiteBuilderApi(client);
const pages = await api.listPages(acct.id);
const settings = await api.getSiteSettings(acct.id);
const posts = await api.listPosts(acct.id);
const publishedCount = pages.filter((p: any) => p.is_published).length;
const isOnline = Boolean(settings?.is_public);
const publishedCount = pages.filter((p: Record<string, unknown>) => p.is_published).length;
return (
<CmsPageShell account={account} title="Website-Baukasten" description="Ihre Vereinswebseite verwalten">
@@ -34,7 +37,7 @@ export default async function SiteBuilderDashboard({ params }: Props) {
<Link href={`/home/${account}/site-builder/posts`}>
<Button variant="outline" size="sm"><FileText className="mr-2 h-4 w-4" />Beiträge ({posts.length})</Button>
</Link>
{settings?.is_public && (
{isOnline && (
<a href={`/club/${account}`} target="_blank" rel="noopener">
<Button variant="outline" size="sm"><ExternalLink className="mr-2 h-4 w-4" />Website ansehen</Button>
</a>
@@ -48,7 +51,17 @@ export default async function SiteBuilderDashboard({ params }: Props) {
<div className="grid grid-cols-1 gap-4 sm:grid-cols-3">
<Card><CardContent className="p-6"><p className="text-sm text-muted-foreground">Seiten</p><p className="text-2xl font-bold">{pages.length}</p></CardContent></Card>
<Card><CardContent className="p-6"><p className="text-sm text-muted-foreground">Veröffentlicht</p><p className="text-2xl font-bold">{publishedCount}</p></CardContent></Card>
<Card><CardContent className="p-6"><p className="text-sm text-muted-foreground">Status</p><p className="text-2xl font-bold">{settings?.is_public ? '🟢 Online' : '🔴 Offline'}</p></CardContent></Card>
<Card>
<CardContent className="p-6">
<p className="text-sm text-muted-foreground">Status</p>
<p className="text-2xl font-bold">
<span className="flex items-center gap-1.5">
<span className={cn('inline-block h-2 w-2 rounded-full', isOnline ? 'bg-green-500' : 'bg-red-500')} />
<span>{isOnline ? 'Online' : 'Offline'}</span>
</span>
</p>
</CardContent>
</Card>
</div>
{pages.length === 0 ? (