dashboard: show when an approval was requested (closes #272)

This commit is contained in:
iris 2026-05-22 20:06:45 +02:00
parent 908cadb151
commit a9a10b631f
4 changed files with 40 additions and 2 deletions

View file

@ -208,8 +208,11 @@ agent is stale. Banner pulses on each broker SSE event
Each pending approval renders as a card (`assets/app.js::
renderApprovals`) with three stacked sections:
- **identity header** — glyph, `#id`, agent, kind chip, and (for
`apply_commit`) the short proposal sha as `<code>`.
- **identity header** — glyph, `#id`, agent, kind chip, (for
`apply_commit`) the short proposal sha as `<code>`, and a
right-aligned `requested <N> ago` relative time from
`ApprovalView.requested_at` — amber once the request has been
pending ≥ 1h so a stale approval stands out (issue #272).
- **what-changed body** — the manager's description, then
drill-in triggers: `↳ view diff` opens the diff in the side
panel; `↳ commit on forge ↗` deep-links the proposal commit