d4a1db7243dc23ac7f151edbce08d290ea25f52e
15
Commits
| Author | SHA1 | Message | Date | |
|---|---|---|---|---|
|
|
42e3bf8f5b |
round 19: columns, scan speed, per-firmware logs, more scanned fields
Table/columns: - Fix the "columns shrink to tiny" bug on language change / add / hide (#3, #24): the rebuild-time capped autosize read column widths before GTK's measurement landed. Columns keep their default widths; autosize is on-demand only. - Right-align every column except IP (#21): new alignment param on the bridge append calls; the SegmentRenderer and the tooltip hit-test honour it. - "Auto-size all columns" header menu item; Ctrl+A selects all rows (#4). - Remove the Boards (dots) column (#7). - Split the slash-joined Fan column into per-fan columns Fan 1-4 (#8). - Efficiency: unit moved into the value and made algorithm-aware (J/TH for SHA256 families, J/kSol for Equihash), fixing the blank/garbage figure on non-SHA256 miners (#9, #23). - Pool account column before Worker by default (#22). Scan: - Fast scan (#18): emit a lightweight identity row the instant a miner is identified, then upsert the full telemetry row when get_data completes. - User-adjustable scan concurrency with a bounded max (#25). - Surface more scanned values as columns (#10): current tuning target, accepted / rejected shares + reject %, and per-hashboard hashrate / voltage / frequency. Logs (#11-16): fetch the miner log through asic-rs's per-backend read_logs() instead of the narrow curl paths, fixing Braiins / LuxOS / Z15 / BixBit / stock Antminer; WhatsMiner keeps the fault-code fallback (no API log). Removed the summary tidbits from the log viewer (#13). Misc: fix per-icon health tooltips (advance math matched to the renderer) (#2); paused miners show blue hashboard icons, healthy stays green (#19); state-aware Pause/Resume in the right-click menu (#20); export opens a column-picker dialog (#6) and the default filename carries a UTC timestamp (#5); the scan status bar says "Scan Paused" / "Scan Stopped" and no longer overwrites Stop with paused (#17); the bench badge shows the weighted-average microbench delta vs the previous release (#1). Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Djv3oncM4LxTS5tb61Ako6 |
||
|
|
19e469ebc4 |
item 12: clippy-clean our crate + add LICENSE files
Cleared all clippy findings in alkane-gui (cargo clippy --no-deps): mechanical
fixes via clippy --fix (redundant imports, useless format!, manual_contains,
manual_is_multiple_of, unnecessary_map_or, unused parens) plus manual fixes:
- type_complexity: factored the segment tuple into model::{Rgb, Segment} aliases.
- large_enum_variant: #[allow] on ScanMsg/RefreshMsg with a note -- Row is the
common variant, so boxing it to shrink the rare Started/Done would add an
allocation per miner on the hot path.
- dead code: removed unused SHAPE_PULSE_DOT, ColorKind::Accent, clear_op_status,
and RestoreMsg's unread `total`; kept the restore/access-probe cancel handles
(workers honour cancellation; UI stop control pending) under #[allow].
- question_mark, needless_range_loop, drop_non_drop, doc_lazy_continuation fixes.
Only vendored wx-rs warnings remain (out of scope). Added LICENSE-MIT and
LICENSE-APACHE (Cargo.toml already declares MIT OR Apache-2.0). 94 tests +
selftest green.
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Djv3oncM4LxTS5tb61Ako6
|
||
|
|
bafbd519bb |
GUI round 15 (part 2, #13): Settings menu, localization, Logs page
Add a Settings menu (the old Credentials toolbar button is now "Settings") containing Credentials, a Language sub-menu, and a Logs page. Localization (#13): a small i18n layer -- visible strings are wrapped in t("English") and looked up per language, falling back to English. Built-in translations for Mandarin, Russian, French, Spanish and Portuguese cover the toolbar buttons, KPI captions and table column headers; changing the language re-labels them live (columns via a table rebuild) and localizes dialogs as they open. The choice persists under the config dir and loads at startup. (Dialog-internal strings and status text are not yet fully translated -- the framework is in place to extend them.) Logs page (#13): an in-app activity log (scans, operations applied, export, language change) shown in Settings > Logs with Refresh / Clear. New wx-rs bridge: menu sub-menus (menu_append_submenu). Bridge patches 0002/0003 regenerated. Unit tests + headless selftest pass; the Chinese UI was verified rendering end to end. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Djv3oncM4LxTS5tb61Ako6 |
||
|
|
0d19e958f0 |
GUI round 15 (part 1): pool dropdowns, aligned health icons, export, more
Twelve of the round-15 items (the code items; the live-hardware flashing/ testing and the settings/localization/logs work follow separately): #1 Configure-pools: three pool rows (address, account, worker, password), each field with a "+" dropdown of presets (top-11 BTC pool stratums; worker-name placeholders) plus user-addable, persisted entries. Worker picks insert at the cursor rather than replacing. Writes up to three pools per miner via set_pools_config, worker expanded per unit. #2 PIC detection: replace the broken SSH i2cdump (it read 0x48, the temp sensor, not the PIC) with a model lookup -- no firmware exposes PIC over the network, so infer it from the model (noPIC: S19k Pro, S21 family, T21, explicit noPIC; PIC: rest of the S19 line). #4 Zoom: an editable percent field in the status bar (type an exact scale) and Ctrl +/- / Ctrl+0 to zoom in/out/reset. #5 Health icons align in fixed slots (power, control, fans, hashboards); miners with fewer fans/boards leave a gap so hashboards still line up. The max fan/board counts are computed parametrically from the fleet. #6 Light: the locate-light column is on by default (last), shown as a green-over-red beacon flashing quickly instead of a single amber dot. #8 The bottom-left status line is now scan-only; operation progress lives in the Health column (per miner) and failures in the bottom-right indicator. #9 / #10 / #11: drop the Credentials-dialog blurb; move the scan-ranges format help to a tooltip; make Restore-to-stock a plain confirmation (no typed keyword, no warning wall). #12 Z15 fans: the v2020 backend now reads fans from higher fan slots (the Z15 reports fan3/fan4 with fan1/fan2 = 0). Vendored patch 0009. #14 Export: an Export button writes every scanned data point to a CSV, one value per cell (lists expanded to indexed columns) -- complete and machine-readable, unlike the on-screen table. #15 Health tooltips are per-icon: hovering a specific fan or hashboard shows just that component's state, with errors attributed to the board that names them in the message. New wx-rs bridge surface: widget tooltips, save-file dialog, insert-at-cursor, status-bar zoom entry + Ctrl+/-, the light beacon + alignment-gap sentinels, and per-icon cell tooltips (bridge patches 0002/0003 regenerated). Unit tests (worker templates, PIC map, CSV export, health) + headless selftest pass. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Djv3oncM4LxTS5tb61Ako6 |
||
|
|
368f992404 |
GUI round 14: bigger health icons, table zoom, pool config, op progress
Seven items from the round-14 list: #1 Health icons: render bigger (nearly the full row height) and packed tighter so a row of component icons stays large and readable; the icon sizes also scale with the new table zoom. #2 Scan timeout: a per-miner scan timeout (asic-rs identification timeout) is now configurable in the Scan-ranges dialog and persisted, so slow miners can be given longer or fast scans sped up. #3 Table zoom: a slider in the bottom-right of the status bar scales the whole table together -- font, component icons, row height, and column widths -- from 50% to 250% (default 100%). Implemented in the wx bridge (no Rust round-trip); the custom SegmentRenderer draws its text in the control's scaled font so the coloured columns zoom like the native ones, and the zoom is re-applied after a column rebuild so it survives show/ hide/reorder. #4 Operation progress: while an operation runs on a miner (refresh, config/light/power/tuning action, firmware flash, restore-to-stock, access check), its Health cell shows the progress text ("refreshing…", "restarting…", "setting pools…", …) instead of the component icons, and reverts to icons when the operation finishes. #5 Remove the SSH PIC probe: the "Detect PIC (SSH)..." right-click flow and its dialog, background probe, and pic_probe module are removed. PIC state stays a best-effort model-string heuristic in the PIC column. #6 WhatsMiner access: WhatsMiners now show the locked/unlocked padlock in the Access column instead of a blank cell -- since round 12 #8b gave the V1/V2/V3 backends their control commands, the same capability heuristic the other brands use applies to WhatsMiner too (the token access check still refines a read-only unit to "locked"). #7 Configure pools: a right-click "Configure pools..." flow (gated on the new pools capability) with three fields -- pool address and account (required) and an optional worker name. The worker name expands per miner from case-insensitive placeholders scanned from each unit: {ip1}..{ip4}, {serial}, {mac} (colons removed), {nameplate-hr} (rated TH), {brand}, {model}, {submodel}, {cpu}, {cb}, {firmware}, {hostname}. Applied via asic-rs set_pools_config on a background thread reusing the action plumbing. wx-rs bridge patches 0002/0003 regenerated. No vendored asic-rs changes. Unit tests (component health, worker-template expansion) + headless selftest pass. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Djv3oncM4LxTS5tb61Ako6 |
||
|
|
a75fe5ba52 |
GUI round 12 (#8a): restore aftermarket firmware to stock (right-click)
Adds a right-click "Restore to stock firmware..." action for aftermarket-firmware miners, behind a strong typed (RESTORE) confirmation that lists exactly which miners will be reverted. All three supported firmwares self-restore for free (the stock image is retained on-device; no image is uploaded), per the live-confirmed flows in the miner-firmware wiki: - VNish: POST /api/v1/unlock -> bearer -> POST /api/v1/firmware/remove (~3 s) - LuxOS: luxminer :4028 logon -> uninstallluxos (credential-free) - Braiins: SSH `uninstall.sh` (re-flashes the on-NAND stock backup) New crates/alkane-gui/src/restore.rs runs the revert on a background thread with a result channel and a fake-scan demo path; VNish password reuses the round 12 #13 per-firmware default, Braiins uses the saved SSH login. The menu item only appears when the selection includes a revertible firmware. Also fixes an event-routing bug introduced in #12/#8a: the log-viewer Close and restore OK/Cancel buttons were mistakenly handled in the MenuItem match instead of ButtonClicked, so they never fired -- this restores #12's log-viewer Close button too. Moved them to the ButtonClicked match. Verified under Xvfb + openbox: the menu item shows for VNish/LuxOS/Braiins rows; the confirm dialog renders the targets and typed gate; typing RESTORE runs the (fake) revert and closes the dialog; a wrong value is rejected and the dialog stays open. restore unit test + GUI self-test pass. NOTE: no live restore was run -- the designated test range 10.2.1.0/24 is currently empty, and production miners were not touched; the live flash awaits a unit in that range. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Y8h447BPyJR4fioYZvQ9bh |
||
|
|
a6d286a147 |
GUI round 12 (#12): scan miner logs over the firmware API (PIC + metrics)
Adds a right-click "View log (API)..." action that fetches a miner's log through
its firmware API and regex-scans it -- the "logs through API" path for PIC
detection and other metrics without SSH.
Per firmware (crates/alkane-gui/src/log_scan.rs, curl-based like the access
probe, stdout drained on a thread so a large log never deadlocks the pipe):
- VNish: POST /api/v1/unlock -> bearer -> GET /api/v1/logs/miner (the full miner
log: PSU init, per-chain chip detection, tuning, errors).
- Stock Antminer: GET /cgi-bin/log.cgi (digest); older models (Z15) that do not
serve it are reported as "no log over its web API".
- WhatsMiner: get_error_code on :4028 (unauthenticated) formatted as the log.
The summary regex reports PIC status ("not present (no-PIC miner)" / "present --
<version line>"), the latest per-chain chip-detection line, and recent errors
from the log history. Creds reuse the round 12 #13 per-firmware defaults (VNish
password, else "admin"; Antminer web login from the saved global creds).
Verified live: VNish S19j Pro (10.7.1.25) log -> "PIC: not present (log reports a
no-PIC miner)" + chains + recent errors; WhatsMiner (10.8.1.45) -> its active
error codes; Z15 (10.5.1.196) -> honest "no log over its web API". Unit tests for
the summary + a headless ALKANE_LOG_SCAN diagnostic; self-test passes.
Note: WhatsMiner fault codes already surface in the Errors column via asic-rs's
get_error_code -> messages; this adds the raw-log view and the PIC scan on top.
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Y8h447BPyJR4fioYZvQ9bh
|
||
|
|
3ba3211371 |
GUI round 12 (#8b, part 1): correct WhatsMiner lock/access with the :4028 token API
WhatsMiners were shown "locked/unauthenticated" even with their default login. Two causes, both fixed: - The access probe hit an Antminer-only endpoint (/cgi-bin/get_miner_conf.cgi via curl --digest) for EVERY make; WhatsMiners answer 307 there, so the check was always indeterminate. Added a real WhatsMiner check over its :4028 token API: get_token (unauthenticated) -> derive the AES key from the password (md5crypt + SHA256, the same scheme the vendored asic-rs whatsminer backend uses) -> send a NON-mutating encrypted `summary`. An encrypted reply means the password was accepted (unlocked); a plaintext "enc json load err" means rejected (locked). probe_access now branches on the miner brand. Candidate passwords: a per-firmware override (round 12 #13) if set, else the factory defaults admin (V1/V2) and super (V3); all attempts are non-mutating so trying both is safe. - The scan-time lock guess (!caps.any_control()) falsely marked older WhatsMiners locked because they route to the asic-rs V1 backend, which declares no control commands even though the miner is controllable via the token API. WhatsMiner lock state is now left unknown at scan time and decided by the real probe. Live-verified on the fleet: older 20220422.18.REL units (10.8.1.176, 10.7.1.196) and newer M30S+ (10.8.1.45) all report UNLOCKED with the default admin login; the Antminer digest path is unchanged (Z15 -> 200 with root/root -> unlocked). Added a headless `ALKANE_ACCESS_PROBE="<ip> <make>"` diagnostic and a deterministic AES unit test. Self-test passes. Note: this is the access/lock half of #8b. Implementing the full reverse- engineered WhatsMiner command set (control + monitoring over the token API) is tracked separately. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Y8h447BPyJR4fioYZvQ9bh |
||
|
|
3c99934513 |
GUI round 9 (#11): device-naming cleanup -- Brand/Submodel columns, clean model names, control-board short codes
asic-rs hands us compact Rust-identifier model strings ("S19KPro",
"M30SPlusVE40") and bare control-board family names ("Xilinx", "AMLogic",
"BeagleBoneBlack", WhatsMiner "H3"/"H6"/"H6OS"/"H616"). This adds a pure
display-layer transform (new crate::naming) that turns those into the
human-facing identity the table shows -- no asic-rs edit, so it stays a
build-on-top layer over the vendored crate.
- Model column now shows the cleaned name: brand dropped, family-letter
suffix lowercased, word suffixes spaced, "+"/"++" for Plus/PlusPlus, and
(WhatsMiner) the trailing version block moved out. "S19KPro" -> "S19k Pro",
"S21Pro" -> "S21 Pro", "M30SPlusVE40" -> "M30S+".
- New Brand column ("Antminer"/"WhatsMiner"/...) and Submodel column
(WhatsMiner version block, e.g. "VE40"; blank for Antminer -- its hashboard
type is not reported over the network). Both hidden by default; available
via the Columns menu and filterable.
- Control-board column now shows the Bitmain short code: BeagleBoneBlack ->
"BBB (C77)", CVITek -> "CVI (C88)", Xilinx -> "XIL (C49)" (S17-era) /
"XIL (C55)" (S19-era), AMLogic -> "AML (C76)" (120mm) / "AML (CBE)"
(140mm); WhatsMiner H3 -> "H3 (CB2)", H6 -> "H6 (CB4)", H6OS ->
"H6os (CB4)", H616 -> "H616 (CB6)". Xilinx/CVITek/AMLogic/BeagleBone are
already detected by asic-rs, so no crate extension was needed.
Heuristics (asic-rs reports only the board family, never the exact board
number): the AMLogic 120mm-vs-140mm (C76/CBE) and Xilinx S17-vs-S19-era
(C49/C55) splits are inferred from the model family. These are documented in
crate::naming and are the one place a live-hardware correction may be needed.
ALL_COLUMNS is now 41. Fixtures refactored to carry asic-rs-style
make/model_id/board so they exercise the real transform. naming has unit
tests for the model/submodel/brand/control-board rules; the headless
self-test gained 32 checks (brand/model/submodel/control-board per fixture),
all PASS. 79 offline tests pass; screenshot-verified the cleaned Model and
control-board codes in the default view.
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Y8h447BPyJR4fioYZvQ9bh
|
||
|
|
408b7d12b4 |
GUI: real access/lock-state detection via credentialed digest probe
asic-rs has no lock-state signal (a wrong-password miner just silently returns fewer fields, because the collector drops the 401). This builds the real check ON TOP of asic-rs: - access_probe.rs: a NON-mutating, digest-authenticated GET to a privileged endpoint (Antminer get_miner_conf.cgi, read-only). The HTTP status is decisive -- 200 = credentials authenticate (writable -> unlocked), 401/403 = rejected (view-only -> locked); anything else -> indeterminate. Pure classifier + unit tests; shells out to curl --digest (no HTTP crate) so the offline build is unaffected. - Right-click "Check access (auth)" on the selected miners runs start_access_probe on a background thread using the saved scan (web) credentials (default root/root), updating write_locked in the rows as results arrive. Fake-scan mode returns deterministic demo results. Guarded against a flash / concurrent probe. Replaces the previous capability-based inference for the miners the user explicitly checks. cargo check --release --tests clean. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Y8h447BPyJR4fioYZvQ9bh |
||
|
|
d73299166e |
GUI: real PIC detection via on-board SSH + i2c probe (right-click action)
asic-rs and the miner's network API cannot report PIC-vs-noPIC (only one legacy
SKU, ANTMINER S19J88NOPIC, carries it in the model string; the authoritative
signal lives on the control board's I2C bus). So this builds the real detector
ON TOP of asic-rs as an opt-in SSH probe, per the project wiki
(30-power-thermal-and-board-identity/hashboard-eeprom-pic.md):
- pic_probe.rs: SSH to the control board and run i2cdump -y <bus> 0x48 b, then
discriminate by the register period -- a PIC/MCU board exposes an 8-byte
register file that WRAPS every 8 bytes ("17 00 4b 50 7f 00 00 00 ..."), while
a noPIC board has a 4-register LM75 temp sensor (4-byte wrap). The classifier
is pure + unit-tested against the wiki's example dumps and is conservative
(indeterminate -> None, never a guess). The I2C bus is chosen from the
control-board family (AMLogic->1, BeagleBone->0, else try both). We shell out
to ssh/sshpass (no SSH crate) so the offline/vendored build is unaffected.
- Right-click "Detect PIC (SSH)..." on the selected miners: a dialog collects
SSH login (prefilled from a new 0600 ssh-credentials.txt, default user root),
then start_pic_probe runs one miner at a time on a background thread (each is a
slow SSH round trip; never part of the fast network scan) and upserts
pic_present into the rows as results arrive. Fake-scan mode returns
deterministic demo results. Guarded against a firmware flash / concurrent probe.
The classifier is unit-tested; the live SSH round-trip needs a reachable bench
miner with SSH + i2c-tools to verify end-to-end. cargo check --release --tests
clean.
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Y8h447BPyJR4fioYZvQ9bh
|
||
|
|
98603077e3 |
GUI round 8: view presets (save/load column arrangement, filters, sort)
Item 11: a "Presets" button (top-right) opens a dialog to save the current
table view -- column arrangement + visibility, sort, and all active filters --
as a named profile, load a saved one, or delete it. The built-in "Default"
profile is always the first preset and shows IP, Model, Hashrate, Power, Chip
temp, Firmware, Control board, PIC and Status; the app now boots with it.
- New presets.rs: a serde-serialized PresetView snapshot of ViewState (Vec-based
so the JSON has no enum map keys), Preset { name, view }, and load/save to
~/.config/alkane-toolkit/presets.json. "Default" is re-seeded on load and not
written, so it can't be lost or deleted. A loaded preset missing newer columns
still covers every column (they're appended hidden).
- serde/serde_json added to alkane-gui (already vendored + locked via asic-rs);
Column/ColFilter/TextOp/NumOp derive Serialize/Deserialize and ViewState is
now Clone.
- ui.rs: build_presets_dialog + apply_preset_load/save/delete, wired to the new
Presets button.
Unit tests: default-preset round-trips through ViewState and JSON.
cargo check --release --tests is clean.
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Y8h447BPyJR4fioYZvQ9bh
|
||
|
|
b6afe08a5f |
GUI round 6: offline detection, combined columns, per-cell colours, paused status, credentials, refresh, firmware flash
Large round implemented via a research workflow (6 parallel readers) then a file-partitioned implementation workflow (model/scan/bridge/ui/fixtures), all to one shared contract. Table / model: - Offline recognition fix: the scan loop now emits a row for EVERY probed IP - non-responders become an "offline" row (new MinerRow.online flag + MinerRow::offline()), so unreachable miners show up (offline, red) instead of vanishing. Previously only responders got a row. - Not-hashing rows are now RED (were grey); offline also red. - New "paused" status (operating_state contains "pause" while not mining): its own blue row colour, a blue "Paused" KPI card, and a Kpis.paused count. - Combined actual/expected columns: Hashrate, Hashboards and TotalChips fold their separate Expected* columns into one "actual / expected" cell; the actual is drawn on a smooth red->amber->green scale by ratio (100% = green), the expected in plain text, the slash black. num_value is carved out so a numeric filter never matches a row that only has an expected value. - Fan column shows every fan's RPM as "rpm/rpm/rpm" (max 3 sig digits, SI-style), each fan coloured on its own grey->blue speed scale, slashes black. - These four columns render via a new wxDataViewCustomRenderer (SegmentRenderer) that draws colour runs from a \x1f/\x1e-encoded value; every other column keeps the stock renderer and per-row status colour. Interaction: - KPI quick-filter: clicking the Hashing / Slow / Not hashing / Paused card filters the table to that status (composed with any column filters) and highlights the active card; clicking again clears it. - Removed "Select all" / "Clear selection" from the right-click menu. - Right-click "Refresh": re-polls the selected miners (asic-rs scan_miner) on a background thread and upserts the rows, without a full network scan. - "Set scan credentials..." button (top-right): stores a username/password (~/.config/alkane-toolkit/scan-credentials.txt, 0600) that is fanned out to every asic-rs firmware backend via with_firmware_discovery_auth, so scans and all right-click actions authenticate. Applied through a new credentials::configured_factory() used everywhere MinerFactory::new() was. - "Flash firmware..." (right-click): asic-rs UpgradeFirmware for the backends that support it (stock Antminer + EPIC; every other backend declines and is reported as unsupported). File picker (new wxFileDialog binding) + a typed "FLASH" confirmation; one miner at a time; cancel only between miners. - Responsive layout: the KPI and controls rows use wxWrapSizer so they reflow when narrow; the min window size drops from 1200x720 to 640x480. Bridge (wx-rs): SegmentRenderer + dvlc_append_colored_col, wrap_sizer, bind_click (clickable KPI cards), file_dialog; dropped a vestigial gtk.h include. Patches 0002/0003 regenerated + round-trip validated. Portability note: every widget is a stock, natively-backed wxWidgets control (ports to wxMSW/wxOSX); wxDataViewCtrl is native on Linux/macOS and wx's own generic (still-correct) drawing on Windows. Verified: cargo check --release --tests is clean; the release build + tests + headless self-test run in CI. (Local release link is OOM-blocked on this desktop; CI is the authoritative build.) Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Y8h447BPyJR4fioYZvQ9bh |
||
|
|
d88df603ba |
Fix GUI layout/crash bugs; add operator features, tests, and dev loop
Round 1 (bug fixes + test harness): - Fix table rendering in the top-left corner: the dvlc was never added to the sizer; add it (proportion 1) and re-run layout; drop the space-eating stretch. - Fix abort on dialog buttons: the dialog root sizers passed ALIGN_CENTRE_VERTICAL to a vertical sizer, tripping a wx consistency assert whose handler pumps a nested event loop, re-entering dispatch while it held the App RefCell borrow. Remove the invalid flags; split dispatch into two phases with try_borrow_mut. - Fix header-click sort mapping when columns are hidden (use display_columns); drag-reorder splices back into the full order without dropping hidden columns. - Add offline fixtures + ALKANE_FAKE_SCAN and ALKANE_SELFTEST modes; scripts ui-selftest.sh and ui-screenshot.sh; AGENTS.md documents the dev loop. Round 2 (operator requests): - Redesigned color-coded KPI cards; light/dark mode follows the system theme. - SI-formatted hashrate/power on the KPIs and columns (685 TH/s, 21.3 kW). - Scan ranges accept CIDR, single IP, and A.B.C.D-E.F.G.H / A.B.C.D-N ranges; oversized ranges (> 1,000,000 addresses) are rejected. - Scan progress bar over the table + status-bar text; out-of-range miners are dropped when a scan starts. - Columns panel exposes every scannable MinerData metric (All / None / Defaults). - Excel-style filter panel: per-category value checklists, per-column All/None, Apply / Reset / Cancel, blank handling. - Sort direction marker in the header (updated in place); double-click a row opens the miner in the default browser. wx-rs: extend the widget bridge (gauge, in-place column title, sort indicator, browser launch, system appearance/colours, widget colours, item-activated); patches 0002/0003 regenerated and round-trip validated. Verified: 22 unit tests + a 13-check headless UI self-test, plus a live scan against the bench fleet. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Y8h447BPyJR4fioYZvQ9bh |
||
|
|
fcc70c04f6 | M1 primary view: wx-rs patched+extended (Linux/GTK3 build, widget bridge), vendored wx 3.3.3 + asic-rs in thirdparty/, UI-SPEC table+KPIs+dialogs, build scripts |