Skip to content
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): add UI to each modal step in ot-3 pipette cal #11626

Merged
merged 3 commits into from
Oct 27, 2022

Conversation

jerader
Copy link
Collaborator

@jerader jerader commented Oct 26, 2022

closes RLIQ-227 RLIQ-223 RLIQ-221

Blocked to merge until #11618 merges

Overview

Add the UI to each step modal in the ot-3 pipette calibration flow: BeforeBeginning, AttachStem, DetachStem, Results. Only adds the UI aspects so nothing is really wired up yet.

Screen Shot 2022-10-26 at 4 05 37 PM

Screen Shot 2022-10-26 at 4 05 49 PM

Screen Shot 2022-10-26 at 4 05 58 PM

Screen Shot 2022-10-26 at 4 06 09 PM

Changelog

  • add the UI for BeforeBeginning, AttachStem, DetachStem, Results, updates tests
  • extends the PipetteWizardStepProps to include goBack prop.
  • make subHeader prop optional in SimpleWizardBody
  • make small UI changes to GenericWizardTile
  • add probe image to equipmentImages
  • fix naming in GenericWizardTile related components (story and test)
  • add probe image and a attach/detach stem image that will be updated later

Review requests

  • with an OT-3 pipette on the robot, click on Calibrate pipette offset button in the overflow menu. Click through the flow. There should be 4 pages and they should each more or less follow the figma designs. The main things that aren't very finalized are the attach/detach stem images.

Risk assessment

low

@jerader jerader requested a review from a team as a code owner October 26, 2022 20:04
@jerader jerader requested review from brenthagen, smb2268 and a team and removed request for a team and brenthagen October 26, 2022 20:04
@@ -29,7 +29,7 @@ export function WizardRequiredEquipmentList(
const { equipmentList, footer } = props

return (
<Flex flexDirection={DIRECTION_COLUMN}>
<Flex flexDirection={DIRECTION_COLUMN} width="100%">
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is this width="100%" really what we'll want in every place that this component might be rendered? "Yes" might be an acceptable answer, though I'd lean towards having this component's props extend StyleProps that an instance of this component can spread whatever StyleProps it wants into the outer most container for specific layout purposes.

@@ -71,7 +71,7 @@ export const PipetteOverflowMenu = (
</MenuItem>
) : (
<>
{!isOT3PipetteAttached && (
{
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

looks like these curly-braces are gratuitous now

CALIBRATE: 'CALIBRATE',
}

export const CALIBRATION_PROBE_DISPLAYNAME = 'Calibration Probe'
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit: display name is two words elsewhere in the codebase. That would make this const CALIBRATION_PROBE_DISPLAY_NAME

@jerader
Copy link
Collaborator Author

jerader commented Oct 26, 2022

TODO: address this comment after that PR merges.

@codecov
Copy link

codecov bot commented Oct 26, 2022

Codecov Report

Merging #11626 (745eb88) into edge (2dd6aac) will increase coverage by 0.01%.
The diff coverage is 68.29%.

Impacted file tree graph

@@            Coverage Diff             @@
##             edge   #11626      +/-   ##
==========================================
+ Coverage   74.58%   74.60%   +0.01%     
==========================================
  Files        2074     2074              
  Lines       57827    57854      +27     
  Branches     6104     6112       +8     
==========================================
+ Hits        43133    43162      +29     
  Misses      13265    13265              
+ Partials     1429     1427       -2     
Flag Coverage Δ
app 73.49% <68.29%> (+0.06%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files Coverage Δ
app/src/molecules/GenericWizardTile/index.tsx 100.00% <ø> (+16.66%) ⬆️
...les/WizardRequiredEquipmentList/equipmentImages.ts 100.00% <ø> (ø)
app/src/organisms/PipetteWizardFlows/index.tsx 3.44% <0.00%> (-1.56%) ⬇️
app/src/molecules/SimpleWizardBody/index.tsx 100.00% <100.00%> (ø)
...rc/molecules/WizardRequiredEquipmentList/index.tsx 93.33% <100.00%> (+18.33%) ⬆️
...anisms/Devices/PipetteCard/PipetteOverflowMenu.tsx 100.00% <100.00%> (ø)
...pp/src/organisms/PipetteWizardFlows/AttachStem.tsx 100.00% <100.00%> (+66.66%) ⬆️
...c/organisms/PipetteWizardFlows/BeforeBeginning.tsx 100.00% <100.00%> (+66.66%) ⬆️
...pp/src/organisms/PipetteWizardFlows/DetachStem.tsx 100.00% <100.00%> (+66.66%) ⬆️
app/src/organisms/PipetteWizardFlows/Results.tsx 100.00% <100.00%> (+66.66%) ⬆️
... and 4 more

Copy link
Contributor

@smb2268 smb2268 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

let's merge 🚀

@jerader jerader merged commit 7a62ae9 into edge Oct 27, 2022
@jerader jerader deleted the app_before-beginning-cal-ui branch October 27, 2022 20:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants