From ccd9267262f9cd5d0beaac053d6cd5df7516dca2 Mon Sep 17 00:00:00 2001 From: Marco Beretta <81851188+berry-13@users.noreply.github.com> Date: Tue, 29 Sep 2026 19:29:10 +0200 Subject: [PATCH] =?UTF-8?q?=F0=9F=93=90=20fix:=20Draw=20Controls=20at=20th?= =?UTF-8?q?e=20Theme=20Control=20Radius=20(#16481)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * fix: Draw Controls at the Theme Control Radius Dropdown gains a shape prop in Button's vocabulary. Omitted, the trigger takes the theme control radius, which equals rounded-xl in the default theme, so the settings selects follow a theme's control corner instead of its dialog step. The marketplace sort and the prompts filter ask for shape="default" rather than overriding the radius locally. The settings nav tabs, the agent builder footer buttons and the builder action controls move from rounded-xl to the control radius. The Click UI drift guard now measures primitive color and shape parity against Click UI's component tokens and holds a floor per mode. * test: Choose the Theme per Navigation Instead of Stacking Init Scripts --- client/src/components/Agents/SortDropdown.tsx | 3 +- .../src/components/Nav/Settings/Sidebar.tsx | 2 +- .../Prompts/sidebar/FilterPrompts.tsx | 3 +- .../Agents/Advanced/AdvancedButton.tsx | 1 + .../Agents/Version/VersionButton.tsx | 1 + .../SidePanel/Agents/Version/VersionPanel.tsx | 1 + .../SidePanel/Builder/ActionsAuth.tsx | 2 +- .../SidePanel/Builder/ActionsPanel.tsx | 4 +- .../clickhouse-control-radius.spec.ts | 130 +++++ eslint-suppressions.json | 4 +- .../client/src/components/Dropdown.spec.tsx | 38 ++ packages/client/src/components/Dropdown.tsx | 19 +- packages/client/src/theme/themes/clickui.json | 42 ++ .../client/src/theme/themes/clickui.spec.ts | 452 +++++++++++++++++- 14 files changed, 692 insertions(+), 10 deletions(-) create mode 100644 e2e/specs/mock/scenarios/clickhouse-control-radius.spec.ts diff --git a/client/src/components/Agents/SortDropdown.tsx b/client/src/components/Agents/SortDropdown.tsx index 5fdfb604bd..6022e207d2 100644 --- a/client/src/components/Agents/SortDropdown.tsx +++ b/client/src/components/Agents/SortDropdown.tsx @@ -47,7 +47,8 @@ const SortDropdown: React.FC = ({ value, onChange }) => { options={options} sizeClasses="w-40" icon={