1
0

Tweaks for first prototype
All checks were successful
Build & Test WASM / build-and-test (push) Successful in 1m43s

This commit is contained in:
2026-03-15 22:57:43 +01:00
parent da74445f14
commit e792ef3c74
8 changed files with 359 additions and 136 deletions

View File

@@ -47,7 +47,7 @@ Browser
- Enforces PatchGroup mutual exclusion (radio buttons)
- Generates kobopatch.yaml config with overrides from UI state
### `patch-worker.js` — Web Worker (in progress)
### `patch-worker.js` — Web Worker
- Loads `wasm_exec.js` and `kobopatch.wasm` off the main thread
- Receives patch config + firmware via `postMessage`
- Sends progress updates back to main thread for live UI rendering
@@ -65,7 +65,8 @@ Browser
### `kobopatch.js` — Runner Interface
- Abstracts WASM loading and invocation
- Will be updated to communicate with Web Worker
- Spawns Web Worker per build, handles progress/done/error messages
- Transfers firmware buffer zero-copy via transferable
### Static Assets
- Patch config zips in `src/public/patches/` with `index.json` index

View File

@@ -26,6 +26,15 @@
- [x] Progress reporting: download % with MB, WASM log output in terminal window
- [x] WASM `patchFirmware` accepts optional progress callback (4th arg)
- [x] Verified patched binaries are byte-identical between native and WASM builds
- [x] Web Worker for WASM patching (non-blocking UI, live progress)
- [x] Cache-busting timestamp on WASM file (`?ts=` query string)
- [x] Matched log output to native kobopatch (no debug spam from patchfile.Log)
- [x] Step navigation: 3-step indicator (Device → Patches → Build) with back/forward
- [x] Discrete steps with proper state management
- [x] Scrollable patch list (50vh max height with border)
- [x] Toggleable patch descriptions (hidden by default, `?` button)
- [x] UI polish: renamed to "KoboPatch Web UI", styled firmware URL, patch count hint
- [x] Disambiguated identical model names in dropdown (serial prefix suffix)
## To Test
@@ -33,11 +42,6 @@
- [ ] Verify File System Access API write to `.kobo/KoboRoot.tgz`
- [ ] Test manual mode flow across Firefox/Safari/Chrome
## In Progress
- [ ] Web Worker for WASM patching (avoid blocking UI, enable live progress)
- `patch-worker.js` created, not yet wired up
## Remaining Work
- [ ] Better error messages for common failures
@@ -58,5 +62,6 @@
- **Firmware auto-downloaded from Kobo's CDN.**
`ereaderfiles.kobo.com` serves `Access-Control-Allow-Origin: *`, so direct `fetch()` works.
User no longer needs to provide firmware manually. URLs hardcoded in `kobo-device.js`.
- **Web Worker for WASM (in progress).**
- **Web Worker for WASM.**
Moves patching off the main thread so progress updates render live during the build.
`patch-worker.js` loads `wasm_exec.js` + `kobopatch.wasm`, communicates via `postMessage`.