Repository navigation
Conversation
Template installs ask the builder for PNG app icons since #403. The e2e builder parsed every request other than /document as a bundle request, so the icon request failed and the template install test with it.
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 -->
Contributor
Author
|
Superseded: #405 carried the same change into main. |
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
POST /iconswith no icons. Since Render PNG app icons from favicon.svg #403, template installs request icons, and the fake builder parsed the request as a bundle, soinstalls a template with its required secretsfailed onmain.Checks


Confidence Score: 5/5
This PR appears safe to merge.Summary
Updates the e2e app builder to answer
/iconsrequests with an empty icon list.Reviews (1) · Last reviewed commit: "Answer icon requests in the e2e app buil..." · Reviewed by Greptile