-
Notifications
You must be signed in to change notification settings - Fork 178
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(app): display alerts for pipette offset discrepencies (#13612)
* fix(app): display alerts for pipette offset discrepencies fix RAUT-737
- Loading branch information
Showing
12 changed files
with
126 additions
and
33 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file added
BIN
+182 KB
app/src/assets/videos/pipette-wizard-flows/Pipette_Detach_Probe_96.webm
Binary file not shown.
Binary file modified
BIN
+3.51 KB
(100%)
app/src/assets/videos/pipette-wizard-flows/Pipette_Probing_96.webm
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
43 changes: 43 additions & 0 deletions
43
app/src/organisms/Devices/PipetteCard/PipetteRecalibrationWarning.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
import * as React from 'react' | ||
import { useTranslation } from 'react-i18next' | ||
import { | ||
Flex, | ||
DIRECTION_COLUMN, | ||
TYPOGRAPHY, | ||
SPACING, | ||
Box, | ||
} from '@opentrons/components' | ||
import { StyledText } from '../../../atoms/text' | ||
import { Banner } from '../../../atoms/Banner' | ||
|
||
export const PipetteRecalibrationWarning = (): JSX.Element | null => { | ||
const { t } = useTranslation('device_details') | ||
const [showBanner, setShowBanner] = React.useState<boolean>(true) | ||
if (!showBanner) return null | ||
|
||
return ( | ||
<Box marginTop={SPACING.spacing8}> | ||
<Banner | ||
iconMarginRight={SPACING.spacing16} | ||
iconMarginLeft={SPACING.spacing8} | ||
type="warning" | ||
size={SPACING.spacing20} | ||
onCloseClick={() => setShowBanner(false)} | ||
> | ||
<Flex flexDirection={DIRECTION_COLUMN}> | ||
<StyledText | ||
as="p" | ||
fontWeight={TYPOGRAPHY.fontWeightSemiBold} | ||
data-testid="PipetteRecalibrationWarning_title" | ||
> | ||
{t('pipette_recalibration_recommended')} | ||
</StyledText> | ||
|
||
<StyledText as="p" data-testid="PipetteRecalibrationWarning_body"> | ||
{`${t('pipette_calibrations_differ')}`} | ||
</StyledText> | ||
</Flex> | ||
</Banner> | ||
</Box> | ||
) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters