From 4640e1b1242fbe23eef2d92742e78cfe0ea63733 Mon Sep 17 00:00:00 2001 From: Danny Avila Date: Mon, 9 Dec 2024 19:50:03 -0500 Subject: [PATCH] =?UTF-8?q?=F0=9F=9B=A1=EF=B8=8F=20feat:=20Add=20Role=20Dr?= =?UTF-8?q?opdown=20to=20Prompt/Agents=20Admin=20Settings=20(#4922)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * style: update AdminSettings dialog content styles for improved accessibility/theming * style: update icon colors in ExportAndShareMenu for improved theming * feat: enhance DropdownPopup component with additional props for customization * feat: add role selection dropdown to AdminSettings for enhanced user permissions management * feat: add role selection dropdown to AdminSettings for Prompt permission management * style: add gap to button in AdminSettings for improved layout * feat: add warning message for Admin role access in Permissions settings --- .../components/Chat/ExportAndShareMenu.tsx | 6 +- .../src/components/Prompts/AdminSettings.tsx | 148 ++++++++++++------ .../SidePanel/Agents/AdminSettings.tsx | 144 ++++++++++++----- client/src/components/ui/DropdownPopup.tsx | 20 ++- client/src/localization/languages/Eng.ts | 4 + 5 files changed, 227 insertions(+), 95 deletions(-) diff --git a/client/src/components/Chat/ExportAndShareMenu.tsx b/client/src/components/Chat/ExportAndShareMenu.tsx index 52684b0b1a2..420c7533108 100644 --- a/client/src/components/Chat/ExportAndShareMenu.tsx +++ b/client/src/components/Chat/ExportAndShareMenu.tsx @@ -50,12 +50,12 @@ export default function ExportAndShareMenu({ { label: localize('com_endpoint_export'), onClick: exportHandler, - icon: , + icon: , }, { label: localize('com_ui_share'), onClick: shareHandler, - icon: , + icon: , show: isSharedButtonEnabled, }, ]; @@ -72,7 +72,7 @@ export default function ExportAndShareMenu({ aria-label="Export options" className="inline-flex size-10 items-center justify-center rounded-lg border border-border-light bg-transparent text-text-primary transition-all ease-in-out hover:bg-surface-tertiary disabled:pointer-events-none disabled:opacity-50 radix-state-open:bg-surface-tertiary" > -