Skip to content

feat: add task count header and tree node expand/collapse to Task Delegation dashboard#12333

Draft
roomote-v0[bot] wants to merge 2 commits into
mainfrom
feature/task-dashboard-enhancements
Draft

feat: add task count header and tree node expand/collapse to Task Delegation dashboard#12333
roomote-v0[bot] wants to merge 2 commits into
mainfrom
feature/task-dashboard-enhancements

Conversation

@roomote-v0
Copy link
Copy Markdown
Contributor

@roomote-v0 roomote-v0 Bot commented May 12, 2026

This PR attempts to address feedback from Issue #12329 (comment by @easonLiangWorldedtech on PR #12331).

Changes

Task count in section header:

  • The header now shows Task Delegation (N tasks) instead of just Task Delegation
  • Uses a new countTreeNodes helper and taskCount field from useTaskTree

Expand/collapse controls on tree nodes:

  • Nodes with children now show a chevron toggle button
  • Clicking the toggle collapses/expands that node's children
  • Leaf nodes show a spacer for alignment
  • Children are expanded by default

Testing

  • 8 new tests added (24 total, all passing)
  • Covers: task count display, toggle presence for parent vs leaf nodes, collapse/expand behavior
  • All lint, type checks pass

Feedback and guidance are welcome.

Interactively review PR in Roo Code Cloud

roomote added 2 commits May 12, 2026 02:38
…bility

Adds a collapsible Task Delegation dashboard section inside the existing
Roo Code webview panel, displayed below the TaskHeader when the current
task is part of a multi-task delegation hierarchy.

Features:
- Tree view showing parent/child delegation relationships
- Mode name + status badge (Active/Delegated/Completed) per task
- Active task highlighting with visual indicator
- Click-to-navigate to any task in the hierarchy
- Collapsible panel header
- Only visible during active delegation sessions (2+ tasks)
- Supports custom modes

Closes #12329
…odes

- Section header now shows task count (e.g. "Task Delegation (3 tasks)")
- Tree nodes with children have expand/collapse toggle buttons
- Added countTreeNodes helper and taskCount to useTaskTree
- Added 8 new tests covering both features (24 total pass)
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