From 77eab962a67014ceb329bd140e0f92671d31f9f0 Mon Sep 17 00:00:00 2001 From: Jules Belveze <32683010+JulesBelveze@users.noreply.github.com> Date: Mon, 28 Oct 2024 14:17:01 +0100 Subject: [PATCH] [front] - chore: hide conversation message labels (#8274) * [front] - refactor: replace options objects with Button components in AgentMessage - Converted action options in AgentMessage to use Button component for improved maintainability and consistency - Added tooltip to buttons for enhanced user experience and accessibility * [front] - feature: update @dust-tt/sparkle to v0.2.281-rc-1 - Upgraded @dust-tt/sparkle to include new features and improvements in release candidate version - Ensured package-lock.json reflects the updated resolution and integrity of the package * [front] - feature: update copy and retry buttons in AgentMessage component - Added 'outline' variant and 'xs' size to the copy and retry buttons for visual consistency - Enhancements aim to improve the user interface by scaling the buttons appropriately within the agent message bubble --------- Co-authored-by: Jules --- .../assistant/conversation/AgentMessage.tsx | 32 +++++++++++-------- front/package-lock.json | 8 ++--- front/package.json | 2 +- 3 files changed, 24 insertions(+), 18 deletions(-) diff --git a/front/components/assistant/conversation/AgentMessage.tsx b/front/components/assistant/conversation/AgentMessage.tsx index dce431628196..c103f2c1fbcf 100644 --- a/front/components/assistant/conversation/AgentMessage.tsx +++ b/front/components/assistant/conversation/AgentMessage.tsx @@ -325,23 +325,29 @@ export function AgentMessage({ message.status === "failed" ? [] : [ - { - label: "Copy to clipboard", - icon: ClipboardIcon, - onClick: () => { +