mirror of
https://github.com/coder/coder.git
synced 2026-06-04 13:38:21 +00:00
f1b3eef834
Adds progressive web app support for the agents page so it can be installed as a standalone app on mobile/desktop. ## Changes - **`manifest.json`** — Web app manifest with `display: standalone`, `start_url: /agents`, Coder theme colors - **PWA icons** — 192x192, 512x512 PNGs + 180x180 apple-touch-icon, rendered from the existing favicon SVG - **`index.html`** — Added manifest link, apple-touch-icon, and mobile web app meta tags (`apple-mobile-web-app-capable`, `mobile-web-app-capable`, `apple-mobile-web-app-status-bar-style`, title) - **Service worker** — `notificationclick` now focuses an existing agents tab or opens `/agents` in a new window ## Testing 1. Open `/agents` on a mobile device 2. Use browser "Add to Home Screen" / "Install App" 3. App should launch in standalone mode pointing at the agents page 4. Push notifications should navigate to the agents page on click
25 lines
469 B
JSON
25 lines
469 B
JSON
{
|
|
"name": "Coder Agents",
|
|
"short_name": "Agents",
|
|
"description": "AI coding agents powered by Coder",
|
|
"start_url": "/agents",
|
|
"scope": "/",
|
|
"display": "standalone",
|
|
"background_color": "#17172E",
|
|
"theme_color": "#17172E",
|
|
"icons": [
|
|
{
|
|
"src": "/pwa-icon-192.png",
|
|
"sizes": "192x192",
|
|
"type": "image/png",
|
|
"purpose": "any"
|
|
},
|
|
{
|
|
"src": "/pwa-icon-512.png",
|
|
"sizes": "512x512",
|
|
"type": "image/png",
|
|
"purpose": "any maskable"
|
|
}
|
|
]
|
|
}
|