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.
This commit is contained in:
arthur.bassi 2026-08-11 15:47:23 -03:00
parent f6bc50dddd
commit f58541d06a
2 changed files with 11 additions and 7 deletions

View file

@ -28,6 +28,14 @@ type WoTableInlineRowCellsProps = {
onPatch: (patch: Partial<WorkOrderTableDraft>) => void; onPatch: (patch: Partial<WorkOrderTableDraft>) => void;
}; };
function EmptyInlineCell() {
return (
<td style={{ padding: "0 14px" }}>
<span style={{ fontSize: 11, color: "var(--color-text-muted)" }}>—</span>
</td>
);
}
export function WoTableInlineRowCells({ export function WoTableInlineRowCells({
draft, draft,
weekDefault, weekDefault,
@ -170,13 +178,8 @@ export function WoTableInlineRowCells({
/> />
</td> </td>
<td style={{ padding: "0 14px" }}> <EmptyInlineCell />
<span style={{ fontSize: 11, color: "var(--color-text-muted)" }}>—</span> <EmptyInlineCell />
</td>
<td style={{ padding: "0 14px" }}>
<span style={{ fontSize: 11, color: "var(--color-text-muted)" }}>—</span>
</td>
</> </>
); );
} }

View file

@ -51,6 +51,7 @@ const unscheduledRow: WorkOrderTableRow = {
rowVersion: "", rowVersion: "",
dispatchRowVersion: "", dispatchRowVersion: "",
flagColor: null, flagColor: null,
upliftSummary: { hasUplift: false, pendingCount: 0 },
}; };
const handlers: WoTableRowHandlers = { const handlers: WoTableRowHandlers = {