Add account hierarchy framework with migrations, RLS policies, and UI components
This commit is contained in:
@@ -1,4 +1,7 @@
|
||||
export const MEMBER_STATUS_VARIANT: Record<string, 'default' | 'secondary' | 'destructive' | 'outline'> = {
|
||||
export const MEMBER_STATUS_VARIANT: Record<
|
||||
string,
|
||||
'default' | 'secondary' | 'destructive' | 'outline'
|
||||
> = {
|
||||
active: 'default',
|
||||
inactive: 'secondary',
|
||||
pending: 'outline',
|
||||
@@ -14,7 +17,10 @@ export const MEMBER_STATUS_LABEL: Record<string, string> = {
|
||||
excluded: 'Ausgeschlossen',
|
||||
};
|
||||
|
||||
export const INVOICE_STATUS_VARIANT: Record<string, 'default' | 'secondary' | 'destructive' | 'outline'> = {
|
||||
export const INVOICE_STATUS_VARIANT: Record<
|
||||
string,
|
||||
'default' | 'secondary' | 'destructive' | 'outline'
|
||||
> = {
|
||||
draft: 'outline',
|
||||
sent: 'secondary',
|
||||
paid: 'default',
|
||||
@@ -30,7 +36,10 @@ export const INVOICE_STATUS_LABEL: Record<string, string> = {
|
||||
cancelled: 'Storniert',
|
||||
};
|
||||
|
||||
export const BATCH_STATUS_VARIANT: Record<string, 'default' | 'secondary' | 'destructive' | 'outline'> = {
|
||||
export const BATCH_STATUS_VARIANT: Record<
|
||||
string,
|
||||
'default' | 'secondary' | 'destructive' | 'outline'
|
||||
> = {
|
||||
draft: 'outline',
|
||||
submitted: 'secondary',
|
||||
processing: 'secondary',
|
||||
@@ -46,7 +55,10 @@ export const BATCH_STATUS_LABEL: Record<string, string> = {
|
||||
failed: 'Fehlgeschlagen',
|
||||
};
|
||||
|
||||
export const NEWSLETTER_STATUS_VARIANT: Record<string, 'default' | 'secondary' | 'destructive' | 'outline'> = {
|
||||
export const NEWSLETTER_STATUS_VARIANT: Record<
|
||||
string,
|
||||
'default' | 'secondary' | 'destructive' | 'outline'
|
||||
> = {
|
||||
draft: 'outline',
|
||||
scheduled: 'secondary',
|
||||
sending: 'secondary',
|
||||
@@ -62,7 +74,10 @@ export const NEWSLETTER_STATUS_LABEL: Record<string, string> = {
|
||||
failed: 'Fehlgeschlagen',
|
||||
};
|
||||
|
||||
export const EVENT_STATUS_VARIANT: Record<string, 'default' | 'secondary' | 'destructive' | 'outline'> = {
|
||||
export const EVENT_STATUS_VARIANT: Record<
|
||||
string,
|
||||
'default' | 'secondary' | 'destructive' | 'outline'
|
||||
> = {
|
||||
planned: 'outline',
|
||||
open: 'secondary',
|
||||
full: 'secondary',
|
||||
@@ -80,7 +95,10 @@ export const EVENT_STATUS_LABEL: Record<string, string> = {
|
||||
cancelled: 'Abgesagt',
|
||||
};
|
||||
|
||||
export const COURSE_STATUS_VARIANT: Record<string, 'default' | 'secondary' | 'destructive' | 'outline'> = {
|
||||
export const COURSE_STATUS_VARIANT: Record<
|
||||
string,
|
||||
'default' | 'secondary' | 'destructive' | 'outline'
|
||||
> = {
|
||||
planned: 'outline',
|
||||
open: 'default',
|
||||
active: 'default',
|
||||
@@ -98,7 +116,10 @@ export const COURSE_STATUS_LABEL: Record<string, string> = {
|
||||
cancelled: 'Abgesagt',
|
||||
};
|
||||
|
||||
export const APPLICATION_STATUS_VARIANT: Record<string, 'default' | 'secondary' | 'destructive' | 'outline'> = {
|
||||
export const APPLICATION_STATUS_VARIANT: Record<
|
||||
string,
|
||||
'default' | 'secondary' | 'destructive' | 'outline'
|
||||
> = {
|
||||
submitted: 'outline',
|
||||
review: 'secondary',
|
||||
approved: 'default',
|
||||
@@ -112,7 +133,10 @@ export const APPLICATION_STATUS_LABEL: Record<string, string> = {
|
||||
rejected: 'Abgelehnt',
|
||||
};
|
||||
|
||||
export const NEWSLETTER_RECIPIENT_STATUS_VARIANT: Record<string, 'default' | 'secondary' | 'destructive' | 'outline'> = {
|
||||
export const NEWSLETTER_RECIPIENT_STATUS_VARIANT: Record<
|
||||
string,
|
||||
'default' | 'secondary' | 'destructive' | 'outline'
|
||||
> = {
|
||||
pending: 'secondary',
|
||||
sent: 'default',
|
||||
failed: 'destructive',
|
||||
|
||||
Reference in New Issue
Block a user