Skip to content

Commit

Permalink
feat(nx-dev): Update nx-cloud page ai section (#27103)
Browse files Browse the repository at this point in the history
To be inline with ocean: nrwl/ocean#5379
  • Loading branch information
ndcunningham authored Jul 25, 2024
1 parent 0104ea4 commit fc60f6b
Showing 1 changed file with 33 additions and 6 deletions.
39 changes: 33 additions & 6 deletions nx-dev/ui-cloud/src/lib/enhance-with-ai.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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: '',
},
];

Expand All @@ -37,9 +46,6 @@ export function EnhancedWithAi(): JSX.Element {
<section id="ai-for-your-ci">
<div className="mx-auto max-w-7xl px-6 lg:px-8">
<div className="mx-auto max-w-3xl text-center">
<span className="inline-flex items-center rounded-md bg-blue-50 px-2 py-1 text-xs font-medium text-blue-700 ring-1 ring-inset ring-blue-700/10 dark:bg-blue-400/10 dark:text-blue-400 dark:ring-blue-400/30">
Coming soon
</span>
<SectionHeading as="h2" variant="title" id="deep-understanding">
AI for your CI
</SectionHeading>
Expand All @@ -52,16 +58,37 @@ export function EnhancedWithAi(): JSX.Element {
<dl className="mx-auto mt-16 grid max-w-5xl grid-cols-1 gap-6 sm:mt-20 md:grid-cols-2 lg:mt-24 lg:gap-12">
{features.map((feature) => (
<div key={feature.name} className="relative pl-9">
<dt className="text-base font-semibold leading-7 text-slate-950 dark:text-white">
<dt className="flex items-center gap-4 text-base font-semibold leading-7 text-slate-950 dark:text-white">
<feature.icon
className="absolute left-1 top-1 h-5 w-5"
aria-hidden="true"
/>
{feature.name}
{!feature.isAvailable && (
<span className="inline-flex items-center rounded-md bg-blue-50 px-2 py-1 text-xs font-medium text-blue-700 ring-1 ring-inset ring-blue-700/10 dark:bg-blue-400/10 dark:text-blue-400 dark:ring-blue-400/30">
Coming soon
</span>
)}
</dt>
<dd className="mt-2 text-base leading-7">
{feature.description}
</dd>
{feature.link ? (
<Link
href={feature.link}
title="Learn more"
prefetch={false}
className="group mt-4 text-sm font-medium leading-6 text-slate-950 dark:text-white"
>
See documentation{' '}
<span
aria-hidden="true"
className="inline-block transition group-hover:translate-x-1"
>
</span>
</Link>
) : null}
</div>
))}
</dl>
Expand Down

0 comments on commit fc60f6b

Please sign in to comment.