-
Notifications
You must be signed in to change notification settings - Fork 179
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(odd): robot dashboard recently run protocols #12490
Conversation
- create EmptyRecentRun component - change the folder name under asset from odd to OnDeviceDisplay - update paths in components
…m/Opentrons/opentrons into feat_update-robotdashboard-design
Codecov Report
@@ Coverage Diff @@
## edge #12490 +/- ##
==========================================
+ Coverage 73.67% 73.69% +0.02%
==========================================
Files 2252 2257 +5
Lines 61976 62388 +412
Branches 6517 6693 +176
==========================================
+ Hits 45658 45976 +318
- Misses 14757 14822 +65
- Partials 1561 1590 +29
Flags with carried forward coverage won't be shown. Click here to find out more.
|
"missing_module": "missing {{num}} module", | ||
"missing_module_plural": "missing {{num}} modules", | ||
"missing_pipette": "missing {{num}} pipette", | ||
"missing_pipettes_plural": "missing {{num}} pipettes", | ||
"missing_both": "missing {{numMod}} module(s) and {{numPip}} pipette(s)" |
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.
no idea what correct copy is supposed to be here so for now, i made the decision to pluralize some of them
@@ -0,0 +1,26 @@ | |||
import * as React from 'react' |
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.
@jerader I updated the test a little bit.
- add the image name check
- remove MemoryRoute
…m/Opentrons/opentrons into feat_update-robotdashboard-design
@koji, nice catch, thank you! |
}, | ||
], | ||
} as any | ||
|
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.
I only created a test for useMissingProtocolHardware
but there should be tests made for useRequiredProtocolHardware
and useRequiredProtocolLabware
. Maybe can be done in a followup PR.
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.
I added tests for useRequiredProtocolLabware
.
So we will need to add useRequiredProtocolHardware
.
|
|
app/src/organisms/OnDeviceDisplay/RobotDashboard/EmptyRecentRun.tsx
Outdated
Show resolved
Hide resolved
app/src/organisms/OnDeviceDisplay/RobotDashboard/RecentProtocolRunCard.tsx
Outdated
Show resolved
Hide resolved
app/src/organisms/OnDeviceDisplay/RobotDashboard/RecentProtocolRunCard.tsx
Outdated
Show resolved
Hide resolved
app/src/organisms/OnDeviceDisplay/RobotDashboard/RecentProtocolRunCard.tsx
Outdated
Show resolved
Hide resolved
app/src/organisms/OnDeviceDisplay/RobotDashboard/RecentProtocolRunCard.tsx
Outdated
Show resolved
Hide resolved
-webkit-box-orient: vertical; | ||
-webkit-line-clamp: 5; | ||
overflow: hidden; | ||
width: 100%; |
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.
@jerader thank you for the update.
I will update this style a little bit (remove unnecessary properties)
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.
Looks good to me 🏎️
closes RCORE-559 RCORE-586
Overview
coAuthored with @koji
Creates
EmptyRecentRuns
, andRecentRunProtocolCard
inRobotDashboard
so UI is wired up and changes depending on if you have recent runs or not.In terms of copy for
Missing
, we are still waiting for Mel's feedback.thread on Slack
Currently
RecentRunProtocolCard
is located under organisms since we get data via redux state and this component is used by the only one screen. If we need to use the component in somewhere, we can change the current implementation.Test Plan
Changelog
EmptyRecentRun
and other misc assetsMiniCardButton
- i think it is no longer needed but @koji can explain why he deleted it.MiniCardButton
was for the old design and there is no similar button in hi-fi design, so it is no longer needed.lineHeight
constantsRecentRunCard
toRobotDashboard
, with correct UIuseMissingProtocolHardware
that takes inprotocolId
and spits out the hardware missing that is needed in the protocol.EmptyRecentRun
,RobotDashboard
, anduseMissingProtocolHardware
Review requests
Risk assessment
low