Skip to content

fix(export): show the Excel export modal when the save dialog fails - #1774

Open
imateusdev wants to merge 1 commit into
TabularisDB:mainfrom
imateusdev:fix/xlsx-save-dialog-error
Open

imateusdev wants to merge 1 commit into
TabularisDB:mainfrom
imateusdev:fix/xlsx-save-dialog-error

Conversation

@imateusdev

@imateusdev imateusdev commented Dec 4, 2026 •

Copy link
Copy Markdown
Contributor

Follow-up to #1722.

If the native save dialog throws in handleExportLoadedRowsXlsx, the error was stored while the export modal was still closed, so nothing showed up. The catch now opens the modal with the error and closes the export menu.

Added Editor tests for a failing and a cancelled save dialog; the failing one fails on main.

The streaming export in handleExportCommon has the same gap before its modal opens. Should I cover it here, or in a separate PR?


Get evidence
Open in [code]smith · Need help on this PR? Tag @codesmith-bot with what you need.

Summary by CodeRabbit

  • Bug Fixes
    • Export failures now show complete progress details, including the filename, warning, and processed row count.
    • Cancelling the save-target dialog closes the export modal without starting the export.
    • Failed save-target selection displays an error in the export modal.

@github-actions github-actions Bot added area: editor SQL editor, Monaco integration and query execution size: M 50 to 249 changed lines labels Dec 4, 2026
@coderabbitai

coderabbitai Bot commented Dec 4, 2026 •

Copy link
Copy Markdown

Explain Change →

No actionable comments were generated in the recent review.

Walkthrough

Changes: Loaded-row XLSX export

Layer / File(s) Summary
Export error handling and validation
packages/web-ui/src/pages/Editor.tsx, packages/web-ui/tests/pages/EditorLoadedRowsXlsxExport.test.tsx
The handler computes the warning and filename before the try block. On failure, it closes the menu and sets the processed row count, filename, warning, error text, and cancellable: false. Tests check that dialog rejection displays an error without calling the XLSX export, while cancellation leaves the modal closed.

Possibly related PRs

Suggested labels: area: editor

Suggested reviewers: debba, shu-chen-dot-ca

Change: Bug fix

Merge Risk: Minimal · up to e21ee

This change makes a failed Excel export from the native save dialog show its error in the export modal instead of failing silently. The change is small and localized, and tests cover the failing and cancelled dialog cases. No actionable merge-blocking risk remains.

Security architecture risk: Minimal · up to e21ee

The Editor now shows an error when the loaded-row Excel save dialog fails. Successful exports and normal cancellation are unchanged. The fix does not change export permissions or save behavior.

Finishing Touches

Generate unit tests (beta)

  • Create a new PR
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts
Recent review info

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: Repository UI
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 82c38fb2-7d11-4ab2-b425-1ca252eb217f
Commits

Reviewing files that changed from the base of the PR and between bdb76dd and e21ee2b.

Files selected for processing: 2

  • packages/web-ui/src/pages/Editor.tsx
  • packages/web-ui/tests/pages/EditorLoadedRowsXlsxExport.test.tsx

Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 9 remain after this review.

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area: editor SQL editor, Monaco integration and query execution size: M 50 to 249 changed lines

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant