Skip to content

Give the control plane a web app manifest and home screen icon - #448

Merged
tnkuehne merged 2 commits into
mainfrom
control-plane-manifest
Nov 27, 2026
Merged

tnkuehne merged 2 commits into
mainfrom
control-plane-manifest

Conversation

@tnkuehne

Copy link
Copy Markdown
Contributor

Installing the control plane from Chrome or adding it to the iOS home screen used the page title as its name and a screenshot or generic letter as its icon. Deployed apps already get a manifest and PNG icons; the control plane had only `favicon.svg`.

Changes

  • `static/manifest.webmanifest` names the control plane Widefleet, starts at `/` and opens standalone. No service worker, caching or offline behavior.
  • `static/icon-512.png` is the only PNG. It serves as the manifest icon and as `apple-touch-icon`; Chrome and iOS scale it down. It is opaque white because iOS shows transparency as black and the black mark would disappear on dark launchers and docks.
  • The PNG is rendered once from `favicon.svg` with `platform_app_icons::render(svg, 512, true)`, the renderer deployed apps use, and committed. Rendering during the build would need a Rust toolchain in the control-plane image and local development, which they do not have today.

Verification

  • Local dev server: `/manifest.webmanifest` is served as `application/manifest+json`, `/icon-512.png` as `image/png`.
  • Not checked: the install dialog in Chrome and the home screen icon on iOS, and the rendered `` (the local dev server had no database, so pages returned 500).

Installing the control plane from Chrome or adding it to the iOS home screen
used the page title and a screenshot. The manifest names it Widefleet and opens
it standalone. One opaque 512 px PNG, rendered once from favicon.svg by
crates/platform-app-icons, serves as manifest icon and apple-touch-icon; the
control-plane image has no Rust toolchain to render it during the build.
@cloudflare-workers-and-pages

cloudflare-workers-and-pages Bot commented Nov 27, 2026 •

Copy link
Copy Markdown

Deploying with  Cloudflare Workers  Cloudflare Workers

The latest updates on your project. Learn more about integrating Git with Workers.

Status Name Latest Commit Updated (UTC)
✅ Deployment successful!
View logs
widefleet-docs f0dde05 Nov 27 2026, 10:03 AM

SvelteKit renders %sveltekit.assets% relative to the first page. Browsers fetch
the manifest and touch icon only on install, often after client-side navigation
has moved the document to a deeper path, where the relative URL is a 404.
@tnkuehne
tnkuehne merged commit f157b0c into main Nov 27, 2026
15 of 16 checks passed
@tnkuehne
tnkuehne deleted the control-plane-manifest branch November 27, 2026 10:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant