Skip to content

Small UI improvements: detail toolbar, loading overlay, empty states#258

Merged
sbertix merged 7 commits intomainfrom
sbertix/small-ui-improvements
Apr 20, 2026
Merged

Small UI improvements: detail toolbar, loading overlay, empty states#258
sbertix merged 7 commits intomainfrom
sbertix/small-ui-improvements

Conversation

@sbertix
Copy link
Copy Markdown
Collaborator

@sbertix sbertix commented Apr 20, 2026

Summary

  • Redesign the detail toolbar title: Label-based button with the GitHub owner avatar (same layout used in Settings), inline rename popover for git worktrees, disabled folder-glyph label for folder repositories. WorktreeToolbarState now carries a Kind enum so "folder with a pull request" is unrepresentable.
  • Rework the worktree loading overlay to match the detail-placeholder layout (large spinner, title, statusCommand caption, 5-line animated tail). WorktreeLoadingInfo switches from a flat bag of optionals to a Kind enum with a Progress payload; the dead .archiving case is gone.
  • Align the two empty states (EmptyStateView, EmptyTerminalPaneView) with DetailPlaceholderView's VStack(spacing: 12) + VStack(spacing: 4) pattern, and normalize sidebar icon sizing + the Add button's Label wrapping.
  • Inline the notification bell into the status ToolbarItemGroup, hide the window-toolbar background, and center the detail placeholder text.

Test plan

  • Open a git worktree and a folder repository — title toolbar shows the owner avatar / folder glyph correctly; rename popover works for git, is disabled for folders.
  • Create a worktree — loading overlay shows the spinner + title + git worktree add … caption + tail lines animating in.
  • Delete a worktree (no delete script) — loading overlay shows "Removing worktree in …"; for folders it shows "Removing folder…".
  • Verify notification bell is visible next to status toast when unseen notifications exist.
  • Empty sidebar state and empty terminal pane state visually match the detail placeholder spacing.
  • make test passes.

sbertix added 6 commits April 20, 2026 21:33
Match the detail-placeholder layout (large spinner, title, caption,
5-line animated tail) and replace the flat `state: .creating` /
`statusLines:` bag with a `WorktreeLoadingInfo.Kind` enum carrying
a `Progress` payload. Dead `.archiving` case dropped since archiving
routes via the terminal.
Replace the plain branch label with a Label-based button carrying the
GitHub owner avatar (same layout used in Settings), a rename popover
for git worktrees, and a disabled folder-glyph label for folder
repositories. `WorktreeToolbarState` now carries a `Kind` enum so
"folder with a pull request" is unrepresentable.
@sbertix sbertix enabled auto-merge (squash) April 20, 2026 19:38
@tuist
Copy link
Copy Markdown

tuist Bot commented Apr 20, 2026

🛠️ Tuist Run Report 🛠️

Builds 🔨

Scheme Status Duration Commit
supacode 1m 1s 6ccaa258f

@sbertix sbertix merged commit 3af3a16 into main Apr 20, 2026
2 checks passed
@sbertix sbertix deleted the sbertix/small-ui-improvements branch April 20, 2026 19:46
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