From 0424f8fe5577e760374c69c05d819d8a5a8293d0 Mon Sep 17 00:00:00 2001 From: Marco Beretta <81851188+berry-13@users.noreply.github.com> Date: Fri, 21 Jun 2024 15:58:04 +0200 Subject: [PATCH] =?UTF-8?q?=F0=9F=8E=A8=20style:=20settings=20tab=20update?= =?UTF-8?q?=20(#3088)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * style: settings UI update * style: update UI * style: update button style * fix: scroll settings on mobile * feat: `?` for settings --- client/src/common/types.ts | 1 + .../components/Chat/Input/OptionsPopover.tsx | 2 +- client/src/components/Nav/Settings.tsx | 50 +++--- .../Nav/SettingsTabs/Account/Account.tsx | 8 +- .../Nav/SettingsTabs/Account/Avatar.tsx | 7 +- .../SettingsTabs/Account/DeleteAccount.tsx | 23 ++- .../components/Nav/SettingsTabs/Beta/Beta.tsx | 2 +- .../Nav/SettingsTabs/Beta/LaTeXParsing.tsx | 6 +- .../Nav/SettingsTabs/Beta/ModularChat.tsx | 2 +- .../Nav/SettingsTabs/DangerButton.tsx | 11 +- .../components/Nav/SettingsTabs/Data/Data.tsx | 2 +- .../SettingsTabs/Data/DeleteCacheButton.tsx | 1 + .../SettingsTabs/Data/ImportConversations.tsx | 7 +- .../SettingsTabs/Data/RevokeKeysButton.tsx | 1 + .../Nav/SettingsTabs/Data/SharedLinks.tsx | 2 +- .../SettingsTabs/General/ArchivedChats.tsx | 5 +- .../Nav/SettingsTabs/General/General.tsx | 11 +- .../General/HideSidePanelSwitch.tsx | 3 +- .../Nav/SettingsTabs/HoverCardSettings.tsx | 25 +++ .../Nav/SettingsTabs/Messages/EnterToSend.tsx | 6 +- .../SettingsTabs/Messages/ForkSettings.tsx | 12 +- .../Nav/SettingsTabs/Messages/Messages.tsx | 2 +- .../Nav/SettingsTabs/Messages/SaveDraft.tsx | 8 +- .../SettingsTabs/Messages/ShowCodeSwitch.tsx | 1 + .../Speech/ConversationModeSwitch.tsx | 9 +- .../Speech/STT/EngineSTTDropdown.tsx | 2 +- .../Nav/SettingsTabs/Speech/Speech.tsx | 166 ++++++++++++------ .../Speech/TTS/EngineTTSDropdown.tsx | 2 +- .../SettingsTabs/Speech/TTS/VoiceDropdown.tsx | 1 - client/src/components/svg/CircleHelpIcon.tsx | 22 +++ client/src/components/svg/index.ts | 1 + client/src/components/ui/Dialog.tsx | 69 +++++--- client/src/components/ui/Dropdown.tsx | 37 +++- client/src/components/ui/Switch.tsx | 4 +- client/src/localization/languages/Eng.ts | 17 +- client/src/style.css | 4 +- 36 files changed, 359 insertions(+), 173 deletions(-) create mode 100644 client/src/components/Nav/SettingsTabs/HoverCardSettings.tsx create mode 100644 client/src/components/svg/CircleHelpIcon.tsx diff --git a/client/src/common/types.ts b/client/src/common/types.ts index fc515f138a..c7afb6872c 100644 --- a/client/src/common/types.ts +++ b/client/src/common/types.ts @@ -303,6 +303,7 @@ export type TDangerButtonProps = { actionTextCode: string; dataTestIdInitial: string; dataTestIdConfirm: string; + infoDescriptionCode?: string; confirmActionTextCode?: string; }; diff --git a/client/src/components/Chat/Input/OptionsPopover.tsx b/client/src/components/Chat/Input/OptionsPopover.tsx index 8d0a193c41..ce20f84cd8 100644 --- a/client/src/components/Chat/Input/OptionsPopover.tsx +++ b/client/src/components/Chat/Input/OptionsPopover.tsx @@ -66,7 +66,7 @@ export default function OptionsPopover({ {presetsDisabled ? null : (