mirror of
https://github.com/RuoJi6/ARTEX.git
synced 2026-11-14 14:13:50 +08:00
fix(tasks): serialize no-result decisions with finding writes
This commit is contained in:
1 parent
8e030b1fbd
commit
3306e547b2
11 files changed
+369
-37
No files matched your search
@@ -1120,7 +1120,13 @@ export default function DashboardPage() {
|
||||
</Link>
|
||||
</td>
|
||||
<td className="px-4 py-3">
|
||||
<StatusBadge domain="task" value={t.status} dot className="px-1.5 py-0 text-[10px]" />
|
||||
<StatusBadge
|
||||
domain="task"
|
||||
value={t.status}
|
||||
stopReason={t.stop_reason}
|
||||
dot
|
||||
className="px-1.5 py-0 text-[10px]"
|
||||
/>
|
||||
</td>
|
||||
<td className="px-4 py-3">
|
||||
<StatusBadge
|
||||
|
||||
@@ -1167,7 +1167,14 @@ export default function FindingsPage() {
|
||||
</div>
|
||||
</button>
|
||||
<div className="flex flex-wrap items-center gap-2">
|
||||
{group.task_status && <StatusBadge domain="task" value={group.task_status} dot />}
|
||||
{group.task_status && (
|
||||
<StatusBadge
|
||||
domain="task"
|
||||
value={group.task_status}
|
||||
stopReason={group.task_stop_reason}
|
||||
dot
|
||||
/>
|
||||
)}
|
||||
{SEVERITIES.map((level) => {
|
||||
const count = group[level];
|
||||
if (count === 0) return null;
|
||||
|
||||
@@ -2102,6 +2102,7 @@ function route(m: string, path: string, seg: string[], q: URLSearchParams, b: Re
|
||||
task_name: owner?.name ?? "",
|
||||
task_description: owner?.description ?? items[0]?.task_description ?? "",
|
||||
task_status: owner?.status ?? "",
|
||||
task_stop_reason: owner?.stop_reason ?? "",
|
||||
count: items.length,
|
||||
critical: items.filter((finding) => finding.severity === "critical").length,
|
||||
high: items.filter((finding) => finding.severity === "high").length,
|
||||
|
||||
@@ -561,6 +561,7 @@ export interface FindingGroup {
|
||||
task_name?: string; // 可选任务名称;空/缺省=未命名
|
||||
task_description: string;
|
||||
task_status: string;
|
||||
task_stop_reason?: string;
|
||||
count: number;
|
||||
critical: number;
|
||||
high: number;
|
||||
|
||||
Reference in new issue
Block a user