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 open door check for odd #13613

Merged
merged 1 commit into from
Sep 20, 2023

Conversation

koji
Copy link
Contributor

@koji koji commented Sep 20, 2023

Overview

  • add OpenDoorAlertModal design

  • Had a conversation on Snackbar for open door status with Rob and Seth and we decided to display the above modal instead Snackbar

  • add open door status check to display open door alert modal for odd

  • fix protocol run header banner rendering banner issue desktop app.
    The latest alpha, if the door is open, the app shows banner.
    The banner close door before start running protocol modal only shows up before running a protocol.

Test Plan

  1. Set up a protocol and open the door
    Desktop app shows the banner
    ODD shows the modal

  2. run a protocol on Desktop and ODD then open door
    Desktop show up the banner but that is different from the above banner
    ODD shows the modal

  3. close the door and resume a run

Changelog

  • add OpenDoorAlert components and test
  • update ProtocolSetup component to remove snackbar and hook up the modal to the component and update tests
  • update ProtocolRunHeader component to fix banner rendering issue

Review requests

Risk assessment

low

add open door status check to display open door alert modal for odd and fix protocol run header
banner rendering bugin desktop app

fix RQA-1604
@koji koji changed the base branch from edge to chore_release-7.0.0 September 20, 2023 22:32
@koji koji marked this pull request as ready for review September 20, 2023 22:32
@koji koji requested a review from a team as a code owner September 20, 2023 22:32
@koji koji requested review from jerader and a team and removed request for a team and jerader September 20, 2023 22:32
@codecov
Copy link

codecov bot commented Sep 20, 2023

Codecov Report

Merging #13613 (294f01d) into chore_release-7.0.0 (2637a15) will decrease coverage by 0.06%.
Report is 4 commits behind head on chore_release-7.0.0.
The diff coverage is 100.00%.

Additional details and impacted files

Impacted file tree graph

@@                   Coverage Diff                   @@
##           chore_release-7.0.0   #13613      +/-   ##
=======================================================
- Coverage                71.32%   71.27%   -0.06%     
=======================================================
  Files                     2423     2428       +5     
  Lines                    68161    68363     +202     
  Branches                  7937     8005      +68     
=======================================================
+ Hits                     48619    48727     +108     
- Misses                   17687    17760      +73     
- Partials                  1855     1876      +21     
Flag Coverage Δ
app 68.99% <100.00%> (+<0.01%) ⬆️
g-code-testing 96.44% <ø> (ø)
labware-library 49.17% <ø> (ø)
notify-server 89.13% <ø> (ø)
protocol-designer 46.04% <ø> (-0.05%) ⬇️
shared-data 74.25% <ø> (-0.09%) ⬇️
step-generation 86.53% <ø> (-0.29%) ⬇️

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

Files Changed Coverage Δ
...rganisms/Devices/ProtocolRun/ProtocolRunHeader.tsx 89.50% <100.00%> (ø)
app/src/organisms/OpenDoorAlertModal/index.tsx 100.00% <100.00%> (ø)
.../src/pages/OnDeviceDisplay/ProtocolSetup/index.tsx 76.97% <100.00%> (-0.49%) ⬇️
app/src/pages/OnDeviceDisplay/RunningProtocol.tsx 58.18% <100.00%> (+0.77%) ⬆️

... and 49 files with indirect coverage changes

Copy link
Member

@sfoster1 sfoster1 left a comment

Choose a reason for hiding this comment

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

Tested on a robot, looks good to me!

@sfoster1 sfoster1 merged commit 6e0adab into chore_release-7.0.0 Sep 20, 2023
@koji koji deleted the app_open-door-check-for-odd branch November 29, 2023 04:34
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