Skip to main content

Live Activity Feed

Cross-project timeline of the audit log. Polls every 5 seconds.

The dashboard ships a Live Activity Feed at /activity (sidebar entry next to Home). It is a cross-project timeline of audit-log rows, scoped to the user's accessible projects, polling every five seconds. Admins see every row; other users see rows from projects where they hold the auditor or admin role, plus their own account activity. Filters by project and action prefix narrow the firehose down to exactly what the operator wants to watch. The Activity Feed reuses the brain's existing HMAC-chained audit log as its source of truth, so the data is the same data the per-project audit page exposes, just unified across every project the caller can see.

Ships with

  • Server-side scope: a user without an auditor or admin membership sees only their own account rows; other users' brain-wide rows are admin-only
  • Filters apply at the query level (project_slug, action_prefix) so the wire payload stays small
  • 5-second polling via TanStack Query; cursor-based pagination, with a since_cursor parameter for API clients that want only new rows
  • Infinite scroll backwards via Load older button (walks next_before_cursor)
  • Status icons (success / deny / failure) and project badges so the timeline is scannable at a glance; denials are recorded where a handler refuses on policy grounds and on refused schedule mutations, so a role check that rejects a request elsewhere returns 403 without writing a row

Highlights

  • A backend test suite pins scope enforcement (admin / non-admin / unmember filter), filters, pagination edge cases, and the unauthenticated-rejection path
  • Backed by GET /api/v1/activity, a single indexed query against audit_log per page; each poll refetches the pages that tab has loaded
  • Each item carries the audit row's action, target, result, outcome and metadata plus a resolved project_slug; source IPs are shown to admins only

Visual task DAG

See your canvas: chains, groups, chords.

Tidy-tree SVG layout of Celery canvas structures. Parent nodes are horizontally centered over their children; runtime badges surface per-node timing; failed nodes fill in red. No heavy graph library, hand-rolled SVG.

z4j overview view with sample project data
Dashboard overview · sample data. Explore the live demo →
  • Subtree-width-aware placement
  • Runtime badges (ms / s / m / h)
  • Click-through navigation to any node
  • Orphan + cycle detection (reparents safely)

Real-time dashboard

Live task, command and agent updates.

A session-authenticated WebSocket tells the dashboard the moment a task, command or agent changes, and the dashboard refetches the fresh state over REST. The dashboard reconnects its WebSocket when interrupted; it does not fall back to long-poll. Agents on restrictive networks can explicitly select the separate HTTPS long-poll transport.

z4j overview view with sample project data
Dashboard overview · sample data. Explore the live demo →
  • Dashboard WebSocket uses the logged-in session plus origin checks
  • Agent WebSocket uses HMAC v2 envelopes with a timestamp, nonce, and monotonic-sequence replay guard
  • Agent WebSocket frames are session-bound, so a frame captured in one session cannot be replayed in the next
  • Explicit HTTPS long-poll transport for agents on restrictive networks

Related

More capabilities

Ready to try z4j?