Skip to content

Adopt d41sys/ours icon system (brand pipeline, two-tone shelves, 16px starters) in window/ui and native - #387

Merged
d41sys merged 1 commit into
mainfrom
ours-icon-system
Dec 4, 2026
Merged

d41sys merged 1 commit into
mainfrom
ours-icon-system

Conversation

@d41sys

@d41sys d41sys commented Dec 4, 2026

Copy link
Copy Markdown
Owner

Summary

Brings all three custom icon layers from d41sys/ours on top of lucide-react into both window/ui and native (weft):

  1. Offline brand-icon pipeline (simple-icons dev-only generator):
    • Added simple-icons as a devDependency in window/ui/package.json plus npm run build:brand-icons (window/ui/scripts/build-brand-icons.mjs + window/ui/src/brandSlugs.ts).
    • Generates 45 bundled monochrome 24×24 SVG paths from one source of truth into window/ui/src/brandIcons.generated.ts and native/src/brand_icons_data.rs (zero runtime dependencies, zero network calls, build-time slug validation).
    • Added BrandIcon / BrandGlyph / TrademarkNote (window/ui/src/BrandIcon.tsx, native/src/brand_icons.rs) with initials monogram fallback, wired into:
      • Connectors (installed rows + connector catalog + trademark notice)
      • Channels (Telegram, Discord glyphs)
      • Bot Settings -> Engine & Adapters (Claude Code, Codex, opencode, Gemini CLI)
  2. Two-tone active-fill sidebar shelf & action marks:
    • Added window/ui/src/ShelfIcons.ts (ActivityShelfIcon, ProjectShelfIcon, AddonsShelfIcon, SettingsShelfIcon, NewTalkIcon) with .bate-shelf-fill (16% currentColor wash when active) and .bate-duo, mirrored in native/src/icons.rs (Shelf + sign_shelf, two-tone Glyph::NewConversation) and native/src/view.rs.
  3. 16×16 pixel-snapped empty-conversation starter marks:
    • Added window/ui/src/StarterIcons.ts (PlanTaskMark, ExplainFileMark, ReviewChangesMark, WriteDraftMark) drawn at 1:1 on a 16×16 grid with 1.2px strokes, mirrored in native/src/icons.rs (StarterMark + sign_starter) and native/src/starters.rs.

Evidence

  • Visually inspected rendered native GPU snapshots in light and dark mode (connectors, connectors-catalog, channels, and later-starters) — confirmed crisp stepped brand tiles, Telegram/Discord glyphs, active shelf wash, and 16px starter marks.
  • Updated only the affected native golden snapshots (.tree + paired .png for connectors, channels, menu-addons, and starter PNGs) and updated native/tests/addons_metrics.rs to verify the brand-mark width and gap against window/ui/src/style.css.
  • Full 4-step gate passed cleanly:
    • cd window/ui && npm run build && npm test (146/146 tests including brandIcons.test.ts, style.test.ts, tokens.test.ts)
    • cargo fmt --all --check
    • cargo clippy --workspace --all-targets --locked -- -D warnings
    • cargo test --workspace --locked

Merge Danger

  • Low: purely visual/UI icon additions in window/ui and native; no protocol, daemon, sandbox, or runtime dependency changes (simple-icons is a devDependency only).

Device decision

  • No window protocol or LAN/device surface changes; all bundled icons render offline on both desktop and paired phone clients without external requests.

Brings all three custom icon layers from d41sys/ours on top of lucide-react
to both window/ui and native (weft):

1. Offline brand-icon pipeline (dev-only simple-icons generator):
   - window/ui/scripts/build-brand-icons.mjs reads src/brandSlugs.ts and
     emits 45 monochrome 24x24 marks into both window/ui/src/brandIcons.generated.ts
     and native/src/brand_icons_data.rs (single source of truth, zero runtime
     dependencies, zero network calls).
   - Wired BrandIcon/BrandGlyph and TrademarkNote into Connectors, Connector
     Catalog, Channels (Telegram, Discord), and Engine/Adapter rows (Claude
     Code, Codex, opencode, Gemini CLI) in both window/ui and native.

2. Two-tone active-fill sidebar shelf & action marks:
   - window/ui/src/ShelfIcons.ts (createLucideIcon with .bate-shelf-fill 16%
     active wash and .bate-duo) and matching native/src/icons.rs Shelf enum +
     two-tone NewConversation glyph.

3. 16x16 pixel-snapped empty-chat starter marks:
   - window/ui/src/StarterIcons.ts and matching native/src/icons.rs StarterMark
     enum drawn 1:1 on a 16x16 grid with 1.2px strokes and subtle two-tone wash.
@d41sys
d41sys merged commit 1ac27a1 into main Dec 4, 2026
5 checks passed
@d41sys
d41sys deleted the ours-icon-system branch December 4, 2026 21:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant