-
Notifications
You must be signed in to change notification settings - Fork 46
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: rework layer activation #5607
Conversation
Codecov Report
@@ Coverage Diff @@
## dev #5607 +/- ##
=========================================
Coverage 19.57% 19.57%
Complexity 2322 2322
=========================================
Files 886 886
Lines 105832 105818 -14
Branches 2572 2572
=========================================
Hits 20716 20716
+ Misses 83607 83593 -14
Partials 1509 1509
Flags with carried forward coverage won't be shown. Click here to find out more.
|
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.
Thank you for this PR !
Noticed some problems while testing :
- on left panel, when opening the electrification or speed limit form (which are not rendered like the rest of the editor), the layer is not activated. In fact, it seems to hide all the current activated layers.
- if the layer pops when toggling the switch. Is it still relevant to have the cancel and confirm button ?
- in the layers modal, we can for example activate the signal layer without the track section layer whereas this behavior is different when clicking in the left panel (track sections seems to be required to display signals)
313c555
to
a9f622f
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.
Good job for the bug fix of catenary and speed limit layer !
Left 2 comments and you need to remove both unused useMemo
front/src/applications/editor/tools/rangeEdition/catenary/CatenaryEditionLayers.tsx
Outdated
Show resolved
Hide resolved
front/src/applications/editor/tools/rangeEdition/catenary/CatenaryEditionLayers.tsx
Outdated
Show resolved
Hide resolved
front/src/applications/editor/tools/rangeEdition/speedSection/SpeedSectionEditionLayers.tsx
Outdated
Show resolved
Hide resolved
front/src/applications/editor/tools/rangeEdition/speedSection/SpeedSectionEditionLayers.tsx
Outdated
Show resolved
Hide resolved
95ac784
to
dad9c1c
Compare
Seen with PO, we can remove the "Confirm" and "Cancel" button from the layers modal |
16f64c5
to
0a724fd
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. Tested in local, everything works great, good job :)
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.
Left only one comment, very very nice work ! 🎉
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 !! 🎉
4b9716f
to
43e9d5c
Compare
Closes #5483
Closes #5593 (same as #5306)
Closes #5644