Refractoring Stage 6.6 Migrated productivity.js and shortcuts.js mail-state access and render/preferences hooks to the mail feature API.
This commit is contained in:
+6
-4
@@ -106,6 +106,9 @@ This is a gradual destination, not a requirement to move everything at once. IPC
|
||||
- [x] Migrate snooze UI state/sync access to the mail feature API (`snooze-ui.js`).
|
||||
- [x] Migrate attachment UI state, selectors, and message hooks to the mail feature API (`attachments.js`).
|
||||
- [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 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.
|
||||
- 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.
|
||||
@@ -132,7 +135,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.17`; Android derives `versionName 0.4.17` and `versionCode 417`. The user reports that the current artifact builds and works; the checked-in `release/` directory contains Windows artifacts through `0.4.16`.
|
||||
- Latest version check: `package.json` and both lockfile version fields are `0.4.18`; Android derives `versionName 0.4.18` and `versionCode 418`. The checked-in `release/` directory contains Windows artifacts through `0.4.18`, which the user confirms builds and works.
|
||||
|
||||
## Progress log
|
||||
|
||||
@@ -151,10 +154,9 @@ 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. Package/lockfile are now `0.4.17`, with Android build number `417`; the latest artifact observed is Windows `0.4.16`.
|
||||
- Added a build-version consistency check. Package/lockfile are `0.4.18`, with Android build number `418`; the user confirms the 0.4.18 artifact works.
|
||||
- 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's renderer API slice passes 121 tests. The `0.4.17` artifact has not been built as part of this renderer change.
|
||||
- Step 6 also migrated snooze and attachment UI state/sync/reader integrations to the mail feature API; 121 tests pass. The latest built artifact observed is `0.4.16`.
|
||||
- Step 6 migrated snooze, attachment, OpenPGP mail, shortcut, and productivity state/render 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.
|
||||
- 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