UI polish: focus visibility and truncation
1. Focus and "primary/selected" share the same look
In Settings, Add Worktree and Add Button, the primary button (Save, Create Worktree) is always drawn with the green highlight, even while focus is on a text field. In Add Worktree, the selected mode (New Branch / Existing) gets a green border too, and the only focus cue on that toggle is the tiny ◂ ▸ arrows changing color. Two or three controls look focused at once.
Suggestion: reserve one distinct style (e.g. dashed border or inverted colors) for focus only.
2. Focus stops on things it shouldn't, or is barely visible
- With no remote,
↓ Git Pull (No remote)is disabled but still the first focus stop in the detail pane. PressingEnterdoes nothing, and the button text brightens when focused, so it looks enabled. - The refresh icon next to "MY OPEN GITHUB ISSUES" is a focus stop, but focus only changes the icon's color. Navigating with
↓fromYOLO, focus seems to disappear for one step.
Suggestion: skip disabled controls in the focus ring, and give icon-only controls a visible focus marker.
3. "Archived" header is selectable in the sidebar
With A on, ↓ lands on the "Archived" section header. The header gets highlighted, but the detail pane keeps showing the previously selected worktree.
Suggestion: skip section headers when navigating.
4. Truncated text
- Add Button dialog: the TMUX PREFIX help is
"…Auto-derived from label until you edit it."(src/ui/modals.rs:911), but the dialog cuts it to"…until you edit"with no ellipsis. - Add Worktree: the path preview under the name field is cut at the modal edge (
/tmp/…/scrat), hiding the part that matters (the worktree folder). - Help texts sit directly on the next field label with no blank line (e.g. "Shown on the button…" followed by "TMUX PREFIX"), which reads as one block.
Suggestion: wrap help text; truncate paths from the left with …; add a blank line between a field's help and the next label.
5. Deleting a worktree leaves the branch behind
Deleting worktree three removes the directory, but feat/three stays in git branch. For worktrees created with "New Branch", this piles up orphan branches.
Suggestion: an optional "Also delete branch feat/three" checkbox in the delete confirmation (off by default, or on only for branches forestui created).