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: move useSimulationResults in SimulationResults #9885

Merged
merged 2 commits into from
Dec 5, 2024

Conversation

clarani
Copy link
Contributor

@clarani clarani commented Nov 28, 2024

closes #9884

@clarani clarani requested a review from a team as a code owner November 28, 2024 08:56
@github-actions github-actions bot added the area:front Work on Standard OSRD Interface modules label Nov 28, 2024
@codecov-commenter
Copy link

codecov-commenter commented Nov 28, 2024

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

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 79.84%. Comparing base (419a315) to head (d6b49dd).
Report is 5 commits behind head on dev.

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

Additional details and impacted files
@@            Coverage Diff             @@
##              dev    #9885      +/-   ##
==========================================
- Coverage   79.85%   79.84%   -0.01%     
==========================================
  Files        1048     1048              
  Lines      105046   105039       -7     
  Branches      756      756              
==========================================
- Hits        83883    83872      -11     
- Misses      21122    21126       +4     
  Partials       41       41              
Flag Coverage Δ
editoast 73.37% <ø> (-0.02%) ⬇️
front 89.34% <100.00%> (-0.01%) ⬇️
gateway 2.18% <ø> (ø)
osrdyne 3.28% <ø> (ø)
railjson_generator 87.49% <ø> (ø)
tests 87.00% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@clarani clarani force-pushed the cni/9884-move-usesimulationresults branch 2 times, most recently from f2bb5ca to 176ef03 Compare November 28, 2024 12:31
@clarani clarani force-pushed the cni/9884-move-usesimulationresults branch from 176ef03 to ef76be5 Compare November 28, 2024 13:03
@clarani clarani enabled auto-merge November 29, 2024 07:46
@clarani clarani force-pushed the cni/9884-move-usesimulationresults branch from ef76be5 to f5fb0da Compare December 5, 2024 14:03
Moving this hook in SimulationResults avoids unnecessary renders and bring the code closer to where it is used.

Signed-off-by: Clara Ni <clara.ni@outlook.fr>
- Removed the first condition trainSimulation.status === 'success' to allow the user to see the SpaceTimeChart even if the current selected train is invalid.
- Removed not needed condition on pathproperties to display the spacetimechart

Signed-off-by: Clara Ni <clara.ni@outlook.fr>
@clarani clarani force-pushed the cni/9884-move-usesimulationresults branch from f5fb0da to d6b49dd Compare December 5, 2024 14:15
Copy link
Contributor

@SharglutDev SharglutDev left a comment

Choose a reason for hiding this comment

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

Lgtm and tested !

@clarani clarani added this pull request to the merge queue Dec 5, 2024
Merged via the queue into dev with commit 5959c50 Dec 5, 2024
27 checks passed
@clarani clarani deleted the cni/9884-move-usesimulationresults branch December 5, 2024 15:38
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.

front: refacto move useSimulationResults in SimulationResults
3 participants