mirror of
https://github.com/Tria-plc/edr-platform.git
synced 2026-08-29 12:58:13 +00:00
add reference field to train schedules and implement unique sequence generation
This commit is contained in:
@@ -29,6 +29,7 @@ import { api } from "@/services/api";
|
||||
*/
|
||||
interface WindowRow {
|
||||
scheduleId: string;
|
||||
reference?: string | null;
|
||||
trainNumber?: string | null;
|
||||
direction: string | null;
|
||||
windowPhase: string | null;
|
||||
@@ -195,6 +196,11 @@ function WindowCard({ w }: { w: WindowRow }) {
|
||||
{w.destination ?? "—"}
|
||||
</Text>
|
||||
</Group>
|
||||
{w.reference ? (
|
||||
<Text fz={12} fw={600} ff="monospace" c="edr-green.7" truncate>
|
||||
{w.reference}
|
||||
</Text>
|
||||
) : null}
|
||||
{w.trainNumber ? (
|
||||
<Text fz={12} c="dimmed" truncate>
|
||||
Train {w.trainNumber}
|
||||
|
||||
Reference in New Issue
Block a user