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
fix(export): show the Excel export modal when the save dialog fails - #1774
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?
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.
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
TabularisDB/tabularis#1722: Added the Excel export flow for tables and loaded results that this change updates.
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.
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
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
area: editorSQL editor, Monaco integration and query executionsize: M50 to 249 changed lines
1 participant
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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
handleExportCommonhas the same gap before its modal opens. Should I cover it here, or in a separate PR?Open in [code]smith · Need help on this PR? Tag
@codesmith-botwith what you need.Summary by CodeRabbit