diff --git a/apps/design-system/components/command-menu.tsx b/apps/design-system/components/command-menu.tsx index bc6aa3c9faa..1276f2db264 100644 --- a/apps/design-system/components/command-menu.tsx +++ b/apps/design-system/components/command-menu.tsx @@ -3,7 +3,7 @@ import * as React from 'react' import { useRouter } from 'next/navigation' import { DialogProps } from '@radix-ui/react-alert-dialog' -import { CircleIcon, FileIcon, LaptopIcon, MoonIcon, SunIcon } from 'lucide-react' +import { CircleIcon, LaptopIcon, MoonIcon, SunIcon } from 'lucide-react' import { useTheme } from 'next-themes' import { docsConfig } from '@/config/docs' diff --git a/packages/ui-patterns/Cmdk/AiCommand.tsx b/packages/ui-patterns/Cmdk/AiCommand.tsx index c44fa05509c..c98472451e6 100644 --- a/packages/ui-patterns/Cmdk/AiCommand.tsx +++ b/packages/ui-patterns/Cmdk/AiCommand.tsx @@ -14,7 +14,6 @@ import { SSE } from 'sse.js' import { AiIconAnimation, Button, - IconAlertTriangle, IconCornerDownLeft, IconUser, Input, @@ -29,6 +28,7 @@ import { useCommandMenu } from './CommandMenuProvider' import ReactMarkdown from 'react-markdown' import remarkGfm from 'remark-gfm' import { cn } from 'ui/src/lib/utils' +import { StatusIcon } from '../Icons/StatusIcons' const questions = [ 'How do I get started with Supabase?', @@ -443,13 +443,17 @@ const AiCommand = () => { )} {hasError && ( -
- -

- Sorry, looks like Clippy is having a hard time! -

-

Please try again in a bit.

-
diff --git a/packages/ui-patterns/Cmdk/Command.utils.tsx b/packages/ui-patterns/Cmdk/Command.utils.tsx index d9c1683873a..3ef1bc99bf6 100644 --- a/packages/ui-patterns/Cmdk/Command.utils.tsx +++ b/packages/ui-patterns/Cmdk/Command.utils.tsx @@ -85,13 +85,7 @@ export const CommandDialog = ({ }} hideClose size={'xlarge'} - className={cn( - '!bg-overlay/90 backdrop-filter backdrop-blur-sm', - '!border-overlay/90', - 'transition ease-out', - 'place-self-start mx-auto top-24', - animateBounce ? 'scale-[101.5%]' : 'scale-100' - )} + className={cn('place-self-start mx-auto top-24')} > @@ -134,7 +127,7 @@ export const CommandInput = React.forwardRef< className={cn( 'flex h-11 w-full rounded-md bg-transparent px-4 py-7 text-sm outline-none', 'focus:shadow-none focus:ring-transparent', - 'text-foreground-light placeholder:text-border-stronger disabled:cursor-not-allowed disabled:opacity-50 border-0', + 'text-foreground-light placeholder:text-foreground-muted disabled:cursor-not-allowed disabled:opacity-50 border-0', className )} {...props} @@ -187,7 +180,7 @@ export const CommandGroup = React.forwardRef< {query}) + returnValue.push({query}) } return returnValue diff --git a/packages/ui-patterns/Cmdk/DocsSearch.tsx b/packages/ui-patterns/Cmdk/DocsSearch.tsx index 4c1f87ac39d..58ac912536f 100644 --- a/packages/ui-patterns/Cmdk/DocsSearch.tsx +++ b/packages/ui-patterns/Cmdk/DocsSearch.tsx @@ -4,20 +4,13 @@ import { DocsSearchResultType as PageType, useDocsSearch, } from 'common' -import { - AlertTriangle, - Book, - ChevronRight, - Github, - Hash, - MessageSquare, - Search, -} from 'lucide-react' +import { Book, ChevronRight, Github, Hash, Loader2, MessageSquare, Search } from 'lucide-react' import { useRouter } from 'next/router' import { useEffect, useRef } from 'react' import { Button } from 'ui' import { CommandGroup, CommandItem, CommandLabel, TextHighlighter } from './Command.utils' import { useCommandMenu } from './CommandMenuProvider' +import { StatusIcon } from '../Icons/StatusIcons' const questions = [ 'How do I get started with Supabase?', @@ -143,16 +136,14 @@ const DocsSearch = () => { className=" transition w-6 h-6 - bg-alternative - group-aria-selected:scale-[105%] - group-aria-selected:bg-foreground - text-foreground - group-aria-selected:text-background + bg-surface-100 + border + group-aria-selected:bg-surface-200 + group-aria-selected:text-foreground-lighter + text-foreground-muted rounded flex items-center justify-center - - group-aria-selected:[&_svg]:scale-[103%] " {...props} /> @@ -198,7 +189,7 @@ const DocsSearch = () => { {page.sections.length > 0 && ( -
+
{page.sections.map((section, i) => ( { >
{getPageSectionIcon(page)} -
+
@@ -261,27 +252,30 @@ const DocsSearch = () => { )} {state.status === 'loading' && state.staleResults.length === 0 && ( -
-

Searching for results

+
+ +

Searching for results

)} {state.status === 'noResults' && ( -
- -

No results found.

-
)} {state.status === 'error' && ( -
- -

- Sorry, looks like we're having some issues with search! -

-

Please try again in a bit.

-
diff --git a/packages/ui-patterns/Cmdk/GenerateSQL/GenerateSQL.tsx b/packages/ui-patterns/Cmdk/GenerateSQL/GenerateSQL.tsx index 2d31fc7317e..6caba2c04b8 100644 --- a/packages/ui-patterns/Cmdk/GenerateSQL/GenerateSQL.tsx +++ b/packages/ui-patterns/Cmdk/GenerateSQL/GenerateSQL.tsx @@ -21,6 +21,7 @@ import { SAMPLE_QUERIES } from '../Command.constants' import SQLOutputActions from './SQLOutputActions' import { generatePrompt } from './GenerateSQL.utils' import { ExcludeSchemaAlert, IncludeSchemaAlert, AiWarning } from '../Command.alerts' +import { StatusIcon } from '../../Icons/StatusIcons' const GenerateSQL = () => { const [includeSchemaMetadata, setIncludeSchemaMetadata] = useState(false) @@ -238,13 +239,17 @@ const GenerateSQL = () => {
)} {hasError && ( -
- -

- Sorry, looks like Clippy is having a hard time! -

-

Please try again in a bit.

-