fix(work-orders): satisfy additionalContacts fixtures and inline row max-lines

This commit is contained in:
arthur.bassi 2026-08-12 10:32:37 -03:00
parent 397a9281ff
commit f460d7854e
5 changed files with 4 additions and 10 deletions

View file

@ -70,7 +70,6 @@ export function WoTableInlineRowCells({
}
/>
</td>
<td style={{ padding: "0 14px" }}>
<EditableWONumberCell
value={draft.woNumber}
@ -80,11 +79,9 @@ export function WoTableInlineRowCells({
onSave={(v) => onPatch({ woNumber: v })}
/>
</td>
<td className="group/cell" style={{ padding: "0 14px" }}>
<TypeCell value={draft.type} onSave={(t) => onPatch({ type: t })} />
</td>
<td className="group/cell" style={{ padding: "0 14px" }}>
<AssignedToCell
dispatcherId={draft.dispatcherId}
@ -95,7 +92,6 @@ export function WoTableInlineRowCells({
}}
/>
</td>
<td className="group/cell" style={{ padding: "0 14px" }}>
<DateCell
value={draft.scheduledOn}
@ -109,7 +105,6 @@ export function WoTableInlineRowCells({
}
/>
</td>
<td className="group/cell" style={{ padding: "0 14px" }}>
<DueDateCell
type={draft.type}
@ -117,7 +112,6 @@ export function WoTableInlineRowCells({
onSave={(date) => onPatch({ dueDate: date })}
/>
</td>
<td className="group/cell" style={{ padding: "0 14px" }}>
<PMTypeCell
value={draft.pm}
@ -135,7 +129,6 @@ export function WoTableInlineRowCells({
}
/>
</td>
<td className="group/cell" style={{ padding: "0 14px" }}>
<VendorCell
vendorId={draft.vendorId}
@ -153,7 +146,6 @@ export function WoTableInlineRowCells({
}
/>
</td>
<td className="group/cell" style={{ padding: "0 14px" }}>
<ApptTimeCell
apptTime={
@ -165,7 +157,6 @@ export function WoTableInlineRowCells({
}}
/>
</td>
<td className="group/cell" style={{ padding: "0 14px" }}>
<StatusCell
wo={draftRow as never}
@ -173,7 +164,6 @@ export function WoTableInlineRowCells({
onOpenSlideOver={() => {}}
/>
</td>
<td style={{ padding: "0 14px" }}>
<span style={{ fontSize: 11, color: "var(--color-text-muted)" }}>—</span>
</td>

View file

@ -49,6 +49,7 @@ function baseRow(overrides: Partial<WorkOrderTableRow> = {}): WorkOrderTableRow
pocName: "Amazon Rep",
pocPhone: "",
pocNotes: "",
additionalContacts: [],
dueDate: "",
rescheduleCount: 0,
carriedOver: 0,

View file

@ -69,6 +69,7 @@ function baseRow(): WorkOrderTableRow {
pocName: "",
pocPhone: "",
pocNotes: "",
additionalContacts: [],
dueDate: "",
rescheduleCount: 0,
carriedOver: 0,

View file

@ -44,6 +44,7 @@ function baseRow(overrides: Partial<WorkOrderTableRow> = {}): WorkOrderTableRow
pocName: "Amazon Rep",
pocPhone: "",
pocNotes: "",
additionalContacts: [],
dueDate: "",
rescheduleCount: 0,
carriedOver: 0,

View file

@ -93,6 +93,7 @@ const BASE_ROW = {
pocName: "",
pocPhone: "",
pocNotes: "",
additionalContacts: [],
dueDate: "",
rescheduleCount: 0,
carriedOver: 0,