Skip to content

Tell the user a backup was cancelled, and base the bar on rows #811

Closed

Description

@EVWorth

Severity: P2

What happens

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.

Part of #783.

Activity

  1. added
    bug
    on Oct 21, 2026
  2. added a commit that references this issue on Oct 23, 2026
    183b39b
  3. added a commit that references this issue on Oct 23, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bug

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions