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: handle train drag #10151

Open
wants to merge 5 commits into
base: dev
Choose a base branch
from
Open

front: handle train drag #10151

wants to merge 5 commits into from

Conversation

Math-R
Copy link
Contributor

@Math-R Math-R commented Dec 20, 2024

No description provided.

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

codecov-commenter commented Jan 3, 2025

⚠️ 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 87.50%. Comparing base (8a4ce07) to head (662dcf2).
Report is 2 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   #10151       +/-   ##
===========================================
+ Coverage   81.44%   87.50%    +6.06%     
===========================================
  Files        1058       31     -1027     
  Lines      104282     1537   -102745     
  Branches      722        0      -722     
===========================================
- Hits        84930     1345    -83585     
+ Misses      19311      192    -19119     
+ Partials       41        0       -41     
Flag Coverage Δ
editoast ?
front ?
gateway ?
osrdyne ?
railjson_generator 87.50% <ø> (ø)
tests ?

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.

@Math-R Math-R force-pushed the mrd/handle-train-drag-2 branch from ed8a7a5 to 913bfb1 Compare January 6, 2025 14:17
@Math-R Math-R marked this pull request as ready for review January 6, 2025 14:18
@Math-R Math-R requested a review from a team as a code owner January 6, 2025 14:18
@Math-R Math-R marked this pull request as draft January 6, 2025 14:34
@Math-R Math-R force-pushed the mrd/handle-train-drag-2 branch from 913bfb1 to 6607ec8 Compare January 6, 2025 16:56
@Math-R Math-R force-pushed the mrd/handle-train-drag-2 branch from 6607ec8 to 662dcf2 Compare January 6, 2025 17:00
@Math-R Math-R marked this pull request as ready for review January 6, 2025 17:01
Copy link
Contributor

@SharglutDev SharglutDev Jan 7, 2025

Choose a reason for hiding this comment

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

Gonna start to check the code but after testing, I have some weird behaviors :

  • When dragging a train to the left, the viewport follows the start of dragged train but it doesn't move if I drag the train to the right. Is it the expected behavior ?
Enregistrement.de.l.ecran.2025-01-07.a.08.47.25.mov
  • If I pan to the right and then drag a train (which doesn't fit in viewport anymore), the viewport doesn't follow the drag. It seems it takes count only of the initial viewport position.
Enregistrement.de.l.ecran.2025-01-07.a.08.48.57.mov
  • After dragging a train, a lot of endpoints are fired. I think we should just see the putTrainScheduleById, summaries (only for the dragged train) and the getTimetableByIdConflicts ? It probably comes from the update which invalidates the train_schedule tag resulting to refetching all endpoints with this tag. This can maybe be handled by customizing the endpoint like in this PR. If you don't want to deal with that now, could you create an issue to handle that so we don't forget it ? :)
Enregistrement.de.l.ecran.2025-01-07.a.08.53.27.mov

@emersion emersion removed their assignment Jan 7, 2025
@emersion emersion self-requested a review January 7, 2025 08:44
@emersion emersion changed the title Mrd/handle train drag 2 front: handle train drag 2 Jan 7, 2025
@emersion emersion changed the title front: handle train drag 2 front: handle train drag Jan 7, 2025
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.

6 participants