Repository navigation
Description
What's the problem
#2525 still specifies the pre-lean Earnings screens: a what-if hashrate calculator, separate Monero / Tari / XvB / Energy tabs and an "About this estimate" toggle, built on the old shell. The owner ruled on 2026-10-27 that no work goes into the current dashboard UI and that old-UI stories are adapted to the new one. This story becomes the Earnings page of the lean UI spec #3566 (section E): one screen that answers "what have I earned and what should I expect?" without implying regular or guaranteed payouts. It absorbs #2524, #2526, #2527 and #2536.
What it impacts
- Every dashboard user on appliance and DIY, on desktop and phone. DIY without a login sees the page read-only.
- Folded work this issue now owns: recorded payouts and tracking completeness (Sovereign: build recorded payouts and tracking completeness #2524), the XvB line (Sovereign: build the XvB participation and comparison view #2526), energy cost as one net-after-power figure (Sovereign: build energy, efficiency and cost coverage #2527), the electricity price input (Sovereign: make electricity, price and alert assumptions editable #2536).
- Neighbours, not in scope: P2Pool window correctness (Investigate: P2Pool's PPLNS window is dynamic (2× network-difficulty cap); the dashboard models it as 2160 blocks × nominal block time #2479, a prerequisite for the estimates), shell and Advanced drawer container (Sovereign: build navigation, page headers and persistent status #2513), Advanced settings sections including Payout tracking (Sovereign: organize mining and advanced settings without losing fields #2530), the Overview earnings tile (Sovereign: build the contribution overview and attention summary #2515), the configuration model and defaults table (Implement the approved v2.1.0 configuration model and migration contract #3557), the donation feature (Opt-in hashpower donation to the Pithead project wallet #2476).
How I found it
- Lean UI spec v2.1.0 lean UI spec: four pages, one profile control, an Advanced drawer #3566 (closed 2026-10-21) section E defines this page, and rules A and J cover the control budget, phone layout and platform visibility. The rescope note on Sovereign: build estimates with explicit mining assumptions #2525 from the same day says the same.
- The 2026-09-23 investigation on Sovereign: build estimates with explicit mining assumptions #2525 found that the current what-if calculator already implements most of the old criteria (H/s parsing, day/month/year scaling, Tari values, price age, XvB tiers), so this is a port to the new page rather than new calculation. It also found that the dashboard approximates the P2Pool window as a wall-clock cutoff, the mismatch Investigate: P2Pool's PPLNS window is dynamic (2× network-difficulty cap); the dashboard models it as 2160 blocks × nominal block time #2479 documents. That was checked against
developat the time, not againstdevelop-v2.1.0. - Owner decisions of 2026-10-27: every page moves to the new UI, nothing is built in the old UI, and the shell Sovereign: build navigation, page headers and persistent status #2513 is the keystone.
- Not confirmed: whether the existing payloads need any change for a single day and month figure, and whether the donation feature (Opt-in hashpower donation to the Pithead project wallet #2476) adds a control to Earnings (placement pending the owner).
How important is it
High among v2.1.0 UI work. Earnings is one of the four pages the lean cutover (#2547) needs, and it carries the claim that a tester finds payouts unaided. It is not a release emergency. It waits for the shell #2513 and, for the estimates, for #2479; it does not need the configuration model (#3557).
Acceptance criteria
Scope
- Built only as the new Sovereign Earnings page on the shell from Sovereign: build navigation, page headers and persistent status #2513. No change to the current dashboard UI. v2.1.0 lean UI spec: four pages, one profile control, an Advanced drawer #3566 section E and rules A and J apply. Presentation only: no live deployment and no change to miners or nodes.
Content
- Recorded payouts, newest first, with amount and date, labelled separately from expected returns. With no view key set, a "tracking may be incomplete" note links to Advanced > Payout tracking. Missing or partial history is never shown as zero earnings.
- One estimate per day and one per month, net after power when an electricity price is set. One plain assumptions sentence is always visible (no toggle) and names the network and price sources and their age.
- The estimate uses P2Pool's dynamic PPLNS window 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 the page ships without estimates; no fixed window is hardcoded.
- A missing, stale or invalid network, difficulty or price input withholds the affected figure with a stated reason. No fiat amount is derived from a missing or invalid price, and nothing is fabricated.
- Expected versus actual, and time to next share. Time to next share is an expectation and is never worded as a payout countdown.
- One XvB line: on or off, and the donated percentage.
- Tari lines appear only when Tari runs. They show the full block reward, the expected interval and the long-run average as distinct values, and an average is never presented as a daily payment.
Controls and platforms
- This page adds exactly two counted controls: Join the XvB bonus and Electricity price. Both are hidden when the settings editor is off (DIY without a login). Any donation control follows the owner's placement ruling on Opt-in hashpower donation to the Pithead project wallet #2476, not this issue.
- Join the XvB bonus shows the default from the single defaults table (Implement the approved v2.1.0 configuration model and migration contract #3557) on every setup path; until that table lands it shows the host's current value. Invalid Electricity price input shows a validation reason. Host validation, typed confirmations and secret handling are unchanged.
- Behind Advanced: XvB tier block, URL, donor id and manual tier, currency label, price feed, manual XMR and XTM prices. Removed: the hashrate what-if input, the Monero / Tari / XvB / Energy tabs and the "About this estimate" toggle.
- The control-count fixture test stays at or under 10 on the appliance, DIY with login and DIY without login fixtures.
Quality
- At 375 px there is no horizontal scroll; contrast passes WCAG AA in light and dark; the page follows the OS theme; the keyboard reaches every control.
- Tests on the new page cover units, invalid input, stale or missing network and price data, Tari off and a low-hashrate long-tail case. Tests of the removed controls are deleted.
- The Earnings section of
docs/dashboard.mdis updated, no explanatory source comments are added, and sanitized visual evidence at 375 px and desktop is attached to the PR, following the required checks on Dashboard UI overhaul: build the Sovereign design direction (36 screens, 2026-09-16 studies) #2478.
Possible solutions
- Port the existing earnings and XvB payloads into the new page through the existing host and API contracts. The 2026-09 investigation expects no new calculation; check that against the code before relying on it.
- Keep this one bounded story. If it helps, stack two PRs on
develop-v2.1.0: the page without estimates once Sovereign: build navigation, page headers and persistent status #2513 lands, then the estimates after Investigate: P2Pool's PPLNS window is dynamic (2× network-difficulty cap); the dashboard models it as 2160 blocks × nominal block time #2479. - Not an option: keeping the what-if calculator, even behind Advanced. A hashrate scenario would need an owner ruling.
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
Keep the existing what-if calculator useful without implying regular or guaranteed payouts.
- Work type: Existing calculator redesign.
- Design references: 03 Earnings → Estimates (existing Sovereign mockups attached below; sample data, not runtime evidence).
- Inventory coverage: E4–E7; E11; N5 cadence.
Existing Sovereign mockups
Existing concept images with sample data. The acceptance criteria and validated host/API contracts take precedence over illustrative labels or values.
These existing earnings/XvB studies illustrate layout and comparison styling; the estimate behavior is specified in the acceptance criteria.
03 · Earnings
09 · XvB
Complete 36-image gallery · Parent: #2478
what it impacts
Dependencies and boundaries
Build on #2513.
Related work: #2479. Existing issues retain ownership of their behavior.
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
Check units, invalid input, stale/missing network/price data, disabled Tari and low-hashrate long-tail estimates against existing calculation tests. 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
- Accept current or custom H/s, k/M/G input and preserve the scenario across related earnings views; show validation and missing-input reasons.
- Preserve day/month/year Monero estimates, expected share interval, reward and applicable P2Pool window with actual protocol semantics.
- For Tari show solo-block variability, full reward, expected interval and long-run average distinctly; an average is not a daily payment.
- Show network/difficulty/price inputs with source, age and assumptions; do not show a valid fiat amount from invalid or missing prices.
- Never present expected intervals as payout countdowns; use Investigate: P2Pool's PPLNS window is dynamic (2× network-difficulty cap); the dashboard models it as 2160 blocks × nominal block time #2479 findings for window/cadence semantics rather than hardcoding a disputed fixed window.
possible solutions
No distinct solution options are recorded; investigate the existing report before choosing an approach.


Activity
pithead-developer commentedon Sep 24, 2026
Investigation brief (operator pre-read, 2026-09-23, verified against develop@a5af51ad)
Still valid: yes. No merged PR references #2525; parent tracker #2478 remains open with a majority of sub-issues still open (exact count not independently confirmed — treat "0/40" as approximate, not verified). #2525's own milestone is already "Sovereign UI — post-2.0" (read live), consistent with the brief.
Root cause / current state: this is a redesign ask, not a bug. The existing "Advanced" what-if calculator already implements nearly every acceptance-criteria bullet on today's develop head:
web/static/app/logic.mjs:217(parseHashrate)web/views/xvb_views.py:496(build_earnings),web/static/app/logic.mjs:242(computeEarnings)tariDay, expected intervaltariTimeToBlockSec, full rewardtariRewardPerBlock) rather than blended into one number:logic.mjs:242-286logic.mjs:458(priceSourceLabel),logic.mjs:440-444(coinFiat)web/views/xvb_calculator.py:14Gap: bullet 5 ("use #2479 findings for window/cadence semantics rather than hardcoding a disputed fixed window") cannot be closed yet — #2479 is confirmed still OPEN (live check), and the dashboard still converts P2Pool's block-count PPLNS window to a wall-clock cutoff at
helper/utils.py:191-225(shares_in_pplns_window/pplns_weight_in_window), exactly the mismatch #2479 documents.Fix shape: no new calculation code, and no tier-follows-the-path evidence job is triggered — this touches only dashboard presentation, not build/compose/config-rendering/control-plane/deploy/merge-mining/Tor/miner code. Port the existing
build_earnings/build_xvb_calcpayloads into the new Sovereign Earnings template once its nav shell (#2513, confirmed OPEN) lands, then swap the wall-clock PPLNS approximation for whatever #2479 lands.Blockers: #2513 (nav/page shell — explicit "Build on #2513" dependency, OPEN) and #2479 (window semantics — explicit AC dependency, OPEN).
Rulings needed:
Triage recommendation: MOVE-sovereign-ui, meaning confirm/stay — the issue is already milestoned there (verified live), it is explicitly non-GA-blocking per #2478's own text, it redesigns already-correct logic, and it has two unresolved upstream blockers (#2513, #2479). No action needed beyond leaving it where it is.
Verify against the code before relying on this; it was written by an investigator, not the implementer.
pithead-developer commentedon Oct 21, 2026
Blocked on #2513. The grouped work for #2525, #2529 and #2530 needs the shared navigation shell before it can integrate with the revised interface. #2513 remains open, and develop-v2.1.0 at a10dbf0 still has the existing Simple/Advanced/Configuration navigation. The earlier preview PR #2782 is closed without merging.
Other required open prerequisites are #2479 for PPLNS semantics in #2525, #2516 for chart/Activity integration in #2529, #2514 for shared settings review in #2530, and #3558 for the revised configuration model. The latest trusted direction on #2478, #2513 and #2530 requires the lean four-page interface and stops further work on the current dashboard UI.
Read-only issue, documentation and code reconnaissance is complete. The working tree is clean; no source edits, tests, bench jobs or PR were created. The prerequisite implementation owners must land those shared contracts; resume this group after they land, reconciling the original acceptance criteria with the approved four-page direction before editing.
pithead-developer commentedon Oct 21, 2026
Blocked on #2513. The group requires #2513’s navigation shell, which remains unimplemented; additional prerequisites are listed in depends_on. Posted the blocker and resume requirements on all three issues. Reconnaissance is complete; the worktree is clean, with no source changes, tests, bench jobs or PR.
The runner resumes this issue when that one closes.
6 remaining items
pithead-developer commentedon Oct 27, 2026
Owner, 2026-10-27: estimated XMR figures are net of donations. The headline estimate (the Overview tile, and Earnings expected per day and per month) subtracts the project donation (#2476) and the XMRig developer donation (#3731), and its sub-line says so ("after 3 % in donations"). #3734 adds the donation line on Earnings. The approved mockup shows these numbers.
pithead-developer commentedon Oct 30, 2026
Blocked on #3795. Blocked on #3795: the required standalone check fails because its fixture lacks the pregate helper; PR #3796 owns the correction. Added matching evidence to #3795 and updated/commented on draft PR #3784. Earnings work and reviews are complete; browser proof passed and captures were inspected. Resume after #3796 lands, then merge the base and obtain fresh checks.
The runner resumes this issue when that one closes.
pithead-developer commentedon Oct 31, 2026
Blocked on #3786. Blocked on #3786: the required Docker stage fails in the inherited donation-property roundoff assertion, owned by PR #3789. Earnings work and validation are complete; matching evidence and the blocker explanation are recorded on the issue and PR. Resume after #3789 lands, then merge the base and obtain fresh checks.
The runner resumes this issue when that one closes.
pithead-developer commentedon Oct 31, 2026
Merged in #3784.
dashboard: fix #2525 — build the lean Earnings page (#3784)