Skip to content

Migrate todo plugin from MUI to BUI - #10276

Open
jaisuriyaNatarajan wants to merge 4 commits into
backstage:mainfrom
jaisuriyaNatarajan:todo-migrate-mui-to-bui
Open

jaisuriyaNatarajan wants to merge 4 commits into
backstage:mainfrom
jaisuriyaNatarajan:todo-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-todo from Material UI / @backstage/core-components Table to Backstage UI (@backstage/ui.

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. Pagination — first page (10 per page)
    TODOs table showing the first page with “Show 10 results” (1–10 of 35).
image
  1. Pagination — next page
    Navigating to the next page shows items 11–20 of 35.
image
  1. Page size — 20 results
    Changing the page size to “Show 20 results” loads 20 rows on the first page (1–20 of 35).
image
  1. Filter
    Filtering TODOs by text (also supports file and author filters) updates the table from the server.
image

Summary

  • Replaced TodoList with BUI Card, Table, SearchField filters, Link, and useTable (offset mode)
  • Removed @material-ui/icons; use Remix icons + BUI CSS in the plugin dev app
  • Dropped React 16 from @types/react / peers; major breaking changeset
  • Page-size remount workaround for BUI offset cache staleness

Test plan

  • yarn tsc in workspaces/todo
  • yarn lint:all in workspaces/todo
  • CI=1 yarn test plugins/todo --watchAll=false
  • Manual UI check in plugin dev app (filters, sort, pagination page size)

Replace the Material Table with BUI Card/Table/useTable, remove
@material-ui/icons in favor of Remix icons, and document the BUI
requirement.

Signed-off-by: jaisuriyaNatarajan <[email protected]>
Co-authored-by: Cursor <[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-todo workspaces/todo/plugins/todo major v0.25.0

@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, couple of visual concerns. The search bar take a lot of space, can you have it match what we have for the GitHub actions table here: https://demo.backstage.io/catalog/default/component/backstage-demo/github-actions. Also the title seems pretty large, can you also follow the same as the GitHub actions for that as well, please. 🙏

@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!

@github-actions github-actions Bot added the stale label Nov 13, 2026
@awanlin
awanlin requested a balanced review from Copilot and removed request for BethGriggs November 26, 2026 15:00

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 change removes file and author filtering, clears filter and sort state when page size changes, and advertises React peer versions incompatible with its new dependencies.

3 open issues
What changed in this PR

Migrates the Todo plugin’s entity-page interface from the legacy Material UI table to Backstage UI, with changes scoped to the todo workspace.

Changes:

  • Introduces a BUI table with server-side text filtering, sorting, and offset pagination.
  • Adds BUI styling and Remix icons, and updates React dependency ranges.
  • Expands component tests and documents the migration requirements.
File Description
workspaces/​todo/​yarn.lock Records UI/icon dependencies and updated React resolutions.
workspaces/​todo/​tsconfig.json Includes CLI asset declarations for CSS imports.
workspaces/​todo/​plugins/​todo/​src/​components/​TodoList/​TodoList.tsx Replaces the legacy table with BUI components and pagination handling.
workspaces/​todo/​plugins/​todo/​src/​components/​TodoList/​TodoList.test.tsx Tests entity requests, text filtering, and sorting.
workspaces/​todo/​plugins/​todo/​README.md Documents the BUI requirement and setup resources.
workspaces/​todo/​plugins/​todo/​package.json Adds BUI and Remix icons and removes React 16 support.
workspaces/​todo/​plugins/​todo/​dev/​index.tsx Loads BUI styles and replaces MUI icons.
workspaces/​todo/​.changeset/​migrate-todo-mui-to-bui.md Declares a major release and explains the styling requirement.

Review effort: Balanced

Comment on lines +78 to +79
"react": "^17.0.0 || ^18.0.0",
"react-dom": "^17.0.0 || ^18.0.0",
Comment on lines +131 to +135
const filters: NonNullable<TodoListOptions['filters']> = [];
const text = activeFilter?.text?.trim();
if (text) {
filters.push({ field: 'text', value: `*${text}*` });
}
// cached page of rows after the page-size dropdown changes.
return (
<TodoListTable
key={pageSize}

@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, thanks for the contribution, there's a merge conflict and comments from Copilot to address. Can you also include before images side by side with the after, for changes like this we really need to have that as it makes reviews much easier 🙏

@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.

5 participants