diff --git a/.fork/customizations.yaml b/.fork/customizations.yaml index 3dbe53d943a3f..28341921e0765 100644 --- a/.fork/customizations.yaml +++ b/.fork/customizations.yaml @@ -379,7 +379,7 @@ first V2 launch carries the fork's drafts over and never upstream's. The fork presents as "no3y Code": bundle id com.t3tools.t3code.fork, installs as "no3y Code.app", ships no3y-Code-* artifacts, packages the - green-grid mark from assets/fork on all three platforms (plus web splash + sparkle mark from assets/fork on all three platforms (plus web splash and favicon), and keeps all filesystem state under ~/.t3-fork. The bundle id and the base directory are the stable identities and must never change across display renames; display strings are safe to rename precisely @@ -407,35 +407,37 @@ is excluded from the test, fmt and lint discovery lists in vite.config.ts and from the four .repos exclusions in .vscode/settings.json, the way .repos already was. - The rendered app carries the name too: the sidebar brand drops the T3 - wordmark and draws Figma t3-fork 676:41854 — the 16px pixel mark and the - 13x3 "no3y" wordmark owned by fork-sidebar-chrome. APP_BASE_NAME still + The rendered app carries the name too: the sidebar header draws no brand + (fork-sidebar-chrome), so neither upstream's T3 wordmark nor its name + appears there. APP_BASE_NAME still names the packaged app and branding.ts's bridge-less fallback, which points at the fork's own constant instead of upstream's "T3 Code". Splash and favicon also ship from assets/fork (copied into apps/web/public for local/dev and into the packaged desktop client at build time via FORK_WEB_ICON_ASSETS + the shared applyWebIconOverrides - path). The layered Icon Composer projects in assets/fork/app-icon.icon and - assets/fork/dev-app-icon.icon are the Figma source of truth (file t3-fork, - node 598:6597), so the surrounding tile receives the system Liquid Glass - treatment on macOS without rasterizing the mark. Production fills the - tile with the Figma green (#37C570); development keeps a solid orange - tile so installed variants remain distinguishable in the Dock. - Glass stays off on the mark layer itself so the pixel grid remains crisp - (glass on it melts the cells into blobs); the system treatment belongs to - the surrounding tile. Every app-icon raster, including the Linux PNG, the - Windows ICO and the apps/web/public apple-touch copy, is rendered from - these projects by `node .fork/export-icons.ts` (macOS only; `--check` - reports stale files), so every packaged channel carries the same artwork. - The macOS Dock exports add only a transparent outer canvas around the - rendered artwork, matching the standard Mac icon footprint. The local dev - splash uses the orange family, while packaged builds stamp the green - production family. Web favicons and the project icon are the bare leaf - with no tile (t3-fork 556:28871): assets/fork/n3-project-icon.svg is - the earlier 23-cell leaf (it did not follow the sidebar mark to 676:42956) - as integer cells with crispEdges, literal fills, and a #373737 outline, and the n3-web-favicon* - rasters (with apps/web/public copies) are rendered from it at an exact - multiple of its 23-cell grid, then downscaled; export-icons.ts leaves - them alone. Filenames still say n3-* for path stability. t3.json's + path). The brand mark is the sparkle (Figma OnHdu0r2mAwMEiC4s7Gvjv + 39:4), one path drawn identically everywhere. The layered Icon Composer + projects in assets/fork/app-icon.icon and assets/fork/dev-app-icon.icon + are its app-icon source of truth: a white sparkle placed as in the no3y + app icon design (Figma 1qVCaK2XuosbVJtYqa3n0n 54:3507), about 56% of the + tile wide. Production is a black tile under that design's blurred glows, + rendered from Figma to Assets/background.png and layered as a flat image + (no glass) beneath the mark, since Icon Composer cannot draw SVG blur + filters; development keeps a solid orange tile so installed variants + remain distinguishable in the Dock. Glass is on for the mark layer as well + as the tile — the smooth shape takes the system treatment cleanly. Every + app-icon raster, including the Linux PNG, the Windows ICO, the 192/512 + installable web icons and the apps/web/public apple-touch and icon copies, + is rendered from these projects by `node .fork/export-icons.ts` (macOS + only; `--check` reports stale files), so every packaged channel carries + the same artwork. The macOS Dock exports add only a transparent outer + canvas around the rendered artwork, matching the standard Mac icon + footprint. The local dev splash uses the orange family, while packaged + builds stamp the black production family. Web favicons and the project + icon are the bare sparkle in #00C26B with no tile, which stays legible at + 16px: assets/fork/n3-project-icon.svg carries the same path, and the + n3-web-favicon* rasters (with apps/web/public copies) are rendered from it + as vectors at 16 and 32px; export-icons.ts leaves them alone. Filenames + still say n3-* for path stability. t3.json's iconPath points at n3-project-icon.svg, never upstream's assets/dev/blueprint-*. The apple-touch icons keep the tile because iOS fills transparency with black. @@ -477,7 +479,7 @@ - assets/fork/n3-windows.ico - assets/fork/n3-dev-web-apple-touch-180.png - assets/fork/n3-web-apple-touch-180.png - # Installable web icons (upstream #30420), from the 1024 masters. + # Installable web icons (upstream #30420), rendered by export-icons.ts. - assets/fork/n3-web-icon-192x192.png - assets/fork/n3-web-icon-512x512.png - assets/fork/n3-dev-web-icon-192x192.png diff --git a/.fork/export-icons.ts b/.fork/export-icons.ts index 5dbb9eb3c782c..57b5fa5838305 100644 --- a/.fork/export-icons.ts +++ b/.fork/export-icons.ts @@ -11,8 +11,8 @@ * macOS platform so each one carries the system Liquid Glass tile; the Dock * PNG pads the 1024 render onto a transparent 1272 canvas, the standard Mac * 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 + * (assets/fork/n3-project-icon.svg) with no tile, committed as rasters. */ import * as NodeChildProcess from "node:child_process"; @@ -93,6 +93,8 @@ function variantOutputs(source: string, prefix: string): Map { [`assets/fork/${prefix}-macos-1024.png`, macos], [`assets/fork/${prefix}-macos-dock.png`, padToDockCanvas(macos)], [`assets/fork/${prefix}-web-apple-touch-180.png`, render(source, 180)], + [`assets/fork/${prefix}-web-icon-192x192.png`, render(source, 192)], + [`assets/fork/${prefix}-web-icon-512x512.png`, render(source, 512)], ]); } @@ -110,10 +112,13 @@ try { const development = variantOutputs("assets/fork/dev-app-icon.icon", "n3-dev"); for (const [path, contents] of development) outputs.set(path, contents); // `vp run dev` serves apps/web/public, so it carries the development family. - outputs.set( - "apps/web/public/apple-touch-icon.png", - development.get("assets/fork/n3-dev-web-apple-touch-180.png")!, - ); + for (const [target, source] of [ + ["apple-touch-icon.png", "n3-dev-web-apple-touch-180.png"], + ["icon-192x192.png", "n3-dev-web-icon-192x192.png"], + ["icon-512x512.png", "n3-dev-web-icon-512x512.png"], + ] as const) { + outputs.set(`apps/web/public/${target}`, development.get(`assets/fork/${source}`)!); + } } finally { NodeFS.rmSync(workDir, { recursive: true, force: true }); } diff --git a/apps/web/public/apple-touch-icon.png b/apps/web/public/apple-touch-icon.png index b834de30f8ce9..06a455149d2d5 100644 Binary files a/apps/web/public/apple-touch-icon.png and b/apps/web/public/apple-touch-icon.png differ diff --git a/apps/web/public/favicon-16x16.png b/apps/web/public/favicon-16x16.png index e433e0ab8f187..7957d886f3f6e 100644 Binary files a/apps/web/public/favicon-16x16.png and b/apps/web/public/favicon-16x16.png differ diff --git a/apps/web/public/favicon-32x32.png b/apps/web/public/favicon-32x32.png index 7adcb050bba8a..4ab50161d48d3 100644 Binary files a/apps/web/public/favicon-32x32.png and b/apps/web/public/favicon-32x32.png differ diff --git a/apps/web/public/favicon.ico b/apps/web/public/favicon.ico index d78d26f1baac9..c1dabbd95f3eb 100644 Binary files a/apps/web/public/favicon.ico and b/apps/web/public/favicon.ico differ diff --git a/apps/web/public/icon-192x192.png b/apps/web/public/icon-192x192.png index ed240e9a63450..41e5a09d17138 100644 Binary files a/apps/web/public/icon-192x192.png and b/apps/web/public/icon-192x192.png differ diff --git a/apps/web/public/icon-512x512.png b/apps/web/public/icon-512x512.png index af8ccb8bf9d90..42e61f08232e9 100644 Binary files a/apps/web/public/icon-512x512.png and b/apps/web/public/icon-512x512.png differ diff --git a/apps/web/src/__fork_guards__/forkAppIdentity.test.ts b/apps/web/src/__fork_guards__/forkAppIdentity.test.ts index 79d4b4bec12da..73ffc99171931 100644 --- a/apps/web/src/__fork_guards__/forkAppIdentity.test.ts +++ b/apps/web/src/__fork_guards__/forkAppIdentity.test.ts @@ -51,21 +51,13 @@ const SERVER_CONFIG = "apps/server/src/config.ts"; const BUILD_SCRIPT = "scripts/build-desktop-artifact.ts"; const FORK_RELEASE_WORKFLOW = ".github/workflows/fork-release.yml"; -// Every 1-row rect inside a `` group, expanded to "x,y" -> lowercase hex fill. -const cellFills = (svg: string) => { - const cells = new Map(); - let grouped = 0; - for (const [, fill = "", body = ""] of svg.matchAll(/([\s\S]*?)<\/g>/gu)) { - const hex = (/#[0-9a-f]{6}/iu.exec(fill)?.[0] ?? fill).toLowerCase(); - for (const [, w, x, y] of body.matchAll( - //gu, - )) { - grouped += 1; - for (let dx = 0; dx < Number(w); dx += 1) cells.set(`${Number(x) + dx},${y}`, hex); - } - } - expect(svg.match(/ { + expect(svg.match(/<(?:rect|circle|ellipse|polygon|image|g)\b/gu)).toBeNull(); + expect(svg.match(/]*\bd="([^"]+)"[^>]*\bfill="([^"]+)"/gu)]; + expect(paths).toHaveLength(1); + return { d: paths[0]?.[1] ?? "", fill: paths[0]?.[2]?.toLowerCase() ?? "" }; }; describe("fork guard: fork-app-identity", () => { @@ -182,7 +174,7 @@ describe("fork guard: fork-app-identity", () => { // Dev (`vp run dev`) serves apps/web/public — the orange apple-touch family // there, while packaged builds stamp the green production family above. - // Favicons are one flat Figma tile, so dev serves the production set. + // Favicons are the bare mark with no tile, so dev serves the production set. for (const [source, target] of [ ["assets/fork/n3-web-favicon.ico", "apps/web/public/favicon.ico"], ["assets/fork/n3-web-favicon-16x16.png", "apps/web/public/favicon-16x16.png"], @@ -213,19 +205,29 @@ describe("fork guard: fork-app-identity", () => { ) as IconComposerProject; expect(developmentIcon.fill?.solid).toBe("srgb:1.00000,0.41569,0.00000,1.00000"); for (const icon of [productionIcon, developmentIcon]) { + // The smooth sparkle takes the system glass on the mark itself. expect(icon.groups[0]?.layers[0]).toMatchObject({ - glass: false, + glass: true, "image-name": "mark.svg", }); expect(icon.groups[0]?.translucency?.enabled).toBe(true); } - // Production is the Figma green tile; development stays a solid orange tile. - expect(productionIcon.fill?.solid).toBe("srgb:0.21569,0.77255,0.43922,1.00000"); - expect(productionIcon.groups).toHaveLength(1); + // Production is a black tile under the Figma glows (no3y app icon, 54:3507), a flat image + // with no glass; development stays a solid orange tile. + expect(productionIcon.fill?.solid).toBe("srgb:0.00000,0.00000,0.00000,1.00000"); + expect(productionIcon.groups).toHaveLength(2); + expect(productionIcon.groups[1]?.layers).toMatchObject([ + { glass: false, "image-name": "background.png" }, + ]); + expect(productionIcon.groups[1]?.translucency?.enabled).toBe(false); expect(developmentIcon.groups).toHaveLength(1); + // One white sparkle, the same drawing as the project icon and favicons. const mark = read("assets/fork/app-icon.icon/Assets/mark.svg"); expect(mark).toContain('viewBox="0 0 1024 1024"'); + const markShape = soleShape(mark); + expect(markShape.fill).toBe("#ffffff"); + expect(markShape.d).toBe(soleShape(read("assets/fork/n3-project-icon.svg")).d); expect( NodeFS.readFileSync(NodePath.join(repoRoot, "assets/fork/dev-app-icon.icon/Assets/mark.svg")), ).toEqual( @@ -244,24 +246,11 @@ describe("fork guard: fork-app-identity", () => { it("shows the fork's own icon beside this repo's project", () => { expect(JSON.parse(read("t3.json")).iconPath).toBe("assets/fork/n3-project-icon.svg"); - const icon = read("assets/fork/n3-project-icon.svg"); - expect(icon).toContain('viewBox="0 0 23 23"'); - // The bare 23-cell leaf (t3-fork 556:28871) with a #373737 outline and no - // backdrop. It keeps that drawing while the sidebar mark moved to Figma - // 676:42956; the web favicons are rendered from it, so they move together. - const icon23 = cellFills(icon); - expect(icon23.size).toBe(253); - expect([...new Set(icon23.values())].toSorted()).toEqual([ - "#008755", - "#08b776", - "#26b846", - "#373737", - "#3aed62", - "#f95b1c", - "#fcb01a", - "#ff8f0c", - "#ffd233", - ]); + // The bare sparkle in the tile's green with no backdrop; the web favicons + // 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); }); it("keeps packaged state out of the shared ~/.t3 base directory", () => { diff --git a/assets/fork/app-icon.icon/Assets/background.png b/assets/fork/app-icon.icon/Assets/background.png new file mode 100644 index 0000000000000..4e4ea2b18468a Binary files /dev/null and b/assets/fork/app-icon.icon/Assets/background.png differ diff --git a/assets/fork/app-icon.icon/Assets/mark.svg b/assets/fork/app-icon.icon/Assets/mark.svg index d50dff0096af4..f2159a173e52a 100644 --- a/assets/fork/app-icon.icon/Assets/mark.svg +++ b/assets/fork/app-icon.icon/Assets/mark.svg @@ -1,354 +1,3 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + diff --git a/assets/fork/app-icon.icon/icon.json b/assets/fork/app-icon.icon/icon.json index aedcc99359a0d..320546cad630f 100644 --- a/assets/fork/app-icon.icon/icon.json +++ b/assets/fork/app-icon.icon/icon.json @@ -1,14 +1,14 @@ { "fill": { - "solid": "srgb:0.21569,0.77255,0.43922,1.00000" + "solid": "srgb:0.00000,0.00000,0.00000,1.00000" }, "groups": [ { "layers": [ { - "glass": false, + "glass": true, "image-name": "mark.svg", - "name": "Pixel Mark", + "name": "Sparkle", "position": { "scale": 1, "translation-in-points": [0, 0] @@ -23,6 +23,27 @@ "enabled": true, "value": 0.2 } + }, + { + "layers": [ + { + "glass": false, + "image-name": "background.png", + "name": "Glow", + "position": { + "scale": 1, + "translation-in-points": [0, 0] + } + } + ], + "shadow": { + "kind": "none", + "opacity": 0 + }, + "translucency": { + "enabled": false, + "value": 0 + } } ], "supported-platforms": { diff --git a/assets/fork/dev-app-icon.icon/Assets/mark.svg b/assets/fork/dev-app-icon.icon/Assets/mark.svg index d50dff0096af4..f2159a173e52a 100644 --- a/assets/fork/dev-app-icon.icon/Assets/mark.svg +++ b/assets/fork/dev-app-icon.icon/Assets/mark.svg @@ -1,354 +1,3 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + diff --git a/assets/fork/dev-app-icon.icon/icon.json b/assets/fork/dev-app-icon.icon/icon.json index 6d03502d826ae..60b266b8a5094 100644 --- a/assets/fork/dev-app-icon.icon/icon.json +++ b/assets/fork/dev-app-icon.icon/icon.json @@ -6,9 +6,9 @@ { "layers": [ { - "glass": false, + "glass": true, "image-name": "mark.svg", - "name": "Pixel Mark", + "name": "Sparkle", "position": { "scale": 1, "translation-in-points": [0, 0] diff --git a/assets/fork/n3-dev-macos-1024.png b/assets/fork/n3-dev-macos-1024.png index 93e6be27d87de..019816072c260 100644 Binary files a/assets/fork/n3-dev-macos-1024.png and b/assets/fork/n3-dev-macos-1024.png differ diff --git a/assets/fork/n3-dev-macos-dock.png b/assets/fork/n3-dev-macos-dock.png index 0dd06e583b8c3..7c335287958ba 100644 Binary files a/assets/fork/n3-dev-macos-dock.png and b/assets/fork/n3-dev-macos-dock.png differ diff --git a/assets/fork/n3-dev-web-apple-touch-180.png b/assets/fork/n3-dev-web-apple-touch-180.png index b834de30f8ce9..06a455149d2d5 100644 Binary files a/assets/fork/n3-dev-web-apple-touch-180.png and b/assets/fork/n3-dev-web-apple-touch-180.png differ diff --git a/assets/fork/n3-dev-web-icon-192x192.png b/assets/fork/n3-dev-web-icon-192x192.png index ed240e9a63450..41e5a09d17138 100644 Binary files a/assets/fork/n3-dev-web-icon-192x192.png and b/assets/fork/n3-dev-web-icon-192x192.png differ diff --git a/assets/fork/n3-dev-web-icon-512x512.png b/assets/fork/n3-dev-web-icon-512x512.png index af8ccb8bf9d90..42e61f08232e9 100644 Binary files a/assets/fork/n3-dev-web-icon-512x512.png and b/assets/fork/n3-dev-web-icon-512x512.png differ diff --git a/assets/fork/n3-macos-1024.png b/assets/fork/n3-macos-1024.png index d7a7b5b07a668..4a5eb2bcf1665 100644 Binary files a/assets/fork/n3-macos-1024.png and b/assets/fork/n3-macos-1024.png differ diff --git a/assets/fork/n3-macos-dock.png b/assets/fork/n3-macos-dock.png index 531798bac9997..f3b3efdd7995c 100644 Binary files a/assets/fork/n3-macos-dock.png and b/assets/fork/n3-macos-dock.png differ diff --git a/assets/fork/n3-project-icon.svg b/assets/fork/n3-project-icon.svg index aba7b8844a071..e7c731e79a62b 100644 --- a/assets/fork/n3-project-icon.svg +++ b/assets/fork/n3-project-icon.svg @@ -1,167 +1,3 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + diff --git a/assets/fork/n3-universal-1024.png b/assets/fork/n3-universal-1024.png index d7a7b5b07a668..4a5eb2bcf1665 100644 Binary files a/assets/fork/n3-universal-1024.png and b/assets/fork/n3-universal-1024.png differ diff --git a/assets/fork/n3-web-apple-touch-180.png b/assets/fork/n3-web-apple-touch-180.png index 7f323d818b2e2..c793cd0a8dd4f 100644 Binary files a/assets/fork/n3-web-apple-touch-180.png and b/assets/fork/n3-web-apple-touch-180.png differ diff --git a/assets/fork/n3-web-favicon-16x16.png b/assets/fork/n3-web-favicon-16x16.png index e433e0ab8f187..7957d886f3f6e 100644 Binary files a/assets/fork/n3-web-favicon-16x16.png and b/assets/fork/n3-web-favicon-16x16.png differ diff --git a/assets/fork/n3-web-favicon-32x32.png b/assets/fork/n3-web-favicon-32x32.png index 7adcb050bba8a..4ab50161d48d3 100644 Binary files a/assets/fork/n3-web-favicon-32x32.png and b/assets/fork/n3-web-favicon-32x32.png differ diff --git a/assets/fork/n3-web-favicon.ico b/assets/fork/n3-web-favicon.ico index d78d26f1baac9..c1dabbd95f3eb 100644 Binary files a/assets/fork/n3-web-favicon.ico and b/assets/fork/n3-web-favicon.ico differ diff --git a/assets/fork/n3-web-icon-192x192.png b/assets/fork/n3-web-icon-192x192.png index efcdf765e5d8b..b3b5fa6f0e205 100644 Binary files a/assets/fork/n3-web-icon-192x192.png and b/assets/fork/n3-web-icon-192x192.png differ diff --git a/assets/fork/n3-web-icon-512x512.png b/assets/fork/n3-web-icon-512x512.png index 1c900ee3dfcde..ef6ccbb26889b 100644 Binary files a/assets/fork/n3-web-icon-512x512.png and b/assets/fork/n3-web-icon-512x512.png differ diff --git a/assets/fork/n3-windows.ico b/assets/fork/n3-windows.ico index 690a6b888a79b..bfa14cd45190e 100644 Binary files a/assets/fork/n3-windows.ico and b/assets/fork/n3-windows.ico differ