Repository navigation
feat(fork): replace the brand mark with the sparkle - #404
Conversation
The app icon, web icons, favicons and project icon move from the pixel leaf to the sparkle (Figma OnHdu0r2mAwMEiC4s7Gvjv 39:4). - Icon Composer projects: a white sparkle, 60% of the tile wide with its area centroid on the tile centre, glass on. Production fills the tile with #00C26B; development keeps the orange tile. - Every raster is re-exported. export-icons.ts now also renders the 192/512 installable web icons and their apps/web/public copies, so --check covers them. - Favicons and the project icon are the bare #00C26B sparkle on transparent, rendered as vectors at 16 and 32px. - The fork-app-identity guard pins the new fill, glass and one shared sparkle path across the mark and project icon. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
NoahHendrickson
left a comment
There was a problem hiding this comment.
Thermonuclear code-quality review of 9ae2897728ad454822672d9aa4ecce8d041030be.
The direction is right. The diff deletes far more than it adds: the 23-cell cellFills parser, the 9-colour census, and ~700 lines of rect soup all go, and one path now pins the app-icon mark and the project icon to the same drawing. The export-icons.ts extension to 192/512 closes a real staleness hole. I found no file-size or spaghetti regression. I am not approving, because the PR leaves the same hole open one asset class over, and it leaves two stale fenced comments behind.
1. The favicons are still a hand-made special case. The PR's own rationale says to fold them in. (missed simplification)
The PR adds the 192/512 icons to export-icons.ts because "nothing regenerated them before, so --check couldn't catch them going stale". The same is true of n3-web-favicon-16x16.png, -32x32.png and n3-web-favicon.ico, plus their three apps/web/public copies. They are now redrawn by an unrecorded process. The manifest says they are "rendered from it as vectors at 16 and 32px", but no command in the repo does that. The next mark change will hit the same gap this PR just closed for the PNGs. The fix deletes a carve-out instead of adding one: render n3-project-icon.svg at 16/32 in export-icons.ts, build the ICO with the encodePngIco it already imports, and add the three public copies to the same table. Then the "Web favicons are not rendered here" paragraph in the script header and "export-icons.ts leaves them alone" in the manifest both go away, and --check covers every brand raster. I checked that the ICO's embedded PNGs are byte-identical to the standalone 16/32 PNGs, so one renderer can produce all three.
2. Stale fenced comments in scripts/build-desktop-artifact.ts (maintainability)
The PR rewrites the fork-app-identity intent and the export-icons.ts header but misses two comments inside the same fence:
- L70:
// Fork-owned Liquid Glass mark from Figma (t3-fork 598:6597). That node is no longer the source of truth. The sparkle isOnHdu0r2mAwMEiC4s7Gvjv 39:4. - L2825:
// Fork green-grid art on every channel…. It is no longer a green grid.
These are the comments a maintainer reads when tracing where packaged icons come from. Fix them in this PR.
3. soleShape checks a blocklist and depends on attribute order (guard boundary), inline below.
4. The sparkle pin is a 20-character prefix (guard strength), inline below.
No other structural issues. The export-icons.ts public-copy loop is fine as it is.
| expect(svg.match(/<rect\b/gu)?.length ?? 0).toBe(grouped); | ||
| return cells; | ||
| // The one drawn shape of a single-path SVG: its path data and lowercase fill. | ||
| const soleShape = (svg: string) => { |
There was a problem hiding this comment.
Two things make this guard weaker than it looks:
- It uses a blocklist. It forbids
rect|circle|ellipse|polygon|image|gbut lets throughline,polyline,use,text,maskand so on. The invariant is "this SVG is one<svg>holding one<path>", so assert that directly:expect([...svg.matchAll(/<([a-z]+)\b/giu)].map(([, tag]) => tag)).toEqual(["svg", "path"]);
- It depends on attribute order. The
d=…fill=regex only matches whendcomes beforefill. The twotoHaveLength(1)checks then fail on a re-export that only reorders attributes, with a message that doesn't say why. Read each attribute separately from the one path tag, e.g./\bd="([^"]+)"/and/\bfill="([^"]+)"/.
The ?? "" fallbacks after a length assertion are dead code. With the allowlist above they can go.
| // are rendered from it, so they move together. | ||
| const icon = soleShape(read("assets/fork/n3-project-icon.svg")); | ||
| expect(icon.fill).toBe("#00c26b"); | ||
| expect(icon.d).toMatch(/^M407\.129 346\.602C/u); |
There was a problem hiding this comment.
This prefix is the only thing tying the drawing to the Figma sparkle. Swapping the art in both files would pass as long as the first point stays M407.129 346.602. Either pin the whole d once, as a SPARKLE_PATH constant that both this assertion and the mark assertion compare against, or drop the prefix and say that only the cross-file equality is guarded. A first-point check is a half-measure that looks like a full pin.
| * icon footprint. `--check` renders into memory and fails on any stale file. | ||
| * Web favicons are not rendered here: they are the bare leaf from Figma | ||
| * (t3-fork 556:28871, assets/fork/n3-project-icon.svg), committed as rasters. | ||
| * Web favicons are not rendered here: they are the bare sparkle |
There was a problem hiding this comment.
This carve-out is now the only brand raster with no regeneration path or --check coverage. It is the same gap this PR closes for 192/512. See point 1 in the review body: render n3-project-icon.svg at 16/32 here, encode the ICO with encodePngIco, and delete this paragraph.
NoahHendrickson
left a comment
There was a problem hiding this comment.
Reviewed commit 9ae2897728ad454822672d9aa4ecce8d041030be against base 84afbb479a223d27b63ee381eef26187306f3e95. No actionable findings.
node .fork/export-icons.ts --checkmatched all 15 generated rasters, andgit diff --checkpassed.- Independently decoded the web PNGs and verified the manifest dimensions, the public asset copies, pixel equality between the favicon ICO entries and the matching PNGs, and all seven Windows ICO sizes.
Verification covered the assets and their build wiring. Packaged clients were not launched.
NoahHendrickson
left a comment
There was a problem hiding this comment.
Code review of 9ae2897728ad454822672d9aa4ecce8d041030be.
I checked out the head commit and ran node .fork/export-icons.ts --check, which passes ("All 15 fork icon rasters are current"). No copy of the old leaf art is left in the tree. Every apps/web/public copy matches the asset family the guard expects: the dev family for apple-touch and 192/512, the production set for favicons. The mark's transform places the sparkle at about 60% of the tile width, as the description says. The earlier thermonuclear review already covers the guard regex, the 20-character path pin, the favicon carve-out, and the stale comments in build-desktop-artifact.ts (L70, L2825). I don't repeat those here.
One new finding: the shipped tile isn't #00C26B, so the app icon and the favicon are now visibly different greens. (inline on icon.json)
No other correctness issues found.
| { | ||
| "fill": { | ||
| "solid": "srgb:0.21569,0.77255,0.43922,1.00000" | ||
| "solid": "srgb:0.00000,0.76078,0.41961,1.00000" |
There was a problem hiding this comment.
The fill is #00C26B, but Icon Composer renders the tile much lighter and less saturated. I sampled the committed rasters in sRGB:
| file | tile pixel |
|---|---|
n3-macos-1024.png / n3-universal-1024.png (150,150), (100,512), (512,900) |
#66C787 |
n3-web-apple-touch-180.png |
#66C786 |
n3-web-favicon-32x32.png (bare mark, no tile) |
#00C97E ≈ the declared green |
With the old fill, the drift was small: #37C570 rendered as #3FCD84. With #00C26B, red rises from 0 to 102. The drift doesn't come from turning glass on. I re-rendered this project with "glass": false on the mark and got the same #66C787 tile. It's how ictool tones this fill.
The result: the Dock, Linux, Windows, iOS apple-touch and installable web icons all ship a muted mint tile, while the favicon and project icon are saturated #00C26B. The two sit side by side in a browser tab and on the home screen. The description, the manifest intent ("Production fills the tile with #00C26B") and the guard comment ("Production is the #00C26B green tile") all describe a colour no packaged raster shows. The guard pins only the source fill, so it can't notice.
If the maintainer picked the colour from these rendered tiles, #66C787 is the brand green. Then the favicon/project-icon fill should probably move to match, and the docs should say the source fill renders lighter. If the goal is a #00C26B tile, the source fill needs pre-compensation, because Icon Composer won't produce it from #00C26B. Either way, please choose one green on purpose.
Thread transfer impact✅ Thread transfer remains within every enforced ceiling.
Other scenariosAll 64 scenario measurements match All 64 scenario measurements
Baseline: Scenario and decoded snapshot size10 historical turns, 5 command tools per turn, 878.9 KiB retained MCP result per historical turn, and a 1.05 MiB retained result in the measured turn.
Updated in place by a trusted workflow. PR artifacts are strictly validated and never executed. |
… glows The app icon follows the Figma design (1qVCaK2XuosbVJtYqa3n0n 54:3507): a black tile with blurred colour glows in the corners under the white sparkle. - Icon Composer cannot draw the design's SVG blur filters, so the glows are rendered from the Figma SVG to Assets/background.png and layered as a flat image group (no glass) under the sparkle group, on a black fill. - The sparkle keeps the shared path and takes the design's placement, about 56% of the tile wide; the dev icon's mark matches, on its orange tile. - Every app-icon raster is regenerated by `node .fork/export-icons.ts`. Favicons and the project icon are unchanged. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
no3y Code's brand mark was the pixel leaf on a green tile. This replaces it everywhere with the new sparkle logo (Figma OnHdu0r2mAwMEiC4s7Gvjv, node 39:4), drawn white on a Neon green
#00C26Btile.What changed
Icon Composer projects (
assets/fork/app-icon.icon,assets/fork/dev-app-icon.icon): the mark layer is the white sparkle, using the Figma path unchanged. It spans 60% of the tile width, with its centre of mass on the tile centre.#00C26B. Dev builds keep the orange tile so installed variants stay distinguishable.Every raster is regenerated by
node .fork/export-icons.ts:apps/web/publiccopiesexport-icons.tsnow also renders the 192/512 web icons. Nothing regenerated them before, so--checkcouldn't catch them going stale.--checkwas already failing oncustomand is clean now.Favicons and project icon (
n3-project-icon.svg,n3-web-favicon*): the bare green sparkle on transparent. At 16px it reads more clearly than a tiled version. Filenames are unchanged for path stability.iOS: PR feat(fork): no3y Code iOS app with notifications from the Mac #401's identity points the app icon and splash at
assets/fork/app-icon.iconandn3-universal-1024.png, so the iPhone app picks up the sparkle once both are merged.Sidebar: unchanged.
customalready draws no brand in the sidebar header (ff38cbd319), andforkSidebarChrome.test.tskeeps it that way.Guards and checks
forkAppIdentityguard now pins the new fill, glass on, and one sparkle path shared by the app-icon mark and the project icon. This replaces the old 23-cell check. Thefork-app-identitymanifest intent is rewritten to match.vp run check:changedpasses, as do the fork guards (111 files, 828 tests),.fork/lint-owned.mjsandnode .fork/export-icons.ts --check.🤖 Signed: Claude Opus 5.5 (
claude-opus-5-5) via Claude CodeA Claude Opus 5.5 (
claude-opus-5-5) subagent did the asset and guard implementation; colour picked by the maintainer from rendered options.