Skip to content

fix(macos): start a new folder's rename and keep a rename across a reload - #4690

Merged
datlechin merged 3 commits into
mainfrom
fix/mac-favorites-rename-row-cell
Nov 28, 2026
Merged

datlechin merged 3 commits into
mainfrom
fix/mac-favorites-rename-row-cell

Conversation

@datlechin

@datlechin datlechin commented Nov 28, 2026 •

Copy link
Copy Markdown
Member

Summary

  • A new folder in Favorites now starts its rename. The rename request and the folder's first row reached a new outline in one update, before AppKit laid the row out; the editor went onto a loose cell AppKit then gave another row, and the rename session stayed stuck with no field.
  • An in-place rename follows its row, not a cell: viewFor puts the editor on whichever cell the renamed row is given, and the row's arrival in didAdd gives 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.
  • A Favorites reload during a rename, such as a pull that adds a row, keeps the edit, what was typed and the caret or selection, instead of committing it. Text an input method is still composing is committed at the reload, and the field's undo does not cross it.
  • Ending one folder's rename no longer clears a rename asked for another folder.
  • DatabaseTreeReloadHoldTests now 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 test on the Favorites and object tree suites: all passed, the rename suites again after the selection fix (22 of 22). Lint passed.
  • A Debug build in a sandbox: New Folder and Add > New Folder in Favorites start editing, and the typed name commits.

…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
@datlechin
datlechin merged commit ce1706f into main Nov 28, 2026
1 check failed
@datlechin
datlechin deleted the fix/mac-favorites-rename-row-cell branch November 28, 2026 13:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant