Skip to content

Replace icon library with Solar Icons (linear style, stroke 1.8) in window/ui and native - #388

Merged
d41sys merged 1 commit into
mainfrom
solar-linear-icons
Dec 4, 2026
Merged

d41sys merged 1 commit into
mainfrom
solar-linear-icons

Conversation

@d41sys

@d41sys d41sys commented Dec 4, 2026

Copy link
Copy Markdown
Owner

Summary

  • Replaced lucide-react and inline Lucide SVGs across both window/ui and native with Solar Icons (linear style, stroke-width: 1.8) generated from a single build-time source (@iconify-json/solar, devDependency only).
  • Added window/ui/src/solarSlugs.ts and window/ui/scripts/build-solar-icons.mjs (npm run build:solar-icons), generating 35 UI glyphs and 25 bot avatar icons into both window/ui/src/solarIcons.generated.ts and native/src/solar_icons_data.rs with stroke-width: 1.8 normalized across every icon.
  • Removed lucide-react from window/ui/package.json runtime dependencies (Vite transformed modules dropped from 2,690 to 551).
  • Switched all window/ui components, style.css (svg.solar, stroke-width: 1.8), native/src/icons.rs, native/src/avatars.rs, native/src/view.rs, and native/src/starters.rs to the generated Solar Linear icons while preserving the offline simple-icons brand marks for connectors, channels, and agents.
  • Added unit tests in window/ui/src/solarIcons.test.ts, native/src/icons.rs, and native/src/avatars.rs asserting -linear slugs, stroke-width: 1.8, and valid SVG parsing.

Evidence

  • Visually verified rendered Solar Linear screenshots for the 25-icon bot picker (native-bot-settings-paused-light, native-newbot-light), sidebar shelves, avatars, and starter cards.
  • Updated only the 4 icon-picker golden PNG snapshots whose pixel diff exceeded 0.5% (bot_settings and nav) and updated native/tests/later_starters_metrics.rs for svg.solar.
  • Full 4-step gate passed cleanly:
    • cd window/ui && npm run build && npm test (147/147 tests)
    • cargo fmt --all --check
    • cargo clippy --workspace --all-targets --locked -- -D warnings
    • cargo test --workspace --locked

Merge Danger

  • Low: icon-only migration across window/ui and native; removes runtime lucide-react dependency and replaces it with zero-dependency generated React/Rust SVG modules. No protocol, daemon, or sandbox changes.

Device decision

  • No window protocol or LAN/device surface changes; all Solar Linear icons are bundled inline and render offline on desktop and paired phone clients.

Replaces lucide-react and inline Lucide SVGs across both window/ui and
native with Solar Icons (linear style, stroke-width 1.8) generated from
a single build-time source (@iconify-json/solar devDependency):

- window/ui/src/solarSlugs.ts + window/ui/scripts/build-solar-icons.mjs
  generate 35 UI glyphs and 25 bot avatar icons at stroke-width 1.8 into
  both window/ui/src/solarIcons.generated.ts and native/src/solar_icons_data.rs.
- Removes lucide-react from runtime dependencies (Vite modules: 2690 -> 551).
- Updates window/ui components and style.css (svg.solar, stroke-width 1.8),
  native/src/icons.rs, native/src/avatars.rs, native/src/view.rs, and
  native/src/starters.rs.
- Keeps bundled offline simple-icons brand marks for connectors, channels,
  and installed agents.
- Updates the 4 icon-picker golden PNG snapshots and later_starters_metrics.
@d41sys
d41sys merged commit 5f8c66a into main Dec 4, 2026
5 checks passed
@d41sys
d41sys deleted the solar-linear-icons branch December 4, 2026 22:29
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