Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add ToolUtilities to define tool icon as a React element #1150

Merged
merged 11 commits into from
Dec 11, 2024
Merged

Conversation

GerardasB
Copy link
Collaborator

@GerardasB GerardasB commented Dec 11, 2024

Changes

Add ToolUtilities.defineIcon helper that defines an icon as a React element for a given ToolType.

For additional information and usage notes see NextVersion.md

Testing

Added additional unit tests and tested via test-app.

@GerardasB GerardasB requested a review from a team as a code owner December 11, 2024 10:10
@GerardasB GerardasB enabled auto-merge (squash) December 11, 2024 13:35
@GerardasB GerardasB self-assigned this Dec 11, 2024
@GerardasB GerardasB added the minor Changes in this PR requires creating a minor release label Dec 11, 2024
@GerardasB
Copy link
Collaborator Author

@Mergifyio backport release/5.0.x

Copy link
Contributor

mergify bot commented Dec 11, 2024

backport release/5.0.x

✅ Backports have been created

@GerardasB GerardasB disabled auto-merge December 11, 2024 15:38
@GerardasB GerardasB merged commit 87ca8e3 into master Dec 11, 2024
21 checks passed
@GerardasB GerardasB deleted the tool-icons branch December 11, 2024 15:38
mergify bot pushed a commit that referenced this pull request Dec 11, 2024
* Add ToolUtilities

* Update Tool types to include iconElement property.

* NextVersion.md

* Add note

* Extract API

* Add unit tests

* Update test

* rush change

* Update snaps

(cherry picked from commit 87ca8e3)

# Conflicts:
#	docs/changehistory/NextVersion.md
#	ui/appui-react/src/appui-react/toolbar/ToolbarItemUtilities.tsx
GerardasB added a commit that referenced this pull request Dec 11, 2024
…1150) (#1152)

* Add `ToolUtilities` to define tool icon as a React element (#1150)

* Add ToolUtilities

* Update Tool types to include iconElement property.

* NextVersion.md

* Add note

* Extract API

* Add unit tests

* Update test

* rush change

* Update snaps

(cherry picked from commit 87ca8e3)

# Conflicts:
#	docs/changehistory/NextVersion.md
#	ui/appui-react/src/appui-react/toolbar/ToolbarItemUtilities.tsx

* Fix merge issues

---------

Co-authored-by: GerardasB <[email protected]>
@GerardasB GerardasB linked an issue Dec 16, 2024 that may be closed by this pull request
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
minor Changes in this PR requires creating a minor release
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Support IconSpec type in Tool.iconSpec instead of string
2 participants