Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

front: remove pathSteps property from TimesStopsOutput #8624

Merged
merged 1 commit into from
Aug 30, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,12 @@ import React, { useEffect, useState, useRef, useMemo } from 'react';
import { ChevronLeft, ChevronRight } from '@osrd-project/ui-icons';
import { Manchette as SpaceTimeChartWithManchette } from '@osrd-project/ui-manchette';
import cx from 'classnames';
import { compact } from 'lodash';
import { useTranslation } from 'react-i18next';
import { useSelector } from 'react-redux';
import { Rnd } from 'react-rnd';

import type { SimulationResults, TrainSpaceTimeData } from 'applications/operationalStudies/types';
import SimulationWarpedMap from 'common/Map/WarpedMap/SimulationWarpedMap';
import { useOsrdConfSelectors } from 'common/osrdContext';
import { getScaleDomainFromValuesV2 } from 'modules/simulationResult/components/ChartHelpers/getScaleDomainFromValues';
import SimulationResultsMapV2 from 'modules/simulationResult/components/SimulationResultsMapV2';
import SpaceCurvesSlopesV2 from 'modules/simulationResult/components/SpaceCurvesSlopes/SpaceCurvesSlopesV2';
Expand Down Expand Up @@ -57,8 +55,6 @@ const SimulationResultsV2 = ({
timetableTrainNb,
}: SimulationResultsV2Props) => {
const { t } = useTranslation('simulation');
const { getPathSteps } = useOsrdConfSelectors();
const pathSteps = useSelector(getPathSteps);
const dispatch = useAppDispatch();
// TIMELINE DISABLED // const { chart } = useSelector(getOsrdSimulation);
const isUpdating = useSelector(getIsUpdating);
Expand Down Expand Up @@ -231,7 +227,6 @@ const SimulationResultsV2 = ({
pathProperties={pathProperties}
operationalPoints={operationalPoints.finalOutput}
selectedTrainSchedule={selectedTrainSchedule}
pathSteps={compact(pathSteps)}
pathLength={pathLength}
dataIsLoading={formattedOpPointsLoading}
/>
Expand Down
4 changes: 0 additions & 4 deletions front/src/modules/timesStops/TimesStopsOutput.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ import type {
import type { TrainScheduleResult } from 'common/api/osrdEditoastApi';
import { Loader } from 'common/Loaders/Loader';
import type { OperationalPointWithTimeAndSpeed } from 'modules/trainschedule/components/DriverTrainScheduleV2/types';
import type { PathStep } from 'reducers/osrdconf/types';
import { convertIsoUtcToLocalTime } from 'utils/date';
import { NO_BREAK_SPACE } from 'utils/strings';

Expand All @@ -22,7 +21,6 @@ type TimesStopsOutputProps = {
pathProperties: PathPropertiesFormatted;
operationalPoints: OperationalPointWithTimeAndSpeed[];
selectedTrainSchedule: TrainScheduleResult;
pathSteps: PathStep[];
pathLength?: number;
dataIsLoading: boolean;
};
Expand All @@ -32,7 +30,6 @@ const TimesStopsOutput = ({
pathProperties,
operationalPoints,
selectedTrainSchedule,
pathSteps,
pathLength,
dataIsLoading,
}: TimesStopsOutputProps) => {
Expand All @@ -54,7 +51,6 @@ const TimesStopsOutput = ({
return (
<TimesStops
allWaypoints={enrichedOperationalPoints}
pathSteps={pathSteps}
startTime={startTime}
tableType={TableType.Output}
cellClassName={({ rowData: rowData_ }) => {
Expand Down
Loading