From a147daa7a63f2c89f9daa3ee22d9c480d885d9d3 Mon Sep 17 00:00:00 2001 From: JulesBelveze Date: Tue, 26 Nov 2024 15:02:23 +0100 Subject: [PATCH 1/7] [front] - fix: adjust conversation sidebar padding and scroll area - Remove left padding from the conversation sidebar container for a cleaner layout - Add horizontal padding within the scroll area for better content spacing and readability --- front/components/assistant/conversation/SidebarMenu.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/front/components/assistant/conversation/SidebarMenu.tsx b/front/components/assistant/conversation/SidebarMenu.tsx index 0675dbc87cb0..a1a5c35cba73 100644 --- a/front/components/assistant/conversation/SidebarMenu.tsx +++ b/front/components/assistant/conversation/SidebarMenu.tsx @@ -201,7 +201,7 @@ export function AssistantSidebarMenu({ owner }: AssistantSidebarMenuProps) { )} >
-
+
{isMultiSelect ? (
- ) : ( -
-
- )} + {isBuilder(owner) && ( + + )} + Conversations + + setShowDeleteDialog("all")} + icon={TrashIcon} + disabled={conversations.length === 0} + /> + + + + )} +
{isConversationsError && ( )} - {conversationsByDate && Object.keys(conversationsByDate).map((dateLabel) => ( From 1cec5dd49bd59dab797060bc5340b35daa5267d2 Mon Sep 17 00:00:00 2001 From: JulesBelveze Date: Tue, 26 Nov 2024 17:16:27 +0100 Subject: [PATCH 3/7] [front/components/assistant/conversation] - refactor: streamline rendering of sidebar menu actions - Simplified the conditionals by separating the multi-select and default action views into distinct blocks - Removed redundant classes and elements to clean up the UI structure for better maintainability --- .../assistant/conversation/SidebarMenu.tsx | 153 +++++++++--------- 1 file changed, 76 insertions(+), 77 deletions(-) diff --git a/front/components/assistant/conversation/SidebarMenu.tsx b/front/components/assistant/conversation/SidebarMenu.tsx index 9752ebf0e903..9bb80c108f77 100644 --- a/front/components/assistant/conversation/SidebarMenu.tsx +++ b/front/components/assistant/conversation/SidebarMenu.tsx @@ -202,86 +202,85 @@ export function AssistantSidebarMenu({ owner }: AssistantSidebarMenuProps) { >
-
- {isMultiSelect ? ( - <> -
+ ) : ( +
+
+ )} + Conversations + + setShowDeleteDialog("all")} + icon={TrashIcon} + disabled={conversations.length === 0} + /> + + +
+ )} {isConversationsError && (