From fe7013562b215e574e2ab245c58a6e89ede84017 Mon Sep 17 00:00:00 2001 From: Marco Beretta <81851188+berry-13@users.noreply.github.com> Date: Thu, 20 Feb 2025 22:17:43 +0100 Subject: [PATCH] =?UTF-8?q?=E2=9C=A8=20style:=20Enhance=20Styling=20&=20Ac?= =?UTF-8?q?cessibility=20(#5956)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * ✨ feat: Enhance UI Components with Shadows and Accessibility Improvements * 🔧 fix: Correct Category Labels and Values in API Model & Adjust Button Class in Prompt List --- api/models/Categories.js | 36 ++++++++-------- client/src/components/Prompts/Command.tsx | 2 +- client/src/components/Prompts/Description.tsx | 2 +- client/src/components/Prompts/Groups/List.tsx | 2 +- .../src/components/Prompts/PromptEditor.tsx | 3 +- client/src/components/Prompts/PromptForm.tsx | 3 +- .../components/Prompts/PromptVariables.tsx | 4 +- .../SidePanel/Agents/ModelPanel.tsx | 13 +++++- client/src/components/ui/SelectDropDown.tsx | 41 ++++++++++--------- 9 files changed, 59 insertions(+), 47 deletions(-) diff --git a/api/models/Categories.js b/api/models/Categories.js index 605b68d176..6fb88fb995 100644 --- a/api/models/Categories.js +++ b/api/models/Categories.js @@ -3,40 +3,40 @@ const { logger } = require('~/config'); const options = [ { - label: 'idea', - value: 'com_ui_idea', + label: 'com_ui_idea', + value: 'idea', }, { - label: 'travel', - value: 'com_ui_travel', + label: 'com_ui_travel', + value: 'travel', }, { - label: 'teach_or_explain', - value: 'com_ui_teach_or_explain', + label: 'com_ui_teach_or_explain', + value: 'teach_or_explain', }, { - label: 'write', - value: 'com_ui_write', + label: 'com_ui_write', + value: 'write', }, { - label: 'shop', - value: 'com_ui_shop', + label: 'com_ui_shop', + value: 'shop', }, { - label: 'code', - value: 'com_ui_code', + label: 'com_ui_code', + value: 'code', }, { - label: 'misc', - value: 'com_ui_misc', + label: 'com_ui_misc', + value: 'misc', }, { - label: 'roleplay', - value: 'com_ui_roleplay', + label: 'com_ui_roleplay', + value: 'roleplay', }, { - label: 'finance', - value: 'com_ui_finance', + label: 'com_ui_finance', + value: 'finance', }, ]; diff --git a/client/src/components/Prompts/Command.tsx b/client/src/components/Prompts/Command.tsx index f64fee4546..e670410ae8 100644 --- a/client/src/components/Prompts/Command.tsx +++ b/client/src/components/Prompts/Command.tsx @@ -44,7 +44,7 @@ const Command = ({ } return ( -
+