From 881eadfa70c04c310b9967b61f1337670f07bde7 Mon Sep 17 00:00:00 2001 From: Timothy Carambat Date: Thu, 8 May 2025 09:30:54 -0700 Subject: [PATCH] minor UI patches (#3784) --- .../src/components/Modals/NewWorkspace.jsx | 1 + .../src/components/WorkspaceChat/index.jsx | 41 +++++++++++-------- 2 files changed, 26 insertions(+), 16 deletions(-) diff --git a/frontend/src/components/Modals/NewWorkspace.jsx b/frontend/src/components/Modals/NewWorkspace.jsx index 5eed3773..bd2d2bd5 100644 --- a/frontend/src/components/Modals/NewWorkspace.jsx +++ b/frontend/src/components/Modals/NewWorkspace.jsx @@ -62,6 +62,7 @@ export default function NewWorkspaceModal({ hideModal = noop }) { placeholder={t("new-workspace.placeholder")} required={true} autoComplete="off" + autoFocus={true} /> {error && ( diff --git a/frontend/src/components/WorkspaceChat/index.jsx b/frontend/src/components/WorkspaceChat/index.jsx index 0621693e..a4d601dc 100644 --- a/frontend/src/components/WorkspaceChat/index.jsx +++ b/frontend/src/components/WorkspaceChat/index.jsx @@ -6,6 +6,7 @@ import paths from "@/utils/paths"; import ModalWrapper from "../ModalWrapper"; import { useParams } from "react-router-dom"; import { DnDFileUploaderProvider } from "./ChatContainer/DnDWrapper"; +import { WarningCircle } from "@phosphor-icons/react"; import { TTSProvider, useWatchForAutoPlayAssistantTTSResponse, @@ -41,24 +42,32 @@ export default function WorkspaceChat({ loading, workspace }) { <> {loading === false && !workspace && ( -
-
-

- Workspace not found! -

-

- It looks like a workspace by this name is not available. -

- -
- - Go back to homepage - +
+
+
+ +

+ Workspace not found +

+
+

+ The workspace you're looking for is not available. It may have + been deleted or you may not have access to it. +

+
+
)}