fix(gui): install feedback, local .afw picker, scan icons, report wrap
Addresses the bench bug reports filed from the toolkit (issues #37, #38, #39) and the request for a local-file install source. Install (issue #38): the install never reached the worker in the reported case and aborts were only a status-bar line, so the operator saw nothing. Abort reasons (missing FLASH keyword, no release/asset, no target) now raise the visible error indicator and keep the dialog open; the actual per-board failure detail is surfaced and logged instead of a bare count; a clear "installing..." line and log entry mark the start. Install source (requested): the install dialog gains a "Browse local .afw" button beside the Gitea release picker, in the same window. A chosen file takes precedence over the selected release. start_install takes an AfwSource (Release or Local); a local file is used in place, a release is downloaded as before. This brings the CLI's local-file install to the GUI. Scan icons (issue #39): a hashboard the firmware lists with no active flag and no working-chip count now reads grey (not detected) instead of green, and the PSU bolt greens only on real delivery evidence (watts, PSU fan, or PSU output) -- is_mining counts only when the miner is actually hashing. A stock S17 control board with no PSU or hashboards attached asserts a cgminer mining status at zero watts, which previously showed green board and PSU icons. Confirmed against the bench S17 at 10.255.1.111 (reports watts=0). Regression tests added for both. Bug report (issue #37): the report box word-wraps instead of running off the edge (new wx text_ctrl_wrapped without wxTE_DONTWRAP). Sub-window movability is window-manager behaviour (the dialog already has a caption and resize border) and is not changed here. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01B1W6qKwKxq3oUPDKWicM6i
This commit is contained in:
@@ -890,6 +890,15 @@ void* wxbr_text_ctrl(void* parent, int multiline) {
|
||||
wxDefaultPosition, wxSize(-1, -1), style);
|
||||
}
|
||||
|
||||
// A multiline text control that word-wraps at the control's width instead of
|
||||
// scrolling horizontally (no wxTE_DONTWRAP). For prose entry such as the bug
|
||||
// report box, where long lines should wrap rather than run off the edge.
|
||||
void* wxbr_text_ctrl_wrap(void* parent) {
|
||||
return (void*)new wxTextCtrl((wxWindow*)parent, wxID_ANY, wxT(""),
|
||||
wxDefaultPosition, wxSize(-1, -1),
|
||||
wxTE_MULTILINE | wxTE_BESTWRAP);
|
||||
}
|
||||
|
||||
// A single-line text control that masks its content (wxTE_PASSWORD), for secret
|
||||
// entry so a saved password is never rendered in the clear (round 18 #12).
|
||||
void* wxbr_text_ctrl_password(void* parent) {
|
||||
|
||||
Reference in New Issue
Block a user