From a082d6faeeeb787d0f58b0cf0b546098f1a1c15d Mon Sep 17 00:00:00 2001 From: Ryan Hopper-Lowe <46546486+ryanhopperlowe@users.noreply.github.com> Date: Fri, 15 Nov 2024 14:38:16 -0600 Subject: [PATCH] feat: open agent refname url in new tab from agent page (#604) --- .../components/agent/AgentPublishStatus.tsx | 25 +++++++++++--- ui/admin/app/components/composed/CopyText.tsx | 34 +++++++++++-------- ui/admin/app/lib/routers/baseRouter.ts | 4 +++ 3 files changed, 43 insertions(+), 20 deletions(-) diff --git a/ui/admin/app/components/agent/AgentPublishStatus.tsx b/ui/admin/app/components/agent/AgentPublishStatus.tsx index deb976d95..5dfdfd684 100644 --- a/ui/admin/app/components/agent/AgentPublishStatus.tsx +++ b/ui/admin/app/components/agent/AgentPublishStatus.tsx @@ -4,6 +4,7 @@ import { $path } from "remix-routes"; import useSWR from "swr"; import { AgentBase } from "~/lib/model/agents"; +import { ConsumptionUrl } from "~/lib/routers/baseRouter"; import { AssistantApiService } from "~/lib/service/api/assistantApiService"; import { TypographySmall } from "~/components/Typography"; @@ -86,12 +87,26 @@ export function AgentPublishStatus({ if (!agent.refNameAssigned) return
; + const agentUrl = ConsumptionUrl(`/${agent.refName}`); + return ( -