OpenRailAssociation / osrd

An open source web application for railway infrastructure design, capacity analysis, timetabling and simulation
https://osrd.fr
GNU Lesser General Public License v3.0
415 stars 40 forks source link

front: fix chart pointers and train details #7923

Closed emersion closed 1 day ago

emersion commented 2 days ago

See individual commits.

Closes: https://github.com/OpenRailAssociation/osrd/issues/7801


This has one unfortunate consequence: the space-speed chart now (correctly) displays pointers that are not aligned vertically for a given timestamp. That is, the pointer for the eco curve will lag behind the pointer for the base curve. See below:

out

I don't see a good way to fix it when hovering the space-time chart... Maybe only show the pointer for eco, not for base?

codecov-commenter commented 2 days ago

:warning: Please install the 'codecov app svg image' to ensure uploads and comments are reliably processed by Codecov.

Codecov Report

Attention: Patch coverage is 0% with 71 lines in your changes missing coverage. Please review.

Project coverage is 28.48%. Comparing base (60ae156) to head (47b10ff). Report is 14 commits behind head on dev.

Files Patch % Lines
front/src/applications/operationalStudies/hooks.ts 0.00% 65 Missing :warning:
...les/simulationResult/components/TrainDetailsV2.tsx 0.00% 4 Missing :warning:
...ationResult/components/SpaceTimeChart/drawTrain.ts 0.00% 2 Missing :warning:

:exclamation: Your organization needs to install the Codecov GitHub app to enable full functionality.

Additional details and impacted files ```diff @@ Coverage Diff @@ ## dev #7923 +/- ## ============================================ - Coverage 28.54% 28.48% -0.06% Complexity 2059 2059 ============================================ Files 1249 1254 +5 Lines 154177 154472 +295 Branches 3036 3047 +11 ============================================ + Hits 44005 44006 +1 - Misses 108362 108651 +289 - Partials 1810 1815 +5 ``` | [Flag](https://app.codecov.io/gh/OpenRailAssociation/osrd/pull/7923/flags?src=pr&el=flags&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=None) | Coverage Δ | | |---|---|---| | [core](https://app.codecov.io/gh/OpenRailAssociation/osrd/pull/7923/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=None) | `75.00% <ø> (+0.04%)` | :arrow_up: | | [editoast](https://app.codecov.io/gh/OpenRailAssociation/osrd/pull/7923/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=None) | `71.66% <ø> (-0.01%)` | :arrow_down: | | [front](https://app.codecov.io/gh/OpenRailAssociation/osrd/pull/7923/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=None) | `9.97% <0.00%> (-0.03%)` | :arrow_down: | | [gateway](https://app.codecov.io/gh/OpenRailAssociation/osrd/pull/7923/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=None) | `2.34% <ø> (ø)` | | | [railjson_generator](https://app.codecov.io/gh/OpenRailAssociation/osrd/pull/7923/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=None) | `87.49% <ø> (ø)` | | | [tests](https://app.codecov.io/gh/OpenRailAssociation/osrd/pull/7923/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=None) | `72.93% <ø> (ø)` | | Flags with carried forward coverage won't be shown. [Click here](https://docs.codecov.io/docs/carryforward-flags?utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=None#carryforward-flags-in-the-pull-request-comment) to find out more.

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.