From f4f3dd479e67267ca0f407195d64693a4409d93e Mon Sep 17 00:00:00 2001 From: pablodanswer Date: Wed, 28 Aug 2024 08:45:55 -0700 Subject: [PATCH 01/11] ux improvements --- web/src/app/admin/add-connector/page.tsx | 2 +- .../status/CCPairIndexingStatusTable.tsx | 2 +- web/src/app/chat/ChatBanner.tsx | 1 - web/src/components/IsPublicGroupSelector.tsx | 121 +++++++++--------- web/src/components/chat_search/Header.tsx | 6 +- .../components/search/filtering/Filters.tsx | 26 ++-- .../components/search/filtering/TagFilter.tsx | 2 +- 7 files changed, 82 insertions(+), 78 deletions(-) diff --git a/web/src/app/admin/add-connector/page.tsx b/web/src/app/admin/add-connector/page.tsx index bf7032b5f90..8d73131e69a 100644 --- a/web/src/app/admin/add-connector/page.tsx +++ b/web/src/app/admin/add-connector/page.tsx @@ -112,7 +112,7 @@ export default function Page() { value={searchTerm} onChange={(e) => setSearchTerm(e.target.value)} onKeyDown={handleKeyPress} - className="flex mt-2 max-w-sm h-9 w-full rounded-md border-2 border border-input bg-transparent px-3 py-1 text-sm shadow-sm transition-colors placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring" + className="ml-1 w-96 h-9 flex-none rounded-md border border-border bg-background-50 px-3 py-1 text-sm shadow-sm transition-colors placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring" /> {Object.entries(categorizedSources) diff --git a/web/src/app/admin/indexing/status/CCPairIndexingStatusTable.tsx b/web/src/app/admin/indexing/status/CCPairIndexingStatusTable.tsx index a797933ced7..5e5eb04379d 100644 --- a/web/src/app/admin/indexing/status/CCPairIndexingStatusTable.tsx +++ b/web/src/app/admin/indexing/status/CCPairIndexingStatusTable.tsx @@ -457,7 +457,7 @@ export function CCPairIndexingStatusTable({ placeholder="Search connectors..." value={searchTerm} onChange={(e) => setSearchTerm(e.target.value)} - className="ml-2 w-96 h-9 flex-none rounded-md border border-border bg-background-50 px-3 py-1 text-sm shadow-sm transition-colors placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring" + className="ml-1 w-96 h-9 flex-none rounded-md border border-border bg-background-50 px-3 py-1 text-sm shadow-sm transition-colors placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring" />