← 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/HANDOFF.md102 lines · View on GitHub

Handoff: Icon (microphoneLines, stop)

Rewritten 2026-11-20 against v2.0.0-beta.21 to the lessons template.

What and why

The Composer needs a voice button (microphoneLines) and the send button needs a stop state while a response runs (stop, used by Icon Button isWorking). Neither icon is in the PDS v2 registry at beta.21. This proposal adds those two icon names. Icon itself does not change.

zappy (PDS agents) and sparklesSolid (other, third-party agents) are both already in the package (sparklesSolid is Font Awesome faSparkles, solid). This proposal used to ship its own sharp sparklesSolid glyph under the same name; on 2026-11-20 that was removed, so the package glyph renders everywhere.

  • Figma / Jira: none. The microphone path comes from a Figma export (Vector.svg); the stop path is the Font Awesome Free solid stop.
  • Context: context.md

Exploration and decisions

  • Two new icons, Icon unchanged. One local wrapper (Icon.tsx) renders the two new names with v2's Icon markup and passes every other name (including zappy and sparklesSolid) to the published Icon. The port deletes the wrapper.
  • Both are Font Awesome registry entries in the port, not hand paths. microphoneLines is FA regular (faMicrophoneLines), stop is FA solid (faStop). The paths in Icon.tsx are only there so the Storybook proposals render before the registry has them.
  • Own sparklesSolid removed (2026-11-20). It shadowed the package icon. Every user of the name now renders the package glyph. See decisions.md.
  • Icon consumers in this repo (IconButton, MenuButton, ThinkingState, Event Log and others) import the local wrapper so the two new names work.

API

Icon keeps the v2 API. The only change is the type of iconName, which widens to include the two new names.

Prop Type Default Purpose
iconName PDSIcon | 'microphoneLines' | 'stop' required Which icon to render.
size v2 icon sizes 'xl' Unchanged from v2.
display, verticalAlign, className, style as v2 as v2 Unchanged from v2.

Variants and states: both new icons (plus zappy and sparklesSolid for comparison) at every size (xs to 4xl). After the port there is no Icon API change at all: the two names are registry entries.

Tokens used

None. The icons are currentColor paths.

Impact

From impact.md: nothing reaches existing components; the change is two new names. It is the most depended-on proposal here: AgentAvatar, ChainOfThought, CodeDiff, IconButton, LabeledDivider, MenuButton, Panel, SuggestionCard, ThinkingState and Event Log use it directly, and the rest reach it through them. Port it first.

Reused vs net-new

  • Reused: the published Icon for every existing name, including zappy and sparklesSolid.
  • Net-new: two icon names (microphoneLines, stop); no component, class or variable. See custom.md.

Accessibility

  • The markup matches v2's Icon: aria-hidden='true' with focusable='false', so a decorative icon is not announced. An icon that carries meaning on its own needs a label from its parent (a button's aria-label, for example), as with any v2 icon.
  • Not checked: no axe-core or a11y panel run was done in this rewrite. An earlier run (before this rewrite) found no violations on the Default and All sizes stories in light and dark; re-run it before the port.

Decisions and open questions

  • Licence (recommendation: confirm, then proceed). The microphone path is Font Awesome Pro regular. v2 already extracts FA Pro paths into generated-icon-data.ts, so adding faMicrophoneLines as a registry entry is consistent and avoids a hand-copied glyph. stop is Free solid.
  • Optical balance at xs to 4xl next to Font Awesome icons: not checked by eye in a session. Recommendation: once they are FA registry entries the engineer's generator produces the metrics, so check them there.
  • Inline style warning. npm run check:tokens warns about style={{ display, verticalAlign, ...style }} in Icon.tsx. It is copied from v2's own Icon markup so the new icons size and align the same way, and goes away when the wrapper is deleted in the port.
  • Registry entries (recommendation): microphoneLines: { source: 'fa', style: 'regular', faImportName: 'faMicrophoneLines', categories: ['communication', 'media'] } and stop: { source: 'fa', style: 'solid', faImportName: 'faStop', categories: ['media', 'actions'] }. Aliases and categories are suggestions; confirm against the existing icon categories.

Extension or new component

Not a component. Two new names in the existing Icon registry. The human icons and their stories are untouched.

Footprint

Nothing draws outside the box. Each icon is a single currentColor path inside its own viewBox (microphoneLines 384 x 512, stop 512 x 512), so a parent cannot clip anything. Because the glyph widths differ from height, microphoneLines is narrower than a square icon of the same size, as other FA icons are.

Dark mode and per-size values

Single glyph per icon, no per-size paths and no per-theme override: color is currentColor, so it follows the surrounding text color in light and dark. Size comes from the existing pds-icon--<size> classes (xs to 4xl), unchanged from v2.

Icon viewBox Source Per-size or per-theme values
microphoneLines 384 x 512 Font Awesome Pro regular none
stop 512 x 512 Font Awesome Free solid none

Expect to change

  • The wrapper and the paths go away. The engineer adds two registry entries and runs npm run generate:icon-data; recommendation: agree, nothing here is meant to survive.
  • Names. microphoneLines and stop follow the camelCase registry convention. stop is generic; recommendation: keep it, it is what FA calls it.

Target-version check

Checked against .pds-reference/src at v2.0.0-beta.21 (2026-11-20):

Item In the package at beta.21?
sparklesSolid yes (icon-registry.ts, FA solid faSparkles); our copy removed
zappy yes (custom icon)
microphoneLines no (grep for microphone finds nothing)
stop no (grep for faStop finds nothing)

Port notes

  • Add microphoneLines (FA regular, faMicrophoneLines) and stop (FA solid, faStop) to icon-registry.ts in src/components/icons/Icon/ and run npm run generate:icon-data. No custom path data.
  • Delete the local Icon wrapper (proposals/Icon/Icon.tsx). The proposals that import it switch to the real Icon.
  • Port this first: IconButton isWorking needs stop, and Composer needs microphoneLines. See docs/PORT-ORDER.md.

Preview

npm run storybook, then Component Proposals/Icon.

Figma: https://www.figma.com/design/AMGWJbraJoi2PKWnxo29Ah/PDS-Proposals?node-id=374-47