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

fix(app): clear previous protocol errors error in choose robot slideout #13487

Merged
merged 1 commit into from
Sep 11, 2023

Conversation

ncdiehl11
Copy link
Collaborator

@ncdiehl11 ncdiehl11 commented Sep 7, 2023

closes RQA-1493

Overview

When attempting to start setup for a protocol that produces an analysis error from the ProtocolsLanding page, the selected device on the ChooseRobotSlideout displays a red error banner as expected. However, when the slideout is closed, and a new valid protocol is selected to run, the slideout still shows the error banner from the previous failed analysis. We need to ensure the slideout re-renders to clear the error banner for a new protocol selection.

Test Plan

Changelog

  • Set a protocol-specific key in the ChooseProtocolSlideout instantiation from the ProtocolsList to ensure previous protocol error banner is cleared

Risk assessment

low

…serobotslideout

Set a protocol-specific key in the ChooseProtocolSlideout instantiation from the ProtocolsList
@ncdiehl11 ncdiehl11 requested a review from a team as a code owner September 7, 2023 14:14
@ncdiehl11 ncdiehl11 self-assigned this Sep 7, 2023
@ncdiehl11 ncdiehl11 requested review from TamarZanzouri and removed request for a team September 7, 2023 14:14
@codecov
Copy link

codecov bot commented Sep 7, 2023

Codecov Report

Merging #13487 (a6e7844) into chore_release-7.0.0 (96834e6) will decrease coverage by 2.05%.
Report is 7 commits behind head on chore_release-7.0.0.
The diff coverage is n/a.

Additional details and impacted files

Impacted file tree graph

@@                   Coverage Diff                   @@
##           chore_release-7.0.0   #13487      +/-   ##
=======================================================
- Coverage                71.23%   69.18%   -2.05%     
=======================================================
  Files                     1547      898     -649     
  Lines                    50312    16964   -33348     
  Branches                  3435     4776    +1341     
=======================================================
- Hits                     35838    11737   -24101     
+ Misses                   13945     3869   -10076     
- Partials                   529     1358     +829     
Flag Coverage Δ
api ?
app 69.17% <ø> (+25.21%) ⬆️
components ?
g-code-testing ?
hardware ?
hardware-testing ?
labware-library ?
notify-server ?
ot3-gravimetric-test ?
protocol-designer ?
react-api-client ?
robot-server ?
shared-data ?
step-generation ?
system-server ?
update-server ?
usb-bridge ?

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

Files Changed Coverage Δ
...pp/src/organisms/ProtocolsLanding/ProtocolList.tsx 68.18% <ø> (ø)

... and 2344 files with indirect coverage changes

@ncdiehl11 ncdiehl11 requested a review from b-cooper September 7, 2023 14:55
Copy link
Collaborator

@jerader jerader left a comment

Choose a reason for hiding this comment

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

lgtm! 🐰

@ncdiehl11 ncdiehl11 merged commit b247639 into chore_release-7.0.0 Sep 11, 2023
@ncdiehl11 ncdiehl11 deleted the app_clear-error-in-protocol-slideout branch September 11, 2023 16:38
jerader pushed a commit that referenced this pull request Sep 12, 2023
…serobotslideout (#13487)

Set a protocol-specific key in the ChooseProtocolSlideout instantiation from the ProtocolsList
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