Add collect dashboard KPIs and create-job modal.

Align collection tasks with LLDP/config-sync chrome, and refresh active-task overview when jobs change.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
oliver 2026-08-05 14:08:13 +08:00
parent 0100fb8430
commit 6642f4b8b5
11 changed files with 502 additions and 249 deletions

View file

@ -316,6 +316,26 @@ export type CollectionJobItem = {
last_run_at: string | null;
};
export type CollectionJobSummary = {
id: string;
title: string;
status: string;
ne_count: number;
success_count: number;
fail_count: number;
created_at?: string | null;
started_at?: string | null;
ended_at?: string | null;
last_run_at?: string | null;
};
export type CollectionDashboard = {
job_count: number;
active_count: number;
running_job: CollectionJobSummary | null;
last_job: CollectionJobSummary | null;
};
export type CollectionRunItem = {
id: string;
job_id: string;