Elevate planner UX and offline resilience

This commit is contained in:
2026-07-30 07:03:35 -04:00
parent 057d68156b
commit 7416898bec
6 changed files with 347 additions and 120 deletions
+4 -4
View File
@@ -76,10 +76,10 @@ test("strict CSP/static modules, no-store data, auth lifecycle, and ownership sh
const mainScript = await anonymous.get("/js/main.js");
assert.match(mainScript.text, /roastPlannerPlan\.v2/);
assert.match(mainScript.text, /localStorage\.removeItem\(key\)/);
assert.match(
(await anonymous.get("/sw.js")).text,
/Never serve authenticated/,
);
const serviceWorker = (await anonymous.get("/sw.js")).text;
assert.match(serviceWorker, /data-free authenticated shell/);
assert.match(serviceWorker, /url\.pathname === "\/app" \? caches\.match\("\/app"\)/);
assert.match(serviceWorker, /logout clears that namespace/);
const one = await signup(first, "[email protected]");
const two = await signup(second, "[email protected]");