-
Notifications
You must be signed in to change notification settings - Fork 227
PMM-15180 Replace local custom SVG icons with peak-ui and MUI components (2nd try) #5742
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
Merged
Merged
Changes from 10 commits
Commits
Show all changes
13 commits
Select commit
Hold shift + click to select a range
ee4420a
PMM-15180 Replace local custom icons with peak-ui and MUI
claude db68406
PMM-15180 Remove unused Icon import in AlertDetailsPane
pmcf-percona aa9c81e
PMM-15180 Update Vitest inline deps for @percona/peak-ui rename
pmcf-percona 1ad49d2
Merge branch 'main' into PMM-15180-replace-local-icons
pmcf-percona b81ee1a
Merge branch 'main' into PMM-15180-replace-local-icons
fabio-silva 48e36de
Merge branch 'main' into PMM-15180-replace-local-icons
pmcf-percona 1934888
Merge branch 'main' into PMM-15180-replace-local-icons
pmcf-percona 9a2eea3
Merge branch 'main' into PMM-15180-replace-local-icons
pmcf-percona 53e95ca
Merge branch 'main' into PMM-15180-replace-local-icons
claude 0446e5a
PMM-15180 Repoint Cursor styling rule at @percona/peak-ui
claude 51f1efa
PMM-15180 Size both auto-refresh bolt states alike
claude 2b760e0
PMM-15180 Point Peak UI links and paths at peak-ui
claude a69a901
PMM-15180 Keep compose and root AGENTS.md out of this PR
claude File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,76 +1,20 @@ | ||
| export const DYNAMIC_ICON_IMPORT_MAP = { | ||
| account: () => import('icons/account.svg?react'), | ||
| alerts: () => import('icons/alerts.svg?react'), | ||
| backups: () => import('icons/backups.svg?react'), | ||
| 'browse-dashboards': () => import('icons/browse-dashboards.svg?react'), | ||
| configuration: () => import('icons/configuration.svg?react'), | ||
| dashboards: () => import('icons/dashboards.svg?react'), | ||
| encrypted: () => import('icons/users-and-access.svg?react'), | ||
| explore: () => import('icons/explore.svg?react'), | ||
| haproxy: () => import('icons/haproxy.svg?react'), | ||
| help: () => import('icons/help.svg?react'), | ||
| 'help-fill': () => import('icons/help-fill.svg?react'), | ||
| 'high-availability': () => import('icons/high-availability.svg?react'), | ||
| home: () => import('icons/home.svg?react'), | ||
| intelligence: () => import('icons/percona-intelligence.svg?react'), | ||
| inventory: () => import('icons/inventory.svg?react'), | ||
| 'percona-mo': () => import('icons/percona-mo.svg?react'), | ||
| 'percona-my': () => import('icons/percona-my.svg?react'), | ||
| node: () => import('icons/home.svg?react'), | ||
| overview: () => import('icons/overview.svg?react'), | ||
| 'percona-po': () => import('icons/percona-po.svg?react'), | ||
| 'pmm-titled': () => import('icons/pmm-titled.svg?react'), | ||
| 'pmm-titled-outlined': () => import('icons/pmm-titled-outlined.svg?react'), | ||
| 'pmm-rounded': () => import('icons/pmm-rounded.svg?react'), | ||
| proxysql: () => import('icons/proxysql.svg?react'), | ||
| qan: () => import('icons/qan.svg?react'), | ||
| 'operating-system': () => import('icons/operating-system.svg?react'), | ||
| 'sign-out': () => import('icons/sign-out.svg?react'), | ||
| summary: () => import('icons/summary.svg?react'), | ||
| 'theme-dark': () => import('icons/theme-dark.svg?react'), | ||
| 'theme-light': () => import('icons/theme-light.svg?react'), | ||
| 'graph-6': () => import('icons/graph-6.svg?react'), | ||
| percona: () => import('icons/percona.svg?react'), | ||
| check: () => import('icons/check.svg?react'), | ||
| 'knowledge-base': () => import('icons/knowledge-base.svg?react'), | ||
| search: () => import('icons/search.svg?react'), | ||
| 'percona-va': () => import('icons/percona-va.svg?react'), | ||
| 'my-organization': () => import('icons/my-organization.svg?react'), | ||
| memory: () => import('icons/memory.svg?react'), | ||
| network: () => import('icons/network.svg?react'), | ||
| 'real-time-database-off': () => | ||
| import('icons/real-time-database-off.svg?react'), | ||
| cluster: () => import('icons/cluster.svg?react'), | ||
| 'status-at-risk': () => import('icons/status-at-risk.svg?react'), | ||
| 'status-down': () => import('icons/status-down.svg?react'), | ||
| 'status-updating': () => import('icons/status-updating.svg?react'), | ||
| 'arrow-link': () => import('icons/arrow-link.svg?react'), | ||
| 'bottom-panel-close': () => import('icons/bottom-panel-close.svg?react'), | ||
| 'collapse-content': () => import('icons/collapse-content.svg?react'), | ||
| 'expand-content': () => import('icons/expand-content.svg?react'), | ||
| 'dynamic-feed': () => import('icons/dynamic-feed.svg?react'), | ||
| 'bottom-panel-open': () => import('icons/bottom-panel-open.svg?react'), | ||
| 'electric-bolt': () => import('icons/electric-bolt.svg?react'), | ||
| 'electric-bolt-off': () => import('icons/electric-bolt-off.svg?react'), | ||
| 'play-arrow': () => import('icons/play-arrow.svg?react'), | ||
| pause: () => import('icons/pause.svg?react'), | ||
| refresh: () => import('icons/refresh.svg?react'), | ||
| 'file-download': () => import('icons/file-download.svg?react'), | ||
| // todo: move to percona-ui | ||
| // todo: move to peak-ui | ||
| 'emergency-home': () => import('icons/emergency-home.svg?react'), | ||
| // todo: move to percona-ui | ||
| // todo: move to peak-ui | ||
| 'chat-info-outlined': () => import('icons/chat-info-outlined.svg?react'), | ||
| }; | ||
|
|
||
| export const VIEWBOX_MAP: Partial< | ||
| Record<keyof typeof DYNAMIC_ICON_IMPORT_MAP, string> | ||
| > = { | ||
| percona: '0 0 180 155', | ||
| 'knowledge-base': '0 0 28 28', | ||
| 'pmm-rounded': '0 0 160 160', | ||
| 'pmm-titled': '0 0 141 48', | ||
| 'pmm-titled-outlined': '0 0 252 113', | ||
| 'real-time-database-off': '0 0 192 192', | ||
| 'electric-bolt': '0 0 20 20', | ||
| 'electric-bolt-off': '0 0 20 20', | ||
| }; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.