diff --git a/nx-dev/feature-ai/src/lib/feed/feed-answer.tsx b/nx-dev/feature-ai/src/lib/feed/feed-answer.tsx index 54172093819afe..6d4fed3ad98bb9 100644 --- a/nx-dev/feature-ai/src/lib/feed/feed-answer.tsx +++ b/nx-dev/feature-ai/src/lib/feed/feed-answer.tsx @@ -81,8 +81,8 @@ export function FeedAnswer({
Nx Assistant{' '} - - alpha + + beta

diff --git a/nx-dev/ui-common/src/lib/documentation-header.tsx b/nx-dev/ui-common/src/lib/documentation-header.tsx index a9f60eedf16cdd..50af19b8ecc5dd 100644 --- a/nx-dev/ui-common/src/lib/documentation-header.tsx +++ b/nx-dev/ui-common/src/lib/documentation-header.tsx @@ -1,3 +1,4 @@ +import { type JSX } from 'react'; import { Bars3Icon, XMarkIcon } from '@heroicons/react/24/outline'; import { AlgoliaSearch } from '@nx/nx-dev/feature-search'; import { ThemeSwitcher } from '@nx/nx-dev/ui-theme'; @@ -22,7 +23,7 @@ function Menu({ tabs }: { tabs: any[] }): JSX.Element { )} aria-current={tab.current ? 'page' : undefined} > - {tab.name} + {tab.content ?? tab.name} ))} @@ -42,7 +43,9 @@ export function DocumentationHeader({ const isPackages: boolean = router.asPath.startsWith('/packages'); const isPlugins: boolean = router.asPath.startsWith('/extending-nx'); const isChangelog: boolean = router.asPath.startsWith('/changelog'); - const isNx: boolean = !isNxCloud && !isPackages && !isPlugins && !isChangelog; + const isAiChat: boolean = router.asPath.startsWith('/ai-chat'); + const isNx: boolean = + !isNxCloud && !isPackages && !isPlugins && !isChangelog && !isAiChat; const sections = [ { name: 'Nx', href: '/getting-started/intro', current: isNx }, @@ -66,6 +69,19 @@ export function DocumentationHeader({ href: '/changelog', current: isChangelog, }, + { + name: 'AI Chat', + href: '/ai-chat', + current: isAiChat, + content: ( + <> + AI Chat + + beta + + + ), + }, ]; const communityLinks = [