-
Notifications
You must be signed in to change notification settings - Fork 178
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): naïve loading state for tc open lid during lw cal #4616
Conversation
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.
- Can this happen after refactor(app): wire components to new state.modules tree #4615? They both touch this file and 4615 simplifies its props slightly
- We can't use
setTimeout
without cleaning up the timeout on dismount
Codecov Report
@@ Coverage Diff @@
## edge #4616 +/- ##
=========================================
+ Coverage 57.99% 58% +0.01%
=========================================
Files 933 934 +1
Lines 26010 26021 +11
=========================================
+ Hits 15084 15093 +9
- Misses 10926 10928 +2
Continue to review full report at Codecov.
|
@@ -3,7 +3,7 @@ import * as React from 'react' | |||
import { mount } from 'enzyme' | |||
import { useInterval } from '..' | |||
|
|||
describe('usePrevious hook', () => { | |||
describe('useInterval hook', () => { |
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.
Doh
6fbb842
to
48c9122
Compare
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.
🤑
overview
In the absence of live status updates while the lid is opening or closing (limitation of the TC firmware), this adds a naïve loading state that delays a set amount of time in order to show to the user that the task has begun.
review requests
Enter Labware Calibration for a protocol that involves a TC, and make sure the lid of the thermocycler is closed. When prompted to "Open Lid" the loading state should appear (disabled button and spinner)