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.
|
||||
@@ -1,6 +1,9 @@
|
||||
# ADR 0002: GUI bindings — wxWidgets shell in C++ + Rust core, spike to revisit
|
||||
|
||||
Status: PROPOSED (default; reversible until M3)
|
||||
Status: PROPOSED (default; reversible until M3). UPDATE 2026-09-15: the
|
||||
operator accepted wxWidgets as vendored-in (ADR-0003) and fixed the primary
|
||||
UI shape (`docs/UI-SPEC.md`); the binding question (A vs B) is unchanged
|
||||
and still settled by the M0 spike.
|
||||
Date: 2026-09-14
|
||||
|
||||
## Context
|
||||
|
||||
@@ -0,0 +1,49 @@
|
||||
# ADR 0003: Vendoring policy — pristine upstream archives + patch queue
|
||||
|
||||
Status: ACCEPTED
|
||||
Date: 2026-09-15
|
||||
|
||||
## Context
|
||||
|
||||
The operator directed that ASIC-rs and wxWidgets live vendored in this repo
|
||||
"so that we can handle merging updates easily". Upstream is not reachable
|
||||
through our suspended GitHub account, and we want reproducible offline
|
||||
builds and conflict-free updates.
|
||||
|
||||
## Decision
|
||||
|
||||
Both dependencies are vendored under `vendor/` as **pristine upstream
|
||||
archives plus a patch queue**:
|
||||
|
||||
```
|
||||
vendor/
|
||||
asic-rs/ cargo-vendored crate tree (every transitive crate source);
|
||||
regenerated by `cargo vendor vendor` on version bump;
|
||||
driven by the version pin in crates/*/Cargo.toml
|
||||
wxwidgets/
|
||||
wxWidgets-3.3.3/ pristine release tree, never edited directly
|
||||
VERSION upstream version + tarball URL + sha256
|
||||
patches/ our changes as numbered .patch files (empty today)
|
||||
```
|
||||
|
||||
Rules:
|
||||
|
||||
1. Never edit a vendored pristine tree in place — every local change is a
|
||||
patch in `patches/`, applied by the build in numeric order. This makes
|
||||
an upstream update: replace pristine archive, `git apply` surviving
|
||||
patches, rebase the rest.
|
||||
2. Every vendored tree records its upstream source URL and sha256 in
|
||||
`VERSION`. Updates are a diff of one version-pinning line plus the
|
||||
patch-queue rebase.
|
||||
3. asic-rs is pinned per semver in Cargo.toml and materialized with
|
||||
`cargo vendor`; the build uses `.cargo/config.toml`'s vendored-sources
|
||||
replacement, so builds never touch the network.
|
||||
4. wxWidgets 3.3.3 release tarball is the merge unit (wx upstream supports
|
||||
it); the C++ shell links the vendored tree via CMake `add_subdirectory`.
|
||||
|
||||
## Consequences
|
||||
|
||||
- The repo grows by the vendored sources (one-time; git-compressed).
|
||||
- Offline/reproducible builds on any machine.
|
||||
- Updating either dependency is mechanical, reviewable, and never
|
||||
entangles our changes with upstream files.
|
||||
Reference in New Issue
Block a user