From 7b45a6b95631f6525222c1916448213abfe859df Mon Sep 17 00:00:00 2001 From: ManishMadan2882 Date: Tue, 17 Jun 2025 12:03:36 +0530 Subject: [PATCH 1/3] (feat:agentDetails) copy button ui --- frontend/src/index.css | 2 + frontend/src/modals/AgentDetailsModal.tsx | 53 +++++++++++++---------- frontend/tailwind.config.cjs | 3 ++ 3 files changed, 36 insertions(+), 22 deletions(-) diff --git a/frontend/src/index.css b/frontend/src/index.css index ee9aa0c2..7d2f958a 100644 --- a/frontend/src/index.css +++ b/frontend/src/index.css @@ -1,3 +1,5 @@ +@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@300;400;500;700&display=swap'); + @tailwind base; @tailwind components; @tailwind utilities; diff --git a/frontend/src/modals/AgentDetailsModal.tsx b/frontend/src/modals/AgentDetailsModal.tsx index b18eb1ca..0c94ce6e 100644 --- a/frontend/src/modals/AgentDetailsModal.tsx +++ b/frontend/src/modals/AgentDetailsModal.tsx @@ -94,24 +94,21 @@ export default function AgentDetailsModal({

Public Link

- {sharedToken && ( -
+
+ {sharedToken ? ( +
+

+ {`${baseURL}/shared/agent/${sharedToken}`} -

- )} - - {sharedToken ? ( -
-

- {`${baseURL}/shared/agent/${sharedToken}`}

) : ( )} @@ -141,21 +150,21 @@ export default function AgentDetailsModal({

Webhook URL

- {webhookUrl && ( -
- -
- )} {webhookUrl ? ( -
-

+

+

{webhookUrl} +

) : (
{sharedToken ? ( -
+

{`${baseURL}/shared/agent/${sharedToken}`}

+ + Learn more + External link +
) : ( )} @@ -152,19 +179,32 @@ export default function AgentDetailsModal({
{webhookUrl ? ( -
+

{webhookUrl}

+ + Learn more + External link +
) : (