From bdc06008f9909310fa02f87190ef9fd67ba8d70a Mon Sep 17 00:00:00 2001 From: Avi Gaba Date: Mon, 30 Mar 2026 13:54:37 +0530 Subject: [PATCH 1/4] Polish upload affordances and file page guidance --- app/files/page.tsx | 10 +- components/Sandboxes/NoSandboxFiles.tsx | 44 +++++---- components/Sidebar/NewChatButton.tsx | 2 +- components/Sidebar/RecentChats/ChatItem.tsx | 10 +- components/VercelChat/ChatInput.tsx | 1 + components/VercelChat/FileMentionsInput.tsx | 36 ++++++- components/VercelChat/mentionsStyles.ts | 103 +++++++++++--------- components/ui/button.tsx | 2 +- components/ui/dialog.tsx | 2 +- 9 files changed, 134 insertions(+), 76 deletions(-) diff --git a/app/files/page.tsx b/app/files/page.tsx index 8ae81821f..5a270dbc8 100644 --- a/app/files/page.tsx +++ b/app/files/page.tsx @@ -2,7 +2,15 @@ import SandboxFileTree from "@/components/Sandboxes/SandboxFileTree"; export default async function FilesPage() { return ( -
+
+
+

+ Files +

+

+ Upload repository files for your agent sandbox, including code, docs, assets, and reference material. +

+
); diff --git a/components/Sandboxes/NoSandboxFiles.tsx b/components/Sandboxes/NoSandboxFiles.tsx index aefcacbf7..41429cf2e 100644 --- a/components/Sandboxes/NoSandboxFiles.tsx +++ b/components/Sandboxes/NoSandboxFiles.tsx @@ -21,23 +21,33 @@ export default function NoSandboxFiles({ }); return ( -
- -
- -

- No files yet. Drag and drop files here to upload. -

+
+
+ +
+ +
+

+ Repository Files +

+

+ No files yet. Drag and drop files here to upload them into the agent sandbox workspace. +

+
+
); diff --git a/components/Sidebar/NewChatButton.tsx b/components/Sidebar/NewChatButton.tsx index 750d83398..d13df287a 100644 --- a/components/Sidebar/NewChatButton.tsx +++ b/components/Sidebar/NewChatButton.tsx @@ -12,7 +12,7 @@ const NewChatButton = ({ isExpanded, email, onClick }: NewChatButtonProps) => (