feat(panel): open a Manager row's editor on its face from Change face
CH
1h ago+474+474+012345678901234567890123456789-55-55-01234567890123456789
What
A Manager row's Change face is now a plain menu action, no longer the Change face › panel. It opens the row's in-place rename, as a section header's Change icon does. A compact ManagerFaceWell stands in the glyph's place with its picker open. This works in both looks, the sidebar's ListRow and a list's TaskRow, and it all lives inside AgentListRow.
- Moving focus doesn't end the edit. That covers the well, its picker, and a face's colors flyout (portaled, traced back through
iconPickerChoiceOf). - A pick is saved at once through
agents.onFace, with the same refusal toast as before. The focus returns to the name field, so Return, Escape, or a press away ends the edit. - A press away that closes the picker ends the edit.
- Rename opens the same edit with the well drawn and the picker closed, as a section header's Rename does.
How
@repo/uiInlineEditgains three things:holding, asGroupHeaderEditorhas.within: the boxes beside the field that belong to the edit. A flyout an icon picker's choice floats is traced back into them.- A
refhandle{ leave, field }.leaveends the edit on a press away unless the focus is still inside it.
PopoverIconButtonandManagerFaceWelltakefinalFocus. The well also forwardsrefto its button.useAgentActionsanswersface(AgentFaceEdit) when a surface passesfaceIn: FACE_IN.EDITOR. Itsrename.begin/endreset the picker. Other surfaces keep the panel (FACE_IN.PANEL, the default). This commit is shared with the Manager page title's PR, which builds on the same piece.
Tests
Ran:
packages/ui/src/components/inline-edit/inline-edit.test.ts: a new case covering awithinbox, a flyout floated from it, andleave. It fails without the flyout trace.packages/panel/src/desktop/sidebar-managers.test.ts: the Change face case is rewritten for the new flow. Right-click → Change face → the row edits with the picker open → pick the cat in purple → the face is saved and the name field is focused → Escape ends the edit and renames nothing. It fails withoutholdingand withoutfinalFocus.
Also ran tsc -b for packages/ui and packages/panel, plus biome, oxlint, and the press and style guards on the changed files. The rest is left to CI.