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: drop TimeButtons, TrainDetails and ChartSynchronizer #10881

Open
wants to merge 7 commits into
base: dev
Choose a base branch
from

Conversation

emersion
Copy link
Member

These are unused at the moment, because the whole thing is hidden. The code is bit-rotting and holding off refactoring.

Let's just nuke all of that. Maybe this feature will be re-introduced at some point, but we'll need to rewrite big chunks of it anyways and we can easily copy back useful bits from the Git history.

@emersion emersion requested review from clarani and Caracol3 February 20, 2025 14:27
@emersion emersion requested a review from a team as a code owner February 20, 2025 14:27
@github-actions github-actions bot added the area:front Work on Standard OSRD Interface modules label Feb 20, 2025
@emersion emersion self-assigned this Feb 20, 2025
@emersion emersion requested review from Wadjetz and removed request for Caracol3 February 20, 2025 14:30
Copy link
Member

@Wadjetz Wadjetz left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

Copy link
Contributor

@clarani clarani left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You can also:

  • drop all the utils functions interpolateOnTime, interpolateOnPosition
  • drop getSimulationHoverPositions
  • clean SimulationWarpedMap

@emersion emersion force-pushed the emr/drop-sticky-bar branch from f96e5ec to d5ebb68 Compare February 24, 2025 14:08
@emersion
Copy link
Member Author

All done!

@emersion emersion requested a review from clarani February 25, 2025 16:47
emersion added 3 commits March 4, 2025 09:40
These are unused at the moment, because the whole thing is hidden.
The code is bit-rotting and holding off refactoring.

Let's just nuke all of that. Maybe this feature will be re-introduced
at some point, but we'll need to rewrite big chunks of it anyways
and we can easily copy back useful bits from the Git history.

Signed-off-by: Simon Ser <contact@emersion.fr>
This is now unused.

Signed-off-by: Simon Ser <contact@emersion.fr>
This is now unused.

Signed-off-by: Simon Ser <contact@emersion.fr>
@emersion emersion force-pushed the emr/drop-sticky-bar branch from d5ebb68 to 9677280 Compare March 4, 2025 08:54
@emersion
Copy link
Member Author

emersion commented Mar 4, 2025

Removed! I also ended up nuking TrainHoverPosition.

@emersion emersion requested a review from clarani March 4, 2025 08:54
emersion added 4 commits March 4, 2025 09:55
These are now unused.

Signed-off-by: Simon Ser <contact@emersion.fr>
Signed-off-by: Simon Ser <contact@emersion.fr>
Signed-off-by: Simon Ser <contact@emersion.fr>
Signed-off-by: Simon Ser <contact@emersion.fr>
@emersion emersion force-pushed the emr/drop-sticky-bar branch from 9677280 to a358673 Compare March 4, 2025 08:56
@emersion emersion mentioned this pull request Feb 24, 2025
22 tasks
Copy link
Contributor

@clarani clarani left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You can drop:

  • the file src/reducers/simulationResults/types.ts and most of consts in src/modules/simulationResult/conts.ts
  • the file trainExample.ts
  • the file simulationTrain.ts

(You can also drop TrainOnMap)

@Synar
Copy link
Contributor

Synar commented Mar 6, 2025

If you end up dropping TrainOnMap, please also drop the train layer and layer group in front/src/config/layerOrder.ts ^^

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area:front Work on Standard OSRD Interface modules
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants