diff --git a/client/src/common/types.ts b/client/src/common/types.ts index 3317b634d1..e78cc5afe5 100644 --- a/client/src/common/types.ts +++ b/client/src/common/types.ts @@ -26,6 +26,11 @@ import type { import type { UseMutationResult } from '@tanstack/react-query'; import type { LucideIcon } from 'lucide-react'; +export enum PromptsEditorMode { + SIMPLE = 'simple', + ADVANCED = 'advanced', +} + export type AudioChunk = { audio: string; isFinal: boolean; diff --git a/client/src/components/Chat/Messages/Content/CodeAnalyze.tsx b/client/src/components/Chat/Messages/Content/CodeAnalyze.tsx index 492d86d624..96bcca9a4b 100644 --- a/client/src/components/Chat/Messages/Content/CodeAnalyze.tsx +++ b/client/src/components/Chat/Messages/Content/CodeAnalyze.tsx @@ -54,11 +54,11 @@ export default function CodeAnalyze({ onClick={() => setShowCode((prev) => !prev)} inProgressText="Analyzing" finishedText="Finished analyzing" - hasInput={!!code?.length} + hasInput={!!code.length} /> {showCode && ( -
+
{logs && (
diff --git a/client/src/components/Chat/Messages/Content/MessageContent.tsx b/client/src/components/Chat/Messages/Content/MessageContent.tsx index 2c919f920a..9a2af8284a 100644 --- a/client/src/components/Chat/Messages/Content/MessageContent.tsx +++ b/client/src/components/Chat/Messages/Content/MessageContent.tsx @@ -67,8 +67,8 @@ const DisplayMessage = ({ text, isCreatedByUser, message, showCursor }: TDisplay
diff --git a/client/src/components/Chat/Messages/Content/Part.tsx b/client/src/components/Chat/Messages/Content/Part.tsx index 2012def642..ae0324addc 100644 --- a/client/src/components/Chat/Messages/Content/Part.tsx +++ b/client/src/components/Chat/Messages/Content/Part.tsx @@ -23,8 +23,8 @@ const DisplayMessage = ({ text, isCreatedByUser = false, message, showCursor }: return (
@@ -58,14 +58,12 @@ export default function Part({ // Access the value property return ( -
- -
+
); } else if ( @@ -107,14 +105,12 @@ export default function Part({ if (isSubmitting && showCursor) { return ( -
- -
+
); } diff --git a/client/src/components/Chat/Messages/Content/ProgressText.tsx b/client/src/components/Chat/Messages/Content/ProgressText.tsx index a90c8ec668..ba5031fac1 100644 --- a/client/src/components/Chat/Messages/Content/ProgressText.tsx +++ b/client/src/components/Chat/Messages/Content/ProgressText.tsx @@ -1,13 +1,16 @@ import * as Popover from '@radix-ui/react-popover'; import { cn } from '~/utils'; +const wrapperClass = + 'progress-text-wrapper text-token-text-secondary relative -mt-[0.75px] h-5 w-full leading-5'; + const Wrapper = ({ popover, children }: { popover: boolean; children: React.ReactNode }) => { if (popover) { return ( -
+
@@ -19,9 +22,9 @@ const Wrapper = ({ popover, children }: { popover: boolean; children: React.Reac } return ( -
+
diff --git a/client/src/components/Chat/Messages/HoverButtons.tsx b/client/src/components/Chat/Messages/HoverButtons.tsx index 40e44f0d90..7da848b849 100644 --- a/client/src/components/Chat/Messages/HoverButtons.tsx +++ b/client/src/components/Chat/Messages/HoverButtons.tsx @@ -72,12 +72,12 @@ export default function HoverButtons({ }; return ( -
+
{TextToSpeech && } {isEditableEndpoint && (