-
Notifications
You must be signed in to change notification settings - Fork 364
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: [M3-8834] - Display new Accelerated plans in Plans Panel #11287
Conversation
const premiumTypes = linodeTypeFactory.buildList(7, { | ||
class: 'premium', | ||
}); |
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.
Added these plans bc without them, we'd have a weird case where when using MSW, clicking on a plan in the Accelerated tab would make the plans panel jump to the Premium tab.
There were no (mock) premium plans, but the Premium tab still shows up (with the disabled 512gb plan). No (mock) premium plans + Premium tab still appearing = tabOrder
in determineInitialPlanCategoryTab
is one tab short, making the initialTab
value in PlansPanel one less than it should be.
Wondering if we should prevent a tab from showing up if the only plan in that tab is the disabled 512gb plan? However, it's probably a non-issue on prod because there are Premium plans
interface PlanSelectionTableProps { | ||
filterOptions?: PlanSelectionFilterOptionsTable; | ||
planFilter?: (plan: PlanWithAvailability) => 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.
(prop isn't used)
interface PlanSelectionFilterOptionsTable { | ||
header?: string; | ||
planFilter?: (plan: PlanWithAvailability) => 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.
same type as PlanSelectionDividerTable
from PlanContainer
, so I consolidated the two. Decided to keep PlanSelectionFilterOptionsTable
as the name bc we use filterOptions
a lot, but can change back
@@ -69,15 +81,6 @@ export const PlanContainer = (props: PlanContainerProps) => { | |||
!flags.dbaasV2?.beta && | |||
flags.dbaasV2?.enabled && | |||
(isDatabaseCreateFlow || isDatabaseResizeFlow); | |||
interface PlanSelectionDividerTable { |
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.
see comment in PlanSelectionTable
@@ -154,7 +154,7 @@ export const PlanSelectionTable = (props: PlanSelectionTableProps) => { | |||
message={PLAN_SELECTION_NO_REGION_SELECTED_MESSAGE} | |||
/> | |||
) : ( | |||
renderPlanSelection(filterOptions) | |||
renderPlanSelection() |
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.
removed filterOptions (* unless keeping it here might be helpful down the line?) bc we'd always be passing undefined here:
- for GPU plans, we pass in
() => renderPlanSelection({...some filter})
as our renderPlanSelection prop, so the filterOptions that we also passed in{ header: table.header }
don't get used here - for non GPU plans, we don't pass in any filterOptions prop, so that becomes
undefined
here
3e8f7d0
to
62a81ad
Compare
Coverage Report: ❌ |
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.
Looks good! I'll do a deeper review, but leaving some early comments
packages/manager/src/features/components/PlansPanel/PlanInformation.tsx
Outdated
Show resolved
Hide resolved
packages/manager/src/features/components/PlansPanel/PlanInformation.tsx
Outdated
Show resolved
Hide resolved
packages/manager/src/features/components/PlansPanel/PlanInformation.tsx
Outdated
Show resolved
Hide resolved
…ation.tsx Co-authored-by: Alban Bailly <130582365+abailly-akamai@users.noreply.github.com>
packages/manager/src/features/Kubernetes/CreateCluster/NodePoolPanel.tsx
Outdated
Show resolved
Hide resolved
…lPanel.tsx Co-authored-by: Banks Nussman <115251059+bnussman-akamai@users.noreply.github.com>
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.
Solid! thanks for addressing change sand the attention to details. Confirme new plans display and banner consistentcy
Cloud Manager UI test results🎉 455 passing tests on test run #21 ↗︎
|
Cloud Manager E2E Run #6880
Run Properties:
|
Project |
Cloud Manager E2E
|
Branch Review |
develop
|
Run status |
Passed #6880
|
Run duration | 28m 13s |
Commit |
1b0733f185: feat: [M3-8834] - Display new Accelerated plans in Plans Panel (#11287)
|
Committer | Connie Liu |
View all properties for this run ↗︎ |
Test results | |
---|---|
Failures |
0
|
Flaky |
1
|
Pending |
2
|
Skipped |
0
|
Passing |
455
|
View all changes introduced in this branch ↗︎ |
Description 📝
Adds Accelerated plans to Plans Panel
Changes 🔄
Target release date 🗓️
12/10
Preview 📷
How to test 🧪
Either use the MSW, or make sure you have the correct customer tag (reach out for it)
useFlags
, test when different variations of{ linodePlans: boolean; lkePlans: boolean }
are returned)yarn test PlansPanel/utils.test.ts
As an Author, I have considered 🤔
As an Author, before moving this PR from Draft to Open, I confirmed ✅