You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Dashboard: one timeline of events and the journal (ADR-0067) #331
The journal (ADR-0067, GET /v1/journal) records which client changed the stack at runtime; the dashboard does not show it yet, and the events page only shows what arrived since it connected. Showing both in one timeline puts a cause next to its effect: "stop api, via dashboard" right above "api stopped".
Review card (approved by the owner)
/v1/events gains {type: "journal", entry}, sent when the daemon appends an entry: the same entry GET /v1/journal returns, a lane's with lane.
The dashboard's Events page becomes one timeline of events and journal entries: on opening it loads GET /v1/journal, then both arrive live; a journal row shows its client (via), a refused one (status ≥ 400) its error.
The dashboard labels a journal row from its method and path with a table of the mutating routes; a path the table does not know shows as METHOD path; the journal's format stays as it is.
/v1/journal joins the read-only paths of /hub/pool/shared/{lease}/api/...: whoever views a shared lane sees its journal.
The dashboard shows main_served on the lane that holds the main ports and last_action in the service view.
Decided on my own: the page keeps its route and is titled "Activity"; the journal gets a filter chip, plus filters by client and by lane; after a lag snapshot the page fetches GET /v1/journal?since=<last> so it misses no entry; no OpenAPI schema (a separate issue if wanted).
Why not the journal only
The journal records requests, not their consequences or what happens without one: a failed or held build, a health check, a dev server's rebuild, the file watcher, notices, containers. Events stay the live view; the journal is the record.
Touches
crates/devstack-daemon/src/journal.rs, the event bus, api.rs
crates/devstack-hub/src/lib.rs (the shared lane's read-only paths)
ui/src/api/types.ts, ui/src/stores/stack.ts, ui/src/views/EventsView.vue, the lane and service views
docs/dashboard-api.md; ADR-0067 (Enforced by) once built
Activity
feat(dashboard): one timeline of events and the journal (ADR-0067 add…
feat(dashboard): one timeline of events and the journal (ADR-0067 add…