From 14aba51320320d6898eeab1bea7ec1367a1079bd Mon Sep 17 00:00:00 2001 From: Marco Beretta <81851188+berry-13@users.noreply.github.com> Date: Mon, 26 Oct 2026 00:55:16 +0100 Subject: [PATCH] =?UTF-8?q?=F0=9F=A7=B9=20refactor:=20Remove=20Unused=20Co?= =?UTF-8?q?mponents=20from=20the=20Client=20Package=20(#17437)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Accordion, Breadcrumb, CheckboxButton, FormInput, QuestionMark, InputWithDropdown and the Radix DropdownMenu had no users in the app or the package. The account menu's dividers were the DropdownMenu's separator inside an Ariakit menu; they are now the Ariakit menu's own separators and draw the same. --- client/src/components/Nav/AccountSettings.tsx | 10 +- .../scenarios/account-menu-separators.spec.ts | 34 +++ packages/client/src/components/Accordion.tsx | 62 ----- packages/client/src/components/Breadcrumb.tsx | 127 --------- .../src/components/CheckboxButton.spec.tsx | 18 -- .../client/src/components/CheckboxButton.tsx | 87 ------- .../client/src/components/DropdownMenu.tsx | 242 ------------------ packages/client/src/components/FormInput.tsx | 68 ----- .../src/components/InputWithDropDown.tsx | 159 ------------ .../client/src/components/QuestionMark.tsx | 21 -- packages/client/src/components/focus.spec.tsx | 20 -- packages/client/src/components/index.ts | 7 - packages/client/src/theme/highContrast.css | 2 +- 13 files changed, 41 insertions(+), 816 deletions(-) create mode 100644 e2e/specs/mock/scenarios/account-menu-separators.spec.ts delete mode 100644 packages/client/src/components/Accordion.tsx delete mode 100644 packages/client/src/components/Breadcrumb.tsx delete mode 100644 packages/client/src/components/CheckboxButton.spec.tsx delete mode 100644 packages/client/src/components/CheckboxButton.tsx delete mode 100644 packages/client/src/components/DropdownMenu.tsx delete mode 100644 packages/client/src/components/FormInput.tsx delete mode 100644 packages/client/src/components/InputWithDropDown.tsx delete mode 100644 packages/client/src/components/QuestionMark.tsx diff --git a/client/src/components/Nav/AccountSettings.tsx b/client/src/components/Nav/AccountSettings.tsx index a0a2121c8c..8907a15af9 100644 --- a/client/src/components/Nav/AccountSettings.tsx +++ b/client/src/components/Nav/AccountSettings.tsx @@ -2,7 +2,7 @@ import { useState, memo, useRef } from 'react'; import { useSetAtom } from 'jotai'; import { useSetRecoilState } from 'recoil'; import * as Menu from '@ariakit/react/menu'; -import { GearIcon, DropdownMenuSeparator, Avatar } from '@librechat/client'; +import { GearIcon, Avatar } from '@librechat/client'; import { Archive, ChevronRight, @@ -72,7 +72,9 @@ function HelpSubmenu({