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;
};
function EmptyInlineCell() {
return (
<td style={{ padding: "0 14px" }}>
<span style={{ fontSize: 11, color: "var(--color-text-muted)" }}>—</span>
</td>
);
}
export function WoTableInlineRowCells({
draft,
weekDefault,
@ -170,13 +178,8 @@ export function WoTableInlineRowCells({
/>
</td>
<td style={{ padding: "0 14px" }}>
<span style={{ fontSize: 11, color: "var(--color-text-muted)" }}>—</span>
</td>
<td style={{ padding: "0 14px" }}>
<span style={{ fontSize: 11, color: "var(--color-text-muted)" }}>—</span>
</td>
<EmptyInlineCell />
<EmptyInlineCell />
</>
);
}

View file

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