← All proposals

Icon: agentic icons

Add the new sharp, solid sparkles glyph to the Icon set alongside zappy.

Extends a PDS componentOpen in Storybook

proposals/Icon/decisions.md21 lines · View on GitHub

Decisions

  • New icon, Icon unchanged. The proposal adds one icon name, sparklesSolid. zappy already exists in v2 (custom, 374x512) and is shown beside it.
  • Name sparklesSolid, per v2's {name}Solid convention next to the existing sparkles. Open: that name says "solid" not "sharp"; rename if the sharp style should be visible in the name.
  • Custom path, not an FA registry entry. v2's registry only takes FA styles regular, solid and brands; the supplied glyph is FA's sharp solid, so it goes in custom-icons.tsx as a type: 'path' icon.
  • Path normalised to v2's custom icon rules: the FA 640x640 box was cropped to the glyph bounds, scaled to 512 height (x0.8649), origin moved to 0,0, rounded to 2 decimals. Result: viewBox 0 0 519 512, one path, fill="currentColor" added at render time. The three sparkles (one large, two small) are kept as a single compound path.
  • Local Icon wrapper copies the v2 Icon markup for the new name and passes every other name to the published Icon. The port puts the path data in custom-icons.tsx and the registry and deletes the wrapper.
  • Registry entry to add (suggested): sparklesSolid: { source: 'custom', aliases: ['ai', 'agent', 'third-party', 'magic'], categories: ['custom', 'status'] }, matching zappy's categories. Confirm.
  • Licence: the path comes from Font Awesome Pro (commercial licence, per the SVG header). v2 already extracts FA Pro paths into generated-icon-data.ts, so this is consistent, but the engineer should confirm the licence covers a hand-copied glyph.
  • Optical balance still to check at xs to 4xl next to FA icons (v2 icon guidelines).
  • microphoneLines added for the Composer proposal (voice button). Font Awesome Pro regular microphone-lines, from Erika's Figma export Vector.svg (12x16, no padding), scaled x32 to 384x512 so it is 512 high and starts at 0,0 like v2's other icons. An earlier version used FA 7's padded 640x640 box, which rendered smaller than the rest. Same glyph either way, so the port can add it as an FA registry entry (faMicrophoneLines, style regular) and let v2 extract it. Not agentic; staged here with the new icons.
  • IconButton uses this local Icon wrapper (../Icon/Icon) so the new icons work in icon buttons. Its iconName type widens to include them.

2026-11-20: own sparklesSolid removed, set narrowed to two icons

  • Decision: delete our sparklesSolid entry from agenticIcons in Icon.tsx and narrow NewIconName to 'microphoneLines' | 'stop'. The package glyph (Font Awesome faSparkles, solid, icon-registry.ts) now renders everywhere the name is used.
  • Why: the package already has sparklesSolid (checked at v2.0.0-beta.21); our hand path shadowed it under the same name (lesson L8). The earlier bullets above that call it new and describe its sharp path are superseded. Everything else about the wrapper is unchanged.
  • Real set: two icons, microphoneLines (FA regular faMicrophoneLines) and stop (FA solid faStop). Earlier text saying "one addition" or "two icons" meant different sets; this is the set.
  • Port impact: smaller. The engineer adds two FA registry entries and runs npm run generate:icon-data; no custom path data, no custom-icons.tsx change. Users of sparklesSolid (ChainOfThought, AgentTree, LabeledDivider, Event Log, _implemented/*) render the package glyph; none needs a code change.
  • stop added to the records. It was in Icon.tsx and in the IconButton decisions but missing from this proposal's handoff and custom.md; both now list it.