-
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
feat(app): oDD banners for pipette calibration warning #13624
Conversation
Codecov Report
Additional details and impacted files@@ Coverage Diff @@
## chore_release-7.0.0 #13624 +/- ##
=======================================================
+ Coverage 71.31% 71.34% +0.02%
=======================================================
Files 2425 1588 -837
Lines 68200 52793 -15407
Branches 7951 3443 -4508
=======================================================
- Hits 48637 37664 -10973
+ Misses 17700 14594 -3106
+ Partials 1863 535 -1328
Flags with carried forward coverage won't be shown. Click here to find out more. |
{getShowPipetteCalibrationWarning(instrumentsQueryData) && ( | ||
<PipetteRecalibrationWarning /> | ||
)} |
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.
{getShowPipetteCalibrationWarning(instrumentsQueryData) && ( | |
<PipetteRecalibrationWarning /> | |
)} | |
{getShowPipetteCalibrationWarning(instrumentsQueryData) ? ( | |
<PipetteRecalibrationWarning /> | |
): null} |
width={SPACING.spacing32} | ||
height={SPACING.spacing32} |
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.
<Icon | ||
name="alert-circle" | ||
color={COLORS.yellow2} | ||
width="45px" |
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.
@@ -0,0 +1,56 @@ | |||
import * as React from 'react' |
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.
file should probably be PipetteRecalibrationODDWarning
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.
Please ignore the comments I left.
For this, we should need to use https://www.figma.com/file/OIdG64Q5cgvEw82ish5Eee/Design-System-(Flex)?type=design&node-id=1224-67108&mode=design&t=Ah4TNB5qas6TWgOl-0
Co-authored-by: koji <[email protected]>
: [] | ||
if (failuresList.length > 0) { | ||
return failuresList[0]?.kind === INCONSISTENT_PIPETTE_OFFSET | ||
} else return false |
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.
nit
} else return false | |
} else { return false } |
} from '@opentrons/components' | ||
import { StyledText } from '../../atoms/text' | ||
|
||
export const PipetteRecalibrationODDWarning = (): JSX.Element | null => { |
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.
export const PipetteRecalibrationODDWarning = (): JSX.Element | null => { | |
export function PipetteRecalibrationODDWarning(): JSX.Element | null { |
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.
Tested on a machine and works!
fix RAUT-737
Overview
Add pipette calibration warning to Instruments tab and protocol setup/instruments on ODD
Test Plan
This warning should occur on ODD protocol run setup and instruments dashboard if two pipettes are attached that have calibration values differing by more than 1.5mm
![Screen Shot 2023-09-21 at 5 40 53 PM](https://private-user-images.githubusercontent.com/14302493/269769684-aca23520-96fe-4e36-ac0d-7c3b133f5572.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MzkyNTkyNDYsIm5iZiI6MTczOTI1ODk0NiwicGF0aCI6Ii8xNDMwMjQ5My8yNjk3Njk2ODQtYWNhMjM1MjAtOTZmZS00ZTM2LWFjMGQtN2MzYjEzM2Y1NTcyLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNTAyMTElMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjUwMjExVDA3MjkwNlomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPWFkM2NiMTM3Y2ZiYzE5OTVkOWJiNzVkNTYxYzU4NWYwNTdmMTQ0YjQxZjFkMzEwMWU5NDNiZjFjNmI4NmZkNTkmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0In0.ADgBgp387-bKmTgykC2ke91S9Ibu2ARtrpFONX7DHW8)
![Screen Shot 2023-09-21 at 5 40 38 PM](https://private-user-images.githubusercontent.com/14302493/269769685-37fc99ff-6ea6-4a16-8309-40a272048d7d.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MzkyNTkyNDYsIm5iZiI6MTczOTI1ODk0NiwicGF0aCI6Ii8xNDMwMjQ5My8yNjk3Njk2ODUtMzdmYzk5ZmYtNmVhNi00YTE2LTgzMDktNDBhMjcyMDQ4ZDdkLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNTAyMTElMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjUwMjExVDA3MjkwNlomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPWRiYzZlYmVkY2FlMGE2NDYwOGFhMjc0YzkyM2RhNTcxMDBiYzU2MzQ3ZGZmNzM0YTQ5NmY4Njk1ZjVkNTAwNTcmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0In0.-BvFFJPWdXCdmVYr6SBy1VmaUikMvglnboG_AcoqZtM)
I've tested this out with mock data on my dev server, here are screenshots:
Changelog
ProtocolInstrumentMountItem
Review requests
Look over the code and test on an ODD if you have time!
Risk assessment
Low