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): naïve loading state for tc open lid during lw cal #4616

Merged
merged 8 commits into from
Dec 16, 2019

Conversation

b-cooper
Copy link
Contributor

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)

@b-cooper b-cooper added app Affects the `app` project fix PR fixes a bug labels Dec 16, 2019
@b-cooper b-cooper requested a review from mcous December 16, 2019 17:24
mcous
mcous previously requested changes Dec 16, 2019
Copy link
Contributor

@mcous mcous left a comment

Choose a reason for hiding this comment

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

app/src/components/PrepareModules/index.js Show resolved Hide resolved
app/src/components/PrepareModules/index.js Outdated Show resolved Hide resolved
@codecov
Copy link

codecov bot commented Dec 16, 2019

Codecov Report

Merging #4616 into edge will increase coverage by 0.01%.
The diff coverage is 69.23%.

Impacted file tree graph

@@            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
Impacted Files Coverage Δ
app/src/components/PrepareModules/index.js 0% <0%> (ø) ⬆️
components/src/hooks/useTimeout.js 100% <100%> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update e2848f8...dad7b0f. Read the comment docs.

@b-cooper b-cooper requested a review from mcous December 16, 2019 20:27
components/src/hooks/useTimeout.js Outdated Show resolved Hide resolved
@@ -3,7 +3,7 @@ import * as React from 'react'
import { mount } from 'enzyme'
import { useInterval } from '..'

describe('usePrevious hook', () => {
describe('useInterval hook', () => {
Copy link
Contributor

Choose a reason for hiding this comment

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

Doh

app/src/components/CalibrateLabware/ProceedToRun.js Outdated Show resolved Hide resolved
@mcous mcous dismissed their stale review December 16, 2019 21:12

Dismissing my review pending rebase

Copy link
Contributor

@mcous mcous left a comment

Choose a reason for hiding this comment

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

🤑

@b-cooper b-cooper merged commit c4a4cdf into edge Dec 16, 2019
@b-cooper b-cooper deleted the app_tc-is-opening branch December 16, 2019 22:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
app Affects the `app` project fix PR fixes a bug
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants