feat: update package copy and admin control room

This commit is contained in:
Codex Agent
2026-01-15 19:54:04 +01:00
parent 7b88c1d365
commit 2945c710e3
42 changed files with 1310 additions and 2017 deletions

View File

@@ -0,0 +1,28 @@
export type LiveShowApproveMode = 'approve-and-live' | 'approve-only' | 'not-eligible';
export function resolveStatusTone(status?: string | null): 'success' | 'warning' | 'muted' {
if (status === 'approved') {
return 'success';
}
if (status === 'pending') {
return 'warning';
}
return 'muted';
}
export function normalizeLiveStatus(status?: string | null): 'pending' | 'approved' | 'rejected' | 'none' {
if (status === 'approved' || status === 'pending' || status === 'rejected') {
return status;
}
return 'none';
}
export function resolveLiveShowApproveMode(galleryStatus?: string | null): LiveShowApproveMode {
if (galleryStatus === 'pending') {
return 'approve-and-live';
}
if (galleryStatus === 'approved') {
return 'approve-only';
}
return 'not-eligible';
}