From 9a68fe6da08c8fb979a149b50f0d581b15f33b4d Mon Sep 17 00:00:00 2001 From: Marco Beretta <81851188+berry-13@users.noreply.github.com> Date: Mon, 6 Jul 2026 17:39:26 +0200 Subject: [PATCH] refactor(client): migrate Agent Builder and Tool Library to @librechat/client Swap raw buttons, inputs, labels, textareas and native title tooltips for the @librechat/client Button/Input/Label/Textarea/TooltipAnchor components across the Agent Builder panel (SidePanel/Agents) and the Tools marketplace. Remove heavy input focus rings in favor of subtle borders, soften dropdown trigger borders, and convert stray shadcn/raw colors in touched lines to semantic tokens. Localize the tool delete aria-label and toast messages. Update co-located test mocks to provide the newly-used Button component. --- .../SidePanel/Agents/ActionsInput.tsx | 29 +++++++---- .../SidePanel/Agents/ActionsTable/Table.tsx | 2 +- .../Agents/Advanced/AdvancedButton.tsx | 9 ++-- .../Agents/Advanced/AdvancedPanel.tsx | 49 +++++++++-------- .../Agents/Advanced/AgentHandoffs.tsx | 11 ++-- .../SidePanel/Agents/Advanced/AgentList.tsx | 13 ++--- .../Agents/Advanced/MaxAgentSteps.tsx | 6 +-- .../SidePanel/Agents/Advanced/ui.tsx | 9 ++-- .../SidePanel/Agents/AgentAvatar.tsx | 2 +- .../SidePanel/Agents/AgentConfig.tsx | 14 ++--- .../SidePanel/Agents/AgentFooter.tsx | 17 +++--- .../components/SidePanel/Agents/AgentTool.tsx | 26 +++++----- .../SidePanel/Agents/DeleteButton.tsx | 4 +- .../SidePanel/Agents/DuplicateAgent.tsx | 31 ++++++----- .../SidePanel/Agents/FileContext.tsx | 8 +-- .../SidePanel/Agents/ImageVision.tsx | 8 +-- .../SidePanel/Agents/Instructions.tsx | 52 +++++++++---------- .../components/SidePanel/Agents/MCPIcon.tsx | 19 ++----- .../SidePanel/Agents/MCPToolItem.tsx | 23 ++++---- .../components/SidePanel/Agents/Memory.tsx | 11 ++-- .../SidePanel/Agents/ModelPanel.tsx | 19 +++---- .../SidePanel/Agents/Search/ApiKeyDialog.tsx | 10 ++-- .../SidePanel/Agents/Tools/ActionEditor.tsx | 2 +- .../Tools/ItemDialog/sections/McpSection.tsx | 20 +++---- .../Tools/ItemDialog/sections/ToolSection.tsx | 10 ++-- .../SidePanel/Agents/Tools/SkillsDialog.tsx | 5 +- .../SidePanel/Agents/Tools/ToolRow.tsx | 23 ++++---- .../SidePanel/Agents/Tools/ToolsSection.tsx | 4 +- .../Tools/__tests__/ToolsSection.spec.tsx | 10 ++++ .../Agents/Version/VersionButton.tsx | 9 ++-- .../Agents/Version/VersionContent.tsx | 4 +- .../SidePanel/Agents/Version/VersionItem.tsx | 10 ++-- .../SidePanel/Agents/Version/VersionPanel.tsx | 11 ++-- .../Version/__tests__/VersionItem.spec.tsx | 2 + .../Agents/__tests__/AgentFooter.spec.tsx | 8 +++ .../Agents/__tests__/FileContext.spec.tsx | 8 +++ .../Agents/__tests__/MCPToolItem.spec.tsx | 8 +++ client/src/locales/en/translation.json | 3 ++ 38 files changed, 283 insertions(+), 226 deletions(-) diff --git a/client/src/components/SidePanel/Agents/ActionsInput.tsx b/client/src/components/SidePanel/Agents/ActionsInput.tsx index 4311311734..4d32acb714 100644 --- a/client/src/components/SidePanel/Agents/ActionsInput.tsx +++ b/client/src/components/SidePanel/Agents/ActionsInput.tsx @@ -8,10 +8,12 @@ import { AuthTypeEnum, } from 'librechat-data-provider'; import { + Label, Button, Spinner, Textarea, OGDialog, + TooltipAnchor, OGDialogTitle, OGDialogHeader, OGDialogContent, @@ -243,15 +245,20 @@ export default function ActionsInput({ > {localize('com_ui_schema')} - + setIsSchemaDialogOpen(true)} + aria-label={localize('com_ui_expand_editor')} + className="inline-flex h-7 w-7 items-center justify-center rounded-lg text-text-secondary transition-colors hover:bg-surface-secondary hover:text-text-primary focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-text-primary" + > + + + } + />