feat(frontend): Gaesteliste mit Status-Filter #72
Labels
No labels
component/backend
component/docs
component/e2e
component/frontend
component/infra
component/keycloak
prio/high
prio/low
prio/medium
type/bug
type/chore
type/feature
type/refactor
type/test
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
WompSchmiede/FamilienFeierPlaner#72
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Beschreibung
Gaesteliste fuer ein Event mit Filterfunktion nach Status und Zahlungsstatus. Organisatoren koennen Gaeste hinzufuegen, entfernen und deren Status aendern. Ersetzt die alte Issue #10.
Endpunkte
load-Funktion (+page.server.ts)
s export async function load({ fetch, params, url }) { const eventId = params.eventId; const status = url.searchParams.get('status') || ''; const payment = url.searchParams.get('payment') || ''; const query = new URLSearchParams(); if (status) query.set('status', status); if (payment) query.set('payment', payment); const qs = query.toString(); const [guests, persons] = await Promise.all([ fetch(/api/v1/events//guests), fetch('/api/v1/persons'), ]); return { guests: guests.ok ? await guests.json() : [], persons: persons.ok ? await persons.json() : [], filter: { status, payment }, }; }Seite (+page.svelte)
Nutzt Komponenten aus #67
Tests
Akzeptanzkriterien