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,shared-data): Add basic support for the Flex Stacker module to the front-end. #17295

Merged
merged 9 commits into from
Jan 17, 2025

Conversation

vegano1
Copy link
Contributor

@vegano1 vegano1 commented Jan 16, 2025

Overview

This adds the basic scaffolding for the Flex Stacker so the app won't crash when it encounters one.

Closes: EXEC-1088 EXEC-1089

Test Plan and Hands on Testing

  • Push ODD to flex and make sure you can start a protocol with a flex stacker attached

Changelog

  • add flex stacker scaffolding for front-end

Review requests

Risk assessment

@vegano1 vegano1 requested review from a team as code owners January 16, 2025 22:22
@vegano1 vegano1 requested review from koji and removed request for a team January 16, 2025 22:22
@vegano1 vegano1 changed the title Flex stacker frontend basic feat(app,shared-data): Add basic support to the front-end for the Flex stacker module. Jan 16, 2025
@vegano1 vegano1 force-pushed the flex-stacker-frontend-basic branch from 057a705 to 2e98eb4 Compare January 17, 2025 13:49
@vegano1 vegano1 requested a review from a team as a code owner January 17, 2025 13:49
@vegano1 vegano1 changed the base branch from EXEC-1078 to edge January 17, 2025 13:49
@vegano1 vegano1 changed the title feat(app,shared-data): Add basic support to the front-end for the Flex stacker module. feat(app,shared-data): Add basic support for the Flex Stacker module to the front-end. Jan 17, 2025
Comment on lines 11 to 13
export const FlexStackerModuleData = (
props: FlexStackerModuleProps
): JSX.Element | null => {
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
export const FlexStackerModuleData = (
props: FlexStackerModuleProps
): JSX.Element | null => {
export function FlexStackerModuleData(
props: FlexStackerModuleProps
): JSX.Element | null {

onCloseClick={handleCloseSlideout}
isExpanded={isExpanded}
>
<LegacyStyledText
Copy link
Contributor

Choose a reason for hiding this comment

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

is there any specific reason to use LegacyStyledText instead of StyledText?

Copy link
Contributor

Choose a reason for hiding this comment

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

I'd guess this is copy/pasted from older module slide outs. I'll update it

Copy link
Contributor

Choose a reason for hiding this comment

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

I recommend adding tests

Copy link
Contributor

Choose a reason for hiding this comment

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

I'll make a TODO to add tests when we build this out to design specs. This PR is just meant to unblock science & ABR from using the stacker in a protocol!

Copy link
Contributor

Choose a reason for hiding this comment

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

I recommend adding tests

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.

Tested this out in the app & ODD - changes look good as a first pass to unblock science & ABR

Copy link

codecov bot commented Jan 17, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 79.04%. Comparing base (9a28d32) to head (2134775).
Report is 68 commits behind head on edge.

Additional details and impacted files

Impacted file tree graph

@@            Coverage Diff             @@
##             edge   #17295      +/-   ##
==========================================
+ Coverage   73.84%   79.04%   +5.20%     
==========================================
  Files          43      120      +77     
  Lines        3303     4587    +1284     
==========================================
+ Hits         2439     3626    +1187     
- Misses        864      961      +97     
Flag Coverage Δ
g-code-testing 92.43% <ø> (?)
shared-data 73.84% <ø> (+<0.01%) ⬆️

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

see 78 files with indirect coverage changes

Copy link
Contributor

@koji koji left a comment

Choose a reason for hiding this comment

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

the changes look good to me

@smb2268 smb2268 merged commit 9ac34e3 into edge Jan 17, 2025
75 checks passed
@smb2268 smb2268 deleted the flex-stacker-frontend-basic branch January 17, 2025 17:56
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.

3 participants