Refractoring Stage 6.1 Started renderer modularization with shared state.
This commit is contained in:
+6
-4
@@ -98,9 +98,10 @@ This is a gradual destination, not a requirement to move everything at once. IPC
|
||||
|
||||
**Result:** OpenPGP, mail/account, and DAV handler groups now register through the same sender and payload validation wrapper. Registration/schema tests cover all feature modules.
|
||||
|
||||
### 6. Modularize renderer incrementally
|
||||
### 6. Modularize renderer incrementally — in progress
|
||||
|
||||
- Introduce explicit modules and feature initialization APIs, starting with shared state and mail UI.
|
||||
- [x] Introduce a namespaced shared renderer-state module with transitional classic-script accessors (`renderer-state.js`).
|
||||
- [ ] Convert mail UI to explicit feature APIs and remove legacy global dependencies.
|
||||
- Replace hidden globals and script-order dependencies with imports or passed dependencies.
|
||||
- Keep root web assets canonical and generated copies out of hand-edited workflows.
|
||||
- Preserve CSP, HTML sanitization, and per-message remote-image approval behavior.
|
||||
@@ -126,7 +127,7 @@ This is a gradual destination, not a requirement to move everything at once. IPC
|
||||
- Electron Builder and the desktop Actions artifact name derive from `package.json`.
|
||||
- Android `versionName` derives from the same package version. Its current `versionCode` mapping is `major * 10000 + minor * 100 + patch`; keep minor and patch below 100, and revise the mapping before reaching that boundary to avoid collisions.
|
||||
- `scripts/build-all.ps1` uses the package version for APK naming. Before a release, bump once with `npm run bump:build`, verify the lockfile and computed Android version code, and build every target without another bump.
|
||||
- Latest version check: `package.json` and both lockfile version fields are `0.4.12`; Android derives `versionName 0.4.12` and `versionCode 412`. The existing Windows artifacts are through `ep-mail 0.4.11.exe`; no `0.4.12` release artifact has been built yet.
|
||||
- Latest version check: `package.json` and both lockfile version fields are `0.4.13`; Android derives `versionName 0.4.13` and `versionCode 413`. The user confirmed the `0.4.12` artifact was built and tested; `release/` contains its Windows executable. The `0.4.13` artifact has not yet been built.
|
||||
|
||||
## Progress log
|
||||
|
||||
@@ -145,7 +146,8 @@ This is a gradual destination, not a requirement to move everything at once. IPC
|
||||
- Step 5 moved OpenPGP handler registration and message-source fetching into a feature module and added registration/schema coverage.
|
||||
- Step 5 moved DAV handler registration into a feature module and added registration/schema coverage; the full suite passes 110 tests.
|
||||
- Step 5 grouped mail/account handlers in `desktop/ipc/mail.cjs`; all 114 tests pass and the remaining app-version handler stays in the Electron shell.
|
||||
- Added a build-version consistency check. The user bumped to `0.4.12`; package and lockfile match, and Android's derived build number is `412`. The release artifacts have not yet been built for this version.
|
||||
- Added a build-version consistency check. The user bumped to `0.4.13`; package and lockfile match, and Android's derived build number is `413`. The verified release artifact remains `0.4.12`.
|
||||
- Step 5 grouped mail/account handlers and added a release-version consistency test; current package/lockfile/Android version alignment was checked and documented.
|
||||
- Step 6 added `renderer-state.js` as the namespaced owner of shared mail/view state, retaining temporary classic-script accessors. It is included in desktop, Android-web, and service-worker asset lists and covered by state/parity tests.
|
||||
- The current IPC/DAV validation changes pass the full suite: 108 tests.
|
||||
- While work continued, `package.json` and `package-lock.json` reflected a version bump to `0.4.6`; those changes were preserved.
|
||||
|
||||
Reference in New Issue
Block a user