From d68594e81a6ab546b2eca9bbb8c3cd735ce7cd00 Mon Sep 17 00:00:00 2001 From: ji ruo <79234113+RuoJi6@users.noreply.github.com> Date: Fri, 9 Oct 2026 12:27:54 +0800 Subject: [PATCH] fix(ui): hide completed finding review history from findings page --- web/src/components/finding-case-list.tsx | 28 ------------------------ 1 file changed, 28 deletions(-) diff --git a/web/src/components/finding-case-list.tsx b/web/src/components/finding-case-list.tsx index a2b9c40..0e0418f 100644 --- a/web/src/components/finding-case-list.tsx +++ b/web/src/components/finding-case-list.tsx @@ -266,7 +266,6 @@ export function FindingCaseReviewPanel({ taskId, onChange }: { taskId?: string; const [suggestions, setSuggestions] = React.useState([]); const [runs, setRuns] = React.useState([]); const [error, setError] = React.useState(""); - const [historyOpen, setHistoryOpen] = React.useState(false); React.useEffect(() => { let active = true; let timer: ReturnType; @@ -304,9 +303,6 @@ export function FindingCaseReviewPanel({ taskId, onChange }: { taskId?: string; toast.error((e as Error).message); } } - const latestByTask = new Map(); - for (const run of runs) if (!latestByTask.has(run.task_id)) latestByTask.set(run.task_id, run); - const latestFailures = [...latestByTask.values()].filter((run) => run.state === "failed"); return (
{error ? ( @@ -329,30 +325,6 @@ export function FindingCaseReviewPanel({ taskId, onChange }: { taskId?: string; ))}
) : null} - {latestFailures.map((r) => ( - - - - - - ))} - {runs.some((r) => r.state === "done" || r.state === "failed") ? ( - - - - - - {runs - .filter((r) => r.state === "done" || r.state === "failed") - .map((r) => ( - - ))} - - - ) : null} ); }