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

manchette: add fit button #410

Open
3 tasks
clarani opened this issue Aug 30, 2024 · 0 comments
Open
3 tasks

manchette: add fit button #410

clarani opened this issue Aug 30, 2024 · 0 comments
Assignees

Comments

@clarani
Copy link
Contributor

clarani commented Aug 30, 2024

closes https://github.com/osrd-project/osrd-confidential/issues/636

Description

The header represents the spatial axis of the Space-Time Diagram (GET). From the header, there should be a FIT button that allows switching to a view where the entire path is displayed.
On the first render, the selected train must be optimally displayed horizontally.

Acceptance Criteria

  • The user has a button to reset the zoom level in order to see a train in its entirety.
  • On the first render, the user can see the selected train in full.
  • On the first render, the horizontal scale must be adjusted to the trains in the timetable.

Implementation Plan

osrd-ui (size 0.75)

  • In the header, add a button to dispatch an event that resets the scale.
  • In the Header+GET component, add logic to:
    • Adjust the maximum allowed zoom level on the GET.
    • Modify the vertical scales (space) when clicking the button.
    • Modify the horizontal scale (time) for the first render.

osrd (size 0.25)

  • Integrate the new version of the header, providing the new props if necessary.
@clarani clarani self-assigned this Aug 30, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant