Skip to content

fix(layout): use HollowCircle icon in WaitingContainer to match agent state standard#3359

Merged
gregpriday merged 3 commits intodevelopfrom
feature/issue-3274-waiting-state-icon-dock
Mar 16, 2026
Merged

fix(layout): use HollowCircle icon in WaitingContainer to match agent state standard#3359
gregpriday merged 3 commits intodevelopfrom
feature/issue-3274-waiting-state-icon-dock

Conversation

@gregpriday
Copy link
Collaborator

Summary

  • The dock's WaitingContainer was using AlertCircle (a lucide warning icon) for the waiting agent state, while every other part of the UI (TerminalHeaderContent, DockedTerminalItem) uses HollowCircle from the central STATE_ICONS registry in terminalStateConfig.tsx
  • Replaced the hardcoded AlertCircle import in WaitingContainer.tsx with HollowCircle from AgentStateCircles, bringing it in line with the canonical icon vocabulary
  • Updated StatusContainerConfig.icon type in StatusContainer.tsx from LucideIcon to React.ComponentType<{ className?: string }> so it can accept custom SVG components like HollowCircle without breaking FailedContainer or other consumers

Resolves #3274

Changes

  • src/components/Layout/WaitingContainer.tsx — swap AlertCircle for HollowCircle
  • src/components/Layout/StatusContainer.tsx — broaden icon type to accept custom SVG components
  • src/components/Layout/__tests__/WaitingContainer.test.tsx — new test file covering icon render, popover content, and edge cases

Testing

All existing checks pass. New test suite covers the corrected icon, popover terminal rows, empty state, and the StatusContainerConfig type compatibility with both HollowCircle and lucide icons.

… grid

- Widen StatusContainerConfig.icon type from LucideIcon to ComponentType<{ className?: string }>
- Replace AlertCircle with STATE_ICONS.waiting (HollowCircle) in WaitingContainer
- Add WaitingContainer test verifying HollowCircle renders correctly
- Add FailedContainer regression test confirming XCircle still works with widened type
- Add location: "grid" to satisfy TerminalInstance type requirement
- Change type: "agent" to type: "claude" to match TerminalType union
@gregpriday
Copy link
Collaborator Author

Review status: Ready

@gregpriday gregpriday merged commit 522ce28 into develop Mar 16, 2026
4 checks passed
@gregpriday gregpriday deleted the feature/issue-3274-waiting-state-icon-dock branch March 16, 2026 06:26
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.

Waiting state icon in dock WaitingContainer doesn't match panel grid agent header

1 participant