From f58541d06a5d50facde3e6912552b687f56979e7 Mon Sep 17 00:00:00 2001 From: "arthur.bassi" Date: Tue, 11 Aug 2026 15:47:23 -0300 Subject: [PATCH] fix(work-orders): keep SH-196 slice under maintainability gates Extract EmptyInlineCell so WoTableInlineRowCells stays under the 150-line limit, and add upliftSummary to the unscheduled highlight fixture. --- .../list/table/wo-table-inline-row-cells.tsx | 17 ++++++++++------- .../wo-table-unscheduled-highlight.test.tsx | 1 + 2 files changed, 11 insertions(+), 7 deletions(-) diff --git a/src/app/(protected)/workorders/_components/list/table/wo-table-inline-row-cells.tsx b/src/app/(protected)/workorders/_components/list/table/wo-table-inline-row-cells.tsx index 66b4d2dc..4ecc9a17 100644 --- a/src/app/(protected)/workorders/_components/list/table/wo-table-inline-row-cells.tsx +++ b/src/app/(protected)/workorders/_components/list/table/wo-table-inline-row-cells.tsx @@ -28,6 +28,14 @@ type WoTableInlineRowCellsProps = { onPatch: (patch: Partial) => void; }; +function EmptyInlineCell() { + return ( + + — + + ); +} + export function WoTableInlineRowCells({ draft, weekDefault, @@ -170,13 +178,8 @@ export function WoTableInlineRowCells({ /> - - — - - - - — - + + ); } diff --git a/src/test/app/(protected)/workorders/wo-table-unscheduled-highlight.test.tsx b/src/test/app/(protected)/workorders/wo-table-unscheduled-highlight.test.tsx index 011c95a6..ee737718 100644 --- a/src/test/app/(protected)/workorders/wo-table-unscheduled-highlight.test.tsx +++ b/src/test/app/(protected)/workorders/wo-table-unscheduled-highlight.test.tsx @@ -51,6 +51,7 @@ const unscheduledRow: WorkOrderTableRow = { rowVersion: "", dispatchRowVersion: "", flagColor: null, + upliftSummary: { hasUplift: false, pendingCount: 0 }, }; const handlers: WoTableRowHandlers = {