feat: add update and delete functionality for courses, events, and species; enhance attendance tracking and category creation
Some checks failed
Workflow / ʦ TypeScript (push) Failing after 4m53s
Workflow / ⚫️ Test (push) Has been skipped

This commit is contained in:
T. Zehetbauer
2026-04-01 16:03:50 +02:00
parent 7b078f298b
commit c6b2824da8
48 changed files with 2036 additions and 390 deletions

View File

@@ -1,14 +1,15 @@
import { MapPin, Plus } from 'lucide-react';
import { MapPin } from 'lucide-react';
import { createCourseManagementApi } from '@kit/course-management/api';
import { getSupabaseServerClient } from '@kit/supabase/server-client';
import { Button } from '@kit/ui/button';
import { Card, CardContent, CardHeader, CardTitle } from '@kit/ui/card';
import { AccountNotFound } from '~/components/account-not-found';
import { CmsPageShell } from '~/components/cms-page-shell';
import { EmptyState } from '~/components/empty-state';
import { CreateLocationDialog } from './create-location-dialog';
interface PageProps {
params: Promise<{ account: string }>;
}
@@ -35,10 +36,7 @@ export default async function LocationsPage({ params }: PageProps) {
<p className="text-muted-foreground">
Kurs- und Veranstaltungsorte verwalten
</p>
<Button data-test="locations-new-btn">
<Plus className="mr-2 h-4 w-4" />
Neuer Ort
</Button>
<CreateLocationDialog accountId={acct.id} />
</div>
{locations.length === 0 ? (