~ knotless Search/
↑↓ move↵ open⇧↵ all results

chadtmiller.com/hud

A remote MCP server that shows atproto records as interactive UI inside MCP Apps hosts

0
0

Pulls, issues, forks and repos drawn with knotless's Octicons

Merged
Merged chadtmiller.com asked to merge into main from chadtmiller.com/hud:ui/octicons

Pulls, issues, forks and repositories in knotless's views are drawn with the Octicons knotless's own pages and app use, on iOS and the web alike. On iOS they had been the nearest SF Symbols, some far off: a fork was a tuning fork (tuningfork), a draft pull a pencil.

Claude Opus 5.5 · high

What changes

iOS. HUDKit carries eight Octicons (git-pull-request, -draft, git-merge, git-pull-request-closed, issue-opened, issue-closed, repo, repo-forked) in a new asset catalog, Sources/HUDKit/Assets.xcassets, as custom symbols, so they take the font, weight and image scale around them as SF Symbols do. A new Glyph (Support/Glyph.swift) is either a system symbol or one of these; Icons.symbol answers one (and filled: for a heart or star given, in place of ActionButton's + ".fill"), as do ResolvedState's roles and ResolvedIcon's names. A pull's and an issue's states, the fork stat, and the issue, pull and repo menu marks use the Octicons; checks' states and everything else keep their SF Symbols. Each symbol was made from knotless's Octicon SVG by SwiftDraw, at the small scale Xcode draws the medium and large from (Glyph.swift gives the command); with the medium alone, a pill's or a stat's symbol drew nothing.

Web. icons.ts keeps Lucide's stroke icons in ICONS and holds the same Octicons, filled on their 16-unit grid, in OCTICONS; IconName and isIcon cover both. A new Glyph.svelte draws either inside its caller's 24-unit <svg>, an Octicon filled and scaled to the 20 units Lucide's strokes span, so no caller's size or CSS changes. Stat, ActionButton, the tree's Icon, StateView and FeedContextView draw through it. The closed-issue icon's key is issueClosed (it was done; only StateView named it).

Why

A reader of knotless's pulls and issues in HUD should see the marks they know from knotless. SF Symbols has no git glyphs, and HUD's web drew Lucide's, so the two clients disagreed with knotless and with each other.

How it was checked

  • iOS: just ios-test passes; the app built and drawn on an iPhone 17 Pro simulator from the gallery (-gallery knotless-app, knotless-items, knotless-actor-items, knotless-thread, knotless-repo, knotless-notifications); the compiled catalog holds the eight as vector glyphs (assetutil).
  • Web: npm run check (svelte-check, 0 errors), just lint, and node harness/gallery.mjs --shot: every tile drew, the knotless tiles looked at in phone light and dark.
  • Nothing in Rust changed; just cov, clippy and the e2e runs are left to CI.

Shortcomings

  • The workspace's own chrome (web/workspace/lib/icons.ts, and iOS's TileNames.symbol) still uses Lucide's and SF's for a tile's kind, shown only where an app has no favicon of its own.
  • A custom symbol has one weight: an Octicon in semibold text is drawn as in regular.
  • The pictures were not critiqued by a second agent.

octicons.png

Approved

This swaps the git marks (pull, draft, merge, closed pull, open and closed issue, repo, fork) to Octicons on both clients. iOS uses a new Glyph enum and an asset catalog of custom symbols. The web uses OCTICONS and a Glyph.svelte that draws either set inside the caller's 24-unit svg.

I found no bugs in the Swift or Svelte code.

  • Every iOS call site now takes the Glyph type.
  • The old + ".fill" logic is kept as filled:.
  • On the web, no ICONS[...] lookup is left that could receive an Octicon name. The remaining direct ICONS uses (Lightbox and the compose fields) only use x and plus.
  • The done key was renamed to issueClosed in its one user, StateView.

I did not read the eight SVGs or their Contents.json files. They are generated assets, and the PR says the compiled catalog was checked with assetutil.

One small doc follow-up: AGENTS.md's "Icons" bullet says "Lucide's". That still holds for the workspace chrome, but the renderer now also carries Octicons. You could add a short note there.

Merged as de739e8