-
Notifications
You must be signed in to change notification settings - Fork 175
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): complete error handling for calibration on Opentrons Flex #12656
Conversation
proceed={proceed} | ||
back={goBack} | ||
back={errorMessage != null ? undefined : goBack} |
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.
figured it made sense to not allow users to go back when you run into this error.
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.
definitely!
const isCalibrationErrorExiting = | ||
currentStep.section === SECTIONS.ATTACH_PROBE && errorMessage != 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.
Basically, when you reach page 1 of the 2 in the error sequence, the exit button from the wizard header is not rendered, this forces the user to hit next
and see the 2nd page where the user is prompted to detach the probe.
const progressBarForCalError = | ||
currentStep.section === SECTIONS.DETACH_PROBE && errorMessage != 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.
I am not sure if this logic is needed? So when you hit errors elsewhere in the flow, the progress bar stays the same as the page you hit the error on. When you reach the DetachProbe
page, this is technically step 2 (at least for calibration flowtype) of the flow but since we hit an error, I am making it say current step - 1
, so the progress bar does not progress.
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.
It's a good thought, but let's remove for now to keep the logic as simple as possible and then if something comes up in design QA we can reconsider!
Codecov Report
@@ Coverage Diff @@
## edge #12656 +/- ##
=======================================
Coverage 73.54% 73.55%
=======================================
Files 2282 2283 +1
Lines 62672 62682 +10
Branches 6711 6718 +7
=======================================
+ Hits 46095 46103 +8
Misses 14977 14977
- Partials 1600 1602 +2
Flags with carried forward coverage won't be shown. Click here to find out more.
|
a55b703
to
72ee02d
Compare
@ecormany, thoughts on what the modal should say? The one attached in this pr. The modal pops up if you run into an error when attaching the calibration probe. The |
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 this out and it looks great!
I think we can keep it simple: This PR may not address it, but the subheader should give context like |
3ecf9be
to
cb9da86
Compare
closes RLIQ-385
Overview
Previously, when calibrating a pipette, there is erorr handling when attaching the probe. However, there is no way to detach the probe. Now, when you run into that error, it prompts you to detach the probe and then exits the flow.
Test Plan
calibratePipette
command, there is now an error modal with information about the error, then prompting the user to hit the next button and then showing the detach probe page. Once you hit "exit calibration", the robot homes and closes the flow. Should be the same for both ODD and desktop.Changelog
CalibrationErrorModal
. Change logic inAttachProbe
to show modal when there is an error and then clicking onnext
showsDetachProbe
with no back button and proceeds to exit.PipetteWizardFlows
to show correct wizard header info when exiting from calibration errorReview requests
see test plan
Risk assessment
low