Skip to content

Console: events view #276

Closed
Closed

Description

@V3RON

Part of #88.

Scope

The operator sees recent events, newest first, with new ones appearing as
they happen. Each shows its time, name, worker on a gateway, and the facts
in its payload. No event shows a secret.

Technical spec

Implements the events row of ADR 0013 §1 and the fill rules of §2 and §5.

Modules touched

  • ui/: the Events view.
    • On open: open the stream, then load GET /v1/events, then merge,
      each event once by seq and timestamp (ADR 0013 §2).
    • After a reconnect or a hidden tab shown again: the same, with since
      set to how long it was away, in whole seconds, rounded up (§5).
    • Keeps the newest 1000 events in memory; older ones drop off the end.
    • Each row: time, event name, workerId as the worker's label when the
      worker is known, and the payload as key and value pairs.
    • A filter by event subject (lease, device, worker, component,
      the rest).
  • docs/CONSOLE.md: the Events view.

Contract and event changes

None. Reads GET /v1/events and GET /v1/events/stream. Secrets are kept
out of events by #170, not by the console; the console shows the payload as
the daemon sends it.

Rules in play

  • events.md: the console reads the catalogue; it does not rename or
    reshape events.
  • safety.md: wire input is a claim; an unknown event name or payload shape
    renders as raw key and value pairs.

Tests

  • the events view lists events from the stream and from the replay once each
  • an event in both the replay and the stream is shown once
  • events with the same seq from before and after a daemon restart are both shown
  • after a reconnect the gap is filled from GET /v1/events with since rounded up to whole seconds
  • the view keeps the newest 1000 events
  • an unknown event name renders with its payload
  • Browser lane, in Chromium, Firefox and WebKit:
    • a lease taken with the CLI appears in the events view within a second
    • on a gateway, a worker's event shows that worker's label
    • a worker joining a gateway shows no join token anywhere in the events view
    • the Events view has no horizontal scroll at 360px wide
    • the Events view is usable with the keyboard alone

Done when

  • The events view matches simlock events --since 1h and then follows new
    events live.
  • Stopping and starting the daemon leaves no gap and no duplicate.
  • A worker joining shows no join token in the events view.
  • The browser lane passes in all three browsers.

Out of scope

  • History beyond what GET /v1/events returns.
  • Exporting events.

Depends on

Approval

  • Approved for delivery

Written by an agent.

Activity

  1. added
    task:draft
    on Oct 2, 2026
  2. self-assigned this
    on Oct 2, 2026
  3. added
    task:ready
    on Oct 3, 2026
  4. github-actions commented on Oct 3, 2026

    @github-actions
    Contributor

    Now task:ready: approved, technical spec present, #272, #170 closed.

  5. removed
    task:draft
    on Oct 3, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

task:ready

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions