From e4755cb3879364696a4b40a147d66006bef0e54b Mon Sep 17 00:00:00 2001 From: Jack Hsu Date: Fri, 25 Aug 2023 10:01:21 -0400 Subject: [PATCH] feat(nx-dev): use textarea for prompts and show a better "no results"error (#18798) --- nx-dev/feature-ai/src/lib/error-message.tsx | 59 +++++++++++---- nx-dev/feature-ai/src/lib/feed-container.tsx | 16 ++--- nx-dev/feature-ai/src/lib/prompt.tsx | 75 ++++++++++++++------ package.json | 1 + pnpm-lock.yaml | 39 ++++++++++ 5 files changed, 143 insertions(+), 47 deletions(-) diff --git a/nx-dev/feature-ai/src/lib/error-message.tsx b/nx-dev/feature-ai/src/lib/error-message.tsx index c4406b1b6b0a6..233c3610aaaf6 100644 --- a/nx-dev/feature-ai/src/lib/error-message.tsx +++ b/nx-dev/feature-ai/src/lib/error-message.tsx @@ -1,19 +1,52 @@ -import { XCircleIcon } from '@heroicons/react/24/outline'; +import { + XCircleIcon, + ExclamationTriangleIcon, +} from '@heroicons/react/24/outline'; export function ErrorMessage({ error }: { error: any }): JSX.Element { - return ( -
-
-
-