mirror of
https://github.com/Tria-plc/edr-platform.git
synced 2026-08-26 18:42:49 +00:00
Enhance overview and train scheduling features
- Updated OverviewContractsTabPanel to include a new donut chart for freight type distribution. - Modified OverviewOperationsTabPanel to improve data visualization with additional charts and refactored data handling. - Introduced CreateScheduleWindowFields component for configuring booking windows in train scheduling. - Added new API endpoints for allocation candidates and booking allocation in trainScheduling.service. - Enhanced BookingRequestsPage to support allocation of paid bookings with a modal for selecting alternative dates. - Updated QUERY_KEYS and URLS constants to accommodate new operations and features. - Improved type definitions for overview and train scheduling to support new functionalities.
This commit is contained in:
@@ -13,6 +13,8 @@ export interface IOverviewOperationsKpis {
|
||||
wagonsAvailable: number;
|
||||
containersInTransit: number;
|
||||
cargoesLoaded: number;
|
||||
schedulesUpcoming: number;
|
||||
dispatchedToday: number;
|
||||
}
|
||||
|
||||
export interface IOverviewCustomerKpis {
|
||||
@@ -151,8 +153,27 @@ export interface IOverviewBillingTab {
|
||||
generatedAt: string;
|
||||
}
|
||||
|
||||
/** Scheduled train departures per day, split by trade direction. */
|
||||
export interface IOverviewDirectionTrendPoint {
|
||||
date: string;
|
||||
importCount: number;
|
||||
exportCount: number;
|
||||
domesticCount: number;
|
||||
}
|
||||
|
||||
export interface IOverviewTonnagePoint {
|
||||
label: string;
|
||||
tons: number;
|
||||
}
|
||||
|
||||
export interface IOverviewOperationsTab {
|
||||
kpis: IOverviewOperationsKpis;
|
||||
departureTrend: IOverviewDirectionTrendPoint[];
|
||||
scheduleStatusBreakdown: IOverviewStatusCount[];
|
||||
wagonsByType: IOverviewLabelCount[];
|
||||
wagonsByYard: IOverviewLabelCount[];
|
||||
containersBySize: IOverviewLabelCount[];
|
||||
cargoTonnageByType: IOverviewTonnagePoint[];
|
||||
trainStatusBreakdown: IOverviewStatusCount[];
|
||||
wagonStatusBreakdown: IOverviewStatusCount[];
|
||||
containerStatusBreakdown: IOverviewStatusCount[];
|
||||
|
||||
Reference in New Issue
Block a user