-
Notifications
You must be signed in to change notification settings - Fork 179
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(odd): robot dashboard recently run protocols (#12490)
closes RCORE-559 RCORE-586 Co-authored-by: koji <[email protected]>
- Loading branch information
Showing
27 changed files
with
975 additions
and
206 deletions.
There are no files selected for viewing
File renamed without changes
Binary file added
BIN
+8.67 KB
app/src/assets/images/on-device-display/empty_recent_protocol_run.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
File renamed without changes
File renamed without changes
File renamed without changes
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
35 changes: 0 additions & 35 deletions
35
app/src/molecules/MiniCardButton/MiniCardButton.stories.tsx
This file was deleted.
Oops, something went wrong.
44 changes: 0 additions & 44 deletions
44
app/src/molecules/MiniCardButton/__tests__/MiniCardButton.test.tsx
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -15,7 +15,7 @@ import { | |
|
||
import { StyledText } from '../../atoms/text' | ||
import { StepMeter } from '../../atoms/StepMeter' | ||
import screenImage from '../../assets/images/odd/[email protected]' | ||
import screenImage from '../../assets/images/on-device-display/[email protected]' | ||
|
||
const IMAGE_ALT = 'finish setting up a robot' | ||
|
||
|
59 changes: 59 additions & 0 deletions
59
app/src/organisms/OnDeviceDisplay/RobotDashboard/EmptyRecentRun.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,59 @@ | ||
import * as React from 'react' | ||
import { useTranslation } from 'react-i18next' | ||
|
||
import { | ||
Flex, | ||
DIRECTION_COLUMN, | ||
ALIGN_CENTER, | ||
COLORS, | ||
SPACING, | ||
TYPOGRAPHY, | ||
} from '@opentrons/components' | ||
|
||
import { StyledText } from '../../../atoms/text' | ||
|
||
import abstractImage from '../../../assets/images/on-device-display/empty_recent_protocol_run.png' | ||
|
||
export function EmptyRecentRun(): JSX.Element { | ||
const { t } = useTranslation('device_details') | ||
return ( | ||
<Flex | ||
width="100%" | ||
height="27.25rem" | ||
backgroundColor={`${COLORS.darkBlackEnabled}${COLORS.opacity15HexCode}`} | ||
flexDirection={DIRECTION_COLUMN} | ||
alignItems={ALIGN_CENTER} | ||
padding="5.25rem 3.75rem" | ||
> | ||
<Flex marginBottom={SPACING.spacing4}> | ||
<img | ||
src={abstractImage} | ||
alt="There is no recent run protocol" | ||
width="284px" | ||
height="166px" | ||
/> | ||
</Flex> | ||
<Flex | ||
flexDirection={DIRECTION_COLUMN} | ||
gridGap={SPACING.spacing3} | ||
alignItems={ALIGN_CENTER} | ||
> | ||
<StyledText | ||
fontSize={TYPOGRAPHY.fontSize32} | ||
lineHeight={TYPOGRAPHY.lineHeight42} | ||
fontWeight={TYPOGRAPHY.fontWeightLevel2_bold} | ||
> | ||
{t('no_recent_runs')} | ||
</StyledText> | ||
<StyledText | ||
fontSize={TYPOGRAPHY.fontSize28} | ||
lineHeight={TYPOGRAPHY.lineHeight36} | ||
fontWeight={TYPOGRAPHY.fontWeightRegular} | ||
color={COLORS.darkBlack_seventy} | ||
> | ||
{t('no_recent_runs_description')} | ||
</StyledText> | ||
</Flex> | ||
</Flex> | ||
) | ||
} |
Oops, something went wrong.