From 043d1c8cb83a8871709ef4ea46238625194d608e Mon Sep 17 00:00:00 2001 From: Ryan Hopper-Lowe <46546486+ryanhopperlowe@users.noreply.github.com> Date: Fri, 22 Nov 2024 17:12:45 -0600 Subject: [PATCH] Admin Theme Redesign (#666) * feat: update admin ui theming Signed-off-by: Ryan Hopper-Lowe * feat: theme touch ups to buttons/links * fix: make auth prompt CTAs more apparent in chat --------- Signed-off-by: Ryan Hopper-Lowe --- ui/admin/app/components/Typography.tsx | 2 +- ui/admin/app/components/agent/Agent.tsx | 47 +++-- ui/admin/app/components/agent/PastThreads.tsx | 6 +- ui/admin/app/components/agent/ToolEntry.tsx | 4 +- ui/admin/app/components/chat/Chatbar.tsx | 7 +- ui/admin/app/components/chat/Message.tsx | 23 +- ui/admin/app/components/chat/NoMessages.tsx | 9 +- ui/admin/app/components/composed/CopyText.tsx | 2 +- .../app/components/composed/DataTable.tsx | 4 +- ui/admin/app/components/header/HeaderNav.tsx | 2 +- .../knowledge/AgentKnowledgePanel.tsx | 2 +- .../components/oauth-apps/OAuthAppTile.tsx | 4 +- .../oauth-apps/custom/CustomOAuthAppForm.tsx | 2 +- ui/admin/app/components/sidebar/Sidebar.tsx | 5 +- ui/admin/app/components/thread/ThreadMeta.tsx | 2 +- ui/admin/app/components/tools/CreateTool.tsx | 6 +- ui/admin/app/components/tools/ToolCatalog.tsx | 2 +- .../components/tools/toolGrid/ToolCard.tsx | 7 +- ui/admin/app/components/ui/badge.tsx | 2 +- ui/admin/app/components/ui/button.tsx | 17 +- ui/admin/app/components/ui/card.tsx | 5 +- ui/admin/app/components/ui/link.tsx | 2 +- ui/admin/app/components/ui/sidebar.tsx | 2 +- ui/admin/app/components/ui/table.tsx | 2 +- .../app/components/workflow/steps/Step.tsx | 4 +- ui/admin/app/lib/model/runs.ts | 2 +- ui/admin/app/routes/_auth.agents.$agent.tsx | 2 +- ui/admin/app/routes/_auth.threads.tsx | 2 +- ui/admin/app/routes/_auth.tools._index.tsx | 5 +- ui/admin/app/tailwind.css | 199 +++++++++++------- ui/admin/tailwind.config.ts | 15 +- 31 files changed, 225 insertions(+), 170 deletions(-) diff --git a/ui/admin/app/components/Typography.tsx b/ui/admin/app/components/Typography.tsx index 37ca4391..fcac44c1 100644 --- a/ui/admin/app/components/Typography.tsx +++ b/ui/admin/app/components/Typography.tsx @@ -99,7 +99,7 @@ export function TypographyPAccent({ ...props }: TypographyProps<"p">) { return ( - + {children} ); diff --git a/ui/admin/app/components/agent/Agent.tsx b/ui/admin/app/components/agent/Agent.tsx index 4eb265ec..ec58fde9 100644 --- a/ui/admin/app/components/agent/Agent.tsx +++ b/ui/admin/app/components/agent/Agent.tsx @@ -12,7 +12,7 @@ import { PastThreads } from "~/components/agent/PastThreads"; import { ToolForm } from "~/components/agent/ToolForm"; import { AgentKnowledgePanel } from "~/components/knowledge"; import { Button } from "~/components/ui/button"; -import { Card } from "~/components/ui/card"; +import { CardDescription } from "~/components/ui/card"; import { ScrollArea } from "~/components/ui/scroll-area"; import { useDebounce } from "~/hooks/useDebounce"; @@ -55,24 +55,24 @@ export function Agent({ className, onRefresh }: AgentProps) { onChange={partialSetAgent} /> - +
- +
- +
Tools - + Add tools the allow the agent to perform useful actions such as searching the web, reading files, or interacting with other systems. - + - +
- +
Knowledge - + Provide knowledge to the agent in the form of files, website, or external links in order to give it context about various topics. - + - +
-