-
Notifications
You must be signed in to change notification settings - Fork 180
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
base: edge
Are you sure you want to change the base?
Conversation
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ 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
Flags with carried forward coverage won't be shown. Click here to find out more.
🚀 New features to boost your workflow:
|
status: 'Idle', | ||
const shuttleDisplayStatus = i18n.format( | ||
moduleData.platformState === 'extended' | ||
? t('flex_stacker_extended') |
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.
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?
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.
Will do!
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.
Left one comment but otherwise this looks good! Ty 🤩
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.