Skip to content

Sovereign: build recorded payouts and tracking completeness #2524

Closed as not planned

Description

@VijitSingh97

What's the problem

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

Deliverable

Make recorded receipts and coverage clear before showing estimates. Reuse existing events/totals and add pagination only if the current query cannot support the history table.

  • Work type: Existing earnings UI with bounded history query if needed.
  • Design references: 03 Earnings → Payouts (existing Sovereign mockups attached below; sample data, not runtime evidence).
  • Inventory coverage: E1–E3; E7; E11.

Existing Sovereign mockups

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

03 · Earnings

Sovereign — Earnings

Complete 36-image gallery · Parent: #2478

what it impacts

Dependencies and boundaries

Build on #2513.

Related work: #2477, #2498. 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

Verify complete, partial, missing-key, unreachable, unconfirmed and no-payout histories; reconcile rows and aggregate ranges. 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

  • Preserve yesterday/24h/7d/30d/all totals, last payout, Monero/P2Pool/XvB sources, Tari blocks and raffle wins with relevant ranges and units.
  • Label recorded payouts separately from wallet balance, expected returns and unconfirmed events; preserve confirmation/source semantics.
  • Show view-key availability, scan start, retention/coverage and unreachable/error states. Missing or partial history must not become zero earnings.
  • Provide a bounded history view with stable ordering and honest empty/loading/error states; keep XMR/XTM primary and fiat secondary with source/age.
  • Hide disabled coin-specific operational content and link to Wallets & payouts; provide a clear home/link for the donation ledger in Donation ledger: one panel showing where every donated hash goes (Pithead, XMRig, xmrig-proxy, XvB, P2Pool) #2477.

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, corrected)

    Issue: pithead#2524, sub-issue of tracker #2478 (Sovereign UI overhaul), depends on #2513 (nav shell, itself open/unbuilt). Milestone Sovereign UI — post-2.0, explicitly marked "After 2.0.0 GA; not a GA release blocker" in the issue body (confirmed via gh issue view 2524). 0 comments, no thread to synthesize.

    still_valid: yes. No Sovereign screens exist yet anywhere in the repo (no CHANGELOG entries, no code matches outside issue text) — this is a design ticket awaiting implementation, not a stale report.

    root_cause: not a bug — a UI page that hasn't been built, and most (not all) of what it needs already exists. Confirmed on-chain payout streaming with per-chain dedup lives in payout_sync.py:48-95 (sync_monero/sync_tari, INSERT OR IGNORE on (chain, txid)); payouts are explicitly kept permanent and never retention-pruned (mining_store.py:36-38), which already satisfies the AC's "retention" concern. Expected-vs-actual with partial flags and view-key gating lives in earnings.mjs (ExpectedVsActualCard, partialMark/anyPartial at lines 47-48; configLink at line 39, not 34). But two acceptance-criteria items have no existing backend surface: (1) "scan start" — no scan_start/scan_height/restore_height concept exists anywhere in dashboard/ (verified by grep); (2) a genuine "unreachable/error" state distinct from "no data yet" — monero_wallet_client.py and payout_sync.py both document that an unreachable wallet returns [] silently, "a quiet no-op, no error," so the frontend currently cannot tell "nothing happened yet" from "the wallet is unreachable." This is a real, if small, backend gap, not just a UI reshape.

    fix_shape: new Earnings/Payouts page component reusing existing StatCard/EstTable/ExpectedVsActualCard and the existing confirmed-payout + partial/view-key-gating data. Additionally needs: a small backend addition to expose (a) wallet scan-start/restore height and (b) a distinct unreachable/error signal for the earnings summary payload, since neither exists today — this is the one place the "no new backend concepts" claim in the original brief overstated things. Pagination is still probably unnecessary: payout history is explicitly small and permanent (mining_store.py:36-38), so add a bounded/paginated history query only if a manual check shows otherwise, per the issue's own instruction.

    evidence_tier: tier-1 (file:line reading only — appropriate for a pre-implementation spec). Under tier-follows-the-path, this doesn't need tier4 evidence yet: it's a dashboard display/UI ticket, not a change to build/compose/config-rendering/control-plane/deploy/merge-mining/Tor/miners. tier4-e2e applies once the implementing PR lands rendering/data-wiring changes.

    rulings_needed:

    1. Sequence with Sovereign: build navigation, page headers and persistent status #2513 (nav shell, also unbuilt, open) — build page content now and re-parent into the new nav later, or block on Sovereign: build navigation, page headers and persistent status #2513 first? Default: build now, don't hard-block.
    2. Does payout history need a new paginated endpoint, or does the existing confirmed-payout query already bound well? Default: reuse existing query, add pagination only if verified necessary.
    3. New: does exposing wallet scan-start and a distinct unreachable/error state belong in this ticket's scope, or should it be split out as a small prerequisite backend issue? Default: keep in this ticket — it's a small, well-scoped addition to the same data path this UI already reads.

    duplicates_or_blockers: soft blocker on #2513 (nav shell, confirmed open/unbuilt). Related but independent: #2477 (donation ledger), #2498 (separate Tari wallet health bug, different milestone).

    Triage recommendation: MOVE-sovereign-ui — already correctly parked in Sovereign UI — post-2.0 (a frozen-until-GA milestone per release scope); pure post-GA UI/small-backend work with no GA-blocking dimension (no Tari fork, security, or data-loss angle). Confirm it stays parked, do not pull into v2 - appliance or maintenance & gates.

    Verify against the code before relying on this; it was written by an investigator, not the implementer.

  3. added
    blocked
    on Oct 21, 2026
  4. pithead-developer commented on Oct 21, 2026

    @pithead-developer
    Contributor

    Blocked (operator, 2026-10-21): v2.1.0 UI work waits for the lean UI spec (#3566), which maps this issue to one of the 4 pages or folds or closes it. That stops rounds being spent on the old 36-screen Sovereign scope. Unblocks when #3566 closes.

  5. pithead-developer commented on Oct 21, 2026

    @pithead-developer
    Contributor

    Rescoped to the lean UI spec #3566 (operator, 2026-10-21): Folded into #2525 (Earnings). Recorded payouts, newest first, are the first list on the Earnings page, with a visible note when tracking may be incomplete and a deep link to Advanced > Payout tracking. The view-only setup field itself lives in Settings > Advanced.

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