Skip to content

Migrate graphiql plugin from MUI to BUI - #10277

Open
jaisuriyaNatarajan wants to merge 9 commits into
backstage:mainfrom
jaisuriyaNatarajan:graphiql-migrate-mui-to-bui
Open

jaisuriyaNatarajan wants to merge 9 commits into
backstage:mainfrom
jaisuriyaNatarajan:graphiql-migrate-mui-to-bui

Conversation

@jaisuriyaNatarajan

@jaisuriyaNatarajan jaisuriyaNatarajan commented Aug 9, 2026 •

Copy link
Copy Markdown

Hey, I just made a Pull Request!

Migrated @backstage-community/plugin-graphiql from Material UI to Backstage UI (@backstage/ui).

Related to #7869

Checklist

  • A changeset describing the change and affected packages.
  • Added or updated documentation
  • Tests for new functionality and regression tests for bug fixes
  • Screenshots attached (for UI changes)
  • All your commits have a Signed-off-by line in the message.

screenshot

  1. Working query
image

2 . Endpoint tabs

image

Summary

  • Replaced MUI Tabs/Tab/Typography/Divider/makeStyles in GraphiQLBrowser with BUI Tabs + CSS module
  • Replaced MUI Typography on GraphiQLPage with BUI Text
  • Replaced MUI SvgIcon GraphiQLIcon with a plain SVG component (breaking prop type change)
  • Removed @material-ui/core; added @backstage/ui; dropped React 16 peer ranges
  • Documented BUI requirement in README; major breaking changeset

Test plan

  • yarn tsc in workspaces/graphiql
  • yarn lint:all in workspaces/graphiql
  • CI=1 yarn test plugins/graphiql --watchAll=false
  • Manual check of GraphiQL page (endpoint tabs, empty state, error state, plugins)

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]>
@backstage-goalie

backstage-goalie Bot commented Aug 9, 2026 •

Copy link
Copy Markdown
Contributor

Changed Packages

Package Name Package Path Changeset Bump Current Version
@backstage-community/plugin-graphiql workspaces/graphiql/plugins/graphiql major v0.20.0

@jaisuriyaNatarajan
jaisuriyaNatarajan marked this pull request as draft August 9, 2026 17:55
@jaisuriyaNatarajan
jaisuriyaNatarajan marked this pull request as ready for review August 9, 2026 18:28
Keep the PR focused on the MUI to BUI migration.

Signed-off-by: jaisuriyaNatarajan <[email protected]>
Co-authored-by: Cursor <[email protected]>

@awanlin awanlin left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the contribution @jaisuriyaNatarajan, left a few comments. 👍

Use BUI Flex for layout, simplify the changeset, and keep GraphiQLIcon exported as existing public API.

Signed-off-by: jaisuriyaNatarajan <[email protected]>
jaisuriyaNatarajan and others added 2 commits September 21, 2026 14:38
Signed-off-by: jaisuriyaNatarajan <[email protected]>

Co-authored-by: jaisuriyaNatarajan <[email protected]>
@github-actions

Copy link
Copy Markdown
Contributor

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!

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟡 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 GraphiQLIcon to 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

Comment on lines +84 to +85
"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}>
Comment on lines +43 to +46
<Tabs
selectedKey={selectedKey}
onSelectionChange={key => setSelectedKey(String(key))}
>
Comment on lines +49 to +50
background: 'var(--bui-bg-surface-1)',
borderBottom: '1px solid var(--bui-border)',

@awanlin awanlin left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi @jaisuriyaNatarajan, there's merge conflict that need to be fix and some new comments from Copilot 👍

@github-actions github-actions Bot removed the stale label Nov 26, 2026
@awanlin awanlin self-assigned this Nov 27, 2026

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants