osrd icon indicating copy to clipboard operation
osrd copied to clipboard

front: create type StdcmPathStep

Open clarani opened this issue 1 year ago • 1 comments

closes #9392

  • create a new type StdcmPathStep
  • add a new props stdcmPathSteps to the stdcmStore
  • create new actions: updateStdcmPathStep, addStdcmVia, removeStdcmVia
  • create new selectors: getStdcmPathSteps, getStdcmOrigin, getStdcmDestination
  • clean:
    • remove several actions: updateOriginArrival, updateDestinationArrival, updateOriginArrivalType, updateDestinationArrivalType, updateOriginTolerances, updateDestinationTolerances
    • clean some stdcm components

Will be followed by https://github.com/OpenRailAssociation/osrd/issues/9462

clarani avatar Oct 22 '24 15:10 clarani

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

Codecov Report

Attention: Patch coverage is 9.05350% with 221 lines in your changes missing coverage. Please review.

Project coverage is 39.65%. Comparing base (508ac32) to head (333b7dd). Report is 6 commits behind head on dev.

Files with missing lines Patch % Lines
...lications/stdcm/components/StdcmForm/StdcmVias.tsx 0.00% 52 Missing and 1 partial :warning:
...ns/stdcm/components/StdcmForm/StdcmDestination.tsx 0.00% 34 Missing and 1 partial :warning:
...cations/stdcm/components/StdcmForm/StdcmOrigin.tsx 0.00% 34 Missing and 1 partial :warning:
...cations/stdcm/components/StdcmForm/StdcmConfig.tsx 0.00% 19 Missing :warning:
front/src/reducers/osrdconf/stdcmConf/selectors.ts 0.00% 18 Missing and 1 partial :warning:
...src/modules/pathfinding/helpers/getStepLocation.ts 20.00% 16 Missing :warning:
front/src/reducers/osrdconf/stdcmConf/index.ts 56.66% 10 Missing and 3 partials :warning:
...dcm/components/StdcmForm/StdcmOperationalPoint.tsx 0.00% 9 Missing :warning:
...nt/src/applications/stdcm/utils/formatStdcmConf.ts 0.00% 9 Missing :warning:
front/src/applications/stdcm/hooks/useStdcm.ts 0.00% 3 Missing :warning:
... and 5 more

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

Additional details and impacted files
@@             Coverage Diff              @@
##                dev    #9428      +/-   ##
============================================
+ Coverage     39.62%   39.65%   +0.02%     
  Complexity     2270     2270              
============================================
  Files          1300     1301       +1     
  Lines         99167    99061     -106     
  Branches       3283     3280       -3     
============================================
- Hits          39297    39280      -17     
+ Misses        57937    57851      -86     
+ Partials       1933     1930       -3     
Flag Coverage Δ
core 75.06% <ø> (ø)
editoast 73.28% <ø> (-0.04%) :arrow_down:
front 10.24% <9.05%> (+<0.01%) :arrow_up:
gateway 2.19% <ø> (ø)
osrdyne 3.28% <ø> (ø)
railjson_generator 87.49% <ø> (ø)
tests 86.71% <ø> (ø)

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

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

codecov-commenter avatar Oct 22 '24 15:10 codecov-commenter