Skip to content

fix(transfer): show progress and results inside the import, export and transfer sheets - #4495

Merged
datlechin merged 2 commits into
mainfrom
fix/transfer-progress-nested-sheet
Nov 25, 2026
Merged

datlechin merged 2 commits into
mainfrom
fix/transfer-progress-nested-sheet

Conversation

@datlechin

@datlechin datlechin commented Nov 25, 2026 •

Copy link
Copy Markdown
Member

Summary

  • Import (SQL file, rows, batch), Export and Table Transfer each run in one sheet that switches between form, progress and result. No second sheet or alert opens on top of the dialog (HIG Sheets: one sheet at a time).
  • The result shows in the sheet with TransferResultView: outcome, summary, the scrollable report with Copy Details, Done. A failed or stopped run adds Back to the form for another try. Save Report…, Show in Finder and "Do not show this again" stay.
  • TransferResultAlert is now TransferResults, builders that return a TransferResult instead of presenting NSAlerts.
  • TransferProgressSheet takes a stop control; the import's pause-then-ask Stop is ImportStopButton, so ImportProgressView no longer copies the layout.
  • Batch import: Edit… opens the file's mapping as a step of the batch sheet, not a sheet on it.
  • Export: installing an offered format's plugin shows its progress in the export sheet, not an NSPanel sheet on it. PluginInstallRun holds the follow and cancel logic for both the sheet and the panel presenter.
  • SQL import dialog: the fixed 600x550 frame that clipped its content is gone; Format, Encoding and the plugin's options sit in one Form(.columns), so the rows line up. SQLImportOptionsView returns flat rows without a hard-coded font.
  • Save Report… reports a failed write instead of dropping it.
  • Docs: docs(features): import and export results show in their own sheet docs#293.

Test plan

  • RowImportUpdateUITests: the summary shows in the row import sheet with no sheet attached to it. Fails on main, where the summary is an NSAlert sheet on the import sheet.
  • New TransferResultsTests and PluginInstallRunTests; renamed references in ImportCancelledTextTests, ImportSummaryTextTests, TransferFailureReportTests, ImportServiceStopTests, ImportServiceSessionScopeTests. 96 cases across the touched suites pass locally, plus build, plugins, lint and l10n.
  • A probe measured that Form(.columns) aligns an AnyView plugin view only when its rows are flat.

Screenshots

A 300,001-statement SQL import on the fixture connection.

Light Dark
Before: progress as a second sheet on the dialog Before
After: the form, options in one column Form Form, dark
After: progress in the same sheet Running Running, dark
After: result in the same sheet Result Result, dark

@datlechin
datlechin merged commit 8d79637 into main Nov 25, 2026
12 of 13 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant