Skip to content

Lean UI: Event log view with label chips, and one attention item for open errors #4435

Backlog

Description

@pithead-architect

What's the problem

Part of #4431. The owner wants "an event log section like we have config and access", with errors filtered by label, and errors pointed to from the dashboard instead of listed in status cards. On develop-v2.1.0:

  • The full Activity view (reached from Overview's "All retained activity" link, dashboard/mining_dashboard/web/static/sovereign/overview.mjs:70,120) has only the Day / Week / Month / All presets and no labels.
  • The attention list (overview.mjs:91-109) has no item for errors that have no badge, such as a failing monitoring ping or an undelivered notification.

What it impacts

Every lean-UI user, on appliance and DIY, and the Overview attention list.

How I found it

A read-only read of develop-v2.1.0 at bfd061f (overview.mjs, overview-model.mjs, status.mjs:30), together with #3566 sections B and C, rules A2 to A7, and #2515.

How important is it

Medium. Blocked on #4432 (the endpoint). This issue amends #2515's Activity section: it renames it and adds label chips, at the owner's request.

Acceptance criteria

Event log view

  • The full Activity view is renamed Event log in the drawer, the page heading, the deep links and docs/dashboard.md. It reads /api/events.
  • Chips:
    • an Errors chip (severity error) is always shown, with the empty state "No errors recorded";
    • after it, one chip per label that has at least one retained entry on this platform: Payouts, Shares and blocks, Wallet, XvB, Rigs, Settings, System;
    • a label with no entries has no chip (v2.1.0 lean UI spec: four pages, one profile control, an Advanced drawer #3566 A3);
    • counts follow the selected preset;
    • selecting several chips shows entries that match any of them.
  • Day / Week / Month / All is the only time control. The list shows at most the newest 500 entries, and says "Showing the newest 500" when more match. There is no from/to, search or paging.
  • A deep link opens the log with a filter already applied, for example the Errors chip.

Overview

  • The Overview Activity card shows the newest 10 entries that are not errors.

  • An open error episode with no existing badge or attention item adds one attention item, "N errors need attention. Open the Event log.", which opens the Errors view. This applies, for example, to the monitoring ping or an undelivered notification. The item:

    • sits after "failed shares" and before the pool-tier suggestion;
    • cannot be dismissed;
    • clears when the episode closes.

    A fault that already has a badge is never counted twice. The status chip keeps linking to Overview (v2.1.0 lean UI spec: four pages, one profile control, an Advanced drawer #3566 B), and its count includes this item.

  • Wherever the lean UI shows monitoring or Tor state, it shows one line, "Monitoring ping: N problems in the last 24 hours" (counted in episodes), linking to the Errors view. It never shows a list of failures.

Checks

  • The control-count fixture (v2.1.0 lean UI spec: four pages, one profile control, an Advanced drawer #3566 A2) still passes on the appliance fixture and on DIY with and without login, with the Event log open.
  • Entry text is plain sentences (A4).
  • Chips and entries meet WCAG AA contrast in light and dark, and are reachable by keyboard (A5).
  • The docs and tests of the replaced Activity code are updated or deleted (A7).
  • Frontend tests with fixtures cover the chips and their counts, hidden chips, the Errors empty state, the 500 cap message, the deep link, and the attention item appearing and clearing. Playwright opens the log from the attention item at 375 px and on desktop and sees only error entries.
  • No current-UI file is edited.
  • make test-frontend, make test-patch-coverage and make lint-file-budget pass.

Possible solutions

Metadata

Metadata

Assignees

No one assigned

    Labels

    dashboardenhancementsize:M

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions