Repository navigation
fix(macos): start a new folder's rename and keep a rename across a reload - #4690
Merged
Merged
Conversation
…he Favorites list and the object tree, run in a window The rename ends with its folder's id. The reload-hold tests move into a window, where the field now opens. Without the next commit's fix the rename tests fail as E2E F27 did.
…pKit gives it, so a new folder's rename starts and a reload keeps it
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
viewForputs the editor on whichever cell the renamed row is given, and the row's arrival indidAddgives it the keyboard. A rename never asks AppKit for a view of a row it has not laid out. One helper,SidebarRenameEditor, serves the Favorites list and the object tree.DatabaseTreeReloadHoldTestsnow runs in a window: it opened the field on a cell outside any window, which this removes.Test plan
FavoritesOutlineRenameTests(new): a new folder starts its rename and keeps it through a pass, a rename survives a pull of an unrelated record and Return commits the typed name, a reload keeps a mid-name caret and the initial selection, a second folder's request takes over. The first three fail on main.DatabaseTreeRenameEditorTests(new): a rename asked for right after a reload opens on its own row with the keyboard, and one on a row on screen opens at once.verify.sh --jobs 4 teston the Favorites and object tree suites: all passed, the rename suites again after the selection fix (22 of 22). Lint passed.