feat(freight-web): polish document clearance, general contracts list and detail UIs

This commit is contained in:
Marshal
2026-06-24 01:32:40 +00:00
parent 3655e50f2e
commit d7688fce21
38 changed files with 1769 additions and 363 deletions

View File

@@ -1835,6 +1835,18 @@ export const api = {
({ id, reason }) => bookingsService.staffReject(id, reason),
),
reviewOperation: endpoint<
{
id: string;
decision: "ACCEPT" | "REQUEST_CHANGES" | "ADJUST_PRICE";
note?: string;
amount?: number;
},
BookingDetail
>("bookings", "reviewOperation", ({ id, decision, note, amount }) =>
bookingsService.reviewOperation(id, decision, { note, amount }),
),
approveStep: endpoint<ApproveStepPayload, BookingDetail>(
"bookings",
"approveStep",