mirror of
https://github.com/Sea-Haven-Industries/shoc-frontend-new.git
synced 2026-10-07 10:28:59 +00:00
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:
parent
f6bc50dddd
commit
f58541d06a
2 changed files with 11 additions and 7 deletions
|
|
@ -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>
|
|
||||||
</>
|
</>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -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 = {
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue