Skip to content

feat(octopus-deploy): migrate from MUI to Backstage UI - #12442

Merged
awanlin merged 3 commits into
mainfrom
octopus-deploy/mui-to-bui
Nov 27, 2026
Merged

awanlin merged 3 commits into
mainfrom
octopus-deploy/mui-to-bui

Conversation

@jmezach

@jmezach jmezach commented Nov 27, 2026 •

Copy link
Copy Markdown
Contributor

Hey, I just made a Pull Request!

Part of #11740. Migrates the octopus-deploy plugin from Material UI to Backstage UI (@backstage/ui) and removes the @material-ui/core dependency.

  • The release table on the entity page now uses the BUI Table with useTable; search and pagination (5 rows per page) are preserved.
  • The scaffolder project group field uses the BUI Select / TextField.
  • The Octopus Deploy icon is now a plain SVG using currentColor (previously its fill was white via a global <style> tag, which made it invisible on light backgrounds).
  • Added tests for the release table.
Screenshot 2026-11-27 at 09 20 29

Apps need to import @backstage/ui/css/styles.css if they don't already.

✔️ Checklist

  • 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)

🤖 Generated with Claude Code

Part of #11740. Replaces all @material-ui/core usage in the
octopus-deploy plugin with @backstage/ui components and adds tests
for the release table.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Signed-off-by: Jonathan Mezach <[email protected]>
@jmezach
jmezach requested a review from a team as a code owner November 27, 2026 08:19
@jmezach
jmezach requested review from vinzscam and a balanced review from Copilot November 27, 2026 08:19
@backstage-goalie

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-octopus-deploy workspaces/octopus-deploy/plugins/octopus-deploy minor v0.15.0

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 release table lacks an initial loading indicator, and the project-group fallback field loses disabled, required, and invalid states.

2 open issues
What changed in this PR

Migrates the Octopus Deploy plugin from Material UI to Backstage UI as part of #11740, covering the entity release table and scaffolder project-group field.

Changes:

  • Replaces UI components while retaining release search and five-row pagination.
  • Uses a currentColor SVG icon and adds release-table tests.
  • Updates dependencies and documents the required Backstage UI stylesheet import.
File Description
workspaces/​octopus-deploy/​yarn.lock Updates the plugin’s UI dependency resolution.
workspaces/​octopus-deploy/​plugins/​octopus-deploy/​src/​components/​ScaffolderDropdown/​ProjectGroupDropdown.tsx Replaces project-group controls with BUI components.
workspaces/​octopus-deploy/​plugins/​octopus-deploy/​src/​components/​ReleaseTable/​ReleaseTable.tsx Migrates the release table, layout, and search to BUI.
workspaces/​octopus-deploy/​plugins/​octopus-deploy/​src/​components/​ReleaseTable/​ReleaseTable.test.tsx Tests release rendering, search, links, and errors.
workspaces/​octopus-deploy/​plugins/​octopus-deploy/​src/​components/​ReleaseTable/​ReleaseTable.module.css Adds responsive header wrapping and spacing.
workspaces/​octopus-deploy/​plugins/​octopus-deploy/​src/​components/​OctopusDeployIcon/​OctopusDeployIcon.tsx Replaces the MUI icon with an SVG using inherited color.
workspaces/​octopus-deploy/​plugins/​octopus-deploy/​package.json Replaces the direct MUI dependency with BUI.
workspaces/​octopus-deploy/​.changeset/​octopus-deploy-bui-migration.md Records the migration and stylesheet setup requirement.

Review effort: Balanced

Show the table loading skeleton while releases are loading, and pass
the scaffolder field's disabled, required and invalid state to the
BUI project group fields.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Signed-off-by: Jonathan Mezach <[email protected]>
Copilot AI balanced review requested due to automatic review settings November 27, 2026 08:42

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.

🔵 Needs a closer look

The Version column loses existing sorting functionality because it lacks both isSortable and a sortFn, requiring restoration and ascending/descending regression coverage.

No open issues 🎉

1 previously missed issue

In code that hasn't changed since last review

Medium severity Restore sorting for the Version column

workspaces/​octopus-deploy/​plugins/​octopus-deploy/​src/​components/​ReleaseTable/​ReleaseTable.tsx:95

The previous Version column supported sorting through Release.Version, but this replacement omits isSortable and useTable has no sortFn, so users can no longer reorder releases by version. BUI requires an explicit sorting function (default-branch implementation, also verified at the pinned v1.57.1 release). Enable sorting on the Version column, supply a sortFn that compares row.Release.Version in the requested direction, and add an ascending/descending regression test.

2 resolved since last review

Review effort: Balanced

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Signed-off-by: Jonathan Mezach <[email protected]>
Copilot AI balanced review requested due to automatic review settings November 27, 2026 09:09

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.

🟢 Approval recommended

There are no active review issues for the Octopus Deploy migration to Backstage UI.

No open issues 🎉

Review effort: Balanced

@awanlin
awanlin requested a balanced review from Copilot November 27, 2026 18:09
@awanlin awanlin self-assigned this Nov 27, 2026

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.

🟢 Approval recommended

No active review issues are reported for the Octopus Deploy UI migration.

No open issues 🎉

Review effort: Balanced

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

Nice, welcome to the BUI world 😆

@awanlin
awanlin merged commit cbd0db3 into main Nov 27, 2026
18 checks passed
@awanlin
awanlin deleted the octopus-deploy/mui-to-bui branch November 27, 2026 18:14
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.

4 participants