From 9032cc1e2daafba08bc44dd679b83d4b8fbc38e1 Mon Sep 17 00:00:00 2001 From: Guilhem Lemouel Date: Wed, 20 May 2026 15:37:48 +0200 Subject: [PATCH] fix(chat): address review nits - Namespace hourglass-flip class + keyframes to ai-chat-hourglass-flip so the :global rule can't pick up unrelated classes elsewhere. - Rename contextPickerRow snippet to selectedContextBadges since it now only renders badges (the picker moved to the controls row). - Restore the @ picker in the message-editing surface via a new showInlinePicker prop on AIChatInput, opted into by AIChatMessage. AIChatDisplay still renders its own picker in the controls row. --- .../copilot/chat/AIChatDisplay.svelte | 8 +-- .../copilot/chat/AIChatInput.svelte | 56 +++++++++++++++++-- .../copilot/chat/AIChatMessage.svelte | 1 + 3 files changed, 56 insertions(+), 9 deletions(-) diff --git a/frontend/src/lib/components/copilot/chat/AIChatDisplay.svelte b/frontend/src/lib/components/copilot/chat/AIChatDisplay.svelte index 5967a75d30..5f066a5505 100644 --- a/frontend/src/lib/components/copilot/chat/AIChatDisplay.svelte +++ b/frontend/src/lib/components/copilot/chat/AIChatDisplay.svelte @@ -330,7 +330,7 @@ class="inline-flex items-center gap-1.5 text-2xs text-accent" aria-label="Waiting for your input" > - + Waiting for your input {:else} @@ -536,11 +536,11 @@ /* Hourglass flips every 4s with long rests at each upright position. `:global` because the class is applied to a child component's root (Lucide SVG) and Svelte scoped CSS otherwise wouldn't match it. */ - :global(.hourglass-flip) { - animation: hourglass-flip 4s cubic-bezier(0.65, 0, 0.35, 1) infinite; + :global(.ai-chat-hourglass-flip) { + animation: ai-chat-hourglass-flip 4s cubic-bezier(0.65, 0, 0.35, 1) infinite; transform-origin: center; } - @keyframes hourglass-flip { + @keyframes ai-chat-hourglass-flip { 0%, 35% { transform: rotate(0deg); diff --git a/frontend/src/lib/components/copilot/chat/AIChatInput.svelte b/frontend/src/lib/components/copilot/chat/AIChatInput.svelte index 7626b42380..bc30798cea 100644 --- a/frontend/src/lib/components/copilot/chat/AIChatInput.svelte +++ b/frontend/src/lib/components/copilot/chat/AIChatInput.svelte @@ -1,5 +1,6 @@