Repository navigation
Shortcut plugin mig new - #9416
amitkumar489 wants to merge 23 commits into
Conversation
Changed Packages
|
There was a problem hiding this comment.
Pull request overview
Note
Copilot was unable to run its full agentic suite in this review.
Migrates the shortcuts plugin UI away from Material-UI components/icons to Backstage UI (BUI) components with CSS modules, and updates dependencies accordingly.
Changes:
- Replaces MUI icons/components with
@backstage/uiand@remixicon/react. - Re-implements Add/Edit shortcut popovers and form styling using CSS modules + BUI components.
- Replaces MUI Avatar-based shortcut icon with a CSS-module-backed avatar div and custom contrast calculation.
Reviewed changes
Copilot reviewed 13 out of 13 changed files in this pull request and generated 9 comments.
Show a summary per file
| File | Description |
|---|---|
| workspaces/shortcuts/plugins/shortcuts/src/Shortcuts.tsx | Switches the sidebar “Add Shortcuts” icon from MUI to Remixicon. |
| workspaces/shortcuts/plugins/shortcuts/src/ShortcutItem.tsx | Replaces MUI edit button/tooltip styling with BUI components + CSS modules. |
| workspaces/shortcuts/plugins/shortcuts/src/ShortcutItem.module.css | Adds CSS-module hover behavior for showing the edit button. |
| workspaces/shortcuts/plugins/shortcuts/src/ShortcutIcon.tsx | Replaces MUI Avatar with a styled div and manual contrast color computation. |
| workspaces/shortcuts/plugins/shortcuts/src/ShortcutIcon.module.css | Adds CSS-module styles for the new avatar div. |
| workspaces/shortcuts/plugins/shortcuts/src/ShortcutForm.tsx | Migrates form UI to BUI components and custom CSS-module styling. |
| workspaces/shortcuts/plugins/shortcuts/src/ShortcutForm.module.css | Adds CSS-module styles for fields/actions (borders, spacing, dark mode). |
| workspaces/shortcuts/plugins/shortcuts/src/EditShortcut.tsx | Replaces MUI Popover/Card with a custom fixed-position container + click-outside handling. |
| workspaces/shortcuts/plugins/shortcuts/src/EditShortcut.module.css | Adds CSS-module styles for the edit “popover” card/header. |
| workspaces/shortcuts/plugins/shortcuts/src/AddShortcut.tsx | Replaces MUI Popover/Card with a custom fixed-position container + click-outside handling. |
| workspaces/shortcuts/plugins/shortcuts/src/AddShortcut.module.css | Adds CSS-module styles for the add “popover” card/header. |
| workspaces/shortcuts/plugins/shortcuts/package.json | Swaps MUI dependencies for @backstage/ui and @remixicon/react. |
| workspaces/shortcuts/.changeset/many-poems-tan.md | Adds a changeset documenting the BUI migration. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
There was a problem hiding this comment.
Pull request overview
Copilot reviewed 15 out of 17 changed files in this pull request and generated 9 comments.
Comments suppressed due to low confidence (1)
workspaces/shortcuts/plugins/shortcuts/src/ShortcutForm.tsx:94
- The URL field is marked
required: true, but no message is provided. When this validation fails,errors.url.messagewill beundefined, so the UI renders an empty error area with no feedback. Provide a required message so users know what to fix.
control={control}
rules={{
required: true,
validate: urlIsUnique,
...(allowExternalLinks
|
Thanks for the contribution! |
Signed-off-by: amitkumar489 <[email protected]>
Signed-off-by: amitkumar489 <[email protected]>
Signed-off-by: amitkumar489 <[email protected]>
Signed-off-by: amitkumar489 <[email protected]>
|
Pls review @vinzscam |
|
@vinzscam pls review |
Signed-off-by: amitkumar489 <[email protected]>
Signed-off-by: amitkumar489 <[email protected]>
|
This PR has been automatically marked as stale because it has not had recent activity from the author. It will be closed if no further activity occurs. If the PR was closed and you want it re-opened, let us know and we'll re-open the PR so that you can continue the contribution! |
Hey, I just made a Pull Request!
The shortcuts plugin is now fully migrated to BUI with production-ready styling that automatically adapts to light and dark system themes, improved positioning, and modern Backstage UI components. All ESLint checks pass, and the plugin maintains backward compatibility with existing functionality.
✔️ Checklist
Signed-off-byline in the message. (more info)