Repository navigation
web: Add Tasks to the monitoring sidebar - #1681
Conversation
Make Tasks a pinnable panel in the monitoring sidebar alongside Logs / Protocol / Network / Console, so a live task list can be watched beside any screen. - InspectorView: add TASKS_TAB, extend the MonitorTab union / MONITOR_TABS / isMonitorTab, and add a monitorScreens[TASKS_TAB] entry built from a shared tasksScreenProps object (so the embedded and full-size instances can't drift), with the shared column search injected into its ui.search. The full-size Tasks screen now uses the same shared props. - TasksScreen / TaskListPanel: add an embedded prop mirroring LoggingScreen/LogStreamPanel — when embedded the screen fills its column height and drops the controls sidebar, and TaskListPanel scrolls via EmbeddableScrollArea (whose full-size cap matches the old viewport calc, so the standalone screen is unchanged). Tasks is capability-gated: it only appears in the monitor group when the server advertises the tasks capability (via availableTabs), so no change is needed to the failed-connect subset. Closes #1680 Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]>
|
@claude review |
|
Claude finished @cliffhall's task in 3m 23s —— View job Review: Tasks in the monitoring sidebar
Overall this is a clean, faithful extension of the Logs/Protocol/Network monitor-panel pattern. The I found one substantive inconsistency with the sibling panels worth addressing, plus a couple of minor notes. 1. Embedded
|
Mirror the sibling monitor panels: the embedded column exposes only the shared search box (its status filter lives in the full-size sidebar, which the embedded view drops), so a stale status filter must not silently hide tasks with no visible control to clear it. Thread an `ignoreStatus` flag into TaskListPanel.matchesFilters, set from the `embedded` prop — matching LogStreamPanel's `ignoreLevels`, NetworkStreamPanel's `ignoreCategories`, and ProtocolListPanel's `ignoreDirectionAndMethod` (#1616). Add tests for the ignored-status / still-applied-search embedded behavior, plus a direct assertion that the Tasks radio appears in the monitor column. Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]>
|
Thanks — good catch on #1. Addressed it: #1 — embedded status filter → fixed to match the siblings. Threaded an Tests — added the two you suggested: the embedded panel ignores a set Minor notes acknowledged (default monitor tab still Logs; Clear/ListToggle kept in the embedded header like @claude review |
|
Claude finished @cliffhall's task in 49s —— View job Re-review: embedded status-filter fix
The fix in
The Tests — accurate against the fixtures. I checked both new
The Nothing else outstanding — the minor notes from the first pass were all acknowledged and were non-blocking. Nice, tight follow-up. |
|
Thanks for the thorough re-review! 🙏 The one substantive point is resolved and everything else was non-blocking, so closing the review loop here. |
Closes #1680
Makes Tasks a pinnable panel in the monitoring sidebar (#1616) alongside Logs / Protocol / Network / Console, so a live task list can be watched beside any screen.
Changes
InspectorView.tsx— added aTASKS_TABconstant; extended theMonitorTabunion, theMONITOR_TABSmembership set, and theisMonitorTabguard. Added amonitorScreens[TASKS_TAB]entry rendering<TasksScreen … embedded>with the sharedmonitorSearchinjected intoui.search, built from a new sharedtasksScreenPropsobject — and refactored the full-size Tasks screen to use the same object so the two instances can't drift (matching the Logs/Protocol/Network pattern).TasksScreen— newembeddedprop mirroringLoggingScreen: fills the column height (h: 100%) and drops the controls sidebar so the narrow column is list-only.TaskListPanel— newembeddedprop; swaps the raw viewport-calcScrollArea.AutosizeforEmbeddableScrollArea embedded={embedded}.EmbeddableScrollArea's full-sizemahis the same calc the panel used before, so the standalone Tasks screen is byte-for-byte unchanged.Notes
taskscapability (already surfaced byavailableTabs), somonitorAvailablepicks it up once it's inMONITOR_TABS; the failed-connect subset needs no change (no tasks without a live session).Verification
EmbeddableScrollArea); full-size Tasks screen unchanged; capability-gating confirmed.npm run validate(format/lint/build/unit) + Storybook a11y gate +npm run coverage(≥90 per-file, 3957 tests) — all green locally.🤖 Generated with Claude Code