feat(pwa): richer install metadata in the web manifest

Add categories (health, medical, lifestyle) and extend display_override
to allow minimal-ui as a fallback. Maskable icons were already present.
Screenshots are deferred until narrow + wide capture assets exist.
This commit is contained in:
Marc-André Bombeck committed 2026-06-18 15:15:14 +02:00
1 parent 722af87382
commit 08d25e1cf0
2 files changed
+4 -2

No files matched your search

+2 -1
View File
@@ -6,7 +6,8 @@
"scope": "/",
"start_url": "/",
"display": "standalone",
"display_override": ["standalone"],
"display_override": ["standalone", "minimal-ui"],
"categories": ["health", "medical", "lifestyle"],
"theme_color": "#282a36",
"background_color": "#282a36",
"icons": [
+2 -1
View File
@@ -85,7 +85,8 @@ describe("public/manifest.json PWA identity hygiene (F-7, 2026-05-16)", () => {
const manifest = JSON.parse(raw) as Record<string, unknown>;
expect(manifest.scope).toBe("/");
expect(manifest.id).toBe("/?source=pwa");
expect(manifest.display_override).toEqual(["standalone"]);
expect(manifest.display_override).toEqual(["standalone", "minimal-ui"]);
expect(manifest.categories).toEqual(["health", "medical", "lifestyle"]);
});
it("keeps the existing display/start_url contract", () => {