feat(web): show active sandbox details in Box status popover

Display sandbox count and a detailed list of active sessions including
session ID, image, backend, resources (CPU/memory), network mode, and
last used time. Fetched from GET /api/v1/box/sessions in parallel.
Includes i18n for all 8 supported languages.
This commit is contained in:
Junyan Qin
2026-04-18 22:16:36 +08:00
committed by WangCham
parent 7e50063731
commit cee5e9e0e2
11 changed files with 126 additions and 1 deletions
+14
View File
@@ -364,6 +364,20 @@ export interface ApiRespBoxStatus {
session_ttl_sec?: number;
}
export interface BoxSessionInfo {
session_id: string;
backend_name: string;
image: string;
network: string;
host_path: string | null;
host_path_mode: string;
mount_path: string;
cpus: number;
memory_mb: number;
created_at: string;
last_used_at: string;
}
export interface ApiRespAsyncTasks {
tasks: AsyncTask[];
}