Invite link not valid
++ This space could not be found. Check the link or ask whoever invited you for a new one. +
+{inv.code}
+ grants {inv.role}
{inv.label && {inv.label}}
{!inv.is_enabled && disabled}
{expired && expired}
diff --git a/app/(app)/customize/panels/types.ts b/app/(app)/customize/panels/types.ts
index 7d64e5a..ba0e98e 100644
--- a/app/(app)/customize/panels/types.ts
+++ b/app/(app)/customize/panels/types.ts
@@ -37,6 +37,7 @@ export interface Invite {
max_uses: number | null
uses_count: number
is_enabled: boolean
+ role: string
created_at: string
}
diff --git a/app/join/[space]/page.tsx b/app/join/[space]/page.tsx
new file mode 100644
index 0000000..e2b1ceb
--- /dev/null
+++ b/app/join/[space]/page.tsx
@@ -0,0 +1,57 @@
+import Link from 'next/link'
+import { createAdminClient } from '@/lib/supabase/admin'
+
+export const dynamic = 'force-dynamic'
+
+// Friendly, space-scoped landing for an invite link
+// (/join/+ This space could not be found. Check the link or ask whoever invited you for a new one. +
++ You have been invited to join {spaceRow.name} + {code ? ' with an invite code' : ''}. Create an account or sign in to continue. +
+ + Continue + +