From d4223789e818929b18c3e211e2b0809228481018 Mon Sep 17 00:00:00 2001 From: Guilhem Lemouel Date: Fri, 15 May 2026 10:01:46 +0200 Subject: [PATCH] feat(ai-chat): linkify inline-code paths, refine pill styling - Inline-code spans whose value is exactly a Windmill path now render as a link pill (paths inside larger inline code or fenced blocks stay as code). - Tool-header chips moved to their own row to avoid overflow clipping when the title wraps. - Borderless pills, no default background (hover only), kind icons use the home-page palette (script blue, flow teal, app orange), and the external-link indicator only appears on hover. Co-Authored-By: Claude Opus 4.7 (1M context) --- frontend/package-lock.json | 1 + frontend/package.json | 1 + .../copilot/chat/LinkRenderer.svelte | 17 +- .../copilot/chat/ToolExecutionDisplay.svelte | 90 +++++---- .../copilot/chat/workspaceItems.svelte.ts | 66 ++++-- .../copilot/chat/workspaceItems.test.ts | 191 +++++++++++++++++- 6 files changed, 301 insertions(+), 65 deletions(-) diff --git a/frontend/package-lock.json b/frontend/package-lock.json index 369915e9d6..541021e3e6 100644 --- a/frontend/package-lock.json +++ b/frontend/package-lock.json @@ -72,6 +72,7 @@ "svelte-exmarkdown": "^5.0.0", "svelte-infinite-loading": "^1.4.0", "tailwind-merge": "^1.13.2", + "unist-util-visit": "^5.0.0", "vscode": "npm:@codingame/monaco-vscode-extension-api@=25.0.0", "vscode-languageclient": "~9.0.1", "vscode-uri": "~3.1.0", diff --git a/frontend/package.json b/frontend/package.json index b256db6bf5..a8ec451f08 100644 --- a/frontend/package.json +++ b/frontend/package.json @@ -125,6 +125,7 @@ "lru-cache": "^11.1.0", "lucide-svelte": "^0.540.0", "mdast-util-find-and-replace": "^3.0.2", + "unist-util-visit": "^5.0.0", "minimatch": "^10.0.1", "monaco-editor": "npm:@codingame/monaco-vscode-editor-api@=25.0.0", "monaco-languageclient": "10.6.0", diff --git a/frontend/src/lib/components/copilot/chat/LinkRenderer.svelte b/frontend/src/lib/components/copilot/chat/LinkRenderer.svelte index 9d23fd98d3..2bbc4baf76 100644 --- a/frontend/src/lib/components/copilot/chat/LinkRenderer.svelte +++ b/frontend/src/lib/components/copilot/chat/LinkRenderer.svelte @@ -1,6 +1,6 @@