Skip to content

[6.x] Show workflow stage type icons in the picker - #20660

Merged
riasvdv merged 2 commits into
6.xfrom
fix/workflow-stage-type-icons
Nov 13, 2026
Merged

riasvdv merged 2 commits into
6.xfrom
fix/workflow-stage-type-icons

Conversation

@riasvdv

@riasvdv riasvdv commented Nov 13, 2026

Copy link
Copy Markdown
Contributor

Description

 User Review stage
+  implements Iconic → user-magnifying-glass
 Stage type picker
-  always shows plus
+  shows the type's icon, or plus when no icon is available

The base stage class and interface are unchanged, so plugin stage types do not need to implement Iconic.

Evidence

  • Before: the PHP regression failed because icon was missing from the stage type payload. The picker regression expected user-magnifying-glass but received plus.
    After: all 59 workflow PHP tests and 39 workflow frontend tests pass, including the icon and fallback checks.
  • Checked the real picker in Chromium: both SVGs render, keyboard navigation and stage creation work, icons remain decorative, and labels remain accessible. Also inspected 320px reflow and forced-colors rendering with visible focus. Axe reported no picker violations, with one contrast check left incomplete.
  • composer ci passes: Pint, Rector, PHPStan, 12,623 core tests passed with 25 skipped, and 1,018 adapter tests passed with 9 skipped. TypeScript, frontend lint/format checks, and the production build also pass.

Before, from the reported screenshot:

Before: generic plus icon

After, light and dark themes:

After: User Review icon and fallback, light
After: User Review icon and fallback, dark

riasvdv and others added 2 commits November 13, 2026 08:28
Keep Iconic optional for workflow stages and give User Review its user-magnifying-glass icon.

Amp-Thread-ID: https://ampcode.com/threads/T-01a1d3f3-a29b-7489-ace2-82616452f915
Co-authored-by: Amp <amp@ampcode.com>
Reference #20660 in the Craft 6 release notes.

[ci skip]

Amp-Thread-ID: https://ampcode.com/threads/T-01a1d3f3-a29b-7489-ace2-82616452f915
Co-authored-by: Amp <amp@ampcode.com>
@github-actions

Copy link
Copy Markdown

📚 Storybook previews

@craftcms/ui — open Storybook

No changed components detected in this Storybook.

resources/js — open Storybook

No changed components detected in this Storybook.

@riasvdv
riasvdv merged commit e9cfc9c into 6.x Nov 13, 2026
@riasvdv
riasvdv deleted the fix/workflow-stage-type-icons branch November 13, 2026 08:46
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