mirror of
https://github.com/Tria-plc/edr-platform.git
synced 2026-09-07 16:35:42 +00:00
fix issue
This commit is contained in:
@@ -13,7 +13,9 @@ import {
|
||||
History,
|
||||
MapPin,
|
||||
Minus,
|
||||
PackageCheck,
|
||||
PackageMinus,
|
||||
PackageOpen,
|
||||
Plus,
|
||||
User,
|
||||
} from "lucide-react";
|
||||
@@ -29,6 +31,8 @@ const ACTION_META: Record<
|
||||
REMOVE: { label: "Wagon trimmed", color: "red", icon: Minus },
|
||||
SWITCH: { label: "Wagon switched", color: "blue", icon: ArrowLeftRight },
|
||||
BOOKING_REMOVED: { label: "Booking removed", color: "orange", icon: PackageMinus },
|
||||
BOOKING_LOADED: { label: "Booking loaded", color: "edr-green", icon: PackageCheck },
|
||||
BOOKING_UNLOADED: { label: "Booking unloaded", color: "blue", icon: PackageOpen },
|
||||
};
|
||||
|
||||
/**
|
||||
@@ -57,8 +61,9 @@ export default function ScheduleHistoryPanel({ scheduleId }: { scheduleId: strin
|
||||
Change history
|
||||
</Text>
|
||||
<Text size="sm" c="dimmed">
|
||||
Wagons coupled, trimmed or switched — and bookings removed — after
|
||||
this train was scheduled, newest first.
|
||||
Wagons coupled, trimmed or switched, bookings loaded/unloaded per
|
||||
yard, and bookings removed — after this train was scheduled,
|
||||
newest first.
|
||||
</Text>
|
||||
</Stack>
|
||||
</Group>
|
||||
|
||||
@@ -278,7 +278,7 @@ export interface AdjustConsistPayload {
|
||||
export interface ScheduleHistoryEntry {
|
||||
id: string;
|
||||
kind: "WAGON" | "BOOKING";
|
||||
action: "ADD" | "REMOVE" | "SWITCH" | "BOOKING_REMOVED";
|
||||
action: "ADD" | "REMOVE" | "SWITCH" | "BOOKING_REMOVED" | "BOOKING_LOADED" | "BOOKING_UNLOADED";
|
||||
subject: string | null;
|
||||
yardLabel: string | null;
|
||||
actor: string | null;
|
||||
|
||||
Reference in New Issue
Block a user