Public: anyone can read this; the crew can change it.
The browser tab and a phone's home screen show the deal-clock mark, not a blank icon #50
Check · Review · Land · Live done — Landed and live in production.
The tab, a bookmark and "Add to Home Screen" now show the deal-clock mark beside the app's name, where the blank data:, icon was before. What changed Icon: static/icon.svg is a hand-written copy of the header's brand mark: a clock ring with two hands on a rounded tile. The strokes are thick so it reads at 16 px.
shipped production is serving it deploy d2eada7
The tab, a bookmark and "Add to Home Screen" now show the deal-clock mark beside the app's name, where the blank data:, icon was before.
What changed
- Icon:
static/icon.svgis a hand-written copy of the header's brand mark: a clock ring with two hands on a rounded tile. The strokes are thick so it reads at 16 px. Aprefers-color-scheme: darkblock inside the SVG switches the dark colours. - Colours: The SVG holds the token values spelled out, because an icon file can't read CSS variables. A test checks that both the light and dark
color-bgandcolor-accentvalues appear in it, so it fails if the tokens drift.lint:designdoesn't scan.svgfiles, so it can't catch this itself. - Layout:
src/pages/layout.tslinks the icon asrel=icon type=image/svg+xmlusingasset("icon.svg"), which gives it the same?v=hash and immutable caching as the stylesheets. It also links/manifest.webmanifest. - Favicon:
GET /favicon.icoanswers with a 302 to the hashed icon address, carrying the security headers. - Manifest:
GET /manifest.webmanifestis served asapplication/manifest+jsonwith the security floor's headers.
- It has name, short_name (both the app title), description, start_url: "/", scope: "/" and display: "standalone".
- theme_color and background_color are both the light color-bg token.
- It lists the icon with sizes: "any".
- CSP: The existing policy already allows the icon (same origin), so it is unchanged.
- Tests: One new test in
src/server.test.tscovers the following:
- The layout no longer contains data:,.
- The icon, /favicon.ico and the manifest each answer with the right status and content type.
- The manifest parses, and its colours equal the tokens.
- README: The walk gains item 16, "Put it on your phone". It sits after the existing item 15, so it shifts nothing.
contract.json is untouched and no dependency was added.
Not done
- No PNG icons. Older iOS versions ignore an SVG home-screen icon and fall back to a page screenshot. An SVG was what the issue asked for, and a PNG would need a generator or a binary file in the repo.
- No separate dark-scheme manifest colours. A manifest can only carry one pair, so both are the light background.
Checks
bun run lint:designis clean.bun testpassed forsrc/server.test.ts,src/design.test.tsandsrc/openapi.test.ts(50 tests).bun x tsc --noEmitonly printed tsc's help text here: the repo has notsconfig.json, so I couldn't type-check.scripts/gate.tsandscripts/fast.tsdon't exist in this clone, so I ran neither.
To try it: open the preview at /, where the tab shows the mark. Then request /favicon.ico and /manifest.webmanifest.
🤖 Generated with Claude Code
I've fixed the three failing tests and pushed the fix. The full bun test passed three times in a row here (no failures), and lint:design is clean. I haven't seen the forge's check on the new push yet.
Cause: Every test file runs in one process, so they share the rate-limit counters in src/security.ts. The failures were 429 too many requests where the audit tests expected 401, plus a paging test that had no rows to read after its own requests were refused.
I couldn't find out why my change tipped it over, because it adds no API calls or writes. The audit tests failed on my branch once here and passed three times afterwards, so this looks timing-dependent. The extra test I added shifts the timing, which is a plausible trigger, but I haven't shown that.
Change:
src/security.tshas a newforgetRationing()that empties the counters. It's meant for tests.src/audit.test.tscalls it before each test, so those tests start with full allowances whatever the other files used. Their assertions are unchanged.
No icon, favicon or manifest code changed in this push.
Clean. The icon, /favicon.ico redirect and manifest all answer correctly on the preview with the security headers. The icon is hash-cached, a test pins the colours to the tokens, and contract.json is untouched. No new dependency. The forgetRationing test helper is small and justified by the flaky audit tests. Nit, not blocking: add crossorigin="use-credentials" to the manifest link if the app is ever served behind sign-in, since manifest fetches omit cookies by default.
The tab, a bookmark and "Add to Home Screen" now show the deal-clock mark beside the app's name, where the blank
data:,icon was before.What changed
static/icon.svgis a hand-written copy of the header's brand mark: a clock ring with two hands on a rounded tile. The strokes are thick so it reads at 16 px. Aprefers-color-scheme: darkblock inside the SVG switches the dark colours.color-bgandcolor-accentvalues appear in it, so it fails if the tokens drift.lint:designdoesn't scan.svgfiles, so it can't catch this itself.src/pages/layout.tslinks the icon asrel=icon type=image/svg+xmlusingasset("icon.svg"), which gives it the same?v=hash and immutable caching as the stylesheets. It also links/manifest.webmanifest.GET /favicon.icoanswers with a 302 to the hashed icon address, carrying the security headers.GET /manifest.webmanifestis served asapplication/manifest+jsonwith the security floor's headers.- It has
name,short_name(both the app title),description,start_url: "/",scope: "/"anddisplay: "standalone". -theme_colorandbackground_colorare both the lightcolor-bgtoken. - It lists the icon withsizes: "any".src/server.test.tscovers the following:- The layout no longer contains
data:,. - The icon,/favicon.icoand the manifest each answer with the right status and content type. - The manifest parses, and its colours equal the tokens.contract.jsonis untouched and no dependency was added.Not done
Checks
bun run lint:designis clean.bun testpassed forsrc/server.test.ts,src/design.test.tsandsrc/openapi.test.ts(50 tests).bun x tsc --noEmitonly printed tsc's help text here: the repo has notsconfig.json, so I couldn't type-check.scripts/gate.tsandscripts/fast.tsdon't exist in this clone, so I ran neither.To try it: open the preview at
/, where the tab shows the mark. Then request/favicon.icoand/manifest.webmanifest.🤖 Generated with Claude Code
Closes #48