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): change H-S set shake speed button disabled reason #10421

Merged
merged 1 commit into from
May 31, 2022

Conversation

jerader
Copy link
Collaborator

@jerader jerader commented May 24, 2022

closes #10418

Overview

This PR changes the disabled reason for the Set Shake Speed button in the H-S overflow menu. Now, when you first launch the app and the labware latch is idle_unknown, the button is disabled until you close the latch.

Also increased the height of the module cards in the Pipettes and Modules section so when the H-S "too hot to touch" banner is enabled, the cards don't overflow into a 3rd column

Changelog

  • height modification in pipettesAndModules
  • tweaked module overflow menu hook to change the disabled reason
  • increased test coverage on the ModuleOverflowMenu

Review requests

  • when you first open the app, if the H-S latch status is opened, the Set shake speed button should always be disabled. When hovering over the button, there should be a tooltip.

Risk assessment

low, hs

@jerader jerader requested a review from a team as a code owner May 24, 2022 15:55
@jerader jerader requested review from shlokamin and sakibh and removed request for a team May 24, 2022 15:55
@codecov
Copy link

codecov bot commented May 24, 2022

Codecov Report

Merging #10421 (efd8aba) into edge (1f0c98b) will increase coverage by 0.01%.
The diff coverage is n/a.

Impacted file tree graph

@@            Coverage Diff             @@
##             edge   #10421      +/-   ##
==========================================
+ Coverage   73.62%   73.64%   +0.01%     
==========================================
  Files        2134     2134              
  Lines       57353    57513     +160     
  Branches     5750     5815      +65     
==========================================
+ Hits        42229    42353     +124     
- Misses      13923    13946      +23     
- Partials     1201     1214      +13     
Flag Coverage Δ
app 71.45% <ø> (+0.06%) ⬆️

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

Impacted Files Coverage Δ
app/src/organisms/Devices/ModuleCard/hooks.tsx 86.76% <ø> (ø)
app/src/organisms/Devices/PipettesAndModules.tsx 100.00% <ø> (ø)
app/src/atoms/Slideout/index.tsx 66.66% <0.00%> (-8.34%) ⬇️
...organisms/Devices/HeaterShakerWizard/TestShake.tsx 80.55% <0.00%> (-2.21%) ⬇️
...anisms/Devices/HeaterShakerWizard/Introduction.tsx 95.55% <0.00%> (-1.00%) ⬇️
app-shell/src/main.ts 0.00% <0.00%> (ø)
...anisms/Devices/HeaterShakerWizard/AttachModule.tsx 100.00% <0.00%> (ø)
app/src/organisms/Devices/ModuleCard/index.tsx 67.83% <0.00%> (+0.85%) ⬆️
...src/organisms/Devices/HeaterShakerWizard/index.tsx 87.14% <0.00%> (+1.77%) ⬆️
app/src/organisms/ChooseProtocolSlideout/index.tsx 90.00% <0.00%> (+2.50%) ⬆️
... and 3 more

Copy link
Contributor

@sakibh sakibh left a comment

Choose a reason for hiding this comment

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

LGTM! ✅

@@ -311,7 +311,8 @@ export function useModuleOverflowMenu(
disabledReason:
module.moduleType === HEATERSHAKER_MODULE_TYPE &&
(module.data.labwareLatchStatus === 'idle_open' ||
module.data.labwareLatchStatus === 'opening'),
module.data.labwareLatchStatus === 'opening' ||
module.data.labwareLatchStatus === 'idle_unknown'),
Copy link
Contributor

Choose a reason for hiding this comment

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

Makes sense to add idle_unknown since it is a status that also indicates if the latch has failed to open/close.

@jerader jerader merged commit 0b1b15f into edge May 31, 2022
@jerader jerader deleted the app_hs-set-shake-btn-disabld-reason branch May 31, 2022 15:46
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.

H-S Disable button when Latch is Opened
2 participants