Skip to content

feat(ui): Agent Detail Overview dashboard as default tab + Info tab redesign #1107

Closed

Description

@vybe

Summary

Redesign the Agent Detail page so the default landing tab is a glanceable, fully-deterministic "Overview" that emphasizes trends over the last several days — charts of execution volume, success rate, duration, executions-by-type, and context consumption over time — not just the current state. In the same pass, rework the Info tab so it leads with the agent's description/"about" narrative and tucks the exhaustive template.yaml metadata behind expandable sections.

Everything is deterministic (DB time-series, config flags, git/sync state, health rollups) — no LLM-generated content.

Updated 2026-06-09: reoriented from point-in-time stat cards to continuous multi-day charts; added success rate, duration stats, and executions-by-type breakdowns; the "needs attention" zone is now a count + link to the ops page, not an inline list.

⚠️ Non-duplication constraint (key requirement)

The persistent AgentHeader (src/frontend/src/components/AgentHeader.vue) renders above the tabs and is always visible. It owns the live/instant signals and cost:

Header owns
Live CPU% + sparkline, MEM + sparkline, uptime-since-start Row 2 (agentStats)
Cost: today, 7-day sparkline, trend vs avg, lifetime cost + run count Token-usage row (tokenStats)
Git repo/branch/commit + Pull/Push, circuit-open badge, autonomy/read-only/auth chips Rows 1–3

Clean split: the header = "now + cost", the Overview = "trend over the last few days" (operational time-series + compact pointers). The Overview must not re-render the header's live gauges, cost cards, git controls, autonomy/read-only/auth chips, or circuit badge; where it needs to reference one (e.g. circuit open), it links to the header control.

Design — "Overview" as the new default tab

1. About (lead)

  • Agent description + tagline, with a "Full details →" link to the redesigned Info tab.
  • A one-line task-entry that deep-links into Tasks (preserves the action surface).

2. Needs attention (compact — count + link only)

  • Show only the number of active alerts — a single badge combining pending operator-queue items + active notifications + sync-failing.
  • Link to the Operating Room / alerts page (or a specific alert) to see details.
  • Do not render an inline list or per-item details.
  • Hidden when the count is zero.

3. Trend charts (the core) — multi-day history

Charts over a selectable window (default 7d; selector 7 / 14 / 30d):

  • Executions per day, stacked by type — grouped into user-facing buckets: Chat, MCP calls, Channels (Telegram/Slack/WhatsApp), Public link (public/paid), Scheduled (schedule/webhook), Agent-to-agent (agent/fan-out), Voice (voip). Volume + type mix + trend in one chart, with per-type totals for the window.
  • Success rate over time — a success-rate % line (0–100%) per day across the window, plus a headline % for the window. This is a separate series from the by-type stack (outcome and type are orthogonal — a single bar can't stack by both).
  • Duration statistics — avg + p95 (server-computed) + a duration trend line.
  • Context-window consumption over time.
  • A small live readout of running + queued can sit alongside the charts.

These replace the single-number stat cards — the point is to show the shape of recent activity, not just the latest value.

4. Health & reliability — trends + current flags

  • Aggregate health (healthy / degraded / unhealthy) + heartbeat liveness.
  • Trend lines for 24h→Nd uptime% and avg latency over the window (from monitoring history).
  • Restart count + OOM flag as current indicators.

5. Recent activity (secondary drill-in)

  • Recent-executions mini-list (last ~5, status dots + type) → deep-links into the Tasks tab. Sits below the charts (charts lead; the list is the drill-in).

6. Footprint (compact, static)

  • Sharing (count + access policy, owner-gated), sync-health (status + last sync), skills/playbooks (counts) — small status chips. Point-in-time, not charted.

7. Info tab redesign (drill-down detail)

  • Lead with About (description, tagline, use cases — keep "What You Can Ask" above the fold).
  • Move exhaustive technical metadata (sub-agents, commands, MCP servers, tools, capabilities, platforms) into collapsible "Technical details" sections.

Layout & behaviour

  • A time-window selector (7 / 14 / 30d) controls all charts.
  • Responsive card grid; attention badge pinned only when count > 0.
  • Graceful degradation when stopped: charts still render historical data from the DB; live readouts show "offline".

Acceptance Criteria

  • Overview is the default tab and emphasizes multi-day trend charts, not just current state.
  • Over the selectable window (7 / 14 / 30d), the Overview charts show, each as a multi-day trend (not a single value): executions by type (chat / MCP / channels / public / scheduled / agent / voice), success rate (a 0–100% line over time), duration (avg + p95), and context consumption.
  • Executions-by-type groups the raw triggered_by values into the user-facing buckets above (incl. per-channel tagging) + shows per-type totals for the window.
  • "Needs attention" shows only a count of active alerts + a link to the ops/alert page — no inline list or details; hidden when zero.
  • No element duplicates AgentHeader (live CPU/MEM, cost, git, autonomy/read-only/auth chips, circuit badge).
  • Overview leads with the About narrative + a task-entry that deep-links to Tasks.
  • Health panel shows aggregate status + heartbeat + uptime/latency trends + restart count + OOM.
  • Recent-executions mini-list deep-links into the Tasks tab.
  • Info tab redesigned: About leads; exhaustive template.yaml metadata behind expandable sections.
  • Degrades gracefully when the agent is stopped; all content is deterministic (no LLM-generated content).
  • Existing tabs (Chat, Session, Dashboard, Schedules, …) and AgentHeader are unchanged.

Technical Notes

The execution metrics all come from schedule_executions (triggered_by, duration_ms, status, started_at):

  • Executions by type / success rate / duration: GROUP BY triggered_by, day buckets, success/total, duration percentiles.
    • ⚠️ Channel executions are tagged with the channel name (triggered_by = telegram / slack / whatsapp, see adapters/message_router.py:431), and there are ~17 distinct raw values (chat, session, mcp, public, paid, schedule, webhook, manual, agent, fan_out, loop, voip, …). The by-type view must group these into the user-facing buckets, not show raw values.
  • Context / latency / uptime trends: GET /api/monitoring/agents/{name}/history?hours=&check_type=business|aggregate (already returns historical metrics).
  • Attention count: GET /api/agents/{name}/notifications/count + pending operator-queue count + sync-state consecutive_failures — counts only, no full lists.
  • About / Info: GET /api/agents/{name}/info. Footprint: /schedules, /shares, /access-policy, /git/sync-state, /skills, /playbooks.

Build a per-agent analytics endpoint — generalize the #868 per-schedule analytics (/schedules/{id}/analytics: duration p50/p95/p99, success rate, daily timeline, tool-call breakdown) to agent scope with a triggered_by breakdown: GET /api/agents/{name}/analytics?window=. Duration percentiles + type grouping + day buckets are best computed server-side (router→service→db, invariants #1/#4/#14) — this resolves the earlier "consolidation endpoint" open question (build it; don't client-bucket thousands of rows). The same query can back the Overview charts and a future audit/billing rollup.

Charting: reuse/extend the SparklineChart.vue pattern or a small labeled line/area + stacked-bar chart (day axis + tooltip + legend) — richer than the header's compact cost sparkline, since trends are now the focal content.

Key files: src/frontend/src/views/AgentDetail.vue (default activeTab, visibleTabs), src/frontend/src/components/InfoPanel.vue (Info redesign), src/frontend/src/components/AgentHeader.vue (non-duplication reference), new OverviewPanel.vue, new analytics endpoint (routers/ → services/ → db/schedules.py alongside the #868 query). Frontend invariants #6 / #7.

Activity

  1. added
    priority-p2
    type-feature
    theme-ui-ux
    complexity-high
    on Jun 9, 2026
  2. vybe commented on Jun 9, 2026

    @vybe
    ContributorAuthor

    /claim

  3. added
    status-in-progress
    on Jun 9, 2026
  4. github-actions commented on Jun 9, 2026

    @github-actions

    Claimed by @vybe. Label status-in-progress added.

    Next steps:

    1. Create branch: feature/1107-<short-slug>
    2. Implement the feature
    3. Open a PR with Fixes #1107
  5. removed
    status-in-progress
    on Jun 9, 2026
  6. vybe commented on Jun 9, 2026

    @vybe
    ContributorAuthor

    /claim

  7. github-actions commented on Jun 9, 2026

    @github-actions

    @vybe This issue is already assigned to vybe. Use /unclaim first if you want to take over.

  8. added
    status-in-dev
    on Jun 9, 2026
  9. 3 remaining items

  10. removed
    status-in-dev
    on Aug 7, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

complexity-highpriority-p2theme-ui-uxtype-feature

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions