-
Notifications
You must be signed in to change notification settings - Fork 184
feature(app, components, shared-data): Allow add fixture Modal to choose and place AA #18492
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
feature(app, components, shared-data): Allow add fixture Modal to choose and place AA #18492
Conversation
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## edge #18492 +/- ##
==========================================
- Coverage 26.45% 25.96% -0.49%
==========================================
Files 3266 3285 +19
Lines 278189 283917 +5728
Branches 32242 34656 +2414
==========================================
+ Hits 73586 73712 +126
- Misses 204574 210180 +5606
+ Partials 29 25 -4
Flags with carried forward coverage won't be shown. Click here to find out more.
🚀 New features to boost your workflow:
|
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.
let's fix that known issue before merging IMO
cutoutId: CutoutId, | ||
unconfiguredMods: AttachedModule[] | ||
): CutoutConfigMap[][] => { | ||
let availableOptions: CutoutConfigMap[][] = [] |
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.
can we refactor this to split it up and avoid the let-binding?
app/src/organisms/DeviceDetailsDeckConfiguration/__tests__/AddFixtureModal.test.tsx
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.
let's fix lint and ci, that might cut down on the diff some; we should also remove changes that were now-unnecessary experiments to fix circular dependencies and so on.
I think there might need to be more testing on addfixturemodal; the test file diff looks a little light for how much changed in the component.
also it kind of seems like that addressable area useState in ODD protocol setup doesn't really do anything? nothing seems to set it. and that seems like it means that conflict modal wouldn't ever pop up on the ODD.
app/src/organisms/ODD/ProtocolSetup/ProtocolSetupModulesAndDeck/FixtureTable.tsx
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.
Nice! Let's get a couple more tests in for the more complicated iterative logic both in the modal component and in s-d fixtures, and then I think we're done here.
Also, please write up the stuff you're doing with the fake replacement fixtures in the PR description - flesh out the "how" a little more. Then we'll make sure that makes it into the commit description.
flexDirection={DIRECTION_ROW} | ||
<ListItem | ||
type="default" | ||
padding="16px" |
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.
let's use constants for this instead of literal sizes if possible. also please double check the dqa for the visuals both on odd and desktop
app/src/organisms/DeviceDetailsDeckConfiguration/AddFixtureModal.tsx
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.
Okay, given the time pressure I think this is solid enough to merge once tests and lint pass. If we have the time, I'd love to see the inner functions i put notes on in AddFixtureModal
move to the utils file next to it and their corresponding tests move to utils.test.ts, since some of those inner functions' companions have already done so, but we can also do that in a followup if we need to get it merged right right now.
}), | ||
onClose: closeModal, | ||
closeOnOutsideClick: true, | ||
childrenPadding: SPACING.spacing24, | ||
width: '26.75rem', | ||
} | ||
|
||
let availableOptions: CutoutConfig[][] = [] | ||
const getUnconfiguredMods = ( |
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.
this could move to utils
return availableOptions | ||
} | ||
|
||
const getModuleOptions = ( |
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.
this could move to utils
app/src/organisms/DeviceDetailsDeckConfiguration/AddFixtureModal.tsx
Outdated
Show resolved
Hide resolved
app/src/organisms/DeviceDetailsDeckConfiguration/AddFixtureModal.tsx
Outdated
Show resolved
Hide resolved
app/src/organisms/DeviceDetailsDeckConfiguration/AddFixtureModal.tsx
Outdated
Show resolved
Hide resolved
flexDirection={DIRECTION_ROW} | ||
const { onClickHandler, optionName, buttonText } = props | ||
return ( | ||
<ListItem |
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.
glad you were able to use this DS component 🚀
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! smoke tested PD and it looks good - i did notice a small bug though when adding the thermocycler but its all good, we can fix later on since this is merging into edge
😄 nice work!
Overview
closes https://opentrons.atlassian.net/browse/EXEC-1241 and https://opentrons.atlassian.net/browse/EXEC-1414.
Allow add fixture modal to show only AA items to place on the deck.
** known issue - when removing a combo fixture it removes both aa. will fix in a follow up.
Selecting a AA will find the fixture match to update deck configuration.




Test Plan and Hands on Testing
Changelog
Review requests
changes make sense? I know its complicated. is there a way I can simplify it? am I missing tets?
Risk assessment
High. need to smoke test PD, Flex app and OT-2