-
Notifications
You must be signed in to change notification settings - Fork 367
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
upcoming: [M3-8839] - Designate LKE-E clusters with 'Enterprise' chip #11442
upcoming: [M3-8839] - Designate LKE-E clusters with 'Enterprise' chip #11442
Conversation
@@ -134,7 +139,13 @@ export const KubeClusterSpecs = React.memo((props: Props) => { | |||
}; | |||
|
|||
return ( | |||
<Grid container direction="row" lg={3} xs={12}> | |||
<Grid | |||
columnGap={matchesColGapBreakpointDown ? 2 : 0} |
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.
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.
New component to render both HA and Enterprise chips, since they are use on both landing and details pages.
[theme.breakpoints.down('sm')]: { | ||
'& .MuiChip-root': { | ||
marginRight: 0, | ||
}, | ||
flexDirection: 'column', | ||
}, | ||
})} |
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.
Styling to prevent the absolutely positioned chips from overlapping with specs text at smaller viewports.
8d2d506
to
ebe5d1b
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 pending some test clean up 🧹
packages/manager/src/features/Kubernetes/ClusterList/ClusterChips.test.tsx
Outdated
Show resolved
Hide resolved
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! Left some minor non-blocking comments
packages/manager/src/features/Kubernetes/ClusterList/ClusterChips.test.tsx
Outdated
Show resolved
Hide resolved
packages/manager/src/features/Kubernetes/ClusterList/ClusterChips.test.tsx
Show resolved
Hide resolved
packages/manager/src/features/Kubernetes/KubernetesClusterDetail/KubeClusterSpecs.tsx
Outdated
Show resolved
Hide resolved
…ips.test.tsx Co-authored-by: Hana Xu <115299789+hana-akamai@users.noreply.github.com>
…il/KubeClusterSpecs.tsx Co-authored-by: Hana Xu <115299789+hana-akamai@users.noreply.github.com>
Cloud Manager UI test results🔺 1 failing test on test run #7 ↗︎
Details
TroubleshootingUse this command to re-run the failing tests: yarn cy:run -s "cypress/e2e/core/kubernetes/lke-update.spec.ts" |
Test failure is fixed in develop (#11458) and unrelated to the changes in this PR. |
…linode#11442) * Create component for rendering cluster chips * Add test coverage for new component * Replace current chip with ClusterChips component * Fix spacing in column specs due to long LKE-E version * Remove Kube dashboard button for LKE-E clusters * Fix the fix for specs spacing * Add changeset * Fix a conditional before I forget * Address feedback - clean up flag mocks in test * Update packages/manager/src/features/Kubernetes/ClusterList/ClusterChips.test.tsx Co-authored-by: Hana Xu <115299789+hana-akamai@users.noreply.github.com> * Update packages/manager/src/features/Kubernetes/KubernetesClusterDetail/KubeClusterSpecs.tsx Co-authored-by: Hana Xu <115299789+hana-akamai@users.noreply.github.com> --------- Co-authored-by: Hana Xu <115299789+hana-akamai@users.noreply.github.com>
Description 📝
For listing and viewing cluster information, customers should be able to have explicit indication whether the cluster is an LKE vs LKE-E cluster.
To do this, we will add add an 'ENTERPRISE' chip on the LKE landing page and the cluster details page.
Changes 🔄
Note: Yes, the total price of the LKE-E cluster is inaccurate. This will be addressed by M3-9042.
Target release date 🗓️
1/14 (dev)
Preview 📷
Screen.Recording.2024-12-19.at.12.35.20.PM.mov
How to test 🧪
Prerequisites
(How to setup test environment)
Verification steps
(How to verify changes)
Author Checklists
As an Author, to speed up the review process, I considered 🤔
👀 Doing a self review
❔ Our contribution guidelines
🤏 Splitting feature into small PRs
➕ Adding a changeset
🧪 Providing/improving test coverage
🔐 Removing all sensitive information from the code and PR description
🚩 Using a feature flag to protect the release
👣 Providing comprehensive reproduction steps
📑 Providing or updating our documentation
🕛 Scheduling a pair reviewing session
📱 Providing mobile support
♿ Providing accessibility support
As an Author, before moving this PR from Draft to Open, I confirmed ✅