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 solidstop. - Context:
context.md
Exploration and decisions
- Two new icons,
Iconunchanged. One local wrapper (Icon.tsx) renders the two new names with v2'sIconmarkup and passes every other name (includingzappyandsparklesSolid) to the publishedIcon. The port deletes the wrapper. - Both are Font Awesome registry entries in the port, not hand paths.
microphoneLinesis FAregular(faMicrophoneLines),stopis FAsolid(faStop). The paths inIcon.tsxare only there so the Storybook proposals render before the registry has them. - Own
sparklesSolidremoved (2026-11-20). It shadowed the package icon. Every user of the name now renders the package glyph. Seedecisions.md. Iconconsumers 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
Iconfor every existing name, includingzappyandsparklesSolid. - Net-new: two icon names (
microphoneLines,stop); no component, class or variable. Seecustom.md.
Accessibility
- The markup matches v2's
Icon:aria-hidden='true'withfocusable='false', so a decorative icon is not announced. An icon that carries meaning on its own needs a label from its parent (a button'saria-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 addingfaMicrophoneLinesas a registry entry is consistent and avoids a hand-copied glyph.stopis Free solid. - Optical balance at
xsto4xlnext 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:tokenswarns aboutstyle={{ display, verticalAlign, ...style }}inIcon.tsx. It is copied from v2's ownIconmarkup 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'] }andstop: { 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.
microphoneLinesandstopfollow the camelCase registry convention.stopis 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(FAregular,faMicrophoneLines) andstop(FAsolid,faStop) toicon-registry.tsinsrc/components/icons/Icon/and runnpm run generate:icon-data. No custom path data. - Delete the local
Iconwrapper (proposals/Icon/Icon.tsx). The proposals that import it switch to the realIcon. - Port this first: IconButton
isWorkingneedsstop, and Composer needsmicrophoneLines. Seedocs/PORT-ORDER.md.
Preview
npm run storybook, then Component Proposals/Icon.
Figma: https://www.figma.com/design/AMGWJbraJoi2PKWnxo29Ah/PDS-Proposals?node-id=374-47