Skip to content

feat(app): Flex Stacker module card statuses #18058

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

Open
wants to merge 11 commits into
base: edge
Choose a base branch
from
Open

Conversation

ahiuchingau
Copy link
Contributor

Overview

This PR adds the labware shuttle status for the Flex Stacker in the app module card, and updates the rendering of the door status as well to match that in the design.

Screenshot 2025-04-11 at 5 25 30 PM

@ahiuchingau ahiuchingau requested a review from a team as a code owner April 14, 2025 15:18
@ahiuchingau ahiuchingau requested review from mjhuff and smb2268 and removed request for a team April 14, 2025 15:18
Copy link

codecov bot commented Apr 14, 2025

Codecov Report

Attention: Patch coverage is 8.21918% with 67 lines in your changes missing coverage. Please review.

Project coverage is 23.94%. Comparing base (5d02721) to head (7caa948).
Report is 8 commits behind head on edge.

Files with missing lines Patch % Lines
...src/organisms/ModuleCard/FlexStackerModuleData.tsx 0.00% 67 Missing ⚠️
Additional details and impacted files

Impacted file tree graph

@@            Coverage Diff             @@
##             edge   #18058      +/-   ##
==========================================
- Coverage   25.59%   23.94%   -1.66%     
==========================================
  Files        2995     3008      +13     
  Lines      232829   235149    +2320     
  Branches    20089    20129      +40     
==========================================
- Hits        59596    56296    -3300     
- Misses     173218   178841    +5623     
+ Partials       15       12       -3     
Flag Coverage Δ
protocol-designer 18.72% <8.21%> (-0.08%) ⬇️

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

Files with missing lines Coverage Δ
app/src/redux/modules/api-types.ts 100.00% <ø> (ø)
components/src/icons/ModuleIcon.tsx 100.00% <100.00%> (ø)
components/src/icons/icon-data.ts 100.00% <100.00%> (ø)
...src/organisms/ModuleCard/FlexStackerModuleData.tsx 0.00% <0.00%> (ø)

... and 130 files with indirect coverage changes

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@ahiuchingau ahiuchingau requested a review from smb2268 April 14, 2025 20:42
status: 'Idle',
const shuttleDisplayStatus = i18n.format(
moduleData.platformState === 'extended'
? t('flex_stacker_extended')
Copy link
Contributor

Choose a reason for hiding this comment

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

We try not to do nested ternaries since they can be tricky to read and it's easy for bugs to arise. Can you refactor this to an if/else chain or maybe create a map of [platformState]: i18n key for this?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Will do!

Copy link
Contributor

@smb2268 smb2268 left a comment

Choose a reason for hiding this comment

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

Left one comment but otherwise this looks good! Ty 🤩

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.

2 participants