Skip to content

feat(apollo-react): register case-management canvas icon [MST-11838]#884

Merged
uipath-utkarsh merged 1 commit into
mainfrom
feat/case-management-icon-registry
Jul 4, 2026
Merged

feat(apollo-react): register case-management canvas icon [MST-11838]#884
uipath-utkarsh merged 1 commit into
mainfrom
feat/case-management-icon-registry

Conversation

@uipath-utkarsh

@uipath-utkarsh uipath-utkarsh commented Jul 4, 2026

Copy link
Copy Markdown
Contributor

Jira: MST-11838 — Use case management icon from apollo

What

Adds a 'case-management' entry to the canvas getIcon registry, mapping it to the existing CaseManagementProject icon component.

Why

CaseManagementProject already ships from @uipath/apollo-react/canvas/icons and is used directly by TaskIcon (TaskItemTypeValues.CaseManagement), but it was never wired into the string-keyed iconRegistry in icon-registry.tsx. So consumers that resolve icons by id — Flow's node manifests declare display.icon as a string — had no id that resolves to it; 'case-management' fell through to the generic Box/Lucide fallback.

This adds the one registry entry, alongside its sibling project icons (flow-project, agentic-process, rpa), using the same default sizing (w ?? 29, h ?? 28).

Downstream

Flow Workbench currently works around this gap with a canvas-side resolution overlay. Once this lands and is consumed, that overlay can be simplified to a plain getIcon('case-management').

Testing

  • Added an icon-registry.test.tsx case asserting getIcon('case-management') renders the CaseManagementProject SVG (matched by its #case-management-project id) rather than a Lucide fallback — mirrors the existing registry test pattern.
  • biome format + biome lint clean; full icon-registry.test.tsx suite passes (5/5).

🤖 Generated with Claude Code

The CaseManagementProject icon shipped in canvas/icons but was never wired into the getIcon registry, so 'case-management' fell back to a generic box/Lucide glyph. Map it like its sibling project icons (flow-project, agentic-process) so string-driven consumers resolve the real icon.
Copilot AI review requested due to automatic review settings July 4, 2026 14:15
@github-actions

github-actions Bot commented Jul 4, 2026

Copy link
Copy Markdown
Contributor

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Review Updated (PT)
apollo-design 🟢 Ready Preview, Logs Jul 04, 2026, 07:18:47 AM
apollo-docs 🟢 Ready Preview, Logs Jul 04, 2026, 07:18:47 AM
apollo-landing 🟢 Ready Preview, Logs Jul 04, 2026, 07:18:47 AM
apollo-vertex 🟢 Ready Preview, Logs Jul 04, 2026, 07:18:47 AM

@github-actions

github-actions Bot commented Jul 4, 2026

Copy link
Copy Markdown
Contributor

Dependency License Review

  • 1945 package(s) scanned
  • ✅ No license issues found
  • ⚠️ 2 package(s) excluded (see details below)
License distribution
License Packages
MIT 1715
ISC 89
Apache-2.0 55
BSD-3-Clause 27
BSD-2-Clause 23
BlueOak-1.0.0 8
MPL-2.0 4
MIT-0 3
CC0-1.0 3
MIT OR Apache-2.0 2
(MIT OR Apache-2.0) 2
Unlicense 2
LGPL-3.0-or-later 1
Python-2.0 1
CC-BY-4.0 1
(MPL-2.0 OR Apache-2.0) 1
Unknown 1
Artistic-2.0 1
(WTFPL OR MIT) 1
(BSD-2-Clause OR MIT OR Apache-2.0) 1
CC-BY-3.0 1
0BSD 1
(MIT OR CC0-1.0) 1
MIT AND ISC 1
Excluded packages
Package Version License Reason
@img/sharp-libvips-linux-x64 1.2.4 LGPL-3.0-or-later LGPL pre-built binary, not linked
khroma 2.1.0 Unknown MIT per GitHub repo, missing license field in package.json

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Adds support for resolving the existing CaseManagementProject canvas icon via the string id 'case-management', so consumers that look up icons by id (e.g., Flow manifests) get the intended UIPath SVG instead of the Lucide Box fallback.

Changes:

  • Register 'case-management' in the canvas iconRegistry, mapped to Icons.CaseManagementProject with the same default sizing as sibling project icons.
  • Add a Vitest test asserting getIcon('case-management') renders the CaseManagementProject SVG (by #case-management-project).

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.

File Description
packages/apollo-react/src/canvas/utils/icon-registry.tsx Adds 'case-management'CaseManagementProject mapping in the UIPath icon registry.
packages/apollo-react/src/canvas/utils/icon-registry.test.tsx Adds coverage ensuring the new registry entry resolves to the UIPath SVG rather than a Lucide fallback.

@uipath-utkarsh uipath-utkarsh added the dev-packages Adds dev package publishing on pushes to this PR label Jul 4, 2026
@github-actions

github-actions Bot commented Jul 4, 2026

Copy link
Copy Markdown
Contributor

📦 Dev Packages

🧹 Dev packages cleaned up after PR close.

Last updated: 2026-07-04 10:05:31 PT

@github-actions

github-actions Bot commented Jul 4, 2026

Copy link
Copy Markdown
Contributor

📊 Coverage + size by package

Per-package coverage and bundle size on this PR. New-line coverage = of the source lines this PR adds or changes, the % hit by tests.

Package Coverage New-line coverage Packed (gzip) Unpacked vs main
@uipath/apollo-core 9.0% 43.82 MB 57.31 MB ±0
@uipath/apollo-react 34.5% 100.0% (1/1) 7.27 MB 27.60 MB +50 B
@uipath/apollo-wind 40.1% 392.6 KB 2.55 MB +9 B
@uipath/ap-chat 85.8% 43.41 MB 55.85 MB ±0

"Coverage" is each package's own coverage.include scope (e.g. apollo-core instruments only scripts/). "Packed"/"Unpacked" come from npm pack --dry-run and only cover built packages — "—" means not measured this run (package not affected / not built). "vs main" is the packed (gzipped) delta against the last successful main build (the package-sizes artifact from the Release workflow); "—" there means no main baseline was available this run. The baseline is main's latest build, not this PR's exact merge-base, so it includes any drift since the branch diverged. Packages with no vitest config are omitted.

@uipath-utkarsh uipath-utkarsh changed the title feat(apollo-react): register case-management canvas icon feat(apollo-react): register case-management canvas icon [MST-11838] Jul 4, 2026
@uipath-utkarsh uipath-utkarsh merged commit da4ee18 into main Jul 4, 2026
43 of 45 checks passed
@uipath-utkarsh uipath-utkarsh deleted the feat/case-management-icon-registry branch July 4, 2026 17:04
@uipath-utkarsh uipath-utkarsh removed the dev-packages Adds dev package publishing on pushes to this PR label Jul 4, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

pkg:apollo-react size:XS 0-9 changed lines.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants