Refractoring Stage 6.12 Bumped the version to 0.4.24 (Android version code 424) and removed the snooze UI’s implicit global call to the productivity label action; it now uses the productivity feature API.
This commit is contained in:
+3
-1
@@ -112,6 +112,7 @@ This is a gradual destination, not a requirement to move everything at once. IPC
|
|||||||
- [x] Make the core app shell consume the namespaced renderer state instead of compatibility aliases.
|
- [x] Make the core app shell consume the namespaced renderer state instead of compatibility aliases.
|
||||||
- [x] Expose core shell behavior through an explicit renderer API and migrate mail UI selectors, notifications, rendering, and compose hooks to that API (`app.js`, `mail-ui.js`).
|
- [x] Expose core shell behavior through an explicit renderer API and migrate mail UI selectors, notifications, rendering, and compose hooks to that API (`app.js`, `mail-ui.js`).
|
||||||
- [x] Hide the account-manager script in a local module scope and route selectors, escaping, notifications, and DAV navigation through explicit feature APIs (`account-ui.js`, `dav-ui.js`).
|
- [x] Hide the account-manager script in a local module scope and route selectors, escaping, notifications, and DAV navigation through explicit feature APIs (`account-ui.js`, `dav-ui.js`).
|
||||||
|
- [x] Route the snooze action's message-label hook through the productivity feature API (`snooze-ui.js`, `productivity.js`).
|
||||||
- [x] Migrate additional mail-related consumers to unique local aliases to avoid classic-script lexical redeclarations.
|
- [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.
|
- [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.
|
- [ ] Migrate remaining mail-related consumers and remove transitional global dependencies.
|
||||||
@@ -140,7 +141,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`.
|
- 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.
|
- 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.
|
- `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.23`; Android derives `versionName 0.4.23` and `versionCode 423`. The user confirms the previous artifact works; this bump is for the next build.
|
- Latest version check: `package.json` and both lockfile version fields are `0.4.24`; Android derives `versionName 0.4.24` and `versionCode 424`. The user confirms the previous artifact works; this bump is for the next build.
|
||||||
|
|
||||||
## Progress log
|
## Progress log
|
||||||
|
|
||||||
@@ -166,5 +167,6 @@ This is a gradual destination, not a requirement to move everything at once. IPC
|
|||||||
- Step 6 added an explicit `epMailShell` interface for mail UI selectors, notifications, views, and renderer wrappers. `mail-ui.js` now uses it rather than directly replacing core renderer functions; search resets use namespaced state, and preferences remain owned by the productivity feature.
|
- Step 6 added an explicit `epMailShell` interface for mail UI selectors, notifications, views, and renderer wrappers. `mail-ui.js` now uses it rather than directly replacing core renderer functions; search resets use namespaced state, and preferences remain owned by the productivity feature.
|
||||||
- Step 6 verification at version `0.4.22` / Android build number `422`: all 123 tests pass, including generated `www/` parity and combined classic-script parsing.
|
- Step 6 verification at version `0.4.22` / Android build number `422`: all 123 tests pass, including generated `www/` parity and combined classic-script parsing.
|
||||||
- Step 6 at version `0.4.23` moves account-manager dependencies onto feature APIs and publishes the DAV manager through `window.epMailFeatures.dav` instead of a free global function.
|
- Step 6 at version `0.4.23` moves account-manager dependencies onto feature APIs and publishes the DAV manager through `window.epMailFeatures.dav` instead of a free global function.
|
||||||
|
- Step 6 at version `0.4.24` removes the snooze-to-productivity label action's implicit global call; account and snooze feature API checks are covered by the renderer tests.
|
||||||
- The current IPC/DAV validation changes pass the full suite: 108 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.
|
- While work continued, `package.json` and `package-lock.json` reflected a version bump to `0.4.6`; those changes were preserved.
|
||||||
|
|||||||
Generated
+2
-2
@@ -1,12 +1,12 @@
|
|||||||
{
|
{
|
||||||
"name": "ep-mail",
|
"name": "ep-mail",
|
||||||
"version": "0.4.23",
|
"version": "0.4.24",
|
||||||
"lockfileVersion": 3,
|
"lockfileVersion": 3,
|
||||||
"requires": true,
|
"requires": true,
|
||||||
"packages": {
|
"packages": {
|
||||||
"": {
|
"": {
|
||||||
"name": "ep-mail",
|
"name": "ep-mail",
|
||||||
"version": "0.4.23",
|
"version": "0.4.24",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@capacitor/android": "^8.5.2",
|
"@capacitor/android": "^8.5.2",
|
||||||
"@capacitor/core": "^8.5.2",
|
"@capacitor/core": "^8.5.2",
|
||||||
|
|||||||
+1
-1
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "ep-mail",
|
"name": "ep-mail",
|
||||||
"version": "0.4.23",
|
"version": "0.4.24",
|
||||||
"private": true,
|
"private": true,
|
||||||
"description": "Eternity Project mail client",
|
"description": "Eternity Project mail client",
|
||||||
"homepage": "https://git.eternityproject.fi/thuttu/ep-mail-client",
|
"homepage": "https://git.eternityproject.fi/thuttu/ep-mail-client",
|
||||||
|
|||||||
@@ -85,6 +85,7 @@ window.epMailFeatures.productivity = Object.freeze({
|
|||||||
renderContacts,
|
renderContacts,
|
||||||
showEvent,
|
showEvent,
|
||||||
showContact,
|
showContact,
|
||||||
|
addMessageLabel,
|
||||||
setProfileName,
|
setProfileName,
|
||||||
openAccountSettings,
|
openAccountSettings,
|
||||||
get openPreferences() { return openPreferences; },
|
get openPreferences() { return openPreferences; },
|
||||||
|
|||||||
+2
-1
@@ -1,4 +1,5 @@
|
|||||||
const snoozeMailUi = window.epMailFeatures.mail;
|
const snoozeMailUi = window.epMailFeatures.mail;
|
||||||
|
const snoozeProductivityUi = window.epMailFeatures.productivity;
|
||||||
|
|
||||||
function localDateTimeValue(date) {
|
function localDateTimeValue(date) {
|
||||||
const local = new Date(date.getTime() - date.getTimezoneOffset() * 60000);
|
const local = new Date(date.getTime() - date.getTimezoneOffset() * 60000);
|
||||||
@@ -147,7 +148,7 @@ document.addEventListener('click', event => {
|
|||||||
snoozeMailUi.select('#modal-root').innerHTML = '';
|
snoozeMailUi.select('#modal-root').innerHTML = '';
|
||||||
if (!message) return;
|
if (!message) return;
|
||||||
if (action.dataset.messageAction === 'snooze') openSnoozeDialog([message]);
|
if (action.dataset.messageAction === 'snooze') openSnoozeDialog([message]);
|
||||||
else if (action.dataset.messageAction === 'label') addMessageLabel(message);
|
else if (action.dataset.messageAction === 'label') snoozeProductivityUi.addMessageLabel(message);
|
||||||
else {
|
else {
|
||||||
const type = action.dataset.messageAction;
|
const type = action.dataset.messageAction;
|
||||||
messageAction(message, type).then(() => {
|
messageAction(message, type).then(() => {
|
||||||
|
|||||||
@@ -89,5 +89,8 @@ test('account and snooze UI consume the explicit mail API instead of selected le
|
|||||||
assert.doesNotMatch(pgpMailUi, /(?<!\.)\bmessages\.find|(?<!\.)\bactiveMessage\b|window\.pgpPrepareSend/);
|
assert.doesNotMatch(pgpMailUi, /(?<!\.)\bmessages\.find|(?<!\.)\bactiveMessage\b|window\.pgpPrepareSend/);
|
||||||
assert.doesNotMatch(pgpUi, /\bconnectedMailAccount\b/);
|
assert.doesNotMatch(pgpUi, /\bconnectedMailAccount\b/);
|
||||||
assert.match(productivityUi, /window\.epMailFeatures\.productivity/);
|
assert.match(productivityUi, /window\.epMailFeatures\.productivity/);
|
||||||
|
assert.match(productivityUi, /addMessageLabel,/);
|
||||||
|
assert.match(snoozeUi, /snoozeProductivityUi\.addMessageLabel/);
|
||||||
|
assert.doesNotMatch(snoozeUi, /(?<!\.)\baddMessageLabel\s*\(/);
|
||||||
assert.doesNotMatch(shortcutsUi, /(?<!\.)\bactiveMessage\b|(?<!\.)\bopenMessage\s*\(/);
|
assert.doesNotMatch(shortcutsUi, /(?<!\.)\bactiveMessage\b|(?<!\.)\bopenMessage\s*\(/);
|
||||||
});
|
});
|
||||||
|
|||||||
@@ -85,6 +85,7 @@ window.epMailFeatures.productivity = Object.freeze({
|
|||||||
renderContacts,
|
renderContacts,
|
||||||
showEvent,
|
showEvent,
|
||||||
showContact,
|
showContact,
|
||||||
|
addMessageLabel,
|
||||||
setProfileName,
|
setProfileName,
|
||||||
openAccountSettings,
|
openAccountSettings,
|
||||||
get openPreferences() { return openPreferences; },
|
get openPreferences() { return openPreferences; },
|
||||||
|
|||||||
+2
-1
@@ -1,4 +1,5 @@
|
|||||||
const snoozeMailUi = window.epMailFeatures.mail;
|
const snoozeMailUi = window.epMailFeatures.mail;
|
||||||
|
const snoozeProductivityUi = window.epMailFeatures.productivity;
|
||||||
|
|
||||||
function localDateTimeValue(date) {
|
function localDateTimeValue(date) {
|
||||||
const local = new Date(date.getTime() - date.getTimezoneOffset() * 60000);
|
const local = new Date(date.getTime() - date.getTimezoneOffset() * 60000);
|
||||||
@@ -147,7 +148,7 @@ document.addEventListener('click', event => {
|
|||||||
snoozeMailUi.select('#modal-root').innerHTML = '';
|
snoozeMailUi.select('#modal-root').innerHTML = '';
|
||||||
if (!message) return;
|
if (!message) return;
|
||||||
if (action.dataset.messageAction === 'snooze') openSnoozeDialog([message]);
|
if (action.dataset.messageAction === 'snooze') openSnoozeDialog([message]);
|
||||||
else if (action.dataset.messageAction === 'label') addMessageLabel(message);
|
else if (action.dataset.messageAction === 'label') snoozeProductivityUi.addMessageLabel(message);
|
||||||
else {
|
else {
|
||||||
const type = action.dataset.messageAction;
|
const type = action.dataset.messageAction;
|
||||||
messageAction(message, type).then(() => {
|
messageAction(message, type).then(() => {
|
||||||
|
|||||||
Reference in New Issue
Block a user