Skip to content

Commit 8c0b839

Browse files
GabrielDraporclaude
andcommitted
style(ui): run prettier over the trace-viewer panel and two component tests
Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_015DXLChvn8HPA42wsuDUFYo
1 parent 2766188 commit 8c0b839

3 files changed

Lines changed: 24 additions & 18 deletions

File tree

frontend/ui/src/features/ai-assistant/components/message-list.test.tsx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,9 @@
22
import { afterEach, describe, expect, it, vi } from "vitest";
33
import { cleanup, fireEvent, render, screen } from "@testing-library/react";
44

5-
vi.mock("react-markdown", () => ({ default: ({ children }: { children: string }) => <>{children}</> }));
5+
vi.mock("react-markdown", () => ({
6+
default: ({ children }: { children: string }) => <>{children}</>,
7+
}));
68
vi.mock("remark-gfm", () => ({ default: () => {} }));
79

810
import { MessageList } from "./message-list";

frontend/ui/src/features/detectors/components/detector-runs-table.test.tsx

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -186,7 +186,11 @@ describe("DetectorRunsTable", () => {
186186
const onRunClick = vi.fn();
187187
const onTraceClick = vi.fn();
188188
const onFindingClick = vi.fn();
189-
const run = { ...triggeredRun, self_traced: true, execution_trace_status: "available" as const };
189+
const run = {
190+
...triggeredRun,
191+
self_traced: true,
192+
execution_trace_status: "available" as const,
193+
};
190194
render(
191195
<DetectorRunsTable
192196
rows={[run]}

frontend/ui/src/features/traces/components/TraceViewerPanel.tsx

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -553,22 +553,22 @@ export function TraceViewerPanel({
553553
when embedded — the assistant it toggles is outside this
554554
container. */}
555555
{!embedded && (
556-
<Button
557-
variant="outline"
558-
size="sm"
559-
onClick={() => {
560-
setAiContext(traceOverride ? null : { traceId });
561-
// Bot button always opens a fresh chat; an active RCA session
562-
// would otherwise hijack the next message into the worker's
563-
// session instead of starting a new one.
564-
setAiInitialSessionId(undefined);
565-
setAiPanelOpen(!aiPanelOpen);
566-
}}
567-
className="h-7 w-7 p-0"
568-
title="AI Assistant"
569-
>
570-
<DOMAIN_ICONS.assistant className="h-4 w-4" />
571-
</Button>
556+
<Button
557+
variant="outline"
558+
size="sm"
559+
onClick={() => {
560+
setAiContext(traceOverride ? null : { traceId });
561+
// Bot button always opens a fresh chat; an active RCA session
562+
// would otherwise hijack the next message into the worker's
563+
// session instead of starting a new one.
564+
setAiInitialSessionId(undefined);
565+
setAiPanelOpen(!aiPanelOpen);
566+
}}
567+
className="h-7 w-7 p-0"
568+
title="AI Assistant"
569+
>
570+
<DOMAIN_ICONS.assistant className="h-4 w-4" />
571+
</Button>
572572
)}
573573
<Button variant="ghost" size="sm" onClick={onClose} className="h-7 w-7 p-0">
574574
<X className="h-4 w-4" />

0 commit comments

Comments
 (0)