mirror of
https://github.com/Tria-plc/edr-platform.git
synced 2026-08-29 21:08:12 +00:00
- Introduced `ClearanceReviewSection` component for document review and approval process. - Updated booking status configuration to include new clearance statuses. - Modified `DocumentClearanceDetailPage` and `BookingRequestDetailPage` to integrate the new clearance review functionality. - Adjusted `DocumentClearanceListPage` to filter customs bookings appropriately. - Enhanced `ClearanceCard` in the portal to reflect customs clearance status. - Removed unnecessary customs-related logic from clearance tabs and document review components.
26 lines
923 B
TypeScript
26 lines
923 B
TypeScript
import type { LucideIcon } from "lucide-react";
|
|
import { Layers, ShipWheel, Truck } from "lucide-react";
|
|
|
|
/**
|
|
* The Global Logistics clearance queue holds only customs bookings
|
|
* (`DOCUMENTS_UNDER_REVIEW` + customsClearingEnabled); non-customs clearance is
|
|
* reviewed by Marketing on the booking detail. Since every row here is a customs
|
|
* booking, the tabs slice by trade direction rather than customs scope.
|
|
*/
|
|
export type ClearanceTabKey = "all" | "import" | "export";
|
|
|
|
export interface ClearanceTab {
|
|
key: ClearanceTabKey;
|
|
label: string;
|
|
icon: LucideIcon;
|
|
}
|
|
|
|
export const CLEARANCE_TABS: ClearanceTab[] = [
|
|
{ key: "all", label: "All", icon: Layers },
|
|
{ key: "import", label: "Import", icon: Truck },
|
|
{ key: "export", label: "Export", icon: ShipWheel },
|
|
];
|
|
|
|
/** The backend booking status that places a booking in the clearance queue. */
|
|
export const CLEARANCE_REVIEW_STATUS = "DOCUMENTS_UNDER_REVIEW";
|