Repository navigation
fix: grid cell keys, tx switch prompt, CSV import - #922
Merged
Merged
Conversation
- ImportDialog: the CSV import callback now depends on `database`, so an import after the target database changes goes to the new one. - SHOW GRANTS: the account view and the privileges editor both read through adminStore.showGrants, which records the read as internal. - tableDetailsStore: every table read goes through dataSourceFor, so a SQLite connection uses the SQLite commands. The data source gains getForeignKeys and getPartitions (empty for SQLite). - Mock: list_connections no longer reopens Local dev after it was disconnected in the connected and lost scenarios. Closes #921 Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01WTypK4RjzzdjoFxd3qk14g
The grid gets a focused cell. Up, Down, Page Up and Page Down move the row selection as before (Shift extends it) and take the cell along; Left, Right, Home and End move within the row; Ctrl+Home and Ctrl+End go to the corners. Enter or F2 edits the focused cell in Edit Mode, and focus returns to the grid when the edit ends. Escape clears the row selection, then the focused cell. Ctrl+C copies the focused cell when no row is selected. The focused cell is scrolled into view below the sticky header, also in the virtualized layout, where the row may not be rendered yet. Home and End from an empty selection now go to the first and last row; End used to start at the top. Closes #852 Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01WTypK4RjzzdjoFxd3qk14g
Pointing a tab at another connection ends its server session, which
rolls back an open transaction. The schema tree, the connection bar and
a reconnect now ask first ("Roll back and switch" / Cancel), as closing
the tab does. editorStore gains requestTabConnection and confirmRollback;
another database on the same connection keeps the session and does not
ask.
The transaction state the backend reports on a run's results is now
read from the typed field, also from the results kept before a failed
statement. Reading the statements stays as the fallback for when the
backend has no answer (MySQL, a failed run).
Closes #843
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01WTypK4RjzzdjoFxd3qk14g
Runs a three-statement script whose second statement fails through the mock backend, the real bindings, CommandError and the result store, and checks that the first statement's rows stay with the error and that the error names statement 2 of 3 (1146). Checked in the browser preview as well: the error box, the kept grid and the editor marker all show. Closes #845 Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01WTypK4RjzzdjoFxd3qk14g
The admin store now reads grants through runStatement, which imports CommandError from lib/tauri-api. The browser test's module mock only provided `api`, so the file failed to import in Chromium. Spread the real module into the mock and override `api` alone. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01WTypK4RjzzdjoFxd3qk14g
Two TableDesigner tests waited for the table-name input, which comes from
a prop and renders at once, then reached for column rows that only exist
once getColumns resolves. Under CI load the rows were not there yet
("Unable to find a label with the text of: Remove column name"). Wait
for the column-dependent element itself.
Closes #923
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01WTypK4RjzzdjoFxd3qk14g
This was referenced Oct 30, 2026
Merged
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
The remaining frontend items from the UX review, done by the
implementer-frontendlane.Closes #921, #852, #843, #845.
Changes
fix: CSV import can target the previous database #921: CSV import, grants and SQLite reads.
databasewas missing from the callback's deps).dataSourceFor, so SQLite connections reach thesqlite*commands. SQLite reports no foreign keys or partitions for now.Give the grid a keyboard path for sorting, selection and copy #852: moving between cells with the keyboard. The results grid gets a focused cell.
Show an open transaction, and warn before closing a tab that has one #843: pointing a tab at another connection. If the tab has a transaction open, the app now asks first ("Roll back and switch" / Cancel), as it already does when closing the tab. This covers:
Where the backend reports the transaction state (
transaction), that is used, including after a failure. Guessing from the statements that ran is the fallback.Say which statement failed in a script, and keep the earlier results #845: everything was already in place. This adds an end-to-end test that runs a failing script through the mock, the bindings and the result store, plus a check in the browser preview.
Tests
npm run test:unit: 198 files, 3726 tests pass.ResultsGrid.keyboard(new) andResultsGrid;ImportDialogandSidebar;AppLayout,MainPanelandTitleBar.npm run lint: 0 errors and no new warnings.npm run type-checkandnpx dprint checkare clean.Generated by Claude Code