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): add selectors to Module Cards #9636

Merged
merged 2 commits into from
Mar 8, 2022
Merged

Conversation

jerader
Copy link
Collaborator

@jerader jerader commented Mar 7, 2022

closes #9359

Overview

This PR goes back and adds selectors to module card work since it was previously skipped since multiple people were working on different parts of it simultaneously.

Changelog

  • addes selectors to moduleCard, each of the module data components, and the statusLabel

Review requests

make sure adding selectors didn't do anything weird

Risk assessment

low

@jerader jerader requested a review from a team as a code owner March 7, 2022 17:07
@jerader jerader requested review from mcous, a team, b-cooper, shlokamin and sakibh and removed request for a team, mcous and b-cooper March 7, 2022 17:07
@codecov
Copy link

codecov bot commented Mar 7, 2022

Codecov Report

Merging #9636 (6cdc7cb) into edge (a900063) will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@           Coverage Diff           @@
##             edge    #9636   +/-   ##
=======================================
  Coverage   75.57%   75.57%           
=======================================
  Files        1927     1927           
  Lines       51281    51281           
  Branches     4919     4919           
=======================================
  Hits        38758    38758           
  Misses      11593    11593           
  Partials      930      930           
Flag Coverage Δ
app 72.98% <ø> (ø)

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

Impacted Files Coverage Δ
app/src/atoms/StatusLabel/index.tsx 100.00% <ø> (ø)
...isms/Devices/ModuleCard/HeaterShakerModuleData.tsx 5.55% <ø> (ø)
...rganisms/Devices/ModuleCard/MagneticModuleData.tsx 80.00% <ø> (ø)
...nisms/Devices/ModuleCard/TemperatureModuleData.tsx 100.00% <ø> (ø)
...isms/Devices/ModuleCard/ThermocyclerModuleData.tsx 73.91% <ø> (ø)
app/src/organisms/Devices/ModuleCard/index.tsx 52.00% <ø> (ø)

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!

@@ -30,6 +30,7 @@ export const StatusLabel = (props: StatusLabelProps): JSX.Element | null => {
alignItems={ALIGN_CENTER}
marginTop={SPACING_1}
marginBottom={SPACING_1}
data-testid={`status_label+${status}`}
Copy link
Contributor

Choose a reason for hiding this comment

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

should this be a + or an _?

<Flex
flexDirection={DIRECTION_COLUMN}
marginRight={SPACING.spacing6}
data-testid={`heater_shaker_module_data_temp`}
Copy link
Contributor

Choose a reason for hiding this comment

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

nit: also I this should probably be single quotes since back ticks are generally used for string interpolation.

@jerader jerader merged commit 1c04d83 into edge Mar 8, 2022
@jerader jerader deleted the app_module-card-selectors branch March 8, 2022 12:52
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.

Add selectors throughout Module Cards
2 participants