feat(web): React UI v2.0 — Phase 5 Tasks 44-49 (6 monitor panels)#31
Merged
Conversation
Phase 5 Task 44. SelectedPanel reads useSelected() and renders one of four bodies inside a pinned <Monitor title="Selected">: - agent: AgentDefinition details (kind, model, tools, routes, prompt excerpt) looked up from agentsByName. - tool_call: ToolCall details (agent, status, risk, args JSON) found locally by <tool>@<ts> id. - message: placeholder showing the turn id. - null: spec § 16.2 empty-state copy. Each body has a lowercase "kind · subject" eyebrow tag matching the selection. "Not found" fallback when an id doesn't resolve in the current session. Tests: 4 component tests cover empty, agent, tool_call, and not-found paths. Full suite 134/0 green. Typecheck clean.
Phase 5 Task 45. Props-driven panel that renders compact mini-tiles for every session except the active one, giving the operator at-a-glance cross-session awareness without leaving the current canvas. Tile layout (~90x72): id + color-coded state caps · label (truncated) · active_agent. Wrapped in <Monitor pinned> with live count badge. Click a tile → onSelect(sid). Files: - web/src/monitors/OtherSessionsPanel.tsx - web/tests/component/OtherSessionsPanel.test.tsx (6 tests, all green) Verification: vitest run (136/136 pass) + tsc -b (clean).
Phase 5 Task 46. Props-driven panel showing pending approvals across sessions. Each row: id + label + age since updated_at. Click row -> onSelect(sid). Wrapped in <Monitor pinned> with count badge and empty-state copy. Tests: 4 (count, items, empty-state, click). Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
Phase 5 Task 47. Adds <LessonsPanel> wrapping <Monitor title="Lessons">,
collapsed by default. Uses @tanstack/react-query to fetch
GET /api/v1/sessions/{sid}/lessons with 60s staleTime; query is disabled
when sessionId is null so the header always renders but no fetch fires.
Lesson type is local to the file (loose backend shape).
3 component tests cover: header-only render when sid=null, fetch + render
of titles after expand, and the exact URL/method shape.
Phase 5 Task 48 of React UI v2.0. Adds a collapsed-by-default monitor listing the orchestrator's tool catalog with name, description, and risk badge. Uses react-query with staleTime/gcTime=Infinity to fetch GET /api/v1/tools once per session.
|
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.



Six monitor panels filling the right rail:
<SelectedPanel>— pinned; context-driven detail body (agent / tool_call / message) reading useSelected<OtherSessionsPanel>— pinned; mini-tiles for cross-session awareness (excludes activeSid)<ApprovalsQueuePanel>— pinned; oldest-first list with age, click → switch session<LessonsPanel>— collapsed; react-query per-session fetch from/api/v1/sessions/{sid}/lessons<ToolsPanel>— collapsed; react-query cache-once from/api/v1/tools<HealthPanel>— collapsed; direct fetch of/healthpolled every 30s + last-poll timestamp23 new tests (4+6+4+3+3+4 — agent reports may show counts as +pre-existing). MonitorRail assembly + App wiring follows in next PR.
🤖 Generated with Claude Code