-
Notifications
You must be signed in to change notification settings - Fork 178
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
refactor(protocol-designer): ot-2 slot map is now a normal size #14518
Conversation
Codecov ReportAttention:
Additional details and impacted files@@ Coverage Diff @@
## edge #14518 +/- ##
==========================================
- Coverage 67.81% 67.81% -0.01%
==========================================
Files 2518 2517 -1
Lines 72108 72154 +46
Branches 9274 9274
==========================================
+ Hits 48898 48928 +30
- Misses 20995 21008 +13
- Partials 2215 2218 +3
Flags with carried forward coverage won't be shown. Click here to find out more.
|
const primaryWellCount = | ||
Array.isArray(selectedWells) && selectedWells.length > 0 | ||
? selectedWells.length.toString() | ||
: undefined |
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.
unrelated to the bug but this fixed another small bug i found that was introduced by my PR that refactored class components into functional components 😬
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.
Looks good! IMO, I wouldn't be opposed to naming SlotMap
to something like OT2SlotMap
or leaving a docstring explaining that this is an OT-2 specific component, since we have an analogous FlexSlotMap
.
@mjhuff good call! thank you! |
closes RAUT-1005
Overview
See the ticket. no idea when this error was introduced - apparently after i did the migration to react-hook-form?? Weird. But anyway, I fixed it here and also cleaned up the SlotMap components, getting rid of the no longer needed
ConnectSlotMap
Bonus: also there was a small bug with the well selection field where it was defaulting the value to 0 which is different from PD in prod. So i fixed that up really quick too.
Test Plan
Create an Ot-2 protocol and edit the modules. See that the slot map is no longer way too big.
Changelog
SlotMap
component and associated componentsReview requests
see test plan
Risk assessment
low