Repository navigation
Document installing apps on phones and computers - #394
Merged
Merged
Conversation
Deploying with
|
| Status | Name | Latest Commit | Updated (UTC) |
|---|---|---|---|
| ✅ Deployment successful! View logs |
widefleet-docs | 2d8da67 | Nov 29 2026, 05:50 PM |
tnkuehne
force-pushed
the
installable-apps-docs
branch
from
November 25, 2026 14:12
c5df7c5 to
a48dbd9
Compare
tnkuehne
added a commit
that referenced
this pull request
Nov 25, 2026
## Summary - Every app page links a web app manifest, so Chrome and Edge offer to install the app, and Safari on Mac, iPhone and Android home screens use its name and icon. - The runtime serves `/manifest.webmanifest` with the app's Widefleet name, `start_url` and `scope` `/`, `display: standalone`, and the icons the app ships: `favicon.svg` (`sizes: any`) plus `apple-touch-icon.png` and `favicon.png` with their real PNG dimensions. - The link uses `crossorigin="use-credentials"`, because browsers fetch manifests without cookies otherwise and app pages require sign-in. - Apps keep control: a page that links its own manifest gets no second link, and an app that serves `/manifest.webmanifest` itself keeps its response. - The name is part of the published app snapshot (`displayName`), written at deployment by the Cloudflare publisher and the agent. A rename reaches the manifest with the next deployment. ## Checks - `RUN_DYNAMIC_TESTS=1` runtime suite on pinned celld (24 passed), including the new manifest link and manifest test. - `RUN_CLOUDFLARE_TESTS=1` runtime suite in workerd (73 passed), including the new manifest test. - `cargo test -p platform-core -p platform-agent`, `cargo fmt --check`, `pnpm check`. - Not checked: a real install prompt in a browser. Docs: #394 <!-- greptile_comment --> <!-- greptile_summary --> <h2><a href="https://app.greptile.com/api/retrigger?id=119490715&sig=7e7792959b27a2c57a7bdc46708b7188b5c2336f95bcde4ee217b9c1a31586ae"><picture><source media="(prefers-color-scheme: dark)" srcset="https://greptile-static-assets.s3.amazonaws.com/badges/RetriggerDark.svg?v=2"><source media="(prefers-color-scheme: light)" srcset="https://greptile-static-assets.s3.amazonaws.com/badges/Retrigger.svg?v=2"><img alt="Retrigger" src="https://greptile-static-assets.s3.amazonaws.com/badges/Retrigger.svg?v=2" align="right"></picture></a><a href="https://app.greptile.com/-/switch-tenant?tenant=mendra&next=%2Fwidefleet%2Fwidefleet%2Fpull%2F393&utm_source=greptile_review&utm_medium=github&utm_campaign=view_in_greptile"><picture><source media="(prefers-color-scheme: dark)" srcset="https://greptile-static-assets.s3.amazonaws.com/badges/ViewInGreptileDark.svg?v=2"><source media="(prefers-color-scheme: light)" srcset="https://greptile-static-assets.s3.amazonaws.com/badges/ViewInGreptile.svg?v=2"><img alt="View in Greptile" src="https://greptile-static-assets.s3.amazonaws.com/badges/ViewInGreptile.svg?v=2" align="right"></picture></a>Confidence Score: 4/5</h2> <!-- greptile-risk --> The PR should preserve manifests served by app workers before merging. <h2>Findings</h2> 1. <img alt="P1" src="https://greptile-static-assets.s3.amazonaws.com/badges/p1.svg?v=9" align="top"> **App manifests get replaced** <a href="https://github.com/widefleet/widefleet/pull/393#discussion_r4696185643">▶</a> 2. <img alt="P2" src="https://greptile-static-assets.s3.amazonaws.com/badges/p2.svg?v=9" align="top"> **Cached pages miss manifest links** <a href="https://github.com/widefleet/widefleet/pull/393#discussion_r4696098578">▶</a> <details open><summary><h3>Summary</h3></summary> Adds generated web app manifests and links them from HTML pages. - App pages now link to a generated install manifest. </details> <!-- greptile_confidence_score:4 --> <sub>Reviews (2) · Last reviewed commit: ["Serve the platform manifest before rewri..."](78e0d2b) · [Reviewed by Greptile](https://www.greptile.com/?utm_source=greptile_review&utm_medium=github&utm_campaign=review_public&utm_content=widefleet/widefleet)</sub> <!-- /greptile_comment -->
tnkuehne
force-pushed
the
installable-apps-docs
branch
from
November 25, 2026 14:19
a48dbd9 to
922fecc
Compare
tnkuehne
added a commit
that referenced
this pull request
Nov 25, 2026
## Summary - Apps that ship only `/favicon.svg` get PNG icons as regular assets: `/apple-touch-icon.png` (180 px on white, because iOS shows transparency as black), `/icon-192.png` and `/icon-512.png`. iOS requests the first at the root; the web app manifest lists all PNG icons an app has. - `crates/platform-app-icons` renders them with `resvg` 0.50.0 (default features off: no text, fonts, embedded raster images or references to other files), for SVGs up to 256 KiB, centered on a square. - The CLI renders them while collecting a deployment's assets and uploads them like files. An invalid SVG skips the icons with a warning instead of failing the deployment. - Template installs render them in the app builder through the same crate, built as `platform-app-icons-wasm` (`POST /icons`), next to the service documentation module. CI, the runtime image and hosted deployment build and ship the new module. - An app that ships any PNG icon (`apple-touch-icon.png`, `favicon.png`, `icon-192.png`, `icon-512.png`) keeps its icons unchanged. Rendering happens once per deployment, never on a visitor request, and adds nothing to the app runtime release. New dependency: `resvg` (Rust, MIT/Apache-2.0), native in the CLI and as a 1.1 MB WebAssembly module in the app builder. ## Checks - `cargo test -p platform-app-icons -p platform-cli`, `cargo clippy --workspace --all-targets` and for both wasm crates, `cargo fmt --check`. - `RUN_BUILDER_TESTS=1` app builder suite in workerd (24 passed), including rendering and an invalid SVG. - Template install integration suite (10 passed): a template with only `favicon.svg` deploys the three rendered icons. - Runtime suites on celld (24) and workerd (73), `pnpm check`. - Rendered the Board app's and the Linear template's logos and checked them visually. Not checked: the builder's icon route on celld, and installing on real iOS and Android devices. Docs: #394 <!-- greptile_comment --> <!-- greptile_summary --> <h2><a href="https://app.greptile.com/api/retrigger?id=119583110&sig=ef98eebeccdb195f4d9dabfc8811f6db94dedc977ae36c8886b2999850f60ea8"><picture><source media="(prefers-color-scheme: dark)" srcset="https://greptile-static-assets.s3.amazonaws.com/badges/RetriggerDark.svg?v=2"><source media="(prefers-color-scheme: light)" srcset="https://greptile-static-assets.s3.amazonaws.com/badges/Retrigger.svg?v=2"><img alt="Retrigger" src="https://greptile-static-assets.s3.amazonaws.com/badges/Retrigger.svg?v=2" align="right"></picture></a><a href="https://app.greptile.com/-/switch-tenant?tenant=mendra&next=%2Fwidefleet%2Fwidefleet%2Fpull%2F403&utm_source=greptile_review&utm_medium=github&utm_campaign=view_in_greptile"><picture><source media="(prefers-color-scheme: dark)" srcset="https://greptile-static-assets.s3.amazonaws.com/badges/ViewInGreptileDark.svg?v=2"><source media="(prefers-color-scheme: light)" srcset="https://greptile-static-assets.s3.amazonaws.com/badges/ViewInGreptile.svg?v=2"><img alt="View in Greptile" src="https://greptile-static-assets.s3.amazonaws.com/badges/ViewInGreptile.svg?v=2" align="right"></picture></a>Confidence Score: 4/5</h2> <!-- greptile-risk --> The earlier asset-limit issue has returned and should be fixed before merging. <details open><summary><h3>Summary</h3></summary> Adds PNG icons rendered from `/favicon.svg` during CLI deployments and template installs. - CLI deployments create PNG icons from an app’s SVG icon. - Template installs render missing PNG icons before uploading app assets. - Web app manifests list every supported PNG icon an app supplies. </details> <!-- greptile_confidence_score:4 --> <sub>Reviews (3) · Last reviewed commit: ["Drop the asset limit check for app icons"](3153797) · [Reviewed by Greptile](https://www.greptile.com/?utm_source=greptile_review&utm_medium=github&utm_campaign=review_public&utm_content=widefleet/widefleet)</sub> <!-- /greptile_comment -->
tnkuehne
added a commit
that referenced
this pull request
Nov 25, 2026
## Summary - **Home:** in Chrome and Edge on computers (`HTMLInstallElement`, on by default from Chrome 158), the first **Open app** asks **Use <app> as an app?** The dialog holds the browser's own `<install>` button (labeled Install, or Launch when already installed), **Open in browser** and **Don't ask again in this browser**. After a successful install (`installresult` with `success`), the browser no longer asks for that app. Other browsers open the app as before. - **Open app** always stays a link: Chrome opens links into an installed app's window by itself, while `<install>` would first show its launch dialog. - Pages cannot read whether an app is installed, so the browser remembers installs from the dialog and the opt-out in `localStorage`; the opt-out is read on each click, so it applies to every card. - **Runtime:** cross-origin installs fetch the manifest without cookies, so `/manifest.webmanifest` and the icon paths (`favicon.svg`, `apple-touch-icon.png`, `favicon.png`, `icon-192.png`, `icon-512.png`) are served without sign-in. They are the uploaded files as they are (with `304` for a matching ETag), never through `_redirects` rules, so a catch-all rule cannot expose a page. Suspended organizations and apps without a web entry still get no answer. The generated manifest gains `id: "/"`, and the injected link no longer needs `crossorigin="use-credentials"`. - An app's name and icon are therefore readable by anyone who knows its hostname. - Includes the e2e builder fix from #408. ## Screenshots Chrome 155 with `--enable-blink-features=InstallElement`, synthetic catalog app. Home itself is unchanged. | Home | Dialog, light | Dialog, dark | Narrow window | | --- | --- | --- | --- | |  |  |  |  | The browser renders the button's icon and text and requires opaque colors, a 3:1 contrast and a minimum size; the page sets colors, radius, padding and font. `isValid` is `true` with no `invalidReason` in the dialog. ## Checks - Runtime suites on celld (24) and workerd (73), including the manifest fetched without a cookie while the app page answers 401, an icon served as its file on an app whose rewrite rules send every path to a page, and a 304 for its ETag. - `pnpm check`; full e2e suite (76 passed); catalog test with the element enabled. - Not checked: a real install and launch from a deployed control plane in Chrome 158, Edge. Docs: #394 <!-- greptile_comment --> <!-- greptile_summary --> <h2><a href="https://app.greptile.com/api/retrigger?id=119686644&sig=8eda57fa118ebd2f0d47d4d6a8e2a2dafb282a3a1dd21de3008ca51d9535615e"><picture><source media="(prefers-color-scheme: dark)" srcset="https://greptile-static-assets.s3.amazonaws.com/badges/RetriggerDark.svg?v=2"><source media="(prefers-color-scheme: light)" srcset="https://greptile-static-assets.s3.amazonaws.com/badges/Retrigger.svg?v=2"><img alt="Retrigger" src="https://greptile-static-assets.s3.amazonaws.com/badges/Retrigger.svg?v=2" align="right"></picture></a><a href="https://app.greptile.com/-/switch-tenant?tenant=mendra&next=%2Fwidefleet%2Fwidefleet%2Fpull%2F405&utm_source=greptile_review&utm_medium=github&utm_campaign=view_in_greptile"><picture><source media="(prefers-color-scheme: dark)" srcset="https://greptile-static-assets.s3.amazonaws.com/badges/ViewInGreptileDark.svg?v=2"><source media="(prefers-color-scheme: light)" srcset="https://greptile-static-assets.s3.amazonaws.com/badges/ViewInGreptile.svg?v=2"><img alt="View in Greptile" src="https://greptile-static-assets.s3.amazonaws.com/badges/ViewInGreptile.svg?v=2" align="right"></picture></a>Confidence Score: 5/5</h2> <!-- greptile-impact-verdict --> The PR appears safe to merge, with a non-blocking loss of the reinstall control on Home. <h2>Findings</h2> 1. <img alt="P2" src="https://greptile-static-assets.s3.amazonaws.com/badges/p2.svg?v=9" align="top"> **Reinstall disappears from Home** <a href="https://github.com/widefleet/widefleet/pull/405#discussion_r4698654775">▶</a> <details open><summary><h3>Summary</h3></summary> This PR offers app installation from Home and makes app manifests and icons readable without signing in. - Home offers a browser install prompt when someone opens an app. - App manifests and known icons are available to browsers without sign-in. </details> <!-- greptile_confidence_score:5 --> <sub>Reviews (3) · Last reviewed commit: ["Keep Open app as the way into installed ..."](eeb1e36) · [Reviewed by Greptile](https://www.greptile.com/?utm_source=greptile_review&utm_medium=github&utm_campaign=review_public&utm_content=widefleet/widefleet)</sub> <!-- /greptile_comment -->
tnkuehne
force-pushed
the
installable-apps-docs
branch
from
November 29, 2026 17:49
c2632a2 to
2d8da67
Compare
tnkuehne
marked this pull request as ready for review
November 29, 2026 17:49
tnkuehne
added a commit
that referenced
this pull request
Nov 29, 2026
## Summary - The Widefleet skill now says that every app is a web app that installs on iPhone, iPad, Android, Mac and Windows, and tells agents to build a Widefleet app with small-screen pages when the user wants a mobile or desktop app, instead of proposing a native app with a separate backend. - Links the install guide from #394, which merges first. ## Checks - Oxfmt passes.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
favicon.svg, own icons or manifest, and that name and icon are readable without signing in.Documents #393, #403 and #405, released in v0.7.23.
Checks
blume validateand Oxfmt pass.