Public: anyone can read this; the crew can change it.

origins: another forge wears an anvil, not Gitea's cup #14301

Merged opened this

Check · Review · Land · Live done — Landed and live in production.

Merged

A forge connected as an origin speaks the Gitea API, so its icon was picked by kind alone and it wore Gitea's cup. The forge already records Origin.software === "forge"; this uses it. src/web/icons.ts: an anvil icon (Lucide's anvil, ISC, same 24x24 stroke set) beside github/forgejo/gitea.

Notes

shipped production is serving it deploy 4ec2c16

opened this

A forge connected as an origin speaks the Gitea API, so its icon was picked by kind alone and it wore Gitea's cup. The forge already records Origin.software === "forge"; this uses it.

  • src/web/icons.ts: an anvil icon (Lucide's anvil, ISC, same 24x24 stroke set) beside github/forgejo/gitea.
  • src/web/pages/origins.ts: originIcon takes the origin and returns anvil when software is forge, else its kind. Callers updated: the origins page, the origin repositories page, the browse header, and the browse page's imported-author glyph (scopeGlyph) when the scope is an origin.
  • Not changed: places that only hold a repo's linked origin kind (RepoOrigin, search hits, migrate's github/globe row, the TUI) carry no software, so they keep the kind mark.
  • Test: test/origins-page-shape.test.ts shows a forge origin row with the anvil and a plain Gitea origin row with the cup.

Checks: bun x tsc --noEmit clean, bun scripts/gate.ts clean, 225 tests across 13 origin/browse/migrate/icon files pass.

🤖 Generated with Claude Code

commented

<!-- look-pages 1b718c89d609 --> Look pages for 1b718c8, from the gate:

  • look pages (inferred): this pull changes src/web/icons.ts, src/web/pages/browse.ts, src/web/pages/origin-repos.ts and 1 more; the forge pictures / (src/web/icons.ts), /docs (src/web/icons.ts), /explore (src/web/icons.ts) and 25 more, the pages whose routes import it. A "Looks: <path>" or "No look: <why>" line in a commit message overrides
Sign in to join this conversation.

↑↓ navigate ↵ open ⌘↵ its app esc close

Keyboard shortcuts

Docs