From 93fae70defc88c3831da3a77e678e5b8bcace905 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Th=C3=A9o=20Grandin?= Date: Fri, 23 Jan 2026 11:27:49 +0100 Subject: [PATCH 1/2] refactor(cluster): update cluster UI components and design improvments --- .../organization/$organizationId/clusters.tsx | 4 +-- .../src/lib/cluster-card/cluster-card.tsx | 2 +- .../cluster-new/cluster-new.tsx | 26 +++++++++---------- .../cluster-header-logs.tsx | 12 +++++++-- .../page-clusters-general.tsx | 2 +- 5 files changed, 27 insertions(+), 19 deletions(-) diff --git a/apps/console-v5/src/routes/_authenticated/organization/$organizationId/clusters.tsx b/apps/console-v5/src/routes/_authenticated/organization/$organizationId/clusters.tsx index 7622329bc3e..e7bf2bcc9cf 100644 --- a/apps/console-v5/src/routes/_authenticated/organization/$organizationId/clusters.tsx +++ b/apps/console-v5/src/routes/_authenticated/organization/$organizationId/clusters.tsx @@ -17,8 +17,8 @@ const Clusters = () => { return ( - New Cluster + New Cluster ) @@ -54,8 +54,8 @@ function RouteComponent() { className="gap-2" size="md" > - New Cluster + Add cluster
diff --git a/libs/domains/clusters/feature/src/lib/cluster-card/cluster-card.tsx b/libs/domains/clusters/feature/src/lib/cluster-card/cluster-card.tsx index 127ae8cb058..7a241e5003b 100644 --- a/libs/domains/clusters/feature/src/lib/cluster-card/cluster-card.tsx +++ b/libs/domains/clusters/feature/src/lib/cluster-card/cluster-card.tsx @@ -112,7 +112,7 @@ export function ClusterCard({ cluster, clusterDeploymentStatus }: ClusterCardPro params: { organizationId: cluster.organization.id, clusterId: cluster.id }, }).href } - className="duration-50 flex flex-col gap-5 rounded border border-neutral bg-surface-neutral p-5 outline outline-2 outline-transparent transition-all [box-shadow:0px_2px_8px_-1px_rgba(27,36,44,0.08),0px_2px_2px_-1px_rgba(27,36,44,0.04)] hover:border-brand-11 hover:-outline-offset-2 hover:outline-brand-11" + className="duration-50 flex flex-col gap-5 rounded-lg border border-neutral bg-surface-neutral p-5 shadow-sm transition-all hover:border-brand-strong" >
diff --git a/libs/domains/clusters/feature/src/lib/cluster-creation-flow/cluster-new/cluster-new.tsx b/libs/domains/clusters/feature/src/lib/cluster-creation-flow/cluster-new/cluster-new.tsx index 684866240c6..16a6656090e 100644 --- a/libs/domains/clusters/feature/src/lib/cluster-creation-flow/cluster-new/cluster-new.tsx +++ b/libs/domains/clusters/feature/src/lib/cluster-creation-flow/cluster-new/cluster-new.tsx @@ -44,7 +44,7 @@ function CardOption({ icon, title, description, selectedCloudProvider, recommend const { organizationId = '' } = useParams({ strict: false }) const { showPylonForm } = useSupportChat() - const isEksAnywhereEnabled = useFeatureFlagEnabled('eks-anywhere') + const isEksAnywhereEnabled = false const renderIcon = (className?: string) => { return typeof icon === 'string' ? ( @@ -63,13 +63,13 @@ function CardOption({ icon, title, description, selectedCloudProvider, recommend {match({ selectedCloudProvider }) .with({ selectedCloudProvider: 'AZURE' }, () => (
- + recommended
)) .otherwise(() => ( - + recommended ))} @@ -88,7 +88,7 @@ function CardOption({ icon, title, description, selectedCloudProvider, recommend } const baseClassNames = - 'flex text-left items-start gap-4 relative rounded shadow border border-neutral outline outline-2 outline-transparent transition-all hover:border-surface-brand-solid -outline-offset-2 hover:outline-brand-500 bg-surface-neutral-subtle p-5 transition w-[397px] xl:w-full' + 'flex text-left items-start gap-4 relative rounded border border-neutral transition-all hover:border-brand-strong bg-surface-neutral p-5 transition w-[397px]' return match(props) .with({ selectedInstallationType: 'self-managed' }, ({ selectedInstallationType, openInstallationGuideModal }) => ( @@ -135,14 +135,14 @@ function CardOption({ icon, title, description, selectedCloudProvider, recommend
{renderIcon()}
- {title} - + {title} + EKS Anywhere is not available for your organization yet. Please contact us to enable it.
@@ -213,9 +213,9 @@ function CardCluster({ title, description, icon, index = 1, ...props }: CardClus onClick={() => setExpanded(!expanded)} className={twMerge( clsx( - 'flex h-32 w-full cursor-pointer justify-start gap-4 rounded border border-neutral p-5 shadow-sm outline outline-2 outline-transparent transition hover:border-surface-brand-solid hover:-outline-offset-2 hover:outline-surface-brand-solid', + 'flex h-32 w-full cursor-pointer justify-start gap-4 rounded border border-neutral p-5 shadow-sm transition hover:border-brand-strong', { - 'border-surface-brand-solid -outline-offset-2 outline-surface-brand-solid': expanded, + 'border-brand-strong': expanded, } ) )} @@ -234,7 +234,7 @@ function CardCluster({ title, description, icon, index = 1, ...props }: CardClus {options.length} - +
@@ -247,7 +247,7 @@ function CardCluster({ title, description, icon, index = 1, ...props }: CardClus transition={{ duration: 0.15 }} className={getExpanderPosition('relative mt-5 overflow-hidden', index)} > -
+
{typeof icon === 'string' ? ( @@ -282,7 +282,7 @@ function CardCluster({ title, description, icon, index = 1, ...props }: CardClus return (
{selectedInstallationType === 'demo' ? ( - + 3min to setup ) : ( diff --git a/libs/domains/clusters/feature/src/lib/cluster-logs/cluster-header-logs/cluster-header-logs.tsx b/libs/domains/clusters/feature/src/lib/cluster-logs/cluster-header-logs/cluster-header-logs.tsx index 50e8051dde2..5dc26a06a95 100644 --- a/libs/domains/clusters/feature/src/lib/cluster-logs/cluster-header-logs/cluster-header-logs.tsx +++ b/libs/domains/clusters/feature/src/lib/cluster-logs/cluster-header-logs/cluster-header-logs.tsx @@ -30,8 +30,9 @@ export function ClusterHeaderLogs(props: ClusterHeaderLogsProps) { <> - diff --git a/libs/pages/clusters/src/lib/ui/page-clusters-general/page-clusters-general.tsx b/libs/pages/clusters/src/lib/ui/page-clusters-general/page-clusters-general.tsx index eb5b67a6859..66a99cb8b09 100644 --- a/libs/pages/clusters/src/lib/ui/page-clusters-general/page-clusters-general.tsx +++ b/libs/pages/clusters/src/lib/ui/page-clusters-general/page-clusters-general.tsx @@ -48,8 +48,8 @@ export function PageClustersGeneral({ loading, clusters, clusterStatuses }: Page clusters?.length === 0 && ( - New Cluster + New Cluster ) From 2ff3e53a2661773263b70da79b2223d8f9cdddb0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Th=C3=A9o=20Grandin?= Date: Fri, 23 Jan 2026 11:41:27 +0100 Subject: [PATCH 2/2] style(container-registry-form): correct HR styling --- .../src/lib/container-registry-form/container-registry-form.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libs/domains/organizations/feature/src/lib/container-registry-form/container-registry-form.tsx b/libs/domains/organizations/feature/src/lib/container-registry-form/container-registry-form.tsx index 10c0fed79ef..2e910c90858 100644 --- a/libs/domains/organizations/feature/src/lib/container-registry-form/container-registry-form.tsx +++ b/libs/domains/organizations/feature/src/lib/container-registry-form/container-registry-form.tsx @@ -431,7 +431,7 @@ export function ContainerRegistryForm({ /> )} -
+
{(cluster?.cloud_provider === 'AWS' || watchKind === ContainerRegistryKindEnum.ECR) && (