Vendor asic-rs 0.8.1 (280 crates, offline builds) + wxWidgets 3.3.3 (pristine + patch queue); UI spec + ADR-0003; M1 on asic-rs
This commit is contained in:
@@ -0,0 +1,61 @@
|
||||
# UI Spec — primary view
|
||||
|
||||
Source: operator description, 2026-09-15. Status: ACCEPTED (v1 scope).
|
||||
|
||||
## Header (above the table)
|
||||
|
||||
- **KPI block, top left — 6 KPIs:**
|
||||
1. Total miners
|
||||
2. Hashing
|
||||
3. Slow
|
||||
4. Not hashing
|
||||
5. Total hashrate (sum over table)
|
||||
6. Total estimated power consumption (sum over table)
|
||||
- **Scan-ranges box** (middle): click to edit the IP scanning ranges.
|
||||
- **Filter button**: opens an Excel-style filter panel (per-column value
|
||||
filters, multi-select).
|
||||
- **Columns button**: opens a panel of checkboxes, one per available
|
||||
statistic; unchecked = column hidden from the table.
|
||||
|
||||
## Table
|
||||
|
||||
- One miner per row; statistics as columns.
|
||||
- **Sort:** click a column title to sort by it (toggle asc/desc).
|
||||
- **Row checkbox** at the left edge selects the miner (bulk actions later).
|
||||
- **First column is always IP** (not reorderable, not hideable).
|
||||
- **Other columns drag-to-reorder.**
|
||||
- **Default column order** after IP:
|
||||
1. Hashrate
|
||||
2. Power (estimated)
|
||||
3. Chip temp
|
||||
4. Cooling (fan)
|
||||
5. Firmware
|
||||
6. Pool worker account name
|
||||
7. …then the remaining statistics in registry order.
|
||||
|
||||
## Data sources
|
||||
|
||||
- Rows and statistics come from the vendored `asic-rs` scan engine
|
||||
(`MinerFactory::scan_stream()` over the configured ranges); the toolkit
|
||||
adds install-state columns (foothold available, pathway supported) that
|
||||
asic-rs does not know about.
|
||||
- The six KPIs are derived client-side from the same row set, so header and
|
||||
table can never disagree.
|
||||
- "Slow" = hashing but below the model's expected hashrate band (band data
|
||||
ships with the board registry; missing band = excluded from Slow, counted
|
||||
in Hashing).
|
||||
|
||||
## Implementation notes
|
||||
|
||||
- wxWidgets: the view is a `wxDataViewListCtrl`/`wxDataViewCtrl` (virtual
|
||||
list — thousands of rows without materializing cells), checkbox column +
|
||||
IP column fixed via attribute/serializer, drag reorder via `wxReorderable`
|
||||
column events, sort via column header click events mapped to the model.
|
||||
- Filter panel: per-column distinct-value checklist with text search,
|
||||
"select all/none", AND across columns, OR within a column (Excel
|
||||
semantics).
|
||||
- Columns panel: persists (order + visibility) per install in a user config
|
||||
file; "reset to default order" action included.
|
||||
- Scan-ranges box: opens a small editor with CIDR list, one per line,
|
||||
validate-on-apply; ranges feed both asic-rs scan and the ARP/ICMP
|
||||
pre-pass.
|
||||
Reference in New Issue
Block a user