OpenRailAssociation / osrd-ui

Icons, fonts, colors, components and all user interface items for OSRD project.
8 stars 5 forks source link

Space time chart not starting from origin #632

Open SharglutDev opened 1 month ago

SharglutDev commented 1 month ago

What happened?

With certain path, there can multiple waypoints at position 0 (i.e. Paris Nord - Lille Flandres). When it does, the curve of the space time chart doesn't start from the first waypoint but the last at position 0.

Image

What did you expect to happen?

If some OP are overlapping, only the one asked by the user should be kept, and the GET should start from there. Same thing for STDCM (see comment below).

How can we reproduce it (as minimally and precisely as possible)?

  1. Add a Paris Nord - Lille Flandres train
  2. Check the space time cart

On which environments the bug occurs?

Deployed Storybook

On which browser the bug occurs?

Firefox

axrolld commented 1 month ago

Most likely the same thing happening on STDCM. I asked for a departure in Rennes RF here : Image