Repository navigation
Description
What's the problem
Owners who are happy with Pithead are never told that they can support it. The donation settings (#3733) sit in Advanced › Earnings, where most people never look. Owner request (2026-10-27): once someone has been mining steadily for a while, show a small card, at most once a week while they donate nothing, on the dashboard that asks whether they like Pithead and would like to fund its future, with a link to the donation settings.
What it impacts
Owners with a healthy, stable install. The card must never nag, never cover what someone is trying to do, and never appear while something needs attention.
How I found it
Owner request in the operator session on 2026-10-27. The approved mockup adds an artboard, "Overview — one-time donation prompt": a non-modal card in the bottom-right corner of Overview, titled "Enjoying Pithead?". It has a short paragraph, a smallest-cost line ("From 0.1 %, about 10 minutes a week"), "See donation options" (a link to the #3733 section), "No thanks", and a close button.
How important is it
Medium. It is how the opt-in donation (#2476) reaches the people likely to use it. It ships dark with the rest of the feature.
Acceptance criteria
- When it shows. Overview shows the card while the owner donates nothing: project donation off. Rigs' XMRig donations do not count, because only the Pithead project donation stops the card. It shows when all of these hold:
- donation is available (constants set, Opt-in hashpower donation to the Pithead project wallet #2476);
- the session can edit settings;
- no attention item is open;
- mining has been steady for 7 consecutive days: every hour, the fleet hashrate is at least 80 % of its 7-day median, and at least one share was found each day.
- How often. At most once a week, owner decision 2026-10-27. "No thanks", the close button and Escape hide it for 7 days, and it comes back while the owner is still at 0 %. "See donation options" opens the Donation: settings section in Advanced › Earnings with status, cost and where it goes #3733 section and also hides it for 7 days. Once the project donation is on, at any share, the card never shows. If the donation is later turned off, the weekly cadence resumes. The last-shown time is stored server-side, so another browser or device does not show it sooner.
- Never blocking. The card is non-modal and takes no focus on its own. It is reachable by keyboard, closes on Escape, and respects reduced motion. It does not cover the attention list or the chart range control at 1280 px or 375 px (at 375 px it docks to the bottom edge). It adds no counted control.
- Copy. Plain and factual: no guilt, no countdown, no fake scarcity. The cost line uses the time-sentence rule from Donation: settings section in Advanced › Earnings with status, cost and where it goes #3733.
- Tests.
- Fixtures cover: shown; each blocker (unavailable, already on, read-only, attention open, unsteady hashrate, under 7 days); hidden in each of the three ways and back after 7 days; never shown while donating; resumes after the donation is turned off.
- A Playwright check at 375 px and desktop.
- No explanatory source comments.
Possible solutions
Compute "steady" in the backend from the existing hashrate history and store one donation_prompt_last_shown timestamp next to the donation settings. Overview reads that one field.
Activity
[-]Donation: a one-time 'Enjoying Pithead?' card after a week of steady mining[/-][+]Donation: a weekly 'Enjoying Pithead?' card while the owner isn't donating[/+]pithead-developer commentedon Nov 16, 2026
Blocked on #2515.
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.