Skip to content

feat(fork): replace the brand mark with the sparkle - #404

Merged
NoahHendrickson merged 3 commits into
customfrom
t3/sparkle-logo
Nov 23, 2026
Merged

NoahHendrickson merged 3 commits into
customfrom
t3/sparkle-logo

Conversation

@NoahHendrickson

Copy link
Copy Markdown
Owner

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 #00C26B tile.

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.

    • Production fill: #00C26B. Dev builds keep the orange tile so installed variants stay distinguishable.
    • Glass is on for the mark, so it gets the system rim treatment on macOS and iOS. The pixel mark needed it off to keep its cells crisp; the smooth sparkle doesn't.
  • Every raster is regenerated by node .fork/export-icons.ts:

    • macOS 1024 and Dock icons, prod and dev
    • universal PNGs and the Windows ICO
    • apple-touch 180 and the 192/512 web icons, plus their apps/web/public copies

    export-icons.ts now also renders the 192/512 web icons. Nothing regenerated them before, so --check couldn't catch them going stale. --check was already failing on custom and 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.icon and n3-universal-1024.png, so the iPhone app picks up the sparkle once both are merged.

  • Sidebar: unchanged. custom already draws no brand in the sidebar header (ff38cbd319), and forkSidebarChrome.test.ts keeps it that way.

Guards and checks

  • The forkAppIdentity guard 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. The fork-app-identity manifest intent is rewritten to match.
  • vp run check:changed passes, as do the fork guards (111 files, 828 tests), .fork/lint-owned.mjs and node .fork/export-icons.ts --check.

🤖 Signed: Claude Opus 5.5 (claude-opus-5-5) via Claude Code
A Claude Opus 5.5 (claude-opus-5-5) subagent did the asset and guard implementation; colour picked by the maintainer from rendered options.

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>
@github-actions github-actions Bot added vouch:trusted Author is trusted by repo permissions or the VOUCHED list. size:XL labels Nov 22, 2026

@NoahHendrickson NoahHendrickson left a comment

Copy link
Copy Markdown
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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 is OnHdu0r2mAwMEiC4s7Gvjv 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) => {

Copy link
Copy Markdown
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Two things make this guard weaker than it looks:

  • It uses a blocklist. It forbids rect|circle|ellipse|polygon|image|g but lets through line, polyline, use, text, mask and 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 when d comes before fill. The two toHaveLength(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);

Copy link
Copy Markdown
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

Comment thread .fork/export-icons.ts
* 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

Copy link
Copy Markdown
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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 NoahHendrickson left a comment

Copy link
Copy Markdown
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Reviewed commit 9ae2897728ad454822672d9aa4ecce8d041030be against base 84afbb479a223d27b63ee381eef26187306f3e95. No actionable findings.

  • node .fork/export-icons.ts --check matched all 15 generated rasters, and git diff --check passed.
  • 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 NoahHendrickson left a comment

Copy link
Copy Markdown
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

Comment thread assets/fork/app-icon.icon/icon.json Outdated
{
"fill": {
"solid": "srgb:0.21569,0.77255,0.43922,1.00000"
"solid": "srgb:0.00000,0.76078,0.41961,1.00000"

Copy link
Copy Markdown
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

@github-actions

github-actions Bot commented Nov 22, 2026 •

Copy link
Copy Markdown

Thread transfer impact

✅ Thread transfer remains within every enforced ceiling.

ℹ️ The exact PR base did not have a successful artifact. Baseline uses the latest successful main measurement shown below.

Provider Metric Main baseline This PR Impact PR ceiling
Codex Total thread wire 5.0 KiB 5.0 KiB 0 B (0.0%) 6.8 KiB ✅
Codex Thread snapshot wire 3.8 KiB 3.8 KiB 0 B (0.0%) 4.9 KiB ✅
Codex Live turn WebSocket wire 1.2 KiB 1.2 KiB 0 B (0.0%) 2.0 KiB ✅
Codex Live turn WebSocket decoded 21.5 KiB 21.5 KiB 0 B (0.0%) 24.4 KiB ✅
Codex Live turn messages 1 1 0 (0.0%) 8 ✅
Claude Total thread wire 5.0 KiB 5.0 KiB 0 B (0.0%) 6.8 KiB ✅
Claude Thread snapshot wire 3.8 KiB 3.8 KiB 0 B (0.0%) 4.9 KiB ✅
Claude Live turn WebSocket wire 1.2 KiB 1.2 KiB 0 B (0.0%) 2.0 KiB ✅
Claude Live turn WebSocket decoded 21.9 KiB 21.9 KiB 0 B (0.0%) 24.4 KiB ✅
Claude Live turn messages 1 1 0 (0.0%) 8 ✅

Other scenarios

All 64 scenario measurements match main.

All 64 scenario measurements
Provider Scenario Metric Main baseline This PR Impact PR ceiling
Codex short turn resume WebSocket decoded 10.5 KiB 10.5 KiB 0 B (0.0%) 12.7 KiB ✅
Codex short turn resume WebSocket messages 2 2 0 (0.0%) 2 ✅
Codex long turn running, cold open HTTP decoded 281.7 KiB 281.7 KiB 0 B (0.0%) 302.7 KiB ✅
Codex long turn running, cold open rows 75 75 0 (0.0%) 75 ✅
Codex long turn running, history page HTTP decoded 92.4 KiB 92.4 KiB 0 B (0.0%) 107.4 KiB ✅
Codex long turn running, history page rows 75 75 0 (0.0%) 75 ✅
Codex long turn finished, cold open HTTP decoded 381.5 KiB 381.5 KiB 0 B (0.0%) 410.2 KiB ✅
Codex long turn finished, cold open rows 151 151 0 (0.0%) 151 ✅
Codex long turn finished, socket cold open WebSocket decoded 381.6 KiB 381.6 KiB 0 B (0.0%) 410.2 KiB ✅
Codex long turn finished, socket cold open WebSocket messages 2 2 0 (0.0%) 2 ✅
Codex long turn finished, socket cold open rows 151 151 0 (0.0%) 151 ✅
Codex long turn finished, work page HTTP decoded 186.2 KiB 186.2 KiB 0 B (0.0%) 200.2 KiB ✅
Codex long turn finished, work page rows 150 150 0 (0.0%) 150 ✅
Codex idle thread resume WebSocket decoded 65 B 65 B 0 B (0.0%) 200 B ✅
Codex idle thread resume WebSocket messages 1 1 0 (0.0%) 1 ✅
Codex fleet shell snapshot HTTP decoded 42.4 KiB 42.4 KiB 0 B (0.0%) 53.7 KiB ✅
Codex fleet shell snapshot rows 27 27 0 (0.0%) 27 ✅
Codex fleet shell subscribe WebSocket decoded 65 B 65 B 0 B (0.0%) 200 B ✅
Codex fleet shell subscribe WebSocket messages 1 1 0 (0.0%) 1 ✅
Codex fleet shell resume check HTTP decoded 18 B 18 B 0 B (0.0%) 100 B ✅
Codex fleet shell resume check rows 0 0 0 0 ✅
Codex stale shell reload HTTP decoded 42.4 KiB 42.4 KiB 0 B (0.0%) 53.7 KiB ✅
Codex stale shell reload rows 27 27 0 (0.0%) 27 ✅
Codex stale shell resume WebSocket decoded 140 B 140 B 0 B (0.0%) 400 B ✅
Codex stale shell resume WebSocket messages 2 2 0 (0.0%) 2 ✅
Codex stale todo list cold open HTTP decoded 72.4 KiB 72.4 KiB 0 B (0.0%) 83.0 KiB ✅
Codex stale todo list cold open rows 75 75 0 (0.0%) 75 ✅
Codex stale todo list cold open nodes 2 2 0 (0.0%) 4 ✅
Codex stale todo list cold open subagents 2 2 0 (0.0%) 4 ✅
Codex stale todo list cold open plans 1 1 0 (0.0%) 2 ✅
Codex stale todo list cold open providerTurns 1 1 0 (0.0%) 2 ✅
Codex stale todo list cold open checkpoints 1 1 0 (0.0%) 2 ✅
Claude short turn resume WebSocket decoded 10.6 KiB 10.6 KiB 0 B (0.0%) 12.7 KiB ✅
Claude short turn resume WebSocket messages 2 2 0 (0.0%) 2 ✅
Claude long turn running, cold open HTTP decoded 283.3 KiB 283.3 KiB 0 B (0.0%) 302.7 KiB ✅
Claude long turn running, cold open rows 75 75 0 (0.0%) 75 ✅
Claude long turn running, history page HTTP decoded 93.4 KiB 93.4 KiB 0 B (0.0%) 107.4 KiB ✅
Claude long turn running, history page rows 75 75 0 (0.0%) 75 ✅
Claude long turn finished, cold open HTTP decoded 384.2 KiB 384.2 KiB 0 B (0.0%) 410.2 KiB ✅
Claude long turn finished, cold open rows 151 151 0 (0.0%) 151 ✅
Claude long turn finished, socket cold open WebSocket decoded 384.3 KiB 384.3 KiB 0 B (0.0%) 410.2 KiB ✅
Claude long turn finished, socket cold open WebSocket messages 2 2 0 (0.0%) 2 ✅
Claude long turn finished, socket cold open rows 151 151 0 (0.0%) 151 ✅
Claude long turn finished, work page HTTP decoded 188.1 KiB 188.1 KiB 0 B (0.0%) 200.2 KiB ✅
Claude long turn finished, work page rows 150 150 0 (0.0%) 150 ✅
Claude idle thread resume WebSocket decoded 66 B 66 B 0 B (0.0%) 200 B ✅
Claude idle thread resume WebSocket messages 1 1 0 (0.0%) 1 ✅
Claude fleet shell snapshot HTTP decoded 43.0 KiB 43.0 KiB 0 B (0.0%) 53.7 KiB ✅
Claude fleet shell snapshot rows 27 27 0 (0.0%) 27 ✅
Claude fleet shell subscribe WebSocket decoded 66 B 66 B 0 B (0.0%) 200 B ✅
Claude fleet shell subscribe WebSocket messages 1 1 0 (0.0%) 1 ✅
Claude fleet shell resume check HTTP decoded 18 B 18 B 0 B (0.0%) 100 B ✅
Claude fleet shell resume check rows 0 0 0 0 ✅
Claude stale shell reload HTTP decoded 43.0 KiB 43.0 KiB 0 B (0.0%) 53.7 KiB ✅
Claude stale shell reload rows 27 27 0 (0.0%) 27 ✅
Claude stale shell resume WebSocket decoded 140 B 140 B 0 B (0.0%) 400 B ✅
Claude stale shell resume WebSocket messages 2 2 0 (0.0%) 2 ✅
Claude stale todo list cold open HTTP decoded 73.4 KiB 73.4 KiB 0 B (0.0%) 83.0 KiB ✅
Claude stale todo list cold open rows 75 75 0 (0.0%) 75 ✅
Claude stale todo list cold open nodes 2 2 0 (0.0%) 4 ✅
Claude stale todo list cold open subagents 2 2 0 (0.0%) 4 ✅
Claude stale todo list cold open plans 1 1 0 (0.0%) 2 ✅
Claude stale todo list cold open providerTurns 1 1 0 (0.0%) 2 ✅
Claude stale todo list cold open checkpoints 1 1 0 (0.0%) 2 ✅

Baseline: 2f9fdfd · PR result: ab903df · Source CI: success

Scenario and decoded snapshot size

10 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.

  • Codex decoded thread snapshot: 108.5 KiB
  • Claude decoded thread snapshot: 108.8 KiB

Updated in place by a trusted workflow. PR artifacts are strictly validated and never executed.

xxxxxxxxxxxxx and others added 2 commits November 23, 2026 01:28
… 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>
@github-actions github-actions Bot added the 📱 Native Change Changes the native fingerprint; merging blocks production OTAs until a new store build ships. label Nov 23, 2026
@NoahHendrickson
NoahHendrickson merged commit 1716557 into custom Nov 23, 2026
32 checks passed
@NoahHendrickson
NoahHendrickson deleted the t3/sparkle-logo branch November 23, 2026 06:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

📱 Native Change Changes the native fingerprint; merging blocks production OTAs until a new store build ships. size:XL vouch:trusted Author is trusted by repo permissions or the VOUCHED list.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants