diff --git a/frontend/src/components/WorkspaceChat/ChatContainer/PromptInput/Attachments/index.jsx b/frontend/src/components/WorkspaceChat/ChatContainer/PromptInput/Attachments/index.jsx index ee6155ab2c..29d346333e 100644 --- a/frontend/src/components/WorkspaceChat/ChatContainer/PromptInput/Attachments/index.jsx +++ b/frontend/src/components/WorkspaceChat/ChatContainer/PromptInput/Attachments/index.jsx @@ -10,7 +10,6 @@ import { WarningOctagon, X, } from "@phosphor-icons/react"; -import { humanFileSize } from "@/utils/numbers"; import { REMOVE_ATTACHMENT_EVENT } from "../../DnDWrapper"; import { Tooltip } from "react-tooltip"; @@ -21,7 +20,7 @@ import { Tooltip } from "react-tooltip"; export default function AttachmentManager({ attachments }) { if (attachments.length === 0) return null; return ( -
+
{attachments.map((attachment) => ( ))} @@ -45,21 +44,22 @@ function AttachmentItem({ attachment }) { if (status === "in_progress") { return ( -
+
-
-

{file.name}

-

- {humanFileSize(file.size)} +

+

+ {file.name} +

+

+ Uploading...

@@ -72,29 +72,28 @@ function AttachmentItem({ attachment }) {
- +
-
-

+

+

{file.name}

-

- {error ?? "this file failed to upload"}. It will not be available - in the workspace. +

+ {error ?? "File not embedded!"}

@@ -114,34 +113,35 @@ function AttachmentItem({ attachment }) {
{contentString ? ( {`Preview ) : (
- +
)} -
-

+

+

{file.name}

-

+

Image attached!

@@ -161,25 +161,31 @@ function AttachmentItem({ attachment }) {
- +
-
-

{file.name}

-

+

+

+ {file.name} +

+

File embedded!

diff --git a/frontend/src/components/WorkspaceChat/ChatContainer/PromptInput/index.jsx b/frontend/src/components/WorkspaceChat/ChatContainer/PromptInput/index.jsx index fa1f08530e..14c1b17347 100644 --- a/frontend/src/components/WorkspaceChat/ChatContainer/PromptInput/index.jsx +++ b/frontend/src/components/WorkspaceChat/ChatContainer/PromptInput/index.jsx @@ -256,9 +256,9 @@ export default function PromptInput({ className="flex flex-col gap-y-1 rounded-t-lg md:w-3/4 w-full mx-auto max-w-xl items-center" >
-
+
-
+