Skip to content

Answer icon requests in the e2e app builder - #408

Closed
tnkuehne wants to merge 1 commit into
mainfrom
e2e-builder-icons
Closed

tnkuehne wants to merge 1 commit into
mainfrom
e2e-builder-icons

Conversation

@tnkuehne

@tnkuehne tnkuehne commented Nov 25, 2026 •

Copy link
Copy Markdown
Contributor

Summary

  • The e2e test's fake app builder answers POST /icons with 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, so installs a template with its required secrets failed on main.

Checks

  • Full e2e suite without CLI login (76 passed, 1 skipped).

RetriggerView in GreptileConfidence Score: 5/5

This PR appears safe to merge.

Summary

Updates the e2e app builder to answer /icons requests with an empty icon list.

  • The e2e builder answers icon requests with an empty list.

Reviews (1) · Last reviewed commit: "Answer icon requests in the e2e app buil..." · Reviewed by Greptile

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 |
| --- | --- | --- | --- |
|
![](https://gist.githubusercontent.com/tnkuehne/c39ab05e06c6b25a31fb63f26b915f69/raw/70b9d20cf09c93dcd129367fd7e6c7c386c8f81b/home-before-1280-light.png)
|
![](https://gist.githubusercontent.com/tnkuehne/c39ab05e06c6b25a31fb63f26b915f69/raw/70b9d20cf09c93dcd129367fd7e6c7c386c8f81b/modal-1280-light.png)
|
![](https://gist.githubusercontent.com/tnkuehne/c39ab05e06c6b25a31fb63f26b915f69/raw/70b9d20cf09c93dcd129367fd7e6c7c386c8f81b/modal-1280-dark.png)
|
![](https://gist.githubusercontent.com/tnkuehne/c39ab05e06c6b25a31fb63f26b915f69/raw/70b9d20cf09c93dcd129367fd7e6c7c386c8f81b/modal-390-light.png)
|

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&amp;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&amp;next=%2Fwidefleet%2Fwidefleet%2Fpull%2F405&amp;utm_source=greptile_review&amp;utm_medium=github&amp;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">&nbsp;**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

Copy link
Copy Markdown
Contributor Author

Superseded: #405 carried the same change into main.

@tnkuehne tnkuehne closed this Nov 25, 2026
@tnkuehne
tnkuehne deleted the e2e-builder-icons branch November 25, 2026 17:50
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