Skip to content

Remove @bentley/icons-generic from test-app - #1613

Merged
GerardasB merged 4 commits into
masterfrom
gerardas/remove-svgs
Sep 8, 2026
Merged

GerardasB merged 4 commits into
masterfrom
gerardas/remove-svgs

Conversation

@GerardasB

@GerardasB GerardasB commented Sep 8, 2026

Copy link
Copy Markdown
Collaborator

Changes

Extracted from #1587

This PR removes custom SVG usage from test-app:

Testing

N/A

@GerardasB
GerardasB requested a review from a team as a code owner September 8, 2026 07:41
@GerardasB GerardasB self-assigned this Sep 8, 2026

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.

🟢 Approval recommended

The dependency removal is complete (no remaining @bentley/icons-generic references found) and all replaced icon usages resolve to existing local assets or iTwinUI icon components.

Pull request overview

This PR removes the @bentley/icons-generic package from the workspace (notably apps/test-app) by eliminating remaining imports of Bentley-generic SVGs and replacing them with iTwinUI icon components or local assets, and cleaning up now-unused SVG/tool code.

Changes:

  • Removed @bentley/icons-generic from the workspace catalog, lockfile, and affected package dependencies.
  • Replaced usages of Bentley-generic/custom SVG imports with @itwin/itwinui-icons-react icons (and a local Storybook placeholder asset).
  • Deleted unused tools and SVG assets that were only supporting the removed icon usage.
File summaries
File Description
pnpm-workspace.yaml Removes @bentley/icons-generic from the workspace catalog.
pnpm-lock.yaml Updates lockfile to remove @bentley/icons-generic entries across importers/packages.
docs/storybook/src/components/ToolbarComposer.stories.tsx Switches placeholder SVG import to a local Storybook asset.
docs/storybook/package.json Drops @bentley/icons-generic dependency from Storybook package.
apps/test-providers/src/ui/providers/CustomContentStageUiProvider.tsx Replaces custom SVG icon usage with an iTwinUI icon component.
apps/test-providers/src/ui/icons/visibility-semi-transparent.svg Removes unused custom SVG asset.
apps/test-providers/src/ui/icons/connected-query.svg Removes unused custom SVG asset.
apps/test-providers/src/tools/ToolWithDynamicSettings.tsx Replaces custom SVG tool icon with an iTwinUI icon via ToolUtilities.defineIcon.
apps/test-providers/src/tools/SampleTool.tsx Replaces custom SVG tool icon with an iTwinUI icon via ToolUtilities.defineIcon.
apps/test-providers/src/tools/SampleTool.svg Removes unused custom SVG tool icon asset.
apps/test-providers/src/tools/OpenSynchronizedViewTool.tsx Replaces Bentley-generic SVG icon with iTwinUI icon via ToolUtilities.defineIcon.
apps/test-providers/src/tools/OpenPopoutViewTool.tsx Replaces Bentley-generic SVG icon with iTwinUI icon via ToolUtilities.defineIcon.
apps/test-providers/src/tools/OpenPopoutDialogTool.tsx Replaces Bentley-generic SVG icon with iTwinUI icon via ToolUtilities.defineIcon.
apps/test-providers/src/tools/OpenCustomDialogTool.tsx Replaces custom SVG icon with iTwinUI icon via ToolUtilities.defineIcon.
apps/test-providers/src/tools/InspectUiItemInfoTool.tsx Replaces Bentley-generic SVG icon with iTwinUI icon via ToolUtilities.defineIcon.
apps/test-providers/src/tools/GenericLocateTool.ts Removes unused tool that depended on custom SVG icon.
apps/test-providers/src/tools/generic-tool.svg Removes unused custom SVG tool icon asset.
apps/test-providers/src/tools/DynamicTool.svg Removes unused custom SVG tool icon asset.
apps/test-providers/src/tools/ContentLayoutTools.tsx Replaces Bentley-generic SVG icons with iTwinUI icons via ToolUtilities.defineIcon.
apps/test-providers/src/appui-test-providers.ts Stops exporting the removed GenericLocateTool.
apps/test-providers/public/locales/en/AppuiTestProviders.json Removes localization entries for the removed tool.
apps/test-providers/package.json Drops @bentley/icons-generic dependency from test-providers package.
apps/test-app/src/frontend/appui/icons/rotate.svg Removes unused custom SVG asset.
apps/test-app/src/frontend/appui/icons/filter.svg Removes unused custom SVG asset.
apps/test-app/src/frontend/appui/icons/filter-outlined.svg Removes unused custom SVG asset.
apps/test-app/src/frontend/appui/icons/draw.svg Removes unused custom SVG asset.
apps/test-app/package.json Drops @bentley/icons-generic dependency from test-app package.
Review details

Files not reviewed (1)

  • pnpm-lock.yaml: Generated file
  • Files reviewed: 17/28 changed files
  • Comments generated: 0
  • Review effort level: Lite

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

@GerardasB
GerardasB merged commit 75ce4a2 into master Sep 8, 2026
19 of 20 checks passed
@GerardasB
GerardasB deleted the gerardas/remove-svgs branch September 8, 2026 08:21
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.

2 participants