Skip to content

feat(bookmarks): migrate from MUI to Backstage UI - #12058

Merged
logonoff merged 3 commits into
backstage:mainfrom
souvik-biswas-dev:migrate-bookmarks-to-bui
Nov 25, 2026
Merged

logonoff merged 3 commits into
backstage:mainfrom
souvik-biswas-dev:migrate-bookmarks-to-bui

Conversation

@souvik-biswas-dev

Copy link
Copy Markdown
Contributor

Hey, I just made a Pull Request!

Part of #11740. Migrates the bookmarks workspace from Material UI to Backstage UI (BUI). No @mui/* imports or dependencies are left in the plugin, and raw HTML is replaced with BUI components where one exists.

What changed

  • Layout and text: Grid, Box, Typography became BUI Grid.Root/Grid.Item, Text and CSS Modules (replacing sx and theme.palette).
  • Buttons: the nav buttons use BUI Button, and "Open in new tab" uses ButtonLink. Icons come from @remixicon/react, pinned to >=4.6.0 <4.9.0.
  • Table of contents: BUI 0.19.0 has no tree component, so @mui/x-tree-view is replaced by a small accessible tree (role="tree"/treeitem, aria-expanded, aria-selected) built from BUI Buttons. Expand, collapse, select and auto-expand behave as before.
  • Mobile drawer: MUI Drawer is replaced by a BUI Dialog styled as a left side panel, with a DialogHeader (title and close button). The tooltip now uses TooltipTrigger.
  • Loading state: CircularProgress is replaced by a CSS-animated Remix icon with role="progressbar", with reduced-motion handling.
  • useIsDesktop: now uses BUI's useBreakpoint. Its md breakpoint is 1024px, where MUI's was 900px, so the desktop and mobile switch moves slightly. This is called out in the changeset.
  • Housekeeping: @backstage/ui moved from devDependencies to dependencies; asset-types.d.ts added to the workspace tsconfig.json so *.module.css imports type-check (same as the github workspace); changeset added.

Tests

  • The mobile-view test now dismisses the backdrop with pointer events, because react-aria dismisses on pointer events and not on a bare click.
  • The useIsDesktop test mocks useBreakpoint, because BUI caches the breakpoint at module level.
  • yarn tsc:full, yarn lint, prettier and the plugin tests (54) pass; the knip report is unchanged.

Screenshots

✔️ Checklist

  • A changeset describing the change and affected packages. (more info)
  • Added or updated documentation (not applicable, no docs changes needed)
  • 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. (more info)

Part of backstage#11740. Replaces all @mui/* usage in the bookmarks plugin with @backstage/ui components, CSS modules and Remix icons.

Signed-off-by: Souvik Biswas <[email protected]>
@backstage-goalie

backstage-goalie Bot commented Nov 15, 2026 •

Copy link
Copy Markdown
Contributor

Important

This PR includes changes that affect public-facing API. Please ensure you are adding/updating documentation for new features or behavior.

Changed Packages

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

@logonoff logonoff self-assigned this Nov 15, 2026

@logonoff logonoff left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

I will review this when you get a green CI run

@logonoff
logonoff force-pushed the migrate-bookmarks-to-bui branch from d14a259 to 9ce099a Compare November 25, 2026 18:35
@logonoff
logonoff force-pushed the migrate-bookmarks-to-bui branch from 9ce099a to 1da454d Compare November 25, 2026 18:41
Migrate to RAC instead of using a hand-rolled implementation and update changeset to major, and make the drawer in mobile view look "floating" to reduce BUI overrides

Assisted-by: Opencode glm-5-3
Signed-off-by: logonoff <[email protected]>
@logonoff
logonoff force-pushed the migrate-bookmarks-to-bui branch from 1da454d to bf479f4 Compare November 25, 2026 19:04

@logonoff logonoff left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Looks great, thanks!

@logonoff
logonoff merged commit 254cd4e into backstage:main Nov 25, 2026
13 checks passed
@souvik-biswas-dev
souvik-biswas-dev deleted the migrate-bookmarks-to-bui branch November 26, 2026 05:53
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.

3 participants