Skip to content

Sovereign: organize mining and advanced settings without losing fields #2530

Open

Description

@VijitSingh97

What's the problem

#2530 still specifies the pre-lean Settings: nine named categories with an "Other" fallback, "keep every field", and the current dashboard's configuration tab. The owner rescoped it on 2026-10-21 and ruled on 2026-10-27 that every page moves to the new Sovereign UI and no work goes into the current dashboard. Building to the old text would revive the 36-screen scope.

This story becomes the Settings page and the settings sections of the Advanced drawer in the lean UI spec #3566 (sections F and G): change how Pithead runs, in plain words. It sits on the Performance / Balance / Privacy profile (#3574) and the one-level alert model (#3578). It owns the work folded into it: the preview and apply flow (#2514), payout destinations (#2531), node modes (#2532), access and privacy (#2534), notifications (#2535), Prometheus (#2537), backup (#2541), updates (#2542) and draft clearing (#3323).

What it impacts

How I found it

How important is it

High among v2.1.0 UI work. Settings is the only place a user changes the profile, alerts, payout view, updates and backups from the browser, so it carries the "no CLI after setup" claim, and the verification issue #2547 cannot pass without it. It is not a release emergency. It waits for the shell (#2513) and the configuration model (#3557).

Acceptance criteria

Scope

Profile

  • One profile control with three positions named exactly Performance, Balance and Privacy; Balance on a fresh install. Choosing one opens the shared preview in plain sentences, never raw keys, and the commit needs the typed APPLY. Performance names the lost privacy before commit; Privacy says every rig must be updated. An Advanced override of a governed key shows " (customized)". The sentences ship as worded only when they match the behavior tested in Add a Performance / Balance / Privacy profile that sets the privacy keys together #3574.

Cards

  • Where you get paid: masked Monero and Tari addresses, read-only, with a link to Advanced > Payout. Changing an address or the view-only tracking fields sits in Advanced > Payout behind the preview gate and the payout-suffix confirmation. The page says a view key cannot spend and never asks for a seed or spend key; secrets keep, replace or clear with no value in logs or audit; tracking completeness and scan or probe errors are shown, and an unreachable wallet is not read as empty.
  • Alerts: Connect Telegram (bot token, chat id), then one level: All, Important, Critical or Off, on the model of Replace the per-event Telegram switches with one alert level #3578. The always-on alarms named there are shown as on and cannot be switched. Webhooks, ntfy, the Healthchecks heartbeat, notification routing, the daily summary time and bot commands sit in Advanced > Alerts detail. Only delivery or test status the backend provides is shown; no send-test endpoint is implied.
  • Updates: one "Update Pithead" button, rendered only when an update exists (signed OS image on the appliance, release upgrade on DIY). Its dialog keeps today's typed confirmations (upgrade; on the appliance also OS install and reboot) and states the mining interruption at the right stage. Appliance check, download and resume, verify, inactive-slot install, reboot and postboot verification are distinct real states, gated by platform and control capability. A running job and its result survive navigation and reconnect, and a pending or unknown check never reads as up to date. Rollback is claimed only where the stack or OS contract supports it and postboot evidence verifies it. Advanced > Update details holds the per-component detail; rig updates link to Machines.
  • Backup: one "Back up now". Before it runs, the page states what the archive includes (config, environment, identity keys, dashboard history, applicable wallet material; blockchains excluded), the mining or stack interruption, and the permission and control-unavailable states. It shows queued, running, failed and completed, and offers the download only after a ready result. The one-time passphrase, emergency kit and archive handoff need an explicit save acknowledgement and never enter history or telemetry. Restore is not a dashboard action; the page links to setup and recovery.

Advanced drawer (settings sections)

  • Key-backed sections: Node and network, Pool and rigs, Payout, Access, Remote access over Tor, Alerts detail, the Earnings keys listed in v2.1.0 lean UI spec: four pages, one profile control, an Advanced drawer #3566 section E, Appearance, Update details, and Configuration JSON last for list values. Maintenance (Sovereign: build maintenance health and contextual troubleshooting #2540) and the Activity list (Sovereign: build the contribution overview and attention summary #2515) fill their own sections. The drawer search matches labels and key names. Automatic keys show their derived value and why.
  • Coverage: every Essential and Advanced key in the Cut the visible config keys to the Essentials and migrate 2.0.0 configs safely #3576 tier table appears in exactly one section or in the JSON editor, and a test fails when a reference key has none. Keys the reference does not know survive an edit unchanged. Resource limits, network and subnet, Tor storage and auto-heal, and data directories stay searchable. There is no generic shell or daemon-argument editor; expert P2Pool flags go through p2pool.extra_flags: an allowlisted passthrough so any upstream P2Pool option can be set from config.json, wizard and dashboard #2482.
  • Node and network: Monero and Tari local or remote mode with endpoint and auth fields, and the pruning, peer, thread, memory, storage and data-directory effects in plain words. Initial sync transport is separate from ongoing egress, with no claim that all traffic follows one setting. LAN access to node APIs is a separate group from outbound Tor policy.
  • Access and Remote access over Tor: HTTPS, hostname, port, login and Change password, onion switch, address and client key, public-IP display and timezone. Inbound dashboard access, management permission, node sharing and outbound Tor policy stay separate groups. Credentials are masked, and the preview warns about lockout or exposure and shows recovery information from the host result.
  • Prometheus: Advanced shows the existing metrics endpoint, snapshot freshness and a collector guide. Copyable examples omit credentials, and nothing suggests disabling TLS verification or exposing authenticated metrics publicly.

Edit flow

  • The existing host preview, approval and apply-result contract is reused unchanged: typed APPLY, payout-suffix inputs, core-key pinning, editable-key gating, secret masking, and stale or expired preview handling. Rows describe only the real edit effects (routing, mining interruption, P2Pool data, fail-closed behavior) in plain words.
  • The unsaved draft is cleared when the dashboard session changes (expiry, sign-in as another user) and the page says "draft discarded: session changed". The browser suite tests each transition.

Platforms and control budget

  • The page has at most four counted controls: profile, alerts, Update Pithead (only when an update exists) and Back up now. Fixtures for the appliance, DIY with a login and DIY without a login assert it; the whole app stays at or under ten (the Sovereign: verify complete feature coverage, accessibility and migration #2547 test). DIY without a login is read-only with one notice naming the CLI route, and shows none of the four.
  • On DIY with a login every Essential and Advanced key is editable without the CLI under the same host gates as the appliance (Turn the dashboard settings editor on for DIY installs whenever a login is set #3579), and no text tells a DIY user to run ./pithead apply. The Remote access section is hidden on DIY without a login.
  • Deep-link targets exist for the other pages: Advanced > Payout (including payout tracking, from Earnings), Advanced > Pool and rigs (Overview pool-tier suggestion), Settings > Updates (shell "Update available" link) and Advanced > Update details.

Quality

  • At 375 px there is no horizontal scroll; the keyboard reaches every control; contrast passes WCAG AA in light, dark and OS themes. No raw config key shows outside Advanced. Missing backend data shows as unavailable, never as fabricated live data.
  • The Settings section of docs/dashboard.md is updated, and the docs and tests of removed controls are deleted. No explanatory source comments. The PR attaches sanitized screenshots at 375 px, tablet and desktop from the repo's viewport tool (No in-repo tool to screenshot the dashboard at a given viewport width #2402). No live deployment and no change to miners or nodes.

Possible solutions

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

Establish settings category navigation/search, then place mining and advanced fields in their canonical homes using the current configuration schema.

  • Work type: Existing settings redesign.
  • Design references: 06 Settings; 32 Advanced (existing Sovereign mockups attached below; sample data, not runtime evidence).
  • Inventory coverage: C1; C10–C14.

Existing Sovereign mockups

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

06 · Settings and review

Sovereign — Settings and review

32 · Advanced settings

Sovereign — Advanced settings

Complete 36-image gallery · Parent: #2478

what it impacts

Dependencies and boundaries

Build on #2514.

Related work: #2482, #2367. 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

Map every currently exposed configuration key to a category or Other and verify JSON round trips, field policy and edit effects. 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

  • Provide Mining, Wallets & payouts, Nodes, Workers, Notifications, Access, Energy & alerts, Maintenance and Advanced; retain an Other fallback for unclassified nonhidden keys.
  • Preserve core/pool/sidechain/stratum/local miner/proxy donation/XvB routing and identity/Tari-required controls with readable labels and optional raw keys.
  • Explain only the actual edit effects, including routing, mining interruption, P2Pool data and fail-closed behavior, through shared host review.
  • Keep advanced resource, network/subnet, Tor storage/auto-heal, data-directory and other fields searchable; preserve unknown keys and current authority boundaries.
  • Use the reference schema/field inventory to prove parity. Reuse p2pool.extra_flags: an allowlisted passthrough so any upstream P2Pool option can be set from config.json, wizard and dashboard #2482 if extra flags become available; no generic shell or unrestricted daemon-argument editor.

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)

    Triage recommendation: no milestone change — issue is already correctly milestoned "Sovereign UI — post-2.0" (confirmed live) and explicitly marked "After 2.0.0 GA; not a GA release blocker" in its own body. Nothing here touches the Tari fork, security, or data loss. (Label this STAY-sovereign-ui, not MOVE — it isn't moving anywhere.)

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

  3. pithead-developer commented on Oct 21, 2026

    @pithead-developer
    Contributor

    Rescoped (owner, 2026-10-21): from 'keep every field' to the lean 4-page model: Overview, Machines, Earnings, Settings, one Performance / Balance / Privacy profile control, and an Advanced drawer for the rest, with at most 10 controls outside Advanced. Builds on the v2.1.0 config model; no further work on the current dashboard UI.

  4. pithead-developer commented on Oct 21, 2026

    @pithead-developer
    Contributor

    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.

  5. added
    blocked
    on Oct 21, 2026
  6. 9 remaining items

  7. pithead-developer commented on Oct 30, 2026

    @pithead-developer
    Contributor

    Overview integration contract for #2530, following the operator ruling on #2515 (consumer PR #3790):

    • Proposed top-level /api/state.backup_status: {"state":"success","last_success_at":<epoch seconds>} only after the host has confirmed successful completion of the backup flow. Persist that success across navigation, process restarts and reboot.
    • Emit {"state":"unknown","last_success_at":null} when the durable record is missing, unreadable or not covered by migration. Overview also treats an absent or malformed field as unknown.
    • Overview links an unknown reading to Advanced > Backup and says the history is unavailable. It never turns missing or rotated audit records, or the absence of a downloaded file, into “no backup yet.” A queued request, accepted request or in-progress job is not a successful backup.

    The #2530 implementation owns persistence, migration and the exact successful-completion boundary. This comment proposes the shared seam; it is not evidence that the producer exists. Please carry the contract in that implementation and its tests so #3790 can prove integration when it lands. The attention-list acceptance remains open until that proof exists.

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