Repository navigation
Migrate graphiql plugin from MUI to BUI - #10277
jaisuriyaNatarajan wants to merge 9 commits into
Conversation
Replace Material UI Tabs/Typography/SvgIcon with Backstage UI components and a CSS module, and document the BUI requirement. Signed-off-by: jaisuriyaNatarajan <[email protected]>
Changed Packages
|
Signed-off-by: jaisuriyaNatarajan <[email protected]> Co-authored-by: Cursor <[email protected]>
Signed-off-by: jaisuriyaNatarajan <[email protected]>
Keep the PR focused on the MUI to BUI migration. Signed-off-by: jaisuriyaNatarajan <[email protected]> Co-authored-by: Cursor <[email protected]>
ef0405d to
b204f68
Compare
awanlin
left a comment
There was a problem hiding this comment.
Thanks for the contribution @jaisuriyaNatarajan, left a few comments. 👍
Signed-off-by: jaisuriyaNatarajan <[email protected]>
Signed-off-by: jaisuriyaNatarajan <[email protected]>
Use BUI Flex for layout, simplify the changeset, and keep GraphiQLIcon exported as existing public API. Signed-off-by: jaisuriyaNatarajan <[email protected]>
Signed-off-by: jaisuriyaNatarajan <[email protected]> Co-authored-by: jaisuriyaNatarajan <[email protected]>
Signed-off-by: jaisuriyaNatarajan <[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! |
There was a problem hiding this comment.
🟡 Changes recommended
The migration introduces unsupported styling tokens, loses full-height editor layout and icon defaults, and retains React 17 compatibility claims that conflict with the new UI dependency’s requirements.
4 open issues
What changed in this PR
Migrates @backstage-community/plugin-graphiql from Material UI to Backstage UI (BUI), contributing to the community-plugin migration tracked in #7869.
Changes:
- Replaces MUI tabs, layout, and typography with BUI components and a CSS module.
- Converts
GraphiQLIconto native SVG props and removes React 16 compatibility ranges. - Updates dependencies, development styling, documentation, and major-release metadata.
| File | Description |
|---|---|
workspaces/graphiql/yarn.lock |
Records BUI and updated React resolutions. |
workspaces/graphiql/plugins/graphiql/src/GraphiQLIcon.tsx |
Replaces MUI’s icon wrapper with native SVG. |
workspaces/graphiql/plugins/graphiql/src/components/GraphiQLPage/GraphiQLPage.tsx |
Uses BUI text for endpoint-loading errors. |
workspaces/graphiql/plugins/graphiql/src/components/GraphiQLBrowser/GraphiQLBrowser.tsx |
Migrates endpoint tabs, layout, and empty-state text. |
workspaces/graphiql/plugins/graphiql/src/components/GraphiQLBrowser/GraphiQLBrowser.module.css |
Preserves GraphiQL’s box-sizing override. |
workspaces/graphiql/plugins/graphiql/report.api.md |
Updates the exported icon’s prop signature. |
workspaces/graphiql/plugins/graphiql/README.md |
Documents the BUI requirement. |
workspaces/graphiql/plugins/graphiql/package.json |
Replaces the MUI dependency and adjusts React ranges. |
workspaces/graphiql/plugins/graphiql/dev/index.tsx |
Loads BUI styles in the development app. |
workspaces/graphiql/.changeset/graphiql-mui-to-bui.md |
Declares a major release for the migration. |
Review effort: Balanced
| "react": "^17.0.0 || ^18.0.0", | ||
| "react-dom": "^17.0.0 || ^18.0.0", |
| export const GraphiQLIcon = (props: SvgIconProps) => ( | ||
| <SvgIcon {...props}> | ||
| export const GraphiQLIcon = (props: SVGProps<SVGSVGElement>) => ( | ||
| <svg viewBox="0 0 24 24" {...props}> |
| <Tabs | ||
| selectedKey={selectedKey} | ||
| onSelectionChange={key => setSelectedKey(String(key))} | ||
| > |
| background: 'var(--bui-bg-surface-1)', | ||
| borderBottom: '1px solid var(--bui-border)', |
awanlin
left a comment
There was a problem hiding this comment.
Hi @jaisuriyaNatarajan, there's merge conflict that need to be fix and some new comments from Copilot 👍

Hey, I just made a Pull Request!
Migrated
@backstage-community/plugin-graphiqlfrom Material UI to Backstage UI (@backstage/ui).Related to #7869
Checklist
Signed-off-byline in the message.screenshot
2 . Endpoint tabs
Summary
@material-ui/core; added@backstage/ui; dropped React 16 peer rangesTest plan