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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user