Repository navigation
Description
What's the problem
The current dashboard has about 200 controls over four tabs (Simple, Advanced, Configuration, Backup), a 107-field settings form (52 of them true/false dropdowns) and 25 Telegram switches. The Sovereign issues (#2478 and its children) describe a 36-screen rebuild that keeps every field. Neither fits the goal: a non-technical user goes from install to mining by answering 3 questions, and the dashboard shows what they need without toggles they do not understand.
Binding owner rulings of 2026-10-21 that this spec rests on:
- DIY is as easy to configure as the appliance. The settings editor is on for DIY whenever a login is set, all configuration happens in the dashboard, and DIY setup asks whether to continue in the browser wizard or the CLI.
- The profile positions are Performance / Balance / Privacy. Performance means no Tor on anything: clearnet initial sync on for Monero and Tari, P2Pool clearnet peering,
network.tor_egress_firewalloff,xvb.toroff,notifications.toroff. Balance is the default. Privacy adds onion-only P2Pool peering, a rig password, optional rig TLS and worker API tokens. - The P2Pool parity plan is closed. p2pool.extra_flags: an allowlisted passthrough so any upstream P2Pool option can be set from config.json, wizard and dashboard #2482 is the single expert escape hatch.
- The lean UI replaces the current dashboard: four pages (Overview, Machines, Earnings, Settings), one profile control, an Advanced drawer, at most 10 controls outside Advanced. No more work on the current UI.
- Everything after 2.0.1 ships in v2.1.0 on
develop-v2.1.0.
No page-level spec exists, so the open v2.1.0 UI issues cannot be built to this scope. This body is that spec. It is normative for the issues in the map at the end of the acceptance criteria.
what it impacts
- Users: every dashboard user, from first run (setup, sync screen) to daily use (health, rigs, earnings). DIY users gain a settings editor; appliance users keep everything they need.
- Issues: the 30 open v2.1.0 UI issues. 14 stay (13 build issues plus the Appliance feature parity: everything host-CLI-only is impossible on a shell-less box #786 appliance-parity tracker, rescoped), 16 fold into them.
- Code: the browser frontend and the setup wizard are replaced. Settings, the wizard and final verification wait for the configuration model (Implement the approved v2.1.0 configuration model and migration contract #3557); the other pages do not.
How I found it
Written from the owner's lean roadmap: Roadmap (P3 row and decisions), Dashboard controls (every control with its disposition), Config keys (Essentials vs Advanced), Profile slider, Setup questions and New work (the dashboard, setup and defaults items). The roadmap's inventories come from a read-only code scan; 6 citations were re-checked by hand and nothing was run in a browser. I also read develop at 9249b0b to confirm that the UI already has the two platform signals this spec relies on (the dashboard state carries os_update on an appliance and control_enabled when the settings editor is on), that the first-boot wizard has a --cli alternative, and that stratum TLS is optional per connection (cleartext rigs keep mining), which shapes the Privacy wording.
Not confirmed: whether the existing browser wizard can run on a DIY host as it is (today the appliance first-boot path starts it). Not measured: how the Machines list behaves at 100 rigs.
how important is it
High. It gates all v2.1.0 UI work and the release's lean claim; until it lands, workers keep building old-scope screens. Config-dependent pages also wait for the configuration model (#3557). It is not a release emergency: v2.1.0 follows 2.0.1.
acceptance criteria
A. Rules for every page
- A1. One dashboard. At v2.1.0 the Simple / Advanced / Configuration / Backup tabs, the Advanced-view hint and the mine-cart strip are gone, and the old frontend tree is deleted in the cutover PR. No PR touches the current UI except to delete it.
- A2. Control budget: at most 10 controls outside Advanced under the counting rule below. A fixture test per platform (appliance, DIY with login, DIY without login) fails on the 11th.
- A3. Hide what does nothing. A control with no effect on a platform or mode is not rendered (platform table below). Tari lines, gauges and warnings are absent when Tari is off.
- A4. Plain words. No raw config key appears outside Advanced. Changes are described in plain sentences in the existing preview-and-confirm gate, whose strength (typed APPLY, payout-suffix inputs, typed confirmation for disk wipe, restore, upgrade, reboot and power off) is unchanged.
- A5. Phone first. Every page works at 375 px wide with no horizontal scroll, passes WCAG AA contrast in light and dark, and follows the OS theme.
- A6. Deep links, not controls. Attention items and notices link to the exact place that fixes them (a page or a section inside Advanced).
- A7. Each page PR updates the matching section of
docs/dashboard.md, deletes the docs and tests of the controls it removes, and adds no explanatory code comments.
Counting rule. A control is a button, switch, input, select, segmented control or slider present at rest, counted once per card. A dialog or inline form opened by a counted control belongs to it. Not counted: the four page links, the Advanced opener, deep links, everything inside the Advanced drawer, the shared preview-and-confirm dialog and the pending-change bar (Review changes, Discard), and the setup wizard (its own flow).
Control budget (appliance worst case = 10; DIY with login = 9; DIY without login = 2)
| # | Control | Page | Notes |
|---|---|---|---|
| 1 | Chart range: Day / Week / Month | Overview | all |
| 2 | Copy rig settings (pool address, plus password when set) | Machines | all |
| 3 | Update all rigs | Machines | only when a managed rig is behind; needs the editor on |
| 4 | Also mine on this box | Machines | appliance only |
| 5 | Join the XvB bonus | Earnings | needs the editor on |
| 6 | Electricity price | Earnings | needs the editor on |
| 7 | Profile: Performance / Balance / Privacy | Settings | needs the editor on |
| 8 | Alerts: Connect Telegram, then a level | Settings | needs the editor on |
| 9 | Update Pithead | Settings | only when an update exists |
| 10 | Back up now | Settings | needs the editor on |
Where this departs from the roadmap, forced by the cap: per-rig Update and Restart sit in the inspector's Advanced section (Update all covers updates); Remote access over Tor, Change password, Change payout address, Run health check and the theme override sit in Advanced. Backup keeps an outside slot because lost recovery material cannot be rebuilt. If the owner wants Remote access outside Advanced, it must displace one of the ten.
B. Shell and navigation (#2513)
- Purpose: always say where you are and whether the stack is healthy.
- Shows: brand, version, host address; a status chip (Healthy, Syncing n%, Needs attention n) linking to Overview; a profile badge in plain words (Performance: Tor is off; Balance: everything goes through Tor; Privacy: Tor only, rigs locked; '(customized)' when an Advanced override differs); an 'Update available' link to Settings > Updates; four page links (bottom bar on a phone); the Advanced opener, which opens the drawer at the section for the current page.
- Controls counted: none.
- Removed: the four tabs, the Advanced-view hint, the three-way theme switcher (override moves to Advanced > Appearance), the header Upgrade button and OS badge (their typed UPGRADE and REBOOT confirmations move into the Update Pithead dialog, they are not dropped), dismissable banners (a banner clears when its condition clears), the duplicate 'All connections' drawer.
- Done when: chip and badge render on every page in every fixture; keyboard reaches every link; the contrast sweep passes in light, dark and OS modes; no horizontal scroll at 375 px.
C. Overview (#2515, first-run state #2546)
- Purpose: answer 'is it healthy and am I earning?' on one screen.
- Shows: one-sentence status; four tiles (hashrate now and 24 h, shares found, estimated earnings per day once Investigate: P2Pool's PPLNS window is dynamic (2× network-difficulty cap); the dashboard models it as 2160 blocks × nominal block time #2479 has landed, last payout); rigs summary ('3 of 3 mining') linking to Machines; node line ('Monero synced, Tari synced', Tari hidden when off); this machine (CPU, RAM, disk, HugePages when relevant); chart of hashrate with payout markers and the donated share visible at a glance (Hashrate chart: make the donated share of hashrate readable at a glance #2475); attention list; Activity, the newest 10 entries of one list of mining events, settings changes with results, and sign-ins; the appliance OS verdict banner when present. Reads P2Pool
effortandshares_failed(from Read the P2Pool data-API fields already on disk: effort, shares_failed, block_reward_share_percent, pool/blocks, stats_mod #2492) for the attention list and the Earnings page. The attention list also carries a pool-tier suggestion (a smaller or larger P2Pool tier would suit the measured hashrate) that deep links to Advanced > Pool and rigs; the stack never switches tier on its own. - Controls counted: chart range (1). Chart zoom is by pinch, drag or keys, and a double tap resets, so there is no Reset button.
- Behind Advanced: extra chart series (shares, events, raffle wins, XvB %), My node detail, pool-wide stats, network card, XvB tier block, topology map, full Activity list with Day / Week / Month / All presets.
- Removed: mine-cart strip, averaging row, Tari card, pool cadence and luck card, XvB stats card, Show all / Show less toggles, access-log and config-audit filter sets (from/to, search, paging).
- First-run state: while Monero or Tari syncs, a full-page sync view replaces the page. It shows percent and an ETA per node (not raw block counts as the headline), a Tari gauge only when Tari runs, the remote node's state as the wait reason in remote-Tari mode (Sync page in remote-Tari mode gives no reason while it waits: show the remote node's state, not only that it is not done #2353), and, once Implement the approved v2.1.0 configuration model and migration contract #3557 lands, the active profile with a deep link to Settings ('Performance syncs faster'). It hands over to Overview on its own. The disconnected and recovery text stays, with no controls.
- Done when: the healthy fixture shows exactly one control and four tiles; a fixture for each attention condition (rig offline, node not synced, Tor unhealthy under Balance or Privacy, disk low, update available, no backup yet, tamper alarm, config warning, pool-tier suggestion) shows one sentence and a working deep link; the healthy fixture shows 'Everything is running normally'; a tester finds hashrate, last payout and 'is it healthy?' on the first screen unaided at 1280 px and 375 px.
D. Machines (#2517, absorbing #2518, #2521, #2533, #3357)
- Purpose: 'are my rigs mining, and how do I add one?'
- Shows: Connect a miner card (the pool address the listener really serves, Dashboard advertises LAN stratum URL for loopback-only listener #3384; under Privacy it also shows the TLS option and the certificate fingerprint rigs pin; the rig password in clear when one is set); rig list with name, status (Mining, Offline, Behind, Unmanaged) and hashrate, attention first then by name, as cards on a phone; the inspector.
- Controls counted: Copy rig settings; Update all rigs (existing rolling-upgrade behavior, one review dialog, per-rig progress); Also mine on this box (appliance only).
- Inspector: opens by row click (replaces the three current entry points). Health only outside Advanced: status, last seen, software version vs latest, 24 h hashrate, accepted and rejected shares. Behind Advanced: Restart, Update this rig, adopt or manage this rig (host, ports, token, typed APPLY unchanged), config as Table or JSON, find / sort / columns for the list. Per-rig change history is not built in v2.1.0.
- Removed: seven sort headers, Reveal/Hide and separate Copy password, three chart ranges in the inspector, three entry points.
- Done when: a 100-rig fixture renders at 375 px with no horizontal scroll and no sort or filter control outside Advanced; the DIY fixture has no local-miner switch; the appliance fixture has all three controls; an unmanaged rig shows as mining with a quiet 'unmanaged' tag.
E. Earnings (#2525, absorbing #2524; needs #2479 first)
- Purpose: 'what have I earned and what should I expect?'
- Shows: recorded payouts (newest first, amount, date) with a 'tracking may be incomplete' note linking to Advanced > Payout tracking when no view key is set (Sovereign: clarify payout destinations and view-only history setup #2531); one estimate per day and per month, net after power when a price is set, with one plain sentence of assumptions; expected vs actual; time to next share; one XvB line (on or off, donated %); Tari lines only when Tari runs.
- Controls counted: Join the XvB bonus; Electricity price.
- Behind Advanced: XvB tier block, URL, donor id and manual tier, currency label, price feed, manual XMR and XTM prices.
- Removed: the what-if hashrate input, the Monero / Tari / XvB / Energy tabs, 'About this estimate' toggle (the sentence is always shown), separate XvB and energy views (Sovereign: build the XvB participation and comparison view #2526, Sovereign: build energy, efficiency and cost coverage #2527, Sovereign: make electricity, price and alert assumptions editable #2536).
- Done when: the estimate uses the dynamic PPLNS window (Investigate: P2Pool's PPLNS window is dynamic (2× network-difficulty cap); the dashboard models it as 2160 blocks × nominal block time #2479 landed) or the page does not ship estimates; XvB defaults identically on every setup path (the single defaults table under Implement the approved v2.1.0 configuration model and migration contract #3557); the page has two controls.
F. Settings (#2530, absorbing #2514, #2531, #2535, #2541, #2542)
- Purpose: change how Pithead runs, in plain words.
- Profile control (counted): three positions named exactly Performance, Balance, Privacy; Balance is the default on a fresh install. Choosing one opens the preview gate with plain sentences, never raw keys.
- Performance: 'No Tor on anything. Syncs in hours, not days and peers over the normal internet. Your address is visible to Monero, Tari and P2Pool peers; XvB and alerts also leave without Tor.'
- Balance: 'Everything leaves through Tor. First sync takes longer. Rigs connect on your LAN without a password.'
- Privacy: 'Balance, plus P2Pool peers only over Tor, rigs need a password, rig traffic can be encrypted, and only this dashboard can manage them. Every rig must be updated to match.'
- The preview for Performance names the lost privacy before commit, and for Privacy says every rig must change. An Advanced override of any bundled key shows ' (customized)'.
- These sentences are intent. They ship only as worded when they match the behavior tested in the profile issue under Implement the approved v2.1.0 configuration model and migration contract #3557; if that issue narrows ruling 2 to the listed keys, the Performance sentence changes with it.
- Cards: Where you get paid (read-only masked addresses plus a deep link to change them in Advanced > Payout), Alerts, Updates, Backup.
- Alerts (counted): Connect Telegram (bot token, chat id), then one level: All / Important / Critical (Off allowed). Wallet-changed and clearnet-exposed alarms are shown as always on and cannot be switched.
- Updates (counted): one 'Update Pithead' button; its dialog keeps today's typed confirmations (upgrade, and on the appliance OS install and reboot); per-component detail (stack, OS, rigs) sits in Advanced > Update details. Rigs update from Machines.
- Backup (counted): one 'Back up now' with the encrypted-backup semantics of Sovereign: build the encrypted backup and recovery-material workflow #2541; Overview shows an attention item until a first backup exists.
- Behind Advanced: every key marked Advanced in the Config keys table, grouped as Node and network, Pool and rigs, Payout, Access (login, Change password, hostname, port, HTTPS), Remote access over Tor (switch, onion address, client key), Alerts detail, Earnings, Maintenance, Activity, Appearance, Configuration JSON (last, for list values). The drawer has a search box that matches labels and key names. Automatic keys show their derived value and why.
- Done when: the draft is cleared when the dashboard session changes (Clear the retained configuration draft when the dashboard session changes #3323); on DIY with a login every Essential and Advanced key is editable without the CLI (the parity Appliance feature parity: everything host-CLI-only is impossible on a shell-less box #786 asked for on the appliance, now on both platforms); with the editor off (DIY without login) the page is read-only with one notice naming the CLI route; the page has four counted controls.
G. Advanced drawer (#2513 container, #2530 settings sections, #2540 maintenance sections)
- One drawer for the whole app, opened from any page and landing on that page's section. Nothing inside it counts toward the budget.
- Maintenance section (Sovereign: build maintenance health and contextual troubleshooting #2540): Run health check, support bundle download (replaces the nine per-service log buttons), server health, topology and node statistics. Reboot and Power off ([Feature] Appliance: reboot and power off from the dashboard #2384) appear on the appliance only.
- Done when: search finds a key by label and by key name; the same drawer opens from all four pages; the Maintenance section on DIY has no reboot or power off.
H. Setup wizard (#2543, absorbing #2544, #2545)
- Default path asks three questions: Monero wallet, Tari wallet (optional; blank means no Tari), profile. Then the consents that apply to the platform (DIY: install packages, HugePages boot change, start). A tier-1 test pins the prompt list and asserts the CLI and browser ask the same thing in the same order.
- Both platforms: the token gate (on DIY the token is printed in the terminal), the three questions, the hand-off.
- Appliance only: role (Pithead, Pithead plus miner, Rig), installer disk selection with an unambiguous erase review (Sovereign: make installer disk selection and erase review unambiguous #2544), restore from backup (Sovereign: redesign restore, failed setup and one-time handoff #2545), the saved-role screen (keep, restore, set up again), the failed-setup screen. Their safety gates are unchanged.
- Automatic, never asked: pool tier (mini, with a dashboard suggestion from measured hashrate), dashboard login (generated, shown once), hostname, light mode, worker API port.
- Hand-off: shows the generated login once, offers the recovery backup, then opens Overview in its sync state.
- The wizard JSON editor is removed (restore-from-backup is the expert path; JSON lives in Advanced). The no-JS form is not carried over; the CLI is the no-browser path.
I. How the DIY browser-or-CLI choice lands in the UI (ruling 1)
- The first prompt of
./pithead setupasks 'Set up in your browser or here in the terminal?' with browser as the default.--clikeeps working. - Browser: the terminal prints one URL and a one-time setup token and waits. The browser shows the appliance wizard's screens minus role, disk and restore (DIY restore stays a CLI command). The profile step is the same component as Settings.
- CLI: the same three questions inline.
- Both write the same config through the one contract, so identical answers give an identical config (Test: join GUI, CLI and env contracts so the two halves cannot drift apart #3398 test). After setup nothing needs the CLI; with a login set, Settings is the DIY configuration surface and its pages never tell a DIY user to run
./pithead apply.
J. Platform differences (hide what does nothing)
| Area | Appliance | DIY, login set | DIY, no login |
|---|---|---|---|
| Settings editor, profile, alerts, price, XvB, rig update | on | on | hidden; one read-only notice |
| Update Pithead | signed OS image | release upgrade | hidden |
| Also mine on this box (#3357) | shown | hidden | hidden |
| Reboot, Power off (Advanced) | shown | hidden | hidden |
| Back up now | shown | shown | hidden |
| Wizard role, disk, restore | shown | not asked | not asked |
| Wizard entry | opens on the LAN at first boot | terminal asks browser or CLI | same |
| OS verdict banner | shown | hidden | hidden |
| Remote access section (Advanced) | shown | shown | hidden |
K. Verification and cutover (#2547, tooling #2402)
- A viewport screenshot tool exists in the repo (No in-repo tool to screenshot the dashboard at a given viewport width #2402) and the Verify run uses it at 375 px, tablet and desktop.
- Coverage is checked against this spec's tables, not the 76 old groups: every dashboard row of the roadmap's Dashboard controls table has the stated disposition. Its CLI help row is not a dashboard control and is outside this spec.
- Every 2.0.0 fixture config loads and renders the same stack after migration; the control-count test passes on all three platform fixtures; an accessibility sweep passes.
- The old frontend tree is deleted and no document refers to the removed tabs.
L. Issue map (rescope notes are posted on each issue)
| Decision | Issues |
|---|---|
| Keep, by page | Tracker #2478; Shell #2513; Overview #2515 and #2546; Machines #2517; Earnings #2525 and #2479; Settings #2530; Advanced > Maintenance #2540 and #2384; Setup wizard #2543; Verify #2547; Tooling #2402; appliance-parity tracker #786 (rescoped, not a build issue) |
| Fold | #2512 into #2513; #2514, #2531, #2535, #2541, #2542 into #2530; #2516, #2529, #2492 into #2515; #2518, #2521, #2533, #3357 into #2517; #2524 into #2525; #2544, #2545 into #2543 |
| Close | none |
| Needs the configuration model (#3557) first | #2530, #2543, #2547 |
possible solutions
- Build order: (1) Sovereign: build navigation, page headers and persistent status #2513 with No in-repo tool to screenshot the dashboard at a given viewport width #2402; (2) in parallel, no model needed: Sovereign: build the contribution overview and attention summary #2515, Sovereign: build accurate initial sync and runtime recovery screens #2546, Sovereign: make the machines view usable for 2, 50 and 100 workers #2517, Investigate: P2Pool's PPLNS window is dynamic (2× network-difficulty cap); the dashboard models it as 2160 blocks × nominal block time #2479 then Sovereign: build estimates with explicit mining assumptions #2525, Sovereign: build maintenance health and contextual troubleshooting #2540, [Feature] Appliance: reboot and power off from the dashboard #2384; (3) once the Implement the approved v2.1.0 configuration model and migration contract #3557 children land: Sovereign: organize mining and advanced settings without losing fields #2530 and Sovereign: redesign setup token, role and essential configuration steps #2543; (4) Sovereign: verify complete feature coverage, accessibility and migration #2547 and the cutover PR that deletes the old tree.
- Cutover options: build the new frontend beside the old behind a development-only switch and swap and delete in one PR (recommended: the old UI gets no more work, so no dual maintenance); rewrite in place page by page (leaves a mixed UI on
develop-v2.1.0for weeks); long-lived separate branch (merge pain). - Counting rule: the one above is my proposal for the owner's cap. Counting every element in every dialog would put the roadmap's own list near 14, so more would have to move behind Advanced. The owner decides.
- Unknown, to settle in the named issue: whether the DIY browser path can take the privileged consents (package install, HugePages boot change) or must hand them to the terminal that holds sudo (Sovereign: redesign setup token, role and essential configuration steps #2543 and the setup issue under Implement the approved v2.1.0 configuration model and migration contract #3557); how '(customized)' is derived and how Performance combined with Remote access over Tor behaves, since Tor must still run for the onion (the profile issue under Implement the approved v2.1.0 configuration model and migration contract #3557); that the clearnet-exposed alarm treats Performance as expected, otherwise Performance raises a permanent alarm (covered by a test in the profile issue); whether any test or document depends on the no-JS wizard (Sovereign: verify complete feature coverage, accessibility and migration #2547); Machines performance at 100 rigs (Sovereign: make the machines view usable for 2, 50 and 100 workers #2517).
Activity
1 remaining item
pithead-developer commentedon Oct 21, 2026
Spec accepted for building (operator, 2026-10-21). It comes from the owner's lean roadmap; the owner can veto or change any part, and this issue is reopened if he does. Rescope notes are on each UI issue. 16 issues were folded into their page issues, and the config-dependent pages (#2530, #2543, #2547) stay blocked on #3557.