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: create a simple StdcmPathStep type #9392

Closed
clarani opened this issue Oct 18, 2024 · 0 comments · Fixed by #9428
Closed

front: create a simple StdcmPathStep type #9392

clarani opened this issue Oct 18, 2024 · 0 comments · Fixed by #9428
Assignees
Labels
area:front Work on Standard OSRD Interface modules kind:refacto-task Task related to Refactorization Epic

Comments

@clarani
Copy link
Contributor

clarani commented Oct 18, 2024

Add a new stdcmPathSteps props in the stdcm reducer and create a new StdcmPathStep type (which extends PathStep for the moment):

export type StdcmPathStep = PathStep & {
  isVia: boolean;
  tolerances?: { before: number; after: number };
} & ({ isVia: true; stopType: StdcmStopTypes } | { isVia: false; arrivalType: ArrivalTimeTypes });

This will simplify the stdcm interface.

Will be followed by #9462

@clarani clarani self-assigned this Oct 18, 2024
@clarani clarani changed the title front: refacto stdcm store front: create a simple StdcmPathStep type Oct 24, 2024
@clarani clarani added area:front Work on Standard OSRD Interface modules kind:refacto-task Task related to Refactorization Epic labels Oct 24, 2024
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 kind:refacto-task Task related to Refactorization Epic
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant