Skip to content

fix(apollo-react): use icon registry icons for resource node toolbar [AG-771]#280

Open
akraminakib wants to merge 1 commit intomainfrom
AG-771
Open

fix(apollo-react): use icon registry icons for resource node toolbar [AG-771]#280
akraminakib wants to merge 1 commit intomainfrom
AG-771

Conversation

@akraminakib
Copy link
Member

@akraminakib akraminakib commented Feb 28, 2026

https://uipath.atlassian.net/browse/AG-771

Summary

Fixes two bugs in the ResourceNode toolbar:

  1. Toolbar showing on placeholder nodes — Placeholder items (empty slots) were incorrectly displaying a toolbar as if they were selected resources. The standalone placeholder check had been removed previously, causing the toolbar to render for non-suggestion placeholders. Re-introduced a guard that returns null for placeholder nodes unless they are active suggestions.

  2. Inconsistent toolbar icons — Resource node toolbar actions used plain string icon names ('close', 'check', 'delete') which rendered differently from the sticky notes toolbar. Replaced them with <NodeIcon> components using the icon registry (X, check, trash at size 14), matching the pattern already used by sticky notes. Also aligned the ExecutionStatusIcon size from 16 → 14 for consistency.

Changes

  • ResourceNode.tsx — Single file change:
    • Added NodeIcon import from canvas utils
    • Combined view mode and placeholder guards into a single early return
    • Replaced string icon values with <NodeIcon> components for reject, accept, and remove actions

Testing

  • Verified in Storybook across resource node states (default, selected, placeholder, suggestion)
  • Screen recording attached
AG-771.mov

@akraminakib akraminakib added the dev-packages Adds dev package publishing on pushes to this PR label Feb 28, 2026
@github-actions
Copy link

github-actions bot commented Feb 28, 2026

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

Project Deployment Review Updated (PT)
apollo-canvas 🟢 Ready Preview, Logs Feb 27, 2026, 11:24:44 PM
apollo-ui-react 🟢 Ready Preview, Logs Feb 27, 2026, 11:23:50 PM
apollo-vertex 🟢 Ready Preview, Logs Feb 27, 2026, 11:23:23 PM
apollo-wind 🟢 Ready Preview, Logs Feb 27, 2026, 11:22:31 PM

@github-actions
Copy link

github-actions bot commented Feb 28, 2026

Dependency Review

✅ No vulnerabilities or license issues or OpenSSF Scorecard issues found.

Scanned Files

None

@github-actions
Copy link

github-actions bot commented Feb 28, 2026

📦 Dev Packages

Package Status Updated (PT)
@uipath/apollo-react@3.45.1-pr280.c6309e0 🟢 Published Feb 27, 2026, 11:24:43 PM

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dev-packages Adds dev package publishing on pushes to this PR

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant