Repository navigation
Backlog
0 / 40 of 4 issues completedBacklog
0 / 40 of 4 issues completed
Copy link
Labels
dashboardMining dashboard web UIenhancementNew feature or requesttrackerAn umbrella or roadmap issue with no code change of its own; the runner never picks it
Milestone
Description
What's the problem
Owner request (2026-11-24): "an event log section like we have config and access". It should hold system events such as payouts, shares, "payout hit wallet", XvB switches and errors, "whatever other system events happen". Errors should not be listed inside status cards. Instead, the dashboard should say that errors exist and point to the event log, filtered by an error label.
Today:
- The current UI lists errors inside a status card. The Stack topology and egress card shows each of the last 8 monitoring-ping failures, with a timestamp and an exception name ("Tor proxy ConnectionError", "HTTP status HTTP 408"). In the owner's screenshot they filled most of the card. The code, on
developonly:ping_failures(dashboard/mining_dashboard/service/storage_schema.py:254, newest 50 kept), served asstate.ping_failureswith 8 rows (web/views/views.py:390), rendered byweb/static/network/health.mjs:32-53. - Most events leave no durable record.
- Hashrate events: the generic
eventstable (ts, type, detail) is a chart-marker store. Its only writer isStateManager.add_event, called only forhashrate_lossandhashrate_recovered(service/data_service.py:464). - Alert edges: node down, disk, DB unhealthy or reset, wallet changed, worker offline, container unhealthy, clearnet exposed, XvB and others go to the notification channels. The only other trace is an in-memory per-day count for the daily digest. With no channel on (the default), nothing durable is kept.
- XvB switches are log lines, and
xvb_historysamples about every 5 minutes. - Rig presence changes have no history.
- Egress and Tor state changes keep only the latest state.
- Hashrate events: the generic
- What is recorded is split:
payouts,shares,blocks,raffle_wins,audit_events(settings changes and results) and the access log each have their own table.- On
develop-v2.1.0the Overview Activity list merges some of them (web/views/overview_views.py:72build_mining_activity, browser fallbackweb/static/sovereign/overview-model.mjs:200). It has only a coarse source (Mining, Settings, Access) and no error entries.
What it impacts
- Every dashboard user, on appliance and DIY.
- An operator cannot answer "what happened overnight?" or "when did the errors start?" without reading container logs.
- A notification that fails, or one never sent because no channel is on, leaves no trace in the dashboard.
How I found it
- The request: the owner's request, with a screenshot of the current dashboard's Stack topology and egress card.
- Code read: a read-only read of
developat 32d9834 anddevelop-v2.1.0at bfd061f. The paths above are from that read. - Design context:
- The owner ruled that the current dashboard UI gets no further work; v2.1.0 is the lean UI (v2.1.0 lean UI spec: four pages, one profile control, an Advanced drawer #3566).
- v2.1.0 lean UI spec: four pages, one profile control, an Advanced drawer #3566 section C and Sovereign: build the contribution overview and attention summary #2515 already have a newest-10 Activity list on Overview and a full list with Day / Week / Month / All presets. Sovereign: unify mining events, change results and access history #2529, folded into Sovereign: build the contribution overview and attention summary #2515, dropped other filters. Label filters are new here, at the owner's request, and amend that.
- v2.1.0 lean UI spec: four pages, one profile control, an Advanced drawer #3566 has no dismissable banners. The "banner that says errors" is therefore an attention item with a deep link (rule A6). The status chip keeps linking to Overview (section B).
- Boundaries with other issues:
- Sovereign: build the contribution overview and attention summary #2515 owns the Overview page. This work renames and extends its full Activity view.
- Donation: Activity entries and an attention item when the project endpoint stays down #3735 owns the donation wording and calls this store's helper.
- Let appliance owners download a redacted support bundle of past logs from the dashboard, and log why health pings fail #4032 and Log every failed Healthchecks ping with its reason and show the last failures on the dashboard #4037 own the raw
ping_failuresbuffer, which stays as it is. - A payout-confirmed alert is lost for good if every notification channel fails once #4390 and PR Retry a payout-confirmed alert when every channel fails (#4390) #4421 own payout alert retry and the sink result.
- On-box egress watchdog: alert on non-Tor traffic from the host audit counters #4385 and Network panel shows only this app's egress, not the whole system #4384 own egress detection and alerts. This work only records them.
- Add a bounded, redacted live log API (tail and follow per service) and a dashboard log viewer #3978 and Add a log viewer to the lean UI on top of the log API (mockup approval first) #4422 own raw service logs.
- Sovereign: organize mining and advanced settings without losing fields #2530 owns backup results.
- Dashboard login page with admin and read-only roles, replacing the browser's basic-auth prompt #3872 and Add dashboard login sessions with admin and viewer roles #3895 own sign-in records.
- Unknown: how a host-side event (a watchdog restart of the miner, an upgrade or a rollback) can reach the dashboard without a new host-to-dashboard path.
How important is it
Medium. It gives every health and attention item one place to link to, and it keeps error lists out of status cards. It is not a release blocker. The work is split into the issues below, all in v2.1.0. PRs target develop-v2.1.0.
Acceptance criteria
- The child issues are closed:
- Event log: durable store and read endpoint with labels, severity and error episodes #4432: the store and read endpoint;
- Event log: record error episodes from the dashboard's own detectors #4433: error episodes;
- Event log: record XvB mode switches and rig presence changes #4434: XvB switches and rig presence;
- Lean UI: Event log view with label chips, and one attention item for open errors #4435: the Event log view and the errors attention item.
- On a lean-UI fixture with a failing monitoring ping:
- Overview shows one attention item, "1 error needs attention. Open the Event log."
- The item opens the Event log filtered to Errors.
- No status card lists individual errors.
- The Event log shows payouts, shares and blocks, XvB switches, rig changes, settings changes and errors, each with its label. The label chips filter the list.
Possible solutions
- The split above (recommended): a dedicated
event_logtable with labels, severity and error episodes, kept apart from the chart-markereventstable. Existing tables are read, not copied. The full Activity view becomes the Event log. - A fifth top-level page instead of an Advanced section: closer to "a section like config and access" in the current UI, but it breaks v2.1.0 lean UI spec: four pages, one profile control, an Advanced drawer #3566's four pages and its limit of 10 controls outside Advanced. This is the owner's call.
- A 2.0.x stopgap in the current UI: collapse the ping-failure list in the topology card to a count. This needs the owner to allow one current-UI change. Otherwise the current card stays until the lean UI replaces it.
- Not in this tracker, follow-up when wanted: host-side events (miner watchdog restarts, upgrades, rollbacks); these need a new host-to-dashboard path and a security review. Also Tari merge-mined blocks, which have no data source today, since only a confirmed Tari payout is stored.
Sub-issues
Collapse Sub-issuesSub-issues
Loading 4 sub-issues
Metadata
Metadata
Assignees
Labels
dashboardMining dashboard web UIenhancementNew feature or requesttrackerAn umbrella or roadmap issue with no code change of its own; the runner never picks it
Activity