-
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: Add signaling systems support in the rolling stock editor #6552
Conversation
2309148
to
a1bccb1
Compare
Codecov ReportAttention:
Additional details and impacted files@@ Coverage Diff @@
## dev #6552 +/- ##
============================================
- Coverage 27.79% 27.73% -0.06%
Complexity 2172 2172
============================================
Files 1041 1042 +1
Lines 128088 128461 +373
Branches 2569 2569
============================================
+ Hits 35606 35633 +27
- Misses 90997 91343 +346
Partials 1485 1485
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
ba419e1
to
6573838
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.
Thanks for this PR.
I reviewed the PR #6377 after it was merged.
We assume a static list of signaling systems in the schema defining the SignalingSystem
enum. To be consistent with the application we should consider signaling systems as dynamic data.
Some editoast changes should be made (in another PR).
6573838
to
c5ba72a
Compare
7242c63
to
894d1ef
Compare
894d1ef
to
3e7755a
Compare
94e8a51
to
1aca311
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.
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.
Thanks for this PR, great job 👏 Some remarks:
- use the new hook to get the rollingStock schema (and remove it from the props)
- simplify RollingStockEditorOnboardSystemEquipmentForm: only 1 component, don't try to make it generic as we don't need it for the moment
Thanks :)
front/src/modules/rollingStock/components/RollingStockCard/RollingStockCardDetail.tsx
Outdated
Show resolved
Hide resolved
front/src/modules/rollingStock/components/RollingStockCard/RollingStockCardDetail.tsx
Outdated
Show resolved
Hide resolved
front/src/modules/rollingStock/components/RollingStockEditor/RollingStockEditorFormHelpers.tsx
Outdated
Show resolved
Hide resolved
front/src/modules/rollingStock/components/RollingStockEditor/RollingStockEditorFormHelpers.tsx
Outdated
Show resolved
Hide resolved
front/src/modules/rollingStock/components/RollingStockEditor/RollingStockEditorFormHelpers.tsx
Outdated
Show resolved
Hide resolved
front/src/modules/rollingStock/components/RollingStockEditor/RollingStockEditorFormHelpers.tsx
Outdated
Show resolved
Hide resolved
11246cf
to
7201ccc
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.
Almost there, thanks for the work 🚀
front/src/utils/hooks/useCompleteRollingStockSchemasProperties.ts
Outdated
Show resolved
Hide resolved
front/src/modules/rollingStock/components/RollingStockEditor/RollingStockEditorFormHelpers.tsx
Outdated
Show resolved
Hide resolved
front/src/modules/rollingStock/components/RollingStockEditor/RollingStockEditorFormHelpers.tsx
Outdated
Show resolved
Hide resolved
front/src/modules/rollingStock/components/RollingStockEditor/RollingStockEditorFormHelpers.tsx
Outdated
Show resolved
Hide resolved
7201ccc
to
5d87ad0
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.
Only 1 typo and LGTM, you can already rebase and squash your commits ✅
front/src/modules/rollingStock/components/RollingStockEditor/RollingStockEditorFormHelpers.tsx
Outdated
Show resolved
Hide resolved
4543a0f
to
4b9dd34
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 and tested ✅
front/src/modules/rollingStock/hooks/useCompleteRollingStockSchemasProperties.ts
Outdated
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.
I guess we need to use rollingStockSchemasProperties everywhere rather than RS_SCHEMA_PROPERTIES, it’s more confusing than anything to have two version in circulation and to wonder which one to use where.
4b9dd34
to
ba3170d
Compare
ba3170d
to
93230bd
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
Closes #6356