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 paced train item #10698

Merged
merged 3 commits into from
Feb 24, 2025
Merged

front: create paced train item #10698

merged 3 commits into from
Feb 24, 2025

Conversation

Uriel-Sautron
Copy link
Contributor

@Uriel-Sautron Uriel-Sautron commented Feb 5, 2025

close #10608

Use the switch in user parameters to show paced train. Then navigate to a scenario, add at least one train to the timetable you will see, a pacedtrainitem using the same data as the first train of your timetable.

@github-actions github-actions bot added the area:front Work on Standard OSRD Interface modules label Feb 5, 2025
@codecov-commenter
Copy link

codecov-commenter commented Feb 5, 2025

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

Codecov Report

Attention: Patch coverage is 99.57983% with 2 lines in your changes missing coverage. Please review.

Project coverage is 82.53%. Comparing base (b77308a) to head (3d4a5f3).
Report is 6 commits behind head on dev.

Files with missing lines Patch % Lines
front/src/utils/timeManipulation.ts 33.33% 2 Missing ⚠️

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

Additional details and impacted files
@@            Coverage Diff             @@
##              dev   #10698      +/-   ##
==========================================
+ Coverage   82.49%   82.53%   +0.03%     
==========================================
  Files        1084     1086       +2     
  Lines      107628   107930     +302     
  Branches      740      740              
==========================================
+ Hits        88786    89078     +292     
- Misses      18800    18810      +10     
  Partials       42       42              
Flag Coverage Δ
editoast 74.37% <ø> (-0.02%) ⬇️
front 90.36% <99.57%> (+0.03%) ⬆️
gateway 2.18% <ø> (ø)
osrdyne 3.28% <ø> (ø)
railjson_generator 87.58% <ø> (ø)
tests 87.90% <ø> (ø)

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.

@Uriel-Sautron Uriel-Sautron force-pushed the usn/create-paced-train-item branch from 3fe4c05 to 6ef4022 Compare February 6, 2025 10:55
@Math-R Math-R force-pushed the usn/create-paced-train-item branch from 6ef4022 to 559c26a Compare February 10, 2025 13:52
@Uriel-Sautron Uriel-Sautron force-pushed the usn/create-paced-train-item branch from 559c26a to 7a548a0 Compare February 10, 2025 14:08
@Math-R Math-R force-pushed the usn/create-paced-train-item branch 6 times, most recently from 131078d to 6a1f99e Compare February 11, 2025 15:57
@Math-R Math-R changed the title front: wip: create paced train item front: create paced train item Feb 11, 2025
@Math-R Math-R requested review from emersion and Caracol3 February 11, 2025 15:58
@Math-R Math-R marked this pull request as ready for review February 11, 2025 15:58
@Math-R Math-R requested a review from a team as a code owner February 11, 2025 15:58
@Math-R Math-R force-pushed the usn/create-paced-train-item branch from 6a1f99e to 85b8afd Compare February 11, 2025 16:11
@Uriel-Sautron Uriel-Sautron force-pushed the usn/create-paced-train-item branch from 85b8afd to 29aa2a4 Compare February 12, 2025 11:03
Copy link
Contributor

@Caracol3 Caracol3 left a comment

Choose a reason for hiding this comment

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

Good job !
lgtm (tested)

@Math-R Math-R requested review from kmer2016 and clarani February 13, 2025 11:03
@Math-R Math-R force-pushed the usn/create-paced-train-item branch from 29aa2a4 to d919fc9 Compare February 13, 2025 11:16
Copy link
Contributor

@clarani clarani left a comment

Choose a reason for hiding this comment

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

I think there is more space between the occurences number and the chevron 🤔
image

The mockup:
image

@SharglutDev
Copy link
Contributor

SharglutDev commented Feb 13, 2025

Sorry if there are some duplicates with @clarani. Started the review.a while ago :)

@emersion emersion removed their request for review February 17, 2025 09:23
@Math-R Math-R force-pushed the usn/create-paced-train-item branch from cc03c7c to 37715fb Compare February 17, 2025 10:59
@Uriel-Sautron Uriel-Sautron force-pushed the usn/create-paced-train-item branch from faa9955 to ad6d531 Compare February 21, 2025 13:06
Copy link
Contributor

@clarani clarani left a comment

Choose a reason for hiding this comment

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

Super nice work 💪

Code LGTM, I just found this small scroll bar (I had my dev tools opened, but it was not very wide)
Capture vidéo du 2025-02-21 17-26-07.webm

@Uriel-Sautron
Copy link
Contributor Author

Fix scroll bar @clarani

@Uriel-Sautron Uriel-Sautron force-pushed the usn/create-paced-train-item branch 3 times, most recently from d3a9022 to c2b8031 Compare February 24, 2025 10:59
@Uriel-Sautron Uriel-Sautron force-pushed the usn/create-paced-train-item branch from c2b8031 to dbc24ed Compare February 24, 2025 12:53
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, great job !

Co-authored-by: Uriel-Sautron <[email protected]>
Signed-off-by: Math_R_ <[email protected]>
@Uriel-Sautron Uriel-Sautron force-pushed the usn/create-paced-train-item branch 2 times, most recently from f62f292 to 69402ab Compare February 24, 2025 13:52
@SharglutDev
Copy link
Contributor

It would be nice for your 3rd commit if he kept only the changes regarding TrainScheduleItem

@Uriel-Sautron Uriel-Sautron force-pushed the usn/create-paced-train-item branch 3 times, most recently from 5bdc63d to 2d660e5 Compare February 24, 2025 15:04
Math-R and others added 2 commits February 24, 2025 16:06
Co-authored-by: Uriel-Sautron <[email protected]>
Signed-off-by: Math_R_ <[email protected]>

  - adapt selection timetable for paced train
@Uriel-Sautron Uriel-Sautron force-pushed the usn/create-paced-train-item branch from 2d660e5 to 3d4a5f3 Compare February 24, 2025 15:06
Copy link
Contributor

@clarani clarani left a comment

Choose a reason for hiding this comment

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

LGTM ✅

@Math-R Math-R added this pull request to the merge queue Feb 24, 2025
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks Feb 24, 2025
@Math-R Math-R added this pull request to the merge queue Feb 24, 2025
Merged via the queue into dev with commit a683167 Feb 24, 2025
27 checks passed
@Math-R Math-R deleted the usn/create-paced-train-item branch February 24, 2025 17:37
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.

Create TimetablePacedTrainItem
9 participants