-
Notifications
You must be signed in to change notification settings - Fork 44
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
base: dev
Are you sure you want to change the base?
front: handle train drag #10151
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
❗ 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
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
ed8a7a5
to
913bfb1
Compare
913bfb1
to
6607ec8
Compare
6607ec8
to
662dcf2
Compare
There was a problem hiding this comment.
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 thegetTimetableByIdConflicts
? It probably comes from the update which invalidates thetrain_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 ? :)
No description provided.