Files
noahandClaude Opus 4.8 6e785275da
source / check (pull_request) Skipped
verify / verify (pull_request) Canceled after 12m59s
feat(gui): two-choice restore, dialogs-during-scan, creds-from-settings
Restore-to-stock dialog overhaul (issues #46, #47, #48, #51): a two-source
restore -- the board's on-board stock backup (checkbox, auto-detected via the
merged alkane-flash onboard_stock_backup_present and greyed out with
set_enabled when absent) or a Bitmain stock firmware file picked with a Browse
button (OTA .tar.gz or SD .zip, any X17-series model). The alkane root login
comes from Settings (no per-dialog password field); on-board restore uses the
new stock_ops::start_restore_onboard over DSH's restore_from_onboard_backup.

Install dialog: password field removed too (#46); the login comes from Settings.

Dialogs during scan (#43): install/uninstall dialogs open and can be prepared
while a scan runs (new flash_busy gate); the scan is stopped only when the
operation actually starts (stop_scan_for_op) so the two never touch a board at
once.

Bug report (#50): the always-present "Open issue" button is gone; filing turns
it into a clickable "View issue #N" link.

wx-rs: add set_enabled (grey out a control); captured as patch 0013. Merges
DSH's alkane-flash on-board backup/restore method (sealed in stock_method.rs).

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01B1W6qKwKxq3oUPDKWicM6i
2026-11-13 13:53:28 -06:00
..

wx-rs patch queue

../wx-rs-0.2.0-patched/ is the tree cargo builds. These patches, applied in order to the pristine crate in ../upstream/ (digest pinned in ../VERSION), must reproduce it byte for byte; CI checks this with scripts/wx_rs_patches.py check.

To change the bridge: edit the patched tree, build and test, then record the change as the next patch and commit both:

python3 scripts/wx_rs_patches.py capture short-name "One-line subject" [PATH ...]

capture limits the patch to the given paths (default: everything that differs) and re-runs the check. 0002 and 0003 create the widget bridge files outright, so they carry those files as of the queue's re-baselining; later changes go in new patches.

Patch What
0001 Linux/GTK3 build through wx-config
0002 Widget/event bridge, Rust side (src/widgets.rs)
0003 Widget/event bridge, C++ side (cpp_src/widgets_bridge.cpp)
0004 Upstream fixes for wx 3.3 (uninitialised callbacks)
0005 Packaging: build-only reqwest note; drop the case-duplicate readme.md
0006 Build: platform from the target, not the host; Windows/GNU via wx-config
0007 wxbridge.cpp on wxMSW: no input-swallowing overlay, appearance before the first window, work-area sizing, executable icon, UTF-8 menu fix
0008 Widget bridge on wxMSW: generic data-view input and tooltips, DIP boundary, anti-aliased shapes, themed selection colours
0009 macOS: wxOSX (universal static) through wx-config, logical sizes on Apple, clang compiler runtime for @available
0010 macOS table: native alternating rows instead of the unclipped custom-cell background fill (it hid neighbouring cells' text), theme-aware text colour, osx_native.mm, self-test window snapshot
0011 macOS self-test snapshot captures the window's frame view, so areas the app does not paint show the real window background instead of transparency

History: the round 19 health-tooltip fix (GTK tip area converted from bin-window to widget coordinates) used to be a separate patch on top of an older 0003; it is part of 0003 since the re-baselining.