diff --git a/ui/admin/app/components/TruncatedText.tsx b/ui/admin/app/components/TruncatedText.tsx deleted file mode 100644 index 18dbf2977..000000000 --- a/ui/admin/app/components/TruncatedText.tsx +++ /dev/null @@ -1,29 +0,0 @@ -import { cn } from "~/lib/utils"; - -import { TypographyP } from "~/components/Typography"; -import { - Tooltip, - TooltipContent, - TooltipTrigger, -} from "~/components/ui/tooltip"; - -export function TruncatedText({ - content, - className, -}: { - content: React.ReactNode; - className?: string; -}) { - return ( - - -
- {content} -
-
- -

{content}

-
-
- ); -} diff --git a/ui/admin/app/components/Typography.tsx b/ui/admin/app/components/Typography.tsx deleted file mode 100644 index fcac44c10..000000000 --- a/ui/admin/app/components/Typography.tsx +++ /dev/null @@ -1,208 +0,0 @@ -import React, { ReactNode } from "react"; - -import { cn } from "~/lib/utils"; - -type TypographyElement = keyof JSX.IntrinsicElements; - -type TypographyProps = { - children: ReactNode; - className?: string; -} & React.JSX.IntrinsicElements[T]; - -export function TypographyH1({ - children, - className, - ...props -}: TypographyProps<"h1">) { - return ( -

- {children} -

- ); -} - -export function TypographyH2({ - children, - className, - ...props -}: TypographyProps<"h2">) { - return ( -

- {children} -

- ); -} - -export function TypographyH3({ - children, - className, - ...props -}: TypographyProps<"h3">) { - return ( -

- {children} -

- ); -} - -export function TypographyH4({ - children, - className, - ...props -}: TypographyProps<"h4">) { - return ( -

- {children} -

- ); -} - -export function TypographyP({ - children, - className, - ...props -}: TypographyProps<"p">) { - return ( -

- {children} -

- ); -} - -export function TypographyPAccent({ - children, - className, - ...props -}: TypographyProps<"p">) { - return ( - - {children} - - ); -} - -export function TypographyBlockquote({ - children, - className, - ...props -}: TypographyProps<"blockquote">) { - return ( -
- {children} -
- ); -} - -export function TypographyInlineCode({ - children, - className, - ...props -}: TypographyProps<"code">) { - return ( - - {children} - - ); -} - -export function TypographyLead({ - children, - className, - ...props -}: TypographyProps<"p">) { - return ( -

- {children} -

- ); -} - -export function TypographyLarge({ - children, - className, - ...props -}: TypographyProps<"div">) { - return ( -
- {children} -
- ); -} - -export function TypographySmall({ - children, - className, - ...props -}: TypographyProps<"small">) { - return ( - - {children} - - ); -} - -export function TypographyMuted({ - children, - className, - ...props -}: TypographyProps<"p">) { - return ( -

- {children} -

- ); -} - -export function TypographyMutedAccent({ - children, - className, - ...props -}: TypographyProps<"p">) { - return ( -

- {children} -

- ); -} diff --git a/ui/admin/app/components/agent/Agent.tsx b/ui/admin/app/components/agent/Agent.tsx index 5b9979458..bc1fd9c3d 100644 --- a/ui/admin/app/components/agent/Agent.tsx +++ b/ui/admin/app/components/agent/Agent.tsx @@ -7,7 +7,6 @@ import { AssistantNamespace } from "~/lib/model/assistants"; import { AgentService } from "~/lib/service/api/agentService"; import { cn } from "~/lib/utils"; -import { TypographyH4, TypographyP } from "~/components/Typography"; import { useAgent } from "~/components/agent/AgentContext"; import { AgentForm } from "~/components/agent/AgentForm"; import { AgentPublishStatus } from "~/components/agent/AgentPublishStatus"; @@ -111,10 +110,10 @@ export function Agent({ className, currentThreadId, onRefresh }: AgentProps) {
- +

Tools - +

Add tools the allow the agent to perform useful actions @@ -132,10 +131,10 @@ export function Agent({ className, currentThreadId, onRefresh }: AgentProps) {
- +

Environment Variables - +

- +

Knowledge - +

Provide knowledge to the agent in the form of files, website, or external links in order to give it context @@ -172,11 +171,11 @@ export function Agent({ className, currentThreadId, onRefresh }: AgentProps) {