Public: anyone can read this; the crew can change it.
Give the app its own icon in the browser tab and on a phone home screen #16
Check · Review · Land · Live done — Landed and live in production.
The app now has its own icon in the browser tab and for phone home screens, and /favicon.ico no longer 404s. src/server.test.ts passes (26 tests) and bun run lint:design is clean. I did not run bun x tsc --noEmit, because the repo has no tsconfig.json and it only printed its help text.
shipped production is serving it deploy aba151a
The app now has its own icon in the browser tab and for phone home screens, and /favicon.ico no longer 404s. src/server.test.ts passes (26 tests) and bun run lint:design is clean. I did not run bun x tsc --noEmit, because the repo has no tsconfig.json and it only printed its help text. The type check and the rest of the suite are left to the forge. scripts/fast.ts and scripts/gate.ts don't exist in this clone, so neither ran.
- Icon:
static/icon.svg(287 bytes) is a clock face in thedesign/tokens.jsonaccent and bg colours. The hex values in it are copied from the tokens, not referenced, so a token change won't update the icon. - Home screen:
static/apple-touch-icon.pngis 180×180, drawn from the same mark. I generated it with a throwaway script, so no image tool or dependency is involved, and the script is not committed. - Layout:
src/pages/layout.tsreplaces the emptydata:,icon with the SVG icon link, the touch-icon link and<meta name="apple-mobile-web-app-title" content="Speed to Lead">. Both links go throughasset, so both are cached as immutable. /favicon.ico:src/routes.tsanswers with a 302 to the versioned/static/icon.svg?v=…, with the usual security headers.staticFileis unchanged, so paths outsidestatic/are still refused.- Test: one new test in
src/server.test.tschecks that the pages link both icons and the title meta. It also checks that the SVG and PNG answer with the right content types, that the SVG carriesnosniff, and that/favicon.icoredirects to the versioned icon withnosniff. - Not done: I did not add
<link rel="shortcut icon">, a web manifest or other PNG sizes, since the issue didn't ask for them. CSP, dependencies andcontract.jsonare untouched.
To try it, open any page and look at the tab, or request /favicon.ico and follow the redirect.
🤖 Generated with Claude Code
Clean. Icon, touch icon and title meta are linked through asset (immutable cache), /favicon.ico redirects with security headers, static path guard untouched, no contract or dependency change, test covers the behaviour, and the preview serves all of it. No security findings.
The app now has its own icon in the browser tab and for phone home screens, and
/favicon.icono longer 404s.src/server.test.tspasses (26 tests) andbun run lint:designis clean. I did not runbun x tsc --noEmit, because the repo has notsconfig.jsonand it only printed its help text. The type check and the rest of the suite are left to the forge.scripts/fast.tsandscripts/gate.tsdon't exist in this clone, so neither ran.static/icon.svg(287 bytes) is a clock face in thedesign/tokens.jsonaccent and bg colours. The hex values in it are copied from the tokens, not referenced, so a token change won't update the icon.static/apple-touch-icon.pngis 180×180, drawn from the same mark. I generated it with a throwaway script, so no image tool or dependency is involved, and the script is not committed.src/pages/layout.tsreplaces the emptydata:,icon with the SVG icon link, the touch-icon link and<meta name="apple-mobile-web-app-title" content="Speed to Lead">. Both links go throughasset, so both are cached as immutable./favicon.ico:src/routes.tsanswers with a 302 to the versioned/static/icon.svg?v=…, with the usual security headers.staticFileis unchanged, so paths outsidestatic/are still refused.src/server.test.tschecks that the pages link both icons and the title meta. It also checks that the SVG and PNG answer with the right content types, that the SVG carriesnosniff, and that/favicon.icoredirects to the versioned icon withnosniff.<link rel="shortcut icon">, a web manifest or other PNG sizes, since the issue didn't ask for them. CSP, dependencies andcontract.jsonare untouched.To try it, open any page and look at the tab, or request
/favicon.icoand follow the redirect.🤖 Generated with Claude Code
Closes #14