Skip to content

feat(gcalendar): migrate plugin from Material-UI to Backstage UI - #11611

Merged
hopehadfield merged 4 commits into
backstage:mainfrom
deepthi-28:mui-bui-migration-gcalendar
Nov 20, 2026
Merged

hopehadfield merged 4 commits into
backstage:mainfrom
deepthi-28:mui-bui-migration-gcalendar

Conversation

@deepthi-28

@deepthi-28 deepthi-28 commented Oct 16, 2026 •

Copy link
Copy Markdown
Contributor

Migrates the Google Calendar plugin from Material-UI to Backstage UI.

image
  • A changeset describing the change and affected packages. (more info)
  • 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. (more info)

@backstage-goalie

backstage-goalie Bot commented Oct 16, 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-gcalendar workspaces/gcalendar/plugins/gcalendar minor v0.25.0

@deepthi-28
deepthi-28 force-pushed the mui-bui-migration-gcalendar branch from 48f06a3 to 9c89e15 Compare October 16, 2026 14:32
@deepthi-28
deepthi-28 marked this pull request as ready for review October 16, 2026 14:37
@deepthi-28
deepthi-28 requested a review from a team as a code owner October 16, 2026 14:37

@hopehadfield hopehadfield 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 @deepthi-28! I've added a few comments 🙂

color="primary"
/>
</Badge>
<span className={styles.root}>

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.

TagGroup renders <div> elements, which should not sit inside this <span>. Could we change the wrapper to a <div>? The existing display: inline-flex rule should preserve the chip and badge layout.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Fixed in fec22dbb3 — the wrapper is now a <div>, so the TagGroup divs are no longer nested inside a <span>. As you noted, the existing display: inline-flex keeps the chip and badge layout unchanged.

@deepthi-28
deepthi-28 force-pushed the mui-bui-migration-gcalendar branch from fec22db to dd76dd0 Compare October 22, 2026 05:30
@deepthi-28

Copy link
Copy Markdown
Contributor Author

Note: I force-pushed to amend the commit message only — no code changes. The commit referenced in my replies above as fec22dbb3 is now dd76dd04e; the file contents are byte-identical (same tree hash).

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

Sorry for the double-back @deepthi-28 but I just had a few more thoughts I'd like to get your input on.

Also, I'm wondering if there is a reason for the partial migration as opposed to a full migration.

@@ -128,21 +133,21 @@ export const CalendarCard = () => {
>
<Box>
{showLoader && (
<Box py={2}>
<div className={styles.loaderWrap}>

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.

Can we use BUI Box here instead of a <div>?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Fixed in 3c5dfc1 — switched to BUI Box here.

{events.length === 0 && (
<Box pt={2} pb={2}>
<Typography align="center" variant="h6">
<div className={styles.noEventsWrap}>

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.

Same here?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Fixed in 3c5dfc1 — switched to BUI Box here.

<Text as="p" variant="body-small">
Attendees
</Text>
<div className={styles.attendees}>

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.

Same here, can we use a BUI Box?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Fixed in 3c5dfc1 — switched to BUI Box here.

deepthi-28 and others added 4 commits November 16, 2026 06:40
Replace MUI Box, Typography, Button, IconButton, Badge, Chip, Tooltip
and Divider with their Backstage UI equivalents, swap Material icons for
Remix icons, and convert makeStyles usages to CSS modules. Drop the
@material-ui/icons dependency and add @backstage/ui.

The event and calendar select components still use Material-UI:
CalendarEvent depends on material-ui-popup-state, which is tied to the
MUI Popover, and CalendarSelect is a multi-select with checkboxes that
Backstage UI has no equivalent for.

Add a minimal app-config.yaml so the dev app can start.

Signed-off-by: deepthi-ajith_infosys <[email protected]>
- Import TooltipTrigger from @backstage/ui so the tooltip and trigger
  share the same React Aria context, and drop the direct
  react-aria-components dependency that pulled in a second version.
- Use a div wrapper for the attendee chip to avoid nesting the
  TagGroup divs inside a span.
- Replace unsupported design tokens with ones provided by the resolved
  Backstage UI version.

Signed-off-by: deepthi-ajith_infosys <[email protected]>
Replace remaining <div> wrappers with the Backstage UI <Box>
component in CalendarCard and CalendarEventPopoverContent, as
requested in review.

Co-authored-by: Copilot <[email protected]>
Signed-off-by: deepthi-ajith_infosys <[email protected]>
Migrate CalendarEvent and CalendarSelect, the two remaining components
still using Material-UI, to Backstage UI. CalendarEvent now uses
Card/DialogTrigger/Popover instead of Paper + material-ui-popup-state,
and CalendarSelect uses the BUI Select component with
selectionMode="multiple" instead of the MUI Select/Checkbox/MenuItem
combination.

Remove the now-unused @material-ui/core and material-ui-popup-state
dependencies.

Co-authored-by: Copilot <[email protected]>
Signed-off-by: deepthi-ajith_infosys <[email protected]>
@deepthi-28
deepthi-28 force-pushed the mui-bui-migration-gcalendar branch from d3dd176 to 46800c0 Compare November 16, 2026 07:34
@deepthi-28

Copy link
Copy Markdown
Contributor Author

Thanks for the review @hopehadfield ! All your comments are addressed: Please review.

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

Looks good to me now! 🚀

@hopehadfield
hopehadfield merged commit 502b7a7 into backstage:main Nov 20, 2026
13 checks passed
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