Remove misleading home 'Update' button (reloaded the page without changing any data — looked like a broken update); settings route + notification prefs lint/type-clean; wire sync progress into guidance dialog; sw.test mocks getRegistrations for clean-update register path

This commit is contained in:
Lumen Stage1 2026-10-06 10:12:04 -05:00
commit cd111da42f
10 changed files with 418 additions and 23 deletions

View file

@ -24,10 +24,11 @@ function lumenShellPlugin(): Plugin {
const version = `${pkg.version}-${gitHash}`;
const cacheName = `lumen-shell-${version}`;
// Collect hashed assets produced by this build
// Collect hashed assets produced by this build — sourcemaps excluded:
// they bloat the install (~580KB) and the SW would cache-first them.
const assetsDir = join(dist, "assets");
const assetFiles = existsSync(assetsDir) ? readdirSync(assetsDir) : [];
const hashedAssets = assetFiles.map((f) => `/assets/${f}`);
const hashedAssets = assetFiles.filter((f) => !f.endsWith(".map")).map((f) => `/assets/${f}`);
// Core shell URLs that must be precached (deterministic list per build)
const core = [