Skip to content

Donation: settings section in Advanced › Earnings with status, cost and where it goes #3733

Open

Description

@pithead-developer

What's the problem

Part of #2476. Owner priority (2026-10-27): build the opt-in donation feature now, shipping dark. Owner decisions (2026-10-27): placement A, in Advanced › Earnings; presets 0.1 / 0.25 / 0.5 / 1 / 2 / 5 percent; the mockup is approved. The only way for an operator to turn the donation on, see its percentage and cost, and read where it goes is a settings section in the lean UI. None exists, and the current UI must not get one: the lean spec says no PR touches the current UI except to delete it (#3566 rule A1), and the feature must not add a counted control (the appliance budget is exactly 10, rule A2).

Build the section inside the Advanced drawer's Earnings group (#3566 section F: "Behind Advanced: ... Earnings"; nothing inside the drawer is counted), titled "Support Pithead (optional)":

What it impacts

Every operator who looks for the setting. With the constants empty it renders nothing, so shipping the code changes nothing a user sees.

How I found it

Read-only scan of origin/develop-v2.1.0 at 02852bd on 2026-10-27 from #3566 (rules A2 to A7 and sections F and G) and the open page issues. Nothing was executed. Unknown: the shell this builds on (#2513, draft PR #3584) and the Settings page (#2530, blocked on the #3557 children) are not merged, so this cannot start until they are; the owner approved the mockup on 2026-10-27 (recorded on #2478); follow it, and the states above are required either way.

How important is it

Medium. It is the user-facing half of an owner-priority feature, but it is blocked on pages that do not exist yet.

Acceptance criteria

  • Table-driven frontend tests (make test-frontend, fixtures under dashboard/tests/frontend/) render each state: unavailable (nothing rendered), off, on and idle, donating with seconds left, fallback, reduced, route Tor, route direct, estimate bases payouts, model, unknown, and editor off (read-only notice).
  • A test shows the per-platform counted-control fixture still passes (appliance 10, DIY with login 9, DIY without login 2): the section adds zero.
  • A test shows no raw config key appears outside the Advanced drawer, and that enabling opens the preview with the host's sentences and cannot be completed without the typed APPLY.
  • A Playwright journey (make test-browser) at 375 px wide and at desktop width: no horizontal scroll, AA contrast in light and dark, keyboard operable, the disclosure opens and the address copies.
  • docs/dashboard.md gains the matching section; no old-UI file is edited; no explanatory code comments.
  • make test-frontend, make lint-js and make lint-file-budget pass.

Possible solutions

  • A section component in the Settings Advanced group that reads the donation block and posts through the existing config-change flow (recommended).
  • A standalone page: simpler to build and breaks the page budget the spec fixes at four.
  • Place the switch on the Earnings page as a counted control: more discoverable, and displaces one of the ten controls the owner has assigned.

Part of #2476. Depends on #3697, #3705, #3698 and on #2530.

Activity

  1. added this to the v2.1.0 milestone on Oct 27, 2026
  2. added
    enhancement
    dashboard
    on Oct 27, 2026
  3. added
    blocked
    on Oct 27, 2026
  4. pithead-developer commented on Nov 16, 2026

    @pithead-developer
    ContributorAuthor

    Blocked on #2530.
    Blocked on #3697.
    Blocked on #3705.

    Dependency marker for the dashboard. The native blocked-by links on this issue already name these open blockers, and the tick removes blocked when every one of them closes.

  5. pithead-architect commented on Nov 27, 2026

    @pithead-architect

    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.

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