Archilyzer · Source

archilyzer

Archilyzer
git clone https://archilyzer.pages.dev/source/archilyzer.git
Log | Files | Refs | README | LICENSE

commit 5305e5a88fd4ae90ae149115990a83f46e37889d
parent f6326e89ace787d4994eaec98ac35052861d947b
Author: I Mean I'm Just Saying <imeanimjustsaying@kiwifarms.st>
Date:   Mon,  9 Nov 2026 23:17:14 -0500

umtool: an icon -- the parent mark lit in Signal (mark M2), as app/icon.svg

umtool had no favicon. app/icon.svg is markSvg(MEDIA_MARK_PALETTE) -- the slate ground and dim of the
parent mark with Signal's on-dark lit line, the palette common/lib/brandMedia.ts already names for the media
umtool makes -- linked from every page by Next's app/icon.svg convention, as the editor's is. A unit test
(lib/brandIcon.test.ts, now in `pnpm --filter umtool test`) holds the file to markSvg byte for byte; a
shell.spec test checks the <head> link and that it is served as SVG.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>

Diffstat:
Aumtool/app/icon.svg | 1+
Mumtool/e2e/shell.spec.ts | 11+++++++++++
Aumtool/lib/brandIcon.test.ts | 17+++++++++++++++++
Mumtool/package.json | 2+-
4 files changed, 30 insertions(+), 1 deletion(-)

diff --git a/umtool/app/icon.svg b/umtool/app/icon.svg @@ -0,0 +1 @@ +<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><rect width="512" height="512" rx="112" fill="#151b20"/><rect x="112" y="128" width="288" height="44" rx="22" fill="#586977"/><polygon points="112,210 172,234 112,258" fill="#5fa8a0"/><rect x="188" y="212" width="212" height="44" rx="22" fill="#5fa8a0"/><rect x="112" y="296" width="232" height="44" rx="22" fill="#586977"/><rect x="112" y="380" width="152" height="44" rx="22" fill="#586977"/></svg> diff --git a/umtool/e2e/shell.spec.ts b/umtool/e2e/shell.spec.ts @@ -246,3 +246,14 @@ test("the head glides, and does not under reduced motion", async ({ page }) => { await expect(page.locator("[data-lit-list] .lit-head[data-placed]").first()).toBeAttached(); expect(await duration()).toMatch(/^0s/); }); + +test("every page links the umtool icon -- the parent mark lit in Signal -- and it is served", async ({ page, request }) => { + await page.goto(urls.homeHref()); + const href = await page.locator("head link[rel=icon][type='image/svg+xml']").first().getAttribute("href"); + expect(href).toMatch(/^\/icon\.svg/); + const res = await request.get(href!); + expect(res.status()).toBe(200); + expect(res.headers()["content-type"]).toContain("image/svg+xml"); + // Signal's on-dark value is the lit line (common/lib/brand.ts ACCENTS.signal.onDark). + expect(await res.text()).toContain('fill="#5fa8a0"'); +}); diff --git a/umtool/lib/brandIcon.test.ts b/umtool/lib/brandIcon.test.ts @@ -0,0 +1,17 @@ +import { test } from "node:test"; +import assert from "node:assert/strict"; +import { readFileSync } from "node:fs"; +import { fileURLToPath } from "node:url"; +import { markSvg } from "yt-dlp-transcript-common/lib/brand"; +import { MEDIA_MARK_PALETTE } from "yt-dlp-transcript-common/lib/brandMedia"; + +// umtool/app/icon.svg is umtool's favicon (Next's app/icon.svg file convention +// links it from every page). umtool makes the media, so its icon is the parent +// mark lit in Signal -- mark M2, the slate ground and dim of +// ICON_PALETTES.archilyzer with Signal's on-dark lit line -- and it must stay +// the mark: markSvg is the geometry, this file a copy of it. Regenerate with +// markSvg(MEDIA_MARK_PALETTE) if this fails. +test("app/icon.svg is markSvg(MEDIA_MARK_PALETTE), byte for byte", () => { + const file = fileURLToPath(new URL("../app/icon.svg", import.meta.url)); + assert.equal(readFileSync(file, "utf8").trimEnd(), markSvg(MEDIA_MARK_PALETTE)); +}); diff --git a/umtool/package.json b/umtool/package.json @@ -8,7 +8,7 @@ "build": "next build", "start": "next start --port ${UMTOOL_PORT:-3050}", "typecheck": "tsc --noEmit", - "test": "tsx --test lib/research/*.test.ts lib/inbox/*.test.ts lib/clips/*.test.ts", + "test": "tsx --test lib/brandIcon.test.ts lib/research/*.test.ts lib/inbox/*.test.ts lib/clips/*.test.ts", "e2e": "node ../scripts/worktree.mjs run -- node ../scripts/queue-lock.mjs --name e2e-umtool --estimate 1500 --prebuild umtool --ports UMTOOL_E2E_PORT:3051,EDITOR_STUB_PORT:3052 -- playwright test" }, "dependencies": {