You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Tell the user a backup was cancelled, and base the bar on rows #811
On ?mock=connected, Toolbar → Backup, database shop, Browse:
Cancel: start the backup and click Cancel. The progress box vanishes and the dialog returns to the plain form. Nothing says the backup was cancelled or that the partial file was removed.
Progress bar: uncheck "All Tables", keep only customers (1,304 rows), click Backup. The bar is at 100% ("1 / 1") while the line under it says 214 rows done. With all four tables the bar sits at 25% before table 1 finishes.
Between the click and the first progress event nothing indicates work has started (the mock emits at once, so this is only visible with a slow real server).
Cause
src/components/backup/BackupDialog.tsx:183-186: a cancelled summary sets neither done nor any notice.
:574: width is currentTable / totalTables, where currentTable is 1-based and counts the table in progress.
:555: the progress box renders only when progress is non-null.
:654: the spinner inside the Backup button is unreachable (that button is hidden while backing).
Fix
Add a cancelled state that shows "Backup cancelled — the partial file was removed." Show an indeterminate "Starting…" box while backing && !progress. Compute the bar as ((currentTable - 1) + min(1, rowsExported / estimatedRows)) / totalTables. Drop the dead spinner.
Activity
fix(backup): say when cancelled, base bar on rows
release: 1.4.0 (#871)