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): create modals and add steps for 96 channel attach and detach #11815

Merged
merged 11 commits into from
Dec 13, 2022

Conversation

jerader
Copy link
Collaborator

@jerader jerader commented Dec 2, 2022

closes RLIQ-264 and RLIQ-263

Overview

This PR creates the modals for all steps in the attach and detach 96 channel pipette flow and hooks them up to the parent component PipetteWizardFlows. Commands are not wired up yet.

Changelog

  • adds equipment to equipmentList
  • create 2 modals for the steps Carriage and MountingPlate that is used for both attach and detach flows
  • adds the steps to getPipetteWizardFlows, with the 2 new sections called CARRIAGE and MOUNTING_PLATE, adds to test
  • extend props for PipetteWizardStepProps to include SelectedPipette to tell if the pipette to attach/detach/cal is 96 channel or single mount
  • wire up in PipetteCard so the flows can be accessed there.
  • adds some images though they will probably be replaced

Review requests

  • with a 96 channel pipette and an ot-3, go through the attach flow and the detach flow. All the modals should exist and show correct text/graphics
  • go through the single/8-channel flows too to make sure I didn't mess anything up during rebasing. I went through it already so I think its fine but might be good to have another set of eyes.

Risk assessment

low

@codecov
Copy link

codecov bot commented Dec 2, 2022

Codecov Report

Merging #11815 (27752f7) into edge (3f99dd2) will increase coverage by 0.09%.
The diff coverage is 83.95%.

Impacted file tree graph

@@            Coverage Diff             @@
##             edge   #11815      +/-   ##
==========================================
+ Coverage   74.25%   74.34%   +0.09%     
==========================================
  Files        2111     2123      +12     
  Lines       58767    59039     +272     
  Branches     6237     6261      +24     
==========================================
+ Hits        43635    43893     +258     
- Misses      13657    13670      +13     
- Partials     1475     1476       +1     
Flag Coverage Δ
app 73.13% <83.95%> (+0.08%) ⬆️
protocol-designer 45.85% <ø> (-0.02%) ⬇️
shared-data 86.08% <ø> (+1.27%) ⬆️
step-generation 88.46% <ø> (ø)

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

Impacted Files Coverage Δ
...les/WizardRequiredEquipmentList/equipmentImages.ts 100.00% <ø> (ø)
...ngsCalibration/CalibrationDetails/OverflowMenu.tsx 75.36% <ø> (ø)
shared-data/js/constants.ts 100.00% <ø> (ø)
app/src/organisms/Devices/PipetteCard/index.tsx 55.29% <33.33%> (+1.17%) ⬆️
app/src/organisms/PipetteWizardFlows/index.tsx 67.02% <61.11%> (+0.35%) ⬆️
...anisms/PipetteWizardFlows/getPipetteWizardSteps.ts 76.92% <81.81%> (-6.42%) ⬇️
...c/organisms/PipetteWizardFlows/BeforeBeginning.tsx 89.74% <100.00%> (+1.50%) ⬆️
app/src/organisms/PipetteWizardFlows/Carriage.tsx 100.00% <100.00%> (ø)
...src/organisms/PipetteWizardFlows/ChoosePipette.tsx 100.00% <100.00%> (+5.00%) ⬆️
...src/organisms/PipetteWizardFlows/DetachPipette.tsx 100.00% <100.00%> (ø)
... and 21 more

@jerader jerader force-pushed the app_create_modals_for_96_channel branch from 07e9a8c to b34a52e Compare December 6, 2022 21:47
@jerader jerader marked this pull request as ready for review December 7, 2022 13:29
@jerader jerader requested a review from a team as a code owner December 7, 2022 13:29
@jerader jerader requested review from mcous, smb2268 and a team and removed request for a team and mcous December 7, 2022 13:29
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.

This all looks so good, Jethary! One small comment but otherwise it's good to go.

HEX_SCREWDRIVER,
NINETY_SIX_CHANNEL_MOUNTING_PLATE,
]
}
Copy link
Contributor

Choose a reason for hiding this comment

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

The BeforeBeginning screen is scrolling with 4 items in the equipment list, maybe we should give this modal a minHeight so the button is always visible

{ section: SECTIONS.DETACH_PIPETTE, mount: mount, flowType: flowType },
{ section: SECTIONS.RESULTS, mount: mount, flowType: flowType },
]
} else if (selectedPipette === NINETY_SIX_CHANNEL) {
Copy link
Contributor

Choose a reason for hiding this comment

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

For all 96-channel cases, let's hard code LEFT as the mount. Regardless of which pipette card the user selected, it'll be on both mounts but we'll send commands to the left one.

@jerader jerader merged commit e0c47a4 into edge Dec 13, 2022
@jerader jerader deleted the app_create_modals_for_96_channel branch December 13, 2022 18:21
y3rsh added a commit that referenced this pull request Dec 14, 2022
* origin/edge:
  fix(api): ot3controller should utilize `check_ready_for_movement` (#11752)
  chore(docs): updating Google Tag Manager on docs subdomain #11855
  refactor(app): add gripper attach, detach, and calibrate user-flow logic and skeletons (#11826)
  chore(build): fix push targets in api and s-d (#11879)
  fix(app): moveToLocation should be moveToMaintenancePosition (#11878)
  refactor(api): implement new Deck dependencies (#11853)
  refactor(api): implement new Deck collaborations (#11844)
  feat(app): create modals and add steps for 96 channel attach and detach (#11815)
  chore(build): Derive application versions from git (#11863)
  refactor(api): add support for Well.has_tip to the engine core (#11870)
  refactor(app, shared-data): calibration/moveToLocation to calibration/moveToMaintenancePosition (#11849)
  test(engine): add missing module_view test (#11872)
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.

2 participants