diff --git a/front/src/applications/operationalStudies/types.ts b/front/src/applications/operationalStudies/types.ts index c8086d7efba..5eaee7469ed 100644 --- a/front/src/applications/operationalStudies/types.ts +++ b/front/src/applications/operationalStudies/types.ts @@ -5,6 +5,7 @@ import type { import type { IncompatibleConstraints, + OperationalPoint, PathProperties, PathfindingResultSuccess, ProjectPathTrainResult, @@ -66,7 +67,7 @@ export type CichDictValue = { chCode?: string; }; -export type OperationalPoint = NonNullable[number]; +// export type OperationalPoint = NonNullable[number]; // Extraction of some required and non nullable properties from osrdEditoastApi's PathProperties type export type ManageTrainSchedulePathProperties = { diff --git a/front/src/applications/operationalStudies/views/SimulationResults.tsx b/front/src/applications/operationalStudies/views/SimulationResults.tsx index fc6adb38010..bcbfc84bff7 100644 --- a/front/src/applications/operationalStudies/views/SimulationResults.tsx +++ b/front/src/applications/operationalStudies/views/SimulationResults.tsx @@ -120,6 +120,8 @@ const SimulationResults = ({ return null; } + console.log(projectedOperationalPoints.map((op) => op.weight)); + return (
{/* SIMULATION : STICKY BAR */} diff --git a/front/src/modules/simulationResult/components/SpaceTimeChart/useGetProjectedTrainOperationalPoints.ts b/front/src/modules/simulationResult/components/SpaceTimeChart/useGetProjectedTrainOperationalPoints.ts index 66f5f7121de..049a05b0da8 100644 --- a/front/src/modules/simulationResult/components/SpaceTimeChart/useGetProjectedTrainOperationalPoints.ts +++ b/front/src/modules/simulationResult/components/SpaceTimeChart/useGetProjectedTrainOperationalPoints.ts @@ -5,10 +5,10 @@ import { useTranslation } from 'react-i18next'; import { useSelector } from 'react-redux'; import { upsertMapWaypointsInOperationalPoints } from 'applications/operationalStudies/helpers/upsertMapWaypointsInOperationalPoints'; -import type { OperationalPoint } from 'applications/operationalStudies/types'; import { STDCM_TRAIN_ID } from 'applications/stdcm/consts'; import { osrdEditoastApi, + type OperationalPoint, type PathProperties, type TrainScheduleResult, } from 'common/api/osrdEditoastApi'; diff --git a/front/src/modules/trainschedule/components/ManageTrainSchedule/types.ts b/front/src/modules/trainschedule/components/ManageTrainSchedule/types.ts index 74af67f9ec7..7374f854ad4 100644 --- a/front/src/modules/trainschedule/components/ManageTrainSchedule/types.ts +++ b/front/src/modules/trainschedule/components/ManageTrainSchedule/types.ts @@ -38,6 +38,7 @@ export type SuggestedOP = { trackName: string; trackNumber: number; }; + weight?: number; }; export type Margin = {