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
+6
View File
@@ -18,6 +18,12 @@ test('renderer bootstrap loads shared state and mail security before the applica
assert.ok(state >= 0 && contentSecurity > state && app > contentSecurity && mailApi > platformBridge && mailUi > mailApi);
});
test('core app shell uses the namespaced renderer state', () => {
const app = read('app.js');
assert.match(app, /const state = window\.epMailState/);
assert.doesNotMatch(app, /^\s*(?:const|let|var)\s+(?:messages|contacts|activeMessage|activeFolder|activeView|query|toastTimer|selectedIds)\b/m);
});
test('desktop, Android web generation, and offline cache include renderer support modules', () => {
const buildFiles = require(path.join(root, 'package.json')).build.files;
const androidAssets = read('scripts/prepare-android-web.cjs');