From fc60f6b187f61ccb187d9f316c50923d9921df33 Mon Sep 17 00:00:00 2001 From: Nicholas Cunningham Date: Wed, 24 Jul 2024 18:33:06 -0600 Subject: [PATCH] feat(nx-dev): Update nx-cloud page ai section (#27103) To be inline with ocean: https://github.com/nrwl/ocean/pull/5379 --- nx-dev/ui-cloud/src/lib/enhance-with-ai.tsx | 39 +++++++++++++++++---- 1 file changed, 33 insertions(+), 6 deletions(-) diff --git a/nx-dev/ui-cloud/src/lib/enhance-with-ai.tsx b/nx-dev/ui-cloud/src/lib/enhance-with-ai.tsx index 4287ae8df760d..802f040683459 100644 --- a/nx-dev/ui-cloud/src/lib/enhance-with-ai.tsx +++ b/nx-dev/ui-cloud/src/lib/enhance-with-ai.tsx @@ -5,30 +5,39 @@ import { ServerStackIcon, } from '@heroicons/react/24/outline'; import { SectionHeading } from '@nx/nx-dev/ui-common'; +import Link from 'next/link'; const features = [ { - name: 'Task error insights', + name: 'AI explainer', description: "Debug task errors on your CI pipeline directly in your pipeline's UI.", icon: CodeBracketIcon, + isAvailable: true, + link: '/ci/troubleshooting/explain-with-ai#explain-with-ai-betautm_source=nx.app&utm_campaign=ai-section', }, { name: 'Dynamic Nx Agent sizing', description: - "Automatically adjust Nx Agents' resource classes and numbers depending on your workspace usage and needs.", + 'Automatically adjust Nx Agents numbers depending on your workspace usage and needs.', icon: ServerStackIcon, + isAvailable: false, + link: '', }, { name: 'Task cache miss diagnosis', description: 'Understand why a task has a cache miss and how to fix it.', icon: CloudArrowDownIcon, + isAvailable: false, + link: '', }, { name: 'Organization insights', description: "Understand your teams' workspaces: shared code usage, ownership, bottlenecks.", icon: RectangleGroupIcon, + isAvailable: false, + link: '', }, ]; @@ -37,9 +46,6 @@ export function EnhancedWithAi(): JSX.Element {
- - Coming soon - AI for your CI @@ -52,16 +58,37 @@ export function EnhancedWithAi(): JSX.Element {
{features.map((feature) => (
-
+
{feature.description}
+ {feature.link ? ( + + See documentation{' '} + + + ) : null}
))}