Ship the delivery platform UI under modules/delivery with thin app routes, BFF proxy, CRUD for phase 10.0-10.1 APIs, and capability-gated future screens. Co-authored-by: Cursor <cursoragent@cursor.com>
50 lines
1.3 KiB
TypeScript
50 lines
1.3 KiB
TypeScript
/** Delivery module visual tokens — logistics blue/teal palette. */
|
|
export const deliveryTokens = {
|
|
accent: "var(--delivery-accent)",
|
|
accentSoft: "var(--delivery-accent-soft)",
|
|
map: "var(--delivery-map)",
|
|
success: "var(--delivery-success)",
|
|
warning: "var(--delivery-warning)",
|
|
danger: "var(--delivery-danger)",
|
|
} as const;
|
|
|
|
export const lifecycleStatusLabels: Record<string, string> = {
|
|
draft: "پیشنویس",
|
|
active: "فعال",
|
|
inactive: "غیرفعال",
|
|
suspended: "معلق",
|
|
archived: "آرشیو",
|
|
pending: "در انتظار",
|
|
blocked: "مسدود",
|
|
};
|
|
|
|
export const lifecycleStatusTone: Record<
|
|
string,
|
|
"default" | "primary" | "success" | "warning" | "danger" | "info"
|
|
> = {
|
|
draft: "default",
|
|
active: "success",
|
|
inactive: "default",
|
|
suspended: "warning",
|
|
archived: "danger",
|
|
pending: "info",
|
|
blocked: "danger",
|
|
};
|
|
|
|
export const driverStatusLabels: Record<string, string> = {
|
|
pending: "در انتظار",
|
|
active: "فعال",
|
|
suspended: "معلق",
|
|
inactive: "غیرفعال",
|
|
blocked: "مسدود",
|
|
archived: "آرشیو",
|
|
};
|
|
|
|
export const providerKindLabels: Record<string, string> = {
|
|
routing_engine: "موتور مسیریابی",
|
|
fleet: "ناوگان",
|
|
courier: "پیک",
|
|
maps: "نقشه",
|
|
custom: "سفارشی",
|
|
};
|