-
Notifications
You must be signed in to change notification settings - Fork 179
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
chore(app): extend props of intervention modal #17533
chore(app): extend props of intervention modal #17533
Conversation
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 once we have that default text internationalized
app/src/molecules/InterventionModal/InterventionContent/InterventionInfo.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.
Couple more small things
app/src/molecules/InterventionModal/InterventionContent/InterventionInfo.tsx
Outdated
Show resolved
Hide resolved
app/src/molecules/InterventionModal/InterventionContent/InterventionInfo.tsx
Outdated
Show resolved
Hide resolved
…entionInfo.tsx Co-authored-by: Seth Foster <[email protected]>
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## edge #17533 +/- ##
==========================================
+ Coverage 26.17% 27.17% +1.00%
==========================================
Files 2835 2840 +5
Lines 217682 218818 +1136
Branches 9276 9837 +561
==========================================
+ Hits 56971 59474 +2503
+ Misses 160694 159323 -1371
- Partials 17 21 +4
Flags with carried forward coverage won't be shown. Click here to find out more.
|
text={t('labware_quantity', { quantity: props.tagtext })} | ||
shrinkToContent={true} | ||
/> | ||
) : null} | ||
</Flex> | ||
<Divider |
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.
In the designs we should now only display this divider if a tag is present 🏷️
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 to me!
app/src/molecules/InterventionModal/InterventionContent/InterventionInfo.tsx
Outdated
Show resolved
Hide resolved
…entionInfo.tsx Co-authored-by: Sarah Breen <[email protected]>
app/src/molecules/InterventionModal/InterventionContent/InterventionInfo.tsx
Outdated
Show resolved
Hide resolved
app/src/molecules/InterventionModal/InterventionContent/InterventionInfo.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.
Changes look great! If Mel says everything looks good we should merge 😃
Mel approved :-) |
Overview
closes https://opentrons.atlassian.net/browse/EXEC-1224.
Add subtext and tagtext props to intervention modal.
Test Plan and Hands on Testing
Can follow storybook for changes. (not passing these props yet so can only view in storybook).
https://s3-us-west-2.amazonaws.com/opentrons-components/EXEC-1224-component-update-intervention-info-component/index.html?path=/docs/app-molecules-interventionmodal-interventioncontent-interventioninfo--docs
Changelog
Added 2 new props to intervention modal. subtext and tagtext.
Added conditional display.
fixed bug in storybook where it didnt show the location label.
Review requests
changes make sense? do we want to fix storybook rendering the slots?
Risk assessment
low. added 2 optional props.