chore: apply Prettier formatting to BuilderChatPanel files

Three files were flagged by the CI lint/format check — apply prettier
--write to bring them into compliance.
This commit is contained in:
majdyz
2026-04-13 04:15:37 +00:00
parent 77ed619613
commit 64c3ef45df
3 changed files with 12 additions and 14 deletions

View File

@@ -156,16 +156,14 @@ export function MessageList({
{textParts && <span>{textParts}</span>}
{/* Render tool parts (edit_agent, run_agent, etc.) via the shared
copilot renderer which knows how to display each tool type. */}
{(msg.parts ?? [])
.filter(isDynamicToolPart)
.map((part, i) => (
<MessagePartRenderer
key={`${msg.id}-tool-${i}`}
part={normalizePartForRenderer(part)}
messageID={msg.id}
partIndex={i}
/>
))}
{(msg.parts ?? []).filter(isDynamicToolPart).map((part, i) => (
<MessagePartRenderer
key={`${msg.id}-tool-${i}`}
part={normalizePartForRenderer(part)}
messageID={msg.id}
partIndex={i}
/>
))}
</>
) : (
textParts

View File

@@ -61,7 +61,7 @@ export function PanelInput({
type="button"
onClick={onSend}
disabled={isDisabled || !value.trim()}
className="flex h-9 w-9 items-center justify-center rounded-lg bg-violet-600 text-white transition-colors hover:bg-violet-700 disabled:opacity-40 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-violet-400 focus-visible:ring-offset-2"
className="flex h-9 w-9 items-center justify-center rounded-lg bg-violet-600 text-white transition-colors hover:bg-violet-700 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-violet-400 focus-visible:ring-offset-2 disabled:opacity-40"
aria-label="Send"
>
<PaperPlaneTilt size={18} />

View File

@@ -463,9 +463,9 @@ export function useBuilderChatPanel({
}
}
lastScannedToolCallIndexRef.current = messages.length - 1;
// flowID is included so this effect re-runs on navigation, mirroring the
// parse-actions effect. This ensures the skip guard is consumed in the
// correct render cycle even when a stream is active during navigation.
// flowID is included so this effect re-runs on navigation, mirroring the
// parse-actions effect. This ensures the skip guard is consumed in the
// correct render cycle even when a stream is active during navigation.
}, [messages, status, onGraphEdited, setQueryStates, flowID]);
// Close the panel on Escape when focus is inside the panel, so pressing Escape