mirror of
https://github.com/Sea-Haven-Industries/shoc-frontend-new.git
synced 2026-10-02 02:43:12 +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;
|
||||
};
|
||||
|
||||
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 />
|
||||
</>
|
||||
);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -51,6 +51,7 @@ const unscheduledRow: WorkOrderTableRow = {
|
|||
rowVersion: "",
|
||||
dispatchRowVersion: "",
|
||||
flagColor: null,
|
||||
upliftSummary: { hasUplift: false, pendingCount: 0 },
|
||||
};
|
||||
|
||||
const handlers: WoTableRowHandlers = {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue