Skip to content

feat(ui): rebuild the Agent Detail Overview as a page about the agent (abilityai/trinity-enterprise#1317) - #4684

Merged
vybe merged 3 commits into
devfrom
feature/1317-agent-overview-redesign
Nov 20, 2026
Merged

vybe merged 3 commits into
devfrom
feature/1317-agent-overview-redesign

Conversation

@trinity-ability

Copy link
Copy Markdown
Contributor

Summary

  • The Agent Detail Overview tab is rebuilt: Now, Activity beside Recent work, three measures (Finished, Time per run, Context used), the agent's own declared metrics, Schedules, Health.
  • Every section keeps one footprint across loading, empty, failed and ready. A new agent with no runs, schedules, metrics or health checks gets the whole page: ghost charts, a dash for anything never measured (never 0%), and an empty state naming what will appear and one next action.
  • The compatibility report is no longer on the Overview (operator ruling at the plan gate). CompatibilityPanel is mounted in Settings › General only.

Changes

Frontend

  • components/OverviewPanel.vue is layout and wiring only.
  • components/overview/ holds the seven sections: Now, Activity, Recent, MeasureTile, Reported, Schedules, Health.
  • stores/agentOverview.js: one source per section with its own loaded/failed state. A different agent blanks every source before the first render, and only the newest read of a source may write, so a failed or slow read cannot leave another agent's or another window's figures on screen.
  • utils/overviewShape.js: pure shaping (columns, readout, line paths with gaps, tile faces, now state, health blocks).
  • The activity chart has no floating tooltip; one reserved line shows the window summary at rest and a day's breakdown on hover or arrow keys.
  • utils/executionBuckets.js: Reminders, Rooms and Operator queue get their own colours.
  • agent-settings/GeneralPane.vue mounts CompatibilityPanel.

Backend

  • db/schedules/analytics.py, models.py: additive context_pct_avg on the agent analytics timeline and envelope (share of each run's own context window; runs with no known window are skipped). No schema change, no migration.

Docs

  • Feature flow, frontend/agent-lifecycle/api-endpoints architecture files, requirements (core-agent.md 1.6a, lifecycle-observability.md FR-1), and the user docs that pointed at Overview for the compatibility report.

Differences from the reviewed mock

  • No Cost tile: the header already owns cost, and a second figure would disagree with it and mislead on subscription-funded agents.
  • Schedules rows show a finished/failed split bar with "9 of 10 finished in 14d". The API has no per-run history for the mock's run marks.
  • The health strip covers the span the history read actually returns (about 8 hours at the default cadence) and labels it, not "7 days".
  • The attention chip counts notifications, asks and failed syncs, as the old banner did.

Known consequences

  • The stored compatibility report now refreshes on deploy or when Settings › General is opened, not on every Overview load. Non-owners no longer see the report.
  • The top-of-tab name/tagline/description block is gone; the header shows identity. A non-owner loses the full description when a tagline exists.

Test Plan

  • cd src/frontend && npx vitest run — 562 files, 8414 tests pass (includes the raw-colour, loading-gate, source-text and scanline-importer guards)
  • npm run check:tokens passes
  • cd tests && pytest -p no:randomly unit/test_agent_analytics.py unit/test_1771c_schedules_analytics_edges.py — 86 pass
  • Browser, against a local stack: new agent in light and dark at 1440 and 390; active agent (API responses stubbed in the browser, since no local agent has run history) in light at 1440 and 390 and dark at 1440; no horizontal page scroll in any of them; hover readout checked
  • Not browser-checked: two small layout tweaks made after the screenshots (schedules list max height, metric tiles two-up at phone width), and the context percentage against a real backend with this branch's field (the local stack ran the previous backend; the path is unit-tested)
  • /cso --diff not run (P2; no new endpoint, auth boundary or input path)

Fixes abilityai/trinity-enterprise#1317

🤖 Generated with Claude Code

…Abilityai/trinity-enterprise#1317)

The Overview led with a compatibility report, collapsed its charts into an
icon and a sentence when there was nothing to show, and read as a platform
health dump. It is now, top to bottom: Now (state, next scheduled run, items
needing attention, New task), Activity beside Recent work, three measures over
the same window (Finished with its denominator, Time per run, Context used),
the agent's own declared metrics, Schedules and Health.

Every section keeps one footprint across loading, empty, failed and ready. An
agent with no runs, schedules, metrics or health checks gets the whole page:
dashed ghost bars and curves, a dash for anything never measured (never 0%),
and an empty state that names what will appear and one next action.

- OverviewPanel.vue is layout and wiring only; sections live in
  components/overview/, reads in stores/agentOverview.js (one source per
  section with its own loaded/failed state), decisions in
  utils/overviewShape.js.
- A different agent blanks every source before the first render, and only the
  newest read of a source may write, so a failed or slow read can never leave
  another agent's or another window's figures on screen (#3815
  for this panel).
- The activity chart has no floating tooltip: one reserved line shows the
  window summary at rest and a day's breakdown on hover or arrow keys
  (#3591 cannot recur here). Failures sit on their own rail.
- The compatibility report is no longer on the Overview (operator ruling);
  CompatibilityPanel is mounted in Settings > General only.
- No cost tile: the header owns cost.
- Backend: additive context_pct_avg on the agent analytics timeline and
  envelope (share of each run's own context window, runs with no known window
  skipped). No schema change.
- Reminders, Rooms and Operator queue get their own bucket colours
  (#3597, first half).
- The health strip covers the span the checks actually cover and says how far
  back that is, instead of a "7 days" axis the capped history cannot fill.

Tests: overviewShape.spec.js (pure rules), overviewPanel.mount.spec.js
(mounted: the no-data agent, the active agent, hover/keyboard readout, window
switch, out-of-order responses, failed reads, agent switch, KeepAlive
deactivate/activate), the two existing Overview specs ported unchanged in what
they assert, and test_agent_analytics.py for the new field.

Co-Authored-By: Claude Fable 5.2 <[email protected]>
trinity-ability and others added 2 commits November 20, 2026 13:26
…k shows how many failed (Abilityai/trinity-enterprise#1317)

Operator review of the running page, 2026-11-20.

- Recent work and the Now row title a run by the first non-empty line of its
  prompt, on up to two lines, with the whole prompt on hover. Real prompts are
  long and multi-line; one truncated line of collapsed text told nothing. A
  scheduled run is titled by its schedule's name with the command beneath.
- The failure mark under the activity baseline is 3-8px tall, scaled by how
  many runs failed that day relative to the window's worst day, so '5 failed'
  across three marks is readable without hovering. The legend says so.

Co-Authored-By: Claude Fable 5.2 <[email protected]>
Abilityai/trinity-enterprise#1317)

Runs per day are one curve with failures as a second curve on the same
scale, replacing the stacked bars and the failure marks under the
baseline. What started the runs is one split bar for the window with a
count and share per source. The line under the title stays the window's
summary; a hovered day's figures sit in a label beside the guide inside
the plot, so reading a day moves nothing else on the page.

Co-Authored-By: Claude Fable 5.2 <[email protected]>

@vybe vybe left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

/validate-pr: APPROVE (Lane B). Tier 1 green on ed147ac incl. regression diff, build, e2e; touched specs (126 frontend, 86 backend) re-run locally on the head; dev-ci green on the dev tip. Notes: /review and /cso --diff not run; two late layout tweaks and dark@390 for the active agent not browser-checked (stated in the PR body).

@vybe
vybe merged commit 2d02bf1 into dev Nov 20, 2026
29 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ui PR touches the frontend UI — triggers Playwright e2e tests

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants