Move status and audit label constants to shared/constants/labels

STATUS_LABELS was defined in the server, AUDIT_LABELS and AUDIT_COLORS
in the client. Both layers now import from a single shared source.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
2026-04-21 20:34:33 -04:00
parent d3ec27e223
commit 86399c4ed0
3 changed files with 32 additions and 29 deletions
+1 -6
View File
@@ -40,12 +40,7 @@ const ticketListInclude = {
_count: { select: { comments: true, attachments: true } },
} as const;
const STATUS_LABELS: Record<string, string> = {
OPEN: 'Open',
IN_PROGRESS: 'In Progress',
RESOLVED: 'Resolved',
CLOSED: 'Closed',
};
import { STATUS_LABELS } from '../../../shared/constants/labels';
export type TicketFilters = {
status?: string;