Repository navigation
feat: rename query tabs on macOS, Linux and Windows - #4343
Merged
Merged
Conversation
…e the header claims it
…-names # Conflicts: # windows/src/TablePro.App.Model/QueryTab.cs # windows/src/TablePro.App/MainWindow.xaml.cs
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.
Summary
AdwTabBarcannot host an editor.Query Ntab was renumbered on a connection move or restore;Query 9223372036854775807crashed new tabs; Save As and Open titled the same file differently; table and schema renames left the strip and window title disagreeing; a reopened tab could repeat a number; system tab titles kept the old language; a database or schema rename replaced a query tab's SQL with a browse query.SELECT 1;after a restart; reopening an emptied tab filled it with the sample statement; a notification named a file tabQuery N.ThePrimaryKeepsADropTargetWhenItsOnlyTabMovesOutandClosingATabWindowOrExitingAsksBeforeRollingBacknow expectQuery 2, since they relied on the repeated number.WM_NCLBUTTONDBLCLK, because the tear-out strip is a caption region whereDoubleTappednever fires. Measured on both runners and recorded inwindows/docs/decisions/0004-app-shell.md.Test plan
EditorTabRenameUITestsand the tab UI suites pass.windows.ymlrun 44462549226: x64 passed; on Arm64 every rename flow passed, and the one failure wasATableIsEmptiedAndDroppedAfterAQuestionShowingItsStatement(Light), a tree click this PR does not touch.build-linux.ymlrun 44462545063 passed fmt, clippy and 3,637 of 3,638 tests. The real-key double-click test then showed the rename waited for a release that never comes:AdwToolbarView'sGtkWindowHandleclaims the second press to maximize. It now starts on the second press and claims it.Screenshots
macOS, before and after (tab menu):
macOS, editing (light, dark) and named (dark):
Windows, editing (light) and named (dark):
Linux, tab menu and editing (light), named and editing (dark):
Fixes #4337