refactor: remove all trace of status from ticket
This commit is contained in:
@@ -29,12 +29,6 @@ export function useTicketColumns(): ColumnDef<TicketListItem>[] {
|
|||||||
header: 'Detections',
|
header: 'Detections',
|
||||||
size: 120,
|
size: 120,
|
||||||
},
|
},
|
||||||
{
|
|
||||||
accessorKey: 'assigned_to_name',
|
|
||||||
header: 'Assigned To',
|
|
||||||
size: 220,
|
|
||||||
cell: ({ row }) => row.original.assigned_to_name || 'N/A',
|
|
||||||
},
|
|
||||||
{
|
{
|
||||||
accessorKey: 'created_by_name',
|
accessorKey: 'created_by_name',
|
||||||
header: 'Uploaded By',
|
header: 'Uploaded By',
|
||||||
|
|||||||
@@ -98,7 +98,6 @@ function buildTicketListItem(
|
|||||||
chainage_id: event.chainage_id ?? null,
|
chainage_id: event.chainage_id ?? null,
|
||||||
chainage_name: event.chainage_name ?? null,
|
chainage_name: event.chainage_name ?? null,
|
||||||
default_defect_class: event.default_defect_class ?? null,
|
default_defect_class: event.default_defect_class ?? null,
|
||||||
assigned_to_name: event.assigned_to_name ?? null,
|
|
||||||
detection_count: event.detection_count,
|
detection_count: event.detection_count,
|
||||||
created_by_name: event.created_by_name ?? null,
|
created_by_name: event.created_by_name ?? null,
|
||||||
created_at: event.created_at ?? event.updated_at,
|
created_at: event.created_at ?? event.updated_at,
|
||||||
@@ -117,7 +116,6 @@ function mergeTicketListItem(
|
|||||||
chainage_name: event.chainage_name ?? current.chainage_name,
|
chainage_name: event.chainage_name ?? current.chainage_name,
|
||||||
default_defect_class:
|
default_defect_class:
|
||||||
event.default_defect_class ?? current.default_defect_class,
|
event.default_defect_class ?? current.default_defect_class,
|
||||||
assigned_to_name: event.assigned_to_name ?? current.assigned_to_name,
|
|
||||||
detection_count: event.detection_count ?? current.detection_count,
|
detection_count: event.detection_count ?? current.detection_count,
|
||||||
created_by_name: event.created_by_name ?? current.created_by_name,
|
created_by_name: event.created_by_name ?? current.created_by_name,
|
||||||
created_at: event.created_at ?? current.created_at,
|
created_at: event.created_at ?? current.created_at,
|
||||||
|
|||||||
@@ -14,7 +14,6 @@ export type TicketTableStatusEvent = {
|
|||||||
chainage_id?: string | null;
|
chainage_id?: string | null;
|
||||||
chainage_name?: string | null;
|
chainage_name?: string | null;
|
||||||
default_defect_class?: string | null;
|
default_defect_class?: string | null;
|
||||||
assigned_to_name?: string | null;
|
|
||||||
detection_count?: number;
|
detection_count?: number;
|
||||||
created_by_name?: string | null;
|
created_by_name?: string | null;
|
||||||
created_at?: string;
|
created_at?: string;
|
||||||
|
|||||||
@@ -10,7 +10,6 @@ export interface TicketListItem {
|
|||||||
chainage_id: string | null;
|
chainage_id: string | null;
|
||||||
chainage_name: string | null;
|
chainage_name: string | null;
|
||||||
default_defect_class: string | null;
|
default_defect_class: string | null;
|
||||||
assigned_to_name: string | null;
|
|
||||||
detection_count: number;
|
detection_count: number;
|
||||||
created_by_name: string | null;
|
created_by_name: string | null;
|
||||||
created_at: string;
|
created_at: string;
|
||||||
|
|||||||
Reference in New Issue
Block a user