Repository navigation
Description
What's the problem
Part of #2476. Owner priority (2026-10-27): build the opt-in donation feature now, shipping dark. The lean Earnings page shows "one XvB line (on or off, donated %)" and nothing about any other donation (#3566 section E). Once a project donation exists, an operator reading Earnings sees a lower estimate than the hashrate suggests with no explanation on the page, and the request for the closed donation ledger (#2477) was folded into "a compact breakdown" instead of a page.
On the Earnings page (#2525) show one read-only sentence that covers every donation, not a new page and not a control:
- "Donating 2 percent to Pithead, 1 percent to the XMRig developers and 14 percent to XvB." The parts appear only for what is on (XvB off: the sentence names Pithead only; nothing on: no sentence). Percentages come from the API
donationblock and the existing XvB figure (Record donation slices and serve a donation block on the state API #3697); the XMRig part comes from the same source as the settings section. - A "Change" link that deep-links to the Support Pithead section in the Advanced drawer (Donation: settings section in Advanced › Earnings with status, cost and where it goes #3733) (
#3566rule A6). - It is not a counted control: the Earnings page keeps exactly two (
#3566section E).
What it impacts
Operators who read Earnings with a donation on. Nothing renders when no donation is on, so the dark build is unchanged.
How I found it
Read-only scan of origin/develop-v2.1.0 at 02852bd on 2026-10-27 from #3566 section E and rules A2 and A6. Nothing was executed. Unknown: the Earnings page (#2525) is not merged and needs #2479 first; the exact XvB percentage source on that page is whatever #2525 settles on.
How important is it
Low-medium. One sentence of honesty on the page where the numbers are read; blocked on the page.
Acceptance criteria
- The Earnings estimates (expected per day and per month, and the Overview tile from Sovereign: build the contribution overview and attention summary #2515) are net of the project donation and the XMRig developer donation (Let owners support the XMRig developers from each rig's panel (default off) #3731). The headline figure is the net figure, and its sub-line says so ("after 3 % in donations"). Owner, 2026-10-27: the estimated payout is adjusted down to compensate for donations.
- Frontend tests with fixtures: project only, XvB only, both, neither, XvB on with the project unavailable; the sentence matches the wording above for each; "neither" renders nothing.
- The Change link target exists in the drawer and the link is keyboard operable.
- The per-platform counted-control fixture still passes: the line adds zero.
- A Playwright check at 375 px and desktop: the sentence wraps, no horizontal scroll, AA contrast in light and dark.
docs/dashboard.mdEarnings section mentions the sentence; no old-UI file is edited; no explanatory code comments.make test-frontend,make lint-jsandmake lint-file-budgetpass.
Possible solutions
- A single sentence component fed by the state API (recommended).
- Add the project share to the existing XvB line as a second figure: shorter, and hides the XMRig part the first report distinguishes.
- A per-recipient table: the ledger the owner closed as not planned (Donation ledger: one panel showing where every donated hash goes (Pithead, XMRig, xmrig-proxy, XvB, P2Pool) #2477).
Activity
pithead-developer commentedon Nov 16, 2026
Blocked on #3697.
Blocked on #3733.
Dependency marker for the dashboard. The native blocked-by links on this issue already name these open blockers, and the tick removes
blockedwhen every one of them closes.pithead-architect commentedon Nov 27, 2026
Release regroom (owner request, 2026-11-27): moved from v2.1.0 to v2.1.3. Donation UI follows the dark-released backend (2.0.7/2.0.8) and the Advanced pages; second UI chunk.