Tenant Data Migration Admin UI — Historical Audits: Submission List

By Engineering Team•October 11, 2026•2 min read

Historical Audits tab showing four batch rows, one still queueing with view/execute/cancel icons and three already at SUCCESS with only a view icon

What the admin sees

HistoryPage.tsx lists every batch submitted for the tenant, newest first, each row showing its status chip and a set of action icons that differ by row. In this screenshot, one batch is still QUEUEING and shows three icons — view (eye), execute (play), and cancel — while the three SUCCESS batches below it show only the view icon, since there’s nothing left to execute or cancel on a batch that already finished.

What the admin does here

Each icon maps to one of MigrationController.ts’s History handlers, gated by MigrationService.ts’s pure status checks so a row never offers an action its batch can’t actually perform:

  • View (always available) — watchBatch opens the AuditDrawer for that batch’s full detail.
  • Execute (only while a batch is pre-execution and verified) — runExecute calls the same POST /migration/execute/:batchId used from the Ingest tab, without needing to revisit it.
  • Cancel (only while a batch is still queued/in-flight) — runCancel calls POST /migration/cancel/:batchId directly from the list, no confirmation step.
  • Retry/Delete (not shown on these particular rows — gated by canRetryBatch/canDeleteBatch, surfaced only on a batch in a failed or otherwise eligible terminal state) go through requestHistoryAction, which stages the action and shows a confirmation prompt before confirmPendingHistoryAction actually calls runRetry/runDelete — the one pair of actions in this console with a confirm step, since both are destructive or re-triggering in a way View/Execute/Cancel aren’t.