-
Notifications
You must be signed in to change notification settings - Fork 184
fix(protocol-designer): don't show errors until attempting to save/continue #18627
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
Conversation
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## chore_release-pd-8.5.0 #18627 +/- ##
==========================================================
+ Coverage 25.87% 25.90% +0.02%
==========================================================
Files 3279 3256 -23
Lines 284268 281430 -2838
Branches 28630 28635 +5
==========================================================
- Hits 73568 72911 -657
+ Misses 210673 208492 -2181
Partials 27 27
Flags with carried forward coverage won't be shown. Click here to find out more.
🚀 New features to boost your workflow:
|
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.
thanks so much for this minimal code change fix to the bug! I do still want to do a larger refactor off of edge
at some point for PD 8.6.
can you extend the showOnReopen
boolean to 1 other area? in protocol-designer/src/steplist/formLevel/moveLabwareFormErrors.ts
, the getMoveLabwareFormErrors
.
absolutely, good catch |
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.
lgtm!
Overview
Fixes logic for showing form errors, especially when reopening an errored-out saved form. We previously used a state variable for whether or not to show the form errors, such that they would only show if a user tried to continue/save a form containing an error. After a large error handling refactor was merged, this state was unused, such that errors would show automatically when reopening a form.
This PR adds logic to the
makeSingleEditFieldProps
util to show form errors in the following scenarios:I also wire up a new optional property of the form error to specify whether or not to show the error upon reopening in scenario 1 above.
Closes RQA-4280
Test Plan and Hands on Testing
Changelog
showFormErrors
state variable and saved/pre-saved form state inmakeSingleEditFieldProps
showOnReopen
propertyReview requests
see test plan. the same logic for
showOnReopen
should extend to all fields that should show errors when reopening a saved form (think module required, pipette required, etc.)Risk assessment
low