-
Notifications
You must be signed in to change notification settings - Fork 47
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: add, get and delete paced trains #10966
Conversation
Codecov ReportAttention: Patch coverage is
❗ Your organization needs to install the Codecov GitHub app to enable full functionality. Additional details and impacted files@@ Coverage Diff @@
## dev #10966 +/- ##
==========================================
+ Coverage 81.37% 81.41% +0.04%
==========================================
Files 1122 1123 +1
Lines 112696 113120 +424
Branches 758 758
==========================================
+ Hits 91703 92098 +395
- Misses 20938 20967 +29
Partials 55 55
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
5cf88dd
to
77ebbd0
Compare
77ebbd0
to
9d5a8e6
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.
I've looked at the first two commits! Will continue the review later.
...c/modules/trainschedule/components/ManageTrainSchedule/helpers/formatTimetableItemPayload.ts
Outdated
Show resolved
Hide resolved
...c/modules/trainschedule/components/ManageTrainSchedule/helpers/formatTimetableItemPayload.ts
Outdated
Show resolved
Hide resolved
...c/modules/trainschedule/components/ManageTrainSchedule/helpers/formatTimetableItemPayload.ts
Outdated
Show resolved
Hide resolved
front/src/modules/trainschedule/components/ManageTrainSchedule/AddTrainScheduleButton.tsx
Outdated
Show resolved
Hide resolved
front/src/modules/trainschedule/components/ManageTrainSchedule/AddTrainScheduleButton.tsx
Outdated
Show resolved
Hide resolved
front/src/modules/trainschedule/components/ManageTrainSchedule/helpers/checkCurrentConfig.ts
Show resolved
Hide resolved
front/src/applications/operationalStudies/hooks/useScenarioData.ts
Outdated
Show resolved
Hide resolved
front/src/applications/operationalStudies/hooks/useScenarioData.ts
Outdated
Show resolved
Hide resolved
front/src/applications/operationalStudies/hooks/useScenarioData.ts
Outdated
Show resolved
Hide resolved
front/src/applications/operationalStudies/hooks/useScenarioData.ts
Outdated
Show resolved
Hide resolved
d37c225
to
9f154eb
Compare
46934e7
to
b6811f7
Compare
front/src/applications/operationalStudies/hooks/useScenarioData.ts
Outdated
Show resolved
Hide resolved
front/src/modules/trainschedule/components/ManageTrainSchedule/PacedTrainSettings.tsx
Outdated
Show resolved
Hide resolved
front/src/modules/trainschedule/components/Timetable/PacedTrain/PacedTrainItem.tsx
Outdated
Show resolved
Hide resolved
front/src/applications/operationalStudies/helpers/formatTimetableItemSummaries.ts
Outdated
Show resolved
Hide resolved
front/src/applications/operationalStudies/helpers/formatTimetableItemSummaries.ts
Show resolved
Hide resolved
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.
Overall LGTM! Very nice work :)
5154a40
to
1adeee8
Compare
5845574
to
178345d
Compare
178345d
to
d5661d0
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.
LGTM ✅
front/src/applications/operationalStudies/helpers/formatTimetableItemSummaries.ts
Show resolved
Hide resolved
front/src/modules/trainschedule/components/Timetable/TimetableToolbar.tsx
Outdated
Show resolved
Hide resolved
ac8df19
to
b07aced
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.
LGTM for e2e tests ✅
The buttons were displayed when hovering the paced train item and the occurrences item when it should be only on paced train hovering. Signed-off-by: SharglutDev <[email protected]>
This extra useEffect introduced a bug in end to end tests. The only way to reproduce it was to set the train name and start time in less that 500ms (the debounce used for these fields) which the e2e tests do. At this speed, after filling the name, a useEffect is fired after 500ms after to update the store, but since the test is also filling the start time a few ms later, the useEffect was called because nameFromStore had been updated resulting in setting the start time back at its original value. A workaround had been done for tests 011 and 012 to insert the selection of the rolling stock between the name and start time filling. Signed-off-by: SharglutDev <[email protected]>
Signed-off-by: SharglutDev <[email protected]>
Signed-off-by: SharglutDev <[email protected]>
b07aced
to
8c4dd08
Compare
See commits (will be merged all together)
part of #10615
Note
PR is now testable !
As some logic from train schedule has been reused for the pace train mode, be sure to check that all previous behavior when paced train mode is off are still working (add/edit/get/delete, duplicate, import/export, nge, drag, selecting/projecting a train, stdcm)
E2E Tests :