mirror of
https://github.com/paperclipai/paperclip.git
synced 2026-10-23 09:07:46 +02:00
fix(ui): restore browser controls for home-screen app
Co-Authored-By: Paperclip <noreply@paperclip.ing>
This commit is contained in:
1 parent
f5d17cfa79
commit
696e85e83d
3 files changed
+21
-4
No files matched your search
@@ -4,9 +4,6 @@
|
||||
<meta charset="UTF-8" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0, viewport-fit=cover" />
|
||||
<meta name="theme-color" content="#18181b" />
|
||||
<meta name="mobile-web-app-capable" content="yes" />
|
||||
<meta name="apple-mobile-web-app-capable" content="yes" />
|
||||
<meta name="apple-mobile-web-app-status-bar-style" content="black-translucent" />
|
||||
<meta name="apple-mobile-web-app-title" content="Paperclip" />
|
||||
<title>Paperclip</title>
|
||||
<!-- PAPERCLIP_RUNTIME_BRANDING_START -->
|
||||
|
||||
@@ -5,7 +5,7 @@
|
||||
"description": "AI-powered project management and agent coordination platform",
|
||||
"start_url": "/",
|
||||
"scope": "/",
|
||||
"display": "standalone",
|
||||
"display": "browser",
|
||||
"orientation": "any",
|
||||
"theme_color": "#18181b",
|
||||
"background_color": "#18181b",
|
||||
|
||||
@@ -0,0 +1,20 @@
|
||||
import { readFileSync } from "node:fs";
|
||||
import { resolve } from "node:path";
|
||||
import { fileURLToPath } from "node:url";
|
||||
import { describe, expect, it } from "vitest";
|
||||
|
||||
const uiRoot = resolve(fileURLToPath(new URL("../..", import.meta.url)));
|
||||
|
||||
describe("PWA install mode", () => {
|
||||
it("opens home-screen launches with browser controls visible", () => {
|
||||
const manifest = JSON.parse(readFileSync(resolve(uiRoot, "public/site.webmanifest"), "utf8")) as {
|
||||
display?: string;
|
||||
};
|
||||
const html = readFileSync(resolve(uiRoot, "index.html"), "utf8");
|
||||
|
||||
expect(manifest.display).toBe("browser");
|
||||
expect(html).not.toContain('name="mobile-web-app-capable"');
|
||||
expect(html).not.toContain('name="apple-mobile-web-app-capable"');
|
||||
expect(html).not.toContain('name="apple-mobile-web-app-status-bar-style"');
|
||||
});
|
||||
});
|
||||
Reference in new issue
Block a user