Tenant Data Migration Admin UI — Historical Audits: Audit Drawer Detail

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

AuditDrawer open over a SUCCESS batch, showing all three verification steps passed and ten entity summary cards with queued, processed, and failed counts

What the admin sees

Clicking the view icon on any row in the submission list opens AuditDrawer.tsx over the same page. For this SUCCESS batch, the drawer shows a success banner, the same three verification steps from the Ingest tab (Extract Bundle, Schema & Directory Audit, Compile Records) all marked PASSED, and ten Entity Summary cards — one per entity type migrated in this batch — each built by MigrationService.ts’s entitySummaryRows and showing its own Queued/Processed/Failed counts. As in the Live Execution Monitor, entity-type names render as raw backend enum strings rather than a humanized label (see TD-32).

What the admin does here

Reviews the full audit record for a completed (or failed) batch without re-running anything. A MigrationErrorsPanel is mounted conditionally — only when getTotalFailed reports at least one failed record across the entity summary — so a clean SUCCESS batch like this one shows no errors section at all, keeping the drawer uncluttered for the common case. On a batch with failures, the same panel renders the row-level error detail fetched via fetchBatchErrors, letting the admin inspect exactly which records failed and why before deciding whether to retry from the submission list.