feat: invitation deletion
Deploy On Server / Prepare Repository Remotely (push) Successful in 10s
Deploy On Server / Docker Compose Up (push) Successful in 18s
Deploy On Server / Prune Images (push) Successful in 3s
Deploy On Server / Remove .env File (push) Successful in 2s

This commit is contained in:
Raul Lugo
2026-08-11 22:18:25 +02:00
parent d4c542b93b
commit aed8684e09
7 changed files with 377 additions and 2 deletions
+16 -1
View File
@@ -1,6 +1,7 @@
import Link from "next/link"
import { CopyInviteButton } from "@/components/admin/copy-invite-button"
import { Alert, AlertDescription, AlertTitle } from "@/components/ui/alert"
import { Badge } from "@/components/ui/badge"
import { Button } from "@/components/ui/button"
import {
@@ -33,7 +34,12 @@ function getStatusVariant(status: string): "default" | "secondary" | "outline" {
return "outline"
}
export default async function GuestsPage() {
export default async function GuestsPage({
searchParams,
}: {
searchParams: Promise<{ deleted?: string }>
}) {
const { deleted } = await searchParams
const invitations = await listInvitations()
return (
@@ -50,6 +56,15 @@ export default async function GuestsPage() {
</Button>
</div>
{deleted ? (
<Alert>
<AlertTitle>Guest group deleted</AlertTitle>
<AlertDescription>
The invitation and its associated guest information were permanently removed.
</AlertDescription>
</Alert>
) : null}
<Card>
<CardHeader>
<CardTitle>Invitation list</CardTitle>