Refractoring Stage 6.8 The core app shell now reads and updates shared UI state through window.epMailState; Calendar and Contacts navigation also uses the productivity feature API.

This commit is contained in:
2026-10-16 21:31:47 +03:00
parent f4683b6508
commit 1445d42563
6 changed files with 28 additions and 19 deletions
+3 -2
View File
@@ -108,6 +108,7 @@ This is a gradual destination, not a requirement to move everything at once. IPC
- [x] Migrate OpenPGP mail UI reader/compose hooks to the mail feature API (`pgp-mail-ui.js`).
- [x] Migrate shortcut mail-state access and preferences extension to feature APIs (`shortcuts.js`, `productivity.js`).
- [x] Migrate Calendar/Contacts navigation and DAV UI to the productivity feature API (`app.js`, `dav-ui.js`).
- [x] Make the core app shell consume the namespaced renderer state instead of compatibility aliases.
- [x] Migrate additional mail-related consumers to unique local aliases to avoid classic-script lexical redeclarations.
- [x] Add a combined-script parse test to prevent duplicate top-level lexical declarations from stopping later UI scripts.
- [ ] Migrate remaining mail-related consumers and remove transitional global dependencies.
@@ -136,7 +137,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.19`; Android derives `versionName 0.4.19` and `versionCode 419`. `release/` contains the user-verified Windows artifact `0.4.18`; no `0.4.19` artifact has been built yet.
- Latest version check: `package.json` and both lockfile version fields are `0.4.19`; Android derives `versionName 0.4.19` and `versionCode 419`. `release/` contains the user-verified Windows artifact `0.4.19`.
## Progress log
@@ -158,6 +159,6 @@ This is a gradual destination, not a requirement to move everything at once. IPC
- Added a build-version consistency check. Package/lockfile are `0.4.19`, with Android build number `419`; the user-verified artifact is `0.4.18`.
- 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`, extracted the mail HTML security API, and introduced `renderer-mail-api.js`; `account-ui.js` now uses that explicit API instead of several mail globals. Transitional aliases remain for other classic scripts.
- Step 6 migrated snooze, attachment, OpenPGP mail, shortcut, productivity state/render, and DAV UI integrations to feature APIs; compatibility globals remain in the core shell and some cross-feature hooks. Added a combined-classic-script parse guard; the suite passes 122 tests.
- Step 6 migrated snooze, attachment, OpenPGP mail, shortcut, productivity state/render, and DAV UI integrations to feature APIs; compatibility globals remain in the core shell and some cross-feature hooks. The core app now reads shared state through `renderer-state.js`; the suite passes 123 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.