Skip to content

Sovereign: build the contribution overview and attention summary #2515

Open

Description

@VijitSingh97

What's the problem

#2515 still specifies the pre-lean Overview: a hero page on the old Simple/Advanced shell, five bullets that link out to separate detail pages, and no owner for the work folded into it on 2026-10-21 (the chart from #2516, Activity from #2529, the P2Pool effort and failed-shares reader from #2492). Building to it would revive the 36-screen scope. The owner ruled that no work goes into the current dashboard UI and that old-UI stories are adapted to the new one. This story becomes the Overview page of the lean UI spec #3566 (section C): one screen that answers "is it healthy and am I earning?".

What it impacts

How I found it

How important is it

High among v2.1.0 UI work. Overview is the home page and carries the lean claim that a tester finds hashrate, last payout and "is it healthy?" unaided. It is not a release emergency and does not need the configuration model (#3557). It waits only for the shell #2513, whose PR is in review.

Acceptance criteria

Scope

Content (healthy fixture)

  • One plain sentence of status, "Everything is running normally" when healthy.
  • Tiles: hashrate now and 24 h with units, shares found, last payout, and estimated earnings per day. The estimate tile renders only once Investigate: P2Pool's PPLNS window is dynamic (2× network-difficulty cap); the dashboard models it as 2160 blocks × nominal block time #2479 has landed; until then it is absent and no estimate is shown. With it the healthy fixture shows four tiles.
  • Rigs summary ("3 of 3 mining") linking to Machines; node line (Tari omitted when Tari is off); this machine with CPU, RAM, disk and HugePages where relevant; the appliance OS verdict banner when present and only on the appliance.
  • Missing backend data is shown as unavailable, never as fabricated live data. Copy has no anonymity scores, maps, price speculation or gamified rewards.

Chart

  • Hashrate chart with payout markers, plus a strip under the line on the same time axis that shows where the hashrate went: P2Pool, XvB (Hashrate chart: make the donated share of hashrate readable at a glance #2475), the Pithead project donation (Opt-in hashpower donation to the Pithead project wallet #2476) and the XMRig developer donation (Let owners support the XMRig developers from each rig's panel (default off) #3731). Each destination has its own colour, and the legend shows its share. A destination that is off gets no colour and no legend entry. With every donation off, the strip is hidden. A destination whose exact timing is not observable shows its configured share, labelled as estimated. This matches the owner-approved mockup (2026-10-27).
  • Range control Day / Week / Month. Zoom by pinch, drag or keys; a double tap resets; there is no Reset button; ordinary scrolling still scrolls the page.
  • Real timestamps with gaps where data is missing, a sentence when history is insufficient, reduced motion respected.
  • Extra series (shares, events, raffle wins, XvB %) are behind Advanced. The mine-cart strip and averaging row are gone.

Activity

  • The newest 10 entries of one list of mining events, settings changes with results, and sign-ins. Secrets stay redacted. An empty, rotated or unavailable source shows an empty state.
  • The full list with Day / Week / Month / All presets is behind Advanced > Activity. No from/to, search or paging.

P2Pool fields and attention list

  • The first PR reads only effort and shares_failed from the P2Pool data API, and no other Read the P2Pool data-API fields already on disk: effort, shares_failed, block_reward_share_percent, pool/blocks, stats_mod #2492 field. They feed the attention list (failed shares).
  • A deterministic attention list built from existing evidence. Each of these conditions shows one sentence and a working deep link to the exact place that fixes it: rig offline, node not synced, Tor unhealthy under Balance or Privacy, disk low, update available, no backup yet, tamper alarm, config warning, failed shares, pool-tier suggestion (deep link to Advanced > Pool and rigs; the stack never switches tier on its own).
  • Waiting, degraded, disconnected and stale states are stated in plain words with a next step and never presented as current. A hot rig may still be mining; an active share is not promised as a payout.

Advanced and removals

  • Behind Advanced: My node detail, pool-wide stats, network card, XvB tier block, topology map. Removed: Tari card, pool cadence and luck card, XvB stats card, Show all / Show less toggles.

Controls and platforms

  • Overview adds exactly one counted control (chart range). The healthy fixture shows that one control. The control-count test stays at or under 10 on the appliance, DIY with login and DIY without login fixtures.

Quality

  • 375 px has no horizontal scroll; keyboard reaches every link; WCAG AA contrast holds in light, dark and OS-following themes.
  • Fixtures: healthy, empty, stale, Tari off, XvB off, partial fleet, and one per attention condition. A tester finds hashrate, last payout and "is it healthy?" on the first screen unaided at 1280 px and 375 px.
  • The Overview section of the dashboard docs is updated and the docs and tests of removed controls are deleted. No explanatory source comments. The PR attaches sanitized screenshots at 375 px, tablet and desktop from the repo's viewport tool (No in-repo tool to screenshot the dashboard at a given viewport width #2402). No live deployment and no change to miners or nodes.

Possible solutions

Earlier scope, kept as evidence only (superseded 2026-10-27; do not implement from it)

What's the problem

Parent: #2478 · Milestone: Sovereign UI — post-2.0 · After 2.0.0 GA; not a GA release blocker.

Deliverable

Give a miner a fast answer to whether mining is contributing and what needs attention, with the Sovereign hero kept to this page.

  • Work type: Existing UI redesign.
  • Design references: Overview study (existing Sovereign mockups attached below; sample data, not runtime evidence).
  • Inventory coverage: O1–O5; N7 summary.

Existing Sovereign mockups

Existing concept images with sample data. The acceptance criteria and validated host/API contracts take precedence over illustrative labels or values.

Overview · Overview

Sovereign — Overview

Complete 36-image gallery · Parent: #2478

what it impacts

Dependencies and boundaries

Build on #2513.

Use the current host/API/schema contract when implementation starts; the design inventory is a baseline, not proof that develop has not changed. Preserve the parent accessibility, privacy, offline and authority rules. Any missing backend capability must be explicit, never represented by fabricated live data.

How I found it

Verification

Verify healthy, empty, syncing, stale, Tari-off, XvB-off and partial-fleet fixtures; check that each summary links to one detailed home. Follow #2478's required checks and attach sanitized visual evidence to the implementing PR. This issue does not authorize a live deployment or changes to miners/nodes.

how important is it

Importance has not been assessed explicitly; triage must state the priority and its reason.

acceptance criteria

Acceptance criteria

  • Show hashrate with units/range, mining mode, mining/total workers, shares in the actual window, blocks and recent recorded payouts with links to their detail pages.
  • Display routed P2Pool/XvB rates, last share and eligibility only when relevant; hide disabled Tari/XvB operational cards without hiding their setup/discovery entry points.
  • Make waiting, degraded, disconnected and stale states actionable. A hot worker may still be mining; an active share is not a promised payout.
  • Include a compact server-resource warning and deterministic attention list from existing evidence; link to the owning worker, node or server screen.
  • Use privacy/independence copy without anonymity scores, geographic maps, price speculation or gamified rewards.

possible solutions

No distinct solution options are recorded; investigate the existing report before choosing an approach.

Activity

  1. added
    enhancement
    dashboard
    on Sep 22, 2026
  2. pithead-developer commented on Sep 24, 2026

    @pithead-developer
    Contributor

    Investigation brief (operator pre-read, 2026-09-23)

    Still open, unstarted, correctly milestoned. gh api repos/p2pool-starter-stack/pithead/issues/2515 shows no linked PR (search across all PR states, not just merged, confirms); grep -ril sovereign dashboard (excluding .venv) in the pithead-ro checkout at develop returns nothing — the current dashboard still ships the pre-Sovereign Simple/Advanced split (dashboard/mining_dashboard/web/static/dashboard.js:81-82,200; templates/index.html is a generic SPA shell).

    Root cause: not a bug, a not-yet-built feature. No backend gap is visible from the read-only checkout, but the issue itself flags that the 2026-09-16 mockups are "sample data, not runtime evidence" and the current host/API/schema contract must be re-validated when work starts.

    Fix shape: a new Overview component in dashboard/mining_dashboard/web, Preact-fed from /api/state, covering the issue's five acceptance-criteria bullets (hashrate/mode/workers/shares/blocks/payouts, gated P2Pool/XvB rates, actionable degraded/stale states, compact attention list with links). Straightforward once its dependency lands.

    Blockers: depends on #2513 ("Build on #2513" in the issue body, confirmed — #2513's own body says it replaces the global Simple/Advanced/Config split), which itself depends on #2512 — both open. Parent tracker #2478 remains open with milestone "Sovereign UI — post-2.0"; #2515 is simply next in that queue, no duplicate found.

    Evidence tier: read (issue + linked-issue metadata via gh api; code absence confirmed by grep on develop). No tier4 evidence applies under tier-follows-the-path — no code has been written and no PR exists to carry a tier4 job.

    Rulings needed: (1) start #2515 only after #2513 lands, or allow parallel branch work — recommend wait, since #2513 defines the shell #2515 renders inside and #2512 is still open. (2) confirm milestone stays frozen post-2.0 — recommend yes, nothing here is GA-blocking; confirmed against the four open milestones ("v2 - appliance", "v2.x - post-GA", "maintenance & gates", "Sovereign UI — post-2.0") that this belongs in the frozen bucket.

    Triage recommendation: MOVE-sovereign-ui — already correctly milestoned; no security, data-loss, or Tari-fork content, and it is blocked on two still-open prerequisite issues.
    Verify against the code before relying on this; it was written by an investigator, not the implementer.

  3. pithead-developer commented on Oct 21, 2026

    @pithead-developer
    Contributor

    Blocked on #2513; the grouped chart work also requires #2512.

    Read-only investigation of #2515, #2516 and #2517 is complete at develop-v2.1.0 commit a10dbf0. The current dashboard still renders Simple/Advanced/Configuration/Backup in dashboard/mining_dashboard/web/static/app/components.mjs:85-97, and the existing palette remains in dashboard/mining_dashboard/web/static/styles/theme.css:19-39. Neither shared prerequisite has landed, and both issues remain open.

    The latest trusted ruling on #2513 and parent #2478 requires Overview/Machines/Earnings/Settings built on the v2.1.0 configuration model and says no further work on the current dashboard UI. Implementing this group against the existing shell would violate that boundary and duplicate prerequisite work. Resume after #2513 lands with its navigation contract and #2512 supplies the shared visual foundation; then implement and test all three against those contracts. No source changes, tests, bench submissions or PR were made. The closed #2475 and #1863 are folded into #2516 and #2517 respectively; they are scope to preserve, not additional open blockers.

  4. pithead-developer commented on Oct 21, 2026

    @pithead-developer
    Contributor

    Blocked on #2513. Issues #2515, #2516 and #2517 require the unimplemented navigation in #2513; #2516 also requires #2512’s visual foundation. The latest trusted ruling prohibits further work on the existing dashboard, so implementation must resume after those prerequisites land. Posted blocker explanations on all three issues; no source changes, tests or bench jobs were made.

    The runner resumes this issue when that one closes.

  5. added
    blocked
    on Oct 21, 2026
  6. 17 remaining items

  7. removed
    question
    on Oct 30, 2026
  8. pithead-developer commented on Oct 30, 2026

    @pithead-developer
    Contributor

    Blocked on the producer change in #3575 / #3721, with additional acceptance dependencies in #2530, #3697 and #3731. Overview now consumes the pool producer field and explicitly shows unavailable backup/donation evidence; its consumers and deep links are tested. The actual pool suggestion, durable backup-success contract and effective donation readings cannot be integration-proven until their owning changes land. #2517 remains a separate implementation and owns the exact Machines destination. The ruling permits unavailable states while work continues; it does not waive these criteria.

    Independent work is pushed at f661b07f90bcdfcd2e8c9b0da68458755667908b: 107 focused Python tests, 33 frontend tests, changed-file Ruff/Biome, file-budget/build gates, security review and bounded adversarial implementation review pass. The earlier stale-fixture and Chart.js initialization failures are fixed with regressions. Current-head GitHub checks are queued; browser and sanitized phone/tablet/desktop screenshot proof remain pending and are not claimed as passing. The separate required Shell failure is tracked by #3795, with its log evidence linked in the PR.

    The producer owners must land their fields and confirm the durable backup contract; the runner can then resume this branch to merge the base, prove the integrations and complete current-head CI/browser/screenshot inspection before normal review. PR #3790 remains a draft and does not claim completed acceptance.

  9. pithead-developer commented on Oct 30, 2026

    @pithead-developer
    Contributor

    Blocked on #3575. Updated draft PR #3790 at f661b07 with the operator decisions, unavailable states and chart fixes; 107 Python and 33 frontend tests pass, with implementation and security reviews clean. Acceptance remains blocked on #3575 and the additional producer integrations listed below; their owners must land the required contracts before integration proof can complete. Current-head GitHub CI, browser execution and screenshot proof remain pending; blocker explanations are posted on the issue and PR.

    The runner resumes this issue when that one closes.

  10. added
    blocked
    on Oct 30, 2026
  11. removed
    blocked
    on Nov 10, 2026
  12. added a commit that references this issue on Nov 10, 2026
    a7a3cdc
  13. added a commit that references this issue on Nov 11, 2026
  14. pithead-developer commented on Nov 11, 2026

    @pithead-developer
    Contributor

    Blocked on producer integrations, not on Overview build work.

    Every part of this issue that could be built is merged: the lean page with the status sentence and three tiles, the chart with payout markers and the destination strip (#3790); the newest-10 Activity list with the full list behind Advanced; the attention list in the ruled order; and the deep link that opens the exact rig's inspector on Machines (#4024, closing the #2517 destination dependency). The pool-tier suggestion consumes the #3575 producer, and the XMRig developer share is no longer a gap: per-rig donate levels reach the state API via #3838, and the legend and destination strip consume them with an unavailable reading when a rig does not report.

    The remaining acceptance rows each wait on an open producer; the consumer, the explicit unavailable state and the deep link are already built and tested for each, so what is left per producer is integration proof, not new architecture:

    Blocking on #2479 — the only gap that still needs new Overview code (the fourth tile); the other three flow into existing gates and are listed as dependencies. Unblocking action: each producer issue lands its field; then this issue's final round is fixture and screenshot proof against the live fields.

  15. pithead-developer commented on Nov 11, 2026

    @pithead-developer
    Contributor

    Blocked on #2479. #2515 has no buildable work left: all Overview scope that does not need its producers is merged and reviewed (#3790 page, chart, Activity, attention list; #4024 exact-rig deep links), and the pool-tier (#3575/#3721) and XMRig donation (#3838) integrations are now live through already-tested consumer gates. The remaining acceptance rows are integration proofs waiting on four open producers — estimated-earnings tile (#2479), durable backup evidence and configuration warnings (#2530), project donation block on the state API (#3697), session sign-in records (#3872); a full blocker explanation with unblocking actions is posted on the issue (comment 2026-11-11). Blocking on #2479, the only gap that still needs new Overview code; the other three flow into existing gates.

    The runner resumes this issue when that one closes.

  16. added
    blocked
    on Nov 11, 2026
  17. pithead-architect commented on Nov 24, 2026

    @pithead-architect

    Owner request (2026-11-24) for an Event log is tracked in #4431. It touches this issue's Activity section:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    blockeddashboardenhancement

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions