feat: sidebar hierarchy view - #120
Merged
Merged
Conversation
…eorder Add a toggleable hierarchy view to the Agents sidebar that organizes agents by their org chart parent-child relationships. - Toggle between flat (original) and hierarchy view via icon in Agents header - Hierarchy data sourced from GET /api/org, merged with live sessions - Parents show blue left border bar; click bar to expand/collapse children - Stopped agents filtered from hierarchy when eye toggle is off (preserves parents that have live descendants) - Drag-to-reorder within sibling groups (persisted to localStorage) - Extracted SessionRow/ExitedRow components for reuse across both views - Added chevron-down, chevron-right, list-flat, list-tree codicons - New store state: sidebarViewMode, hierarchyOrder (both persisted) Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
aterrylu
force-pushed
the
terry/sidebar-hierarchy
branch
from
April 10, 2026 11:00
0756a89 to
5aa25be
Compare
aterrylu
enabled auto-merge (squash)
April 10, 2026 11:00
nox-0x
approved these changes
Apr 10, 2026
nox-0x
left a comment
Collaborator
There was a problem hiding this comment.
Clean, well-scoped feature addition. Tree-based hierarchy view with drag-to-reorder, collapse/expand, and flat/hierarchy toggle is solid. Extracting SessionRow/ExitedRow/HierarchyNodeRow components reduces duplication and improves readability. Polling-based org chart merge is appropriate. Left one non-blocking warning about using node.org.name as React keys (potential duplicate-name collision) — worth addressing before shipping but not a blocker.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Changes
SessionRow/ExitedRowcomponents; addedHierarchyNodeRowwith tree rendering,useOrgChartDatahook,mergeOrgWithSessionstree builder with prune/order logicsidebarViewMode("flat"/"hierarchy") andhierarchyOrder(per-group ordering) to persisted stateDesign decisions
GET /api/org(pre-built tree) merged with live sessions, not from themanagerfield on sessions (which isn't reliably populated)Test plan
🤖 Generated with Claude Code