feat(panel): open a Manager row's editor on its face from Change face

CH
1h ago
+474-55

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/ui InlineEdit gains three things:
    • holding, as GroupHeaderEditor has.
    • 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 ref handle { leave, field }. leave ends the edit on a press away unless the focus is still inside it.
  • PopoverIconButton and ManagerFaceWell take finalFocus. The well also forwards ref to its button.
  • useAgentActions answers face (AgentFaceEdit) when a surface passes faceIn: FACE_IN.EDITOR. Its rename.begin/end reset 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 a within box, a flyout floated from it, and leave. 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 without holding and without finalFocus.

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.