-
Notifications
You must be signed in to change notification settings - Fork 399
change: [M3-8000] - GPUv2 Plan Divider & PlanSelection cleanup #10407
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
Changes from all commits
128c51b
4c3eedc
c25095a
bd611cf
1aff1b7
627cbb9
a886286
c0daf13
4c8021b
e21eada
e5f12ad
8594f82
d540831
a3c1846
b0ef649
e380827
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,5 @@ | ||
| --- | ||
| "@linode/manager": Changed | ||
| --- | ||
|
|
||
| Implement GPUv2 Plan Divider & Cleanup/Consolidate PlanSelection components ([#10407](https://github.com/linode/manager/pull/10407)) |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -37,8 +37,11 @@ export const CardBase = (props: CardBaseProps) => { | |
| } = props; | ||
|
|
||
| const renderSubheadings = subheadings.map((subheading, idx) => { | ||
| const subHeadingIsString = typeof subheading === 'string'; | ||
|
|
||
| return ( | ||
| <CardBaseSubheading | ||
| className={subHeadingIsString ? 'cardSubheadingItem' : ''} | ||
| data-qa-select-card-subheading={`subheading-${idx + 1}`} | ||
| key={idx} | ||
| sx={sxSubheading} | ||
|
|
@@ -52,7 +55,10 @@ export const CardBase = (props: CardBaseProps) => { | |
| <CardBaseGrid checked={checked} container spacing={2} sx={sx}> | ||
| {renderIcon && <CardBaseIcon sx={sxIcon}>{renderIcon()}</CardBaseIcon>} | ||
| <CardBaseHeadings sx={sxHeading}> | ||
| <CardBaseHeading data-qa-select-card-heading={heading}> | ||
| <CardBaseHeading | ||
| className="cardSubheadingTitle" | ||
| data-qa-select-card-heading={heading} | ||
| > | ||
|
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. These changes help with the styling of the disabled selection card, allowing non string items to not suffer fro the opacity change |
||
| {heading} | ||
| {headingDecoration} | ||
| </CardBaseHeading> | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -48,6 +48,10 @@ interface GeckoFlag { | |
| ga: boolean; | ||
| } | ||
|
|
||
| interface gpuV2 { | ||
| planDivider: boolean; | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Are other properties planned for the feature flag?
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. There will a string change there will be hence the payload. If not, it's quite ok to have it a JSON flag anyway? |
||
| } | ||
|
|
||
| type OneClickApp = Record<string, string>; | ||
|
|
||
| export interface Flags { | ||
|
|
@@ -61,6 +65,7 @@ export interface Flags { | |
| firewallNodebalancer: boolean; | ||
| gecko: boolean; // @TODO gecko: delete this after next release | ||
| gecko2: GeckoFlag; | ||
| gpuv2: gpuV2; | ||
| ipv6Sharing: boolean; | ||
| linodeCloneUiChanges: boolean; | ||
| linodeCreateRefactor: boolean; | ||
|
|
||
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.
fbtClickis now marked as deprecated