Repository navigation
feat(dashboard): one timeline of events and the journal (ADR-0067 addendum) - #334
Merged
Merged
Conversation
…endum, #331) - /v1/events carries `{type: "journal", entry}` for every entry the daemon records: the main tree's stream all of them, a lane's its own. - The Events page becomes Activity: it loads GET /v1/journal on each snapshot and merges it with the live events; journal rows show their client, refused ones their error; filters by client and lane. - Rows are named from method and path by a table of the mutating routes; an unknown path shows as it came. - A viewer of a shared lane may read its /v1/journal (the node's allowlist). - The lane on the main ports says since when and through what; a service's details show its last action. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
7schmiede
force-pushed
the
feat/journal-timeline
branch
from
October 27, 2026 22:31
6cf27ca to
09b1dee
Compare
Merged
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes #331.
Review card (approved in #331)
/v1/eventsgains{type: "journal", entry}, sent when the daemon appends an entry: the same entryGET /v1/journalreturns, a lane's withlane.GET /v1/journal, then both arrive live; a journal row shows its client (via), a refused one (status≥ 400) its error.METHOD path; the journal's format stays as it is./v1/journaljoins the read-only paths of/hub/pool/shared/{lease}/api/...: whoever views a shared lane sees its journal.main_servedon the lane that holds the main ports andlast_actionin the service view.As built
Journal::subscribe(a broadcast of each recorded entry); every supervisor follows it (follow_journal) and sends the entries for its tree (Entry::for_tree) as events with its ownseq, so the stream's gap detection holds.viewableletsv1/journalthrough (point 4; the allowlist lives in the node, not the hub).ui/src/lib/journal.ts(route table,forTree,viaText); the store keepsjournalapart fromevents, fetches?since=after each snapshot (connect, reconnect, lag) and dedupes against the stream;EventsViewmerges both (title Activity, route unchanged);StackHeadersays "serves the main ports since 10:42, set via the dashboard"; the service's details get Last action. An older daemon without/v1/journaljust shows events.docs/dashboard-api.md(the event, the viewer paths), ADR-0067 addendum, CHANGELOG.A lane on a node (and a shared one) reads its own daemon's journal there, which runs as a main tree, so its entries have no
lane;forTreekeeps them all.Checked
cargo clippy/cargo fmt --checkclean;cargo test -p devstack-daemon --lib(165), node viewer test.npm run typecheck,vitest(79, incl. newjournal.test.ts); the page looked at in the mock.🤖 Generated with Claude Code