From 2189d909b5d24083bb6ce2292ceea591adc17161 Mon Sep 17 00:00:00 2001 From: Marco Beretta <81851188+berry-13@users.noreply.github.com> Date: Tue, 6 Oct 2026 10:00:02 +0200 Subject: [PATCH] =?UTF-8?q?=F0=9F=AA=B6=20feat:=20Quiet=20Prompt=20Editor?= =?UTF-8?q?=20Boxes,=20Table=20Columns=20and=20Destructive=20Buttons=20(#1?= =?UTF-8?q?6751)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * feat: Quiet Prompt Editor Boxes, Table Columns and Destructive Buttons for a Theme * fix: Outrank the Cell Border Color With the Column Rule Share * fix: Keep the First Table Cell's Outer Edge Under the Inset Share * fix: Keep the Batched Edit Divider on the Light Border * fix: Keep Web Search Source Row Separators on the Light Border * fix: Quiet the Result Switcher Divider and Keep the RTL Table Edge * fix: Resolve Table Edges by Cell Direction and Keep the Variables Card Opaque in Details * fix: Draw Table Frame Edges in Logical Terms So Direction Needs No Selector * fix: Keep Soft Destructive Hover and Pressed Tints Above 4.5:1 --- .../Chat/Messages/Content/Parts/DiffView.tsx | 2 +- .../Chat/Messages/Content/WebSearch.tsx | 2 +- .../components/Messages/Content/CodeBlock.tsx | 4 +- .../Messages/Content/ResultSwitcher.tsx | 2 +- .../Prompts/display/PromptVariables.tsx | 15 +- .../src/components/Prompts/fields/Command.tsx | 2 +- .../components/Prompts/fields/Description.tsx | 2 +- .../Prompts/forms/CreatePromptForm.tsx | 2 +- .../components/Prompts/forms/PromptForm.tsx | 2 +- client/src/style.css | 23 +++ .../mock/scenarios/prompt-surfaces.spec.ts | 189 ++++++++++++++++++ .../client/src/components/Button.spec.tsx | 16 ++ packages/client/src/components/Button.tsx | 4 +- packages/client/src/theme/README.md | 6 + packages/client/src/theme/defaults.css | 1 + packages/client/src/theme/registry.spec.ts | 20 ++ packages/client/src/theme/registry.ts | 2 + .../client/src/theme/themes/clickhouse.ts | 2 + .../client/src/theme/themes/clickui.spec.ts | 6 + packages/client/src/theme/tokens.css | 13 ++ packages/client/src/theme/tokens.spec.ts | 8 + packages/client/src/theme/types/index.ts | 6 + packages/data-provider/src/theme.ts | 2 + 23 files changed, 316 insertions(+), 15 deletions(-) create mode 100644 e2e/specs/mock/scenarios/prompt-surfaces.spec.ts diff --git a/client/src/components/Chat/Messages/Content/Parts/DiffView.tsx b/client/src/components/Chat/Messages/Content/Parts/DiffView.tsx index ab739b29f8..d38d6b7f19 100644 --- a/client/src/components/Chat/Messages/Content/Parts/DiffView.tsx +++ b/client/src/components/Chat/Messages/Content/Parts/DiffView.tsx @@ -172,7 +172,7 @@ interface DiffRowProps { const DiffRow = memo(function DiffRow({ type, text, num, hasLineNumbers }: DiffRowProps) { if (type === 'hunk') { if (!text) { - return
; + return
; } return
{text}
; } diff --git a/client/src/components/Chat/Messages/Content/WebSearch.tsx b/client/src/components/Chat/Messages/Content/WebSearch.tsx index 0d72bb73a0..b46f508c4f 100644 --- a/client/src/components/Chat/Messages/Content/WebSearch.tsx +++ b/client/src/components/Chat/Messages/Content/WebSearch.tsx @@ -367,7 +367,7 @@ export default function WebSearch({ className={cn( 'hover:bg-surface-hover flex gap-2.5 px-3 py-2 transition-colors', snippet ? 'items-start' : 'items-center', - i > 0 && 'border-border-inset border-t', + i > 0 && 'border-border-light border-t', )} > = ({ return (
= ({ /> {allowExecution === true && toolCalls && toolCalls.length > 0 && ( <> -
+
{localize('com_ui_output')}
diff --git a/client/src/components/Messages/Content/ResultSwitcher.tsx b/client/src/components/Messages/Content/ResultSwitcher.tsx index 7ecf81b414..8e02f1bc3d 100644 --- a/client/src/components/Messages/Content/ResultSwitcher.tsx +++ b/client/src/components/Messages/Content/ResultSwitcher.tsx @@ -26,7 +26,7 @@ export default function ResultSwitcher({ return (