Tenant Data Migration Admin UI — Live Execution Monitor

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

Live Execution Monitor tab showing a SUCCESS batch with four stages, each listing entity types and their queued/processed/failed counts

What the admin sees

MonitorPage.tsx for batch_1791693572800, overall status SUCCESS. Below the status chip, the four fixed stage buckets from MigrationBatchStages render in order — Stage 1 Foundational, Stage 2 Dependent, Stage 3 Publish, Stage 4 Finalize — each expanded into its own entity-type rows (built by MigrationService.ts’s stageEntityRows), showing Queued/Processed/Failed counts per entity type, plus a “blocked by” annotation on stages whose entities wait on an earlier stage’s completion. Entity-type names here render as the raw backend enum string (e.g. PRODUCT_OPENING_ENTRY_PROCESS) rather than a humanized label — see TD-32 for why stageLabel’s humanization doesn’t extend to entity types yet.

What the admin does here

Mostly watches. This tab doesn’t poll — it’s the one place in the console using a persistent connection instead of a bounded wait, opened by openMonitorStream and torn down via streamCloserRef on tab switch or unmount (see ADR-00046’s Decision 2 for why execution specifically needs a push channel rather than reusing the bounded-poll pattern from Ingest & Validate). Every SSE message re-renders the stage/entity breakdown in place, so Queued/Processed/Failed counts tick up live as tenant-migration-orchestrator works through the batch, until the batch reaches a terminal status (SUCCESS, PARTIAL_SUCCESS, or FAILED). From here the admin can switch to Historical Audits at any point — the batch keeps progressing server-side regardless of which tab is open.