diff --git a/docs/project-cascade-deletion.md b/docs/project-cascade-deletion.md index eb4ea87c..2a9ecca6 100644 --- a/docs/project-cascade-deletion.md +++ b/docs/project-cascade-deletion.md @@ -41,6 +41,11 @@ closing the dialog does not cancel admitted cleanup. A retry of the same selecti reuses existing task IDs, and completed projects are not deleted again. Deletion history remains the recovery entry after a lost response or API interruption. +Each project's cleanup count has a progress bar, and the batch footer keeps the +overall step progress visible while scrolling long manifests. Percentages use +completed targets divided by all targets, not bytes or elapsed time. Failed tasks +retain their completed steps; 100% requires the final completed task status. + Batch validation includes partial failure, cross-organization rejection, duplicate selection, admin role checks, repeat requests, and isolated browser checks of three projects followed by retrying only the failed one. diff --git a/src/components/BatchProjectDeletionDialog.tsx b/src/components/BatchProjectDeletionDialog.tsx index e87b8374..a14946b6 100644 --- a/src/components/BatchProjectDeletionDialog.tsx +++ b/src/components/BatchProjectDeletionDialog.tsx @@ -1,4 +1,5 @@ import { useEffect, useRef, useState } from "react"; +import { DeletionProgressBar } from "./DeletionProgressBar"; import { projectDeletionsApi, type DeletionPlan, type DeletionTask } from "../services/api/project-deletions"; import { getActionErrorMessage } from "../lib/action-errors.js"; @@ -233,10 +234,9 @@ export function BatchProjectDeletionDialog({ ))} {!!row.task && ( -

- 清理步骤:{row.plan.targets.filter((t) => t.status === "done").length} /{" "} - {row.plan.targets.length} -

+
+ +
)} {row.plan.blockers.map((text, i) => (

@@ -274,6 +274,14 @@ export function BatchProjectDeletionDialog({ )}