fix(export): show progress while preparing database export

This commit is contained in:
Freedom authored and GitHub committed 2026-07-29 14:43:07 +08:00
1 parent 8841a41261
commit a4352d6560
13 files changed
+210 -68

No files matched your search

@@ -381,7 +381,10 @@ export function useExportTracker() {
function updateDatabaseExportTask(exportId: string, progress: api.ExportProgress) {
const task = taskMap.get(exportId);
if (!task) return;
task.tableName = progress.currentObject || task.tableName;
// Keep the database label during metadata prefetch; only follow object names while writing.
if (!progress.preparing && progress.currentObject) {
task.tableName = progress.currentObject;
}
task.rowsExported = progress.rowsExported;
task.totalRows = progress.totalRows;
task.status = normalizeExportStatus(progress.status);