Skip to content

[WIP] fix(lightspeed): package version fixes#2707

Open
debsmita1 wants to merge 1 commit intoredhat-developer:mainfrom
debsmita1:package-version-fixes
Open

[WIP] fix(lightspeed): package version fixes#2707
debsmita1 wants to merge 1 commit intoredhat-developer:mainfrom
debsmita1:package-version-fixes

Conversation

@debsmita1
Copy link
Copy Markdown
Member

@debsmita1 debsmita1 commented Apr 6, 2026

Hey, I just made a Pull Request!

Resolves: https://redhat.atlassian.net/browse/RHDHBUGS-2902

✔️ 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)

@rhdh-qodo-merge
Copy link
Copy Markdown

Review Summary by Qodo

Fix package versions and remove unused dependencies

🐞 Bug fix

Grey Divider

Walkthroughs

Description
• Remove unused dependencies from lightspeed plugin
• Update @mui/icons-material version to 6.1.8 in theme plugin
• Clean up devDependencies in lightspeed package
• Add changesets documenting package updates
Diagram
flowchart LR
  A["Lightspeed Plugin"] -->|"Remove @material-ui/lab, react-markdown"| B["Cleaned Dependencies"]
  A -->|"Remove @backstage/core-app-api, @emotion/is-prop-valid, msw, prettier"| B
  C["Theme Plugin"] -->|"Update @mui/icons-material to 6.1.8"| D["Updated Version"]
  B --> E["Changesets Created"]
  D --> E
Loading

Grey Divider

File Changes

1. workspaces/lightspeed/.changeset/angry-shirts-swim.md 📝 Documentation +5/-0

Changeset for lightspeed package cleanup

• Created changeset documenting removal of unused packages
• Marked as patch version bump for lightspeed plugin

workspaces/lightspeed/.changeset/angry-shirts-swim.md


2. workspaces/lightspeed/plugins/lightspeed/package.json 🐞 Bug fix +0/-6

Remove unused dependencies from lightspeed

• Removed @material-ui/lab from dependencies (unused)
• Removed react-markdown from dependencies (unused)
• Removed @backstage/core-app-api from devDependencies
• Removed @emotion/is-prop-valid, msw, and prettier from devDependencies

workspaces/lightspeed/plugins/lightspeed/package.json


3. workspaces/theme/.changeset/late-panthers-drive.md 📝 Documentation +5/-0

Changeset for theme package update

• Created changeset documenting @mui/icons-material version update
• Marked as patch version bump for theme plugin

workspaces/theme/.changeset/late-panthers-drive.md


View more (1)
4. workspaces/theme/plugins/theme/package.json 🐞 Bug fix +2/-2

Update @mui/icons-material to version 6.1.8

• Updated @mui/icons-material from ^5.17.1 to ^6.1.8 in peerDependencies
• Updated @mui/icons-material from ^5.17.1 to ^6.1.8 in dependencies

workspaces/theme/plugins/theme/package.json


Grey Divider

Qodo Logo

@rhdh-qodo-merge
Copy link
Copy Markdown

rhdh-qodo-merge bot commented Apr 6, 2026

Code Review by Qodo

🐞 Bugs (2) 📘 Rule violations (0) 📎 Requirement gaps (0) 🎨 UX Issues (0)

Grey Divider


Action required

1. Icons peer version conflict 🐞 Bug ☼ Reliability
Description
@red-hat-developer-hub/backstage-plugin-theme now requires @mui/icons-material ^6.1.8 as a
peerDependency, but in-repo consumers still require v5, making the peer requirement unsatisfied and
likely breaking installs/builds for those workspaces. For example, bulk-import app pins
@mui/icons-material 5.18.0 while depending on the theme plugin, and orchestrator’s peerDependency
still requires @mui/icons-material ^5.17.1.
Code

workspaces/theme/plugins/theme/package.json[R53-54]

+    "@mui/icons-material": "^6.1.8",
    "@mui/material": "^5.0.0",
Evidence
The theme plugin’s peerDependency requires @mui/icons-material v6, but at least one in-repo app that
depends on the theme plugin pins @mui/icons-material v5, and another in-repo plugin declares a v5
peer range. These constraints have no overlap, so consumers cannot choose a single app-level
@mui/icons-material version that satisfies all peers.

workspaces/theme/plugins/theme/package.json[49-56]
workspaces/bulk-import/packages/app/package.json[53-63]
workspaces/orchestrator/plugins/orchestrator/package.json[122-128]

Agent prompt
The issue below was found during a code review. Follow the provided context and guidance below and implement a solution

### Issue description
`@red-hat-developer-hub/backstage-plugin-theme` now declares a peer dependency on `@mui/icons-material` `^6.1.8`, but existing in-repo consumers still require `@mui/icons-material` v5. This creates incompatible peer constraints across the monorepo and can break yarn installs or workspace builds.

### Issue Context
- The theme plugin peer range is now v6.
- Bulk-import app pins `@mui/icons-material` to v5 while depending on the theme plugin.
- Orchestrator plugin still has a v5 peer range for `@mui/icons-material`.

### Fix Focus Areas
Choose one direction and apply consistently:
- **Option A (maintain v5 compatibility):** widen the theme plugin peer range to accept both v5 and v6 (and consider whether the implementation truly requires v6).
- **Option B (upgrade ecosystem to v6):** update other packages’ peer ranges (e.g., orchestrator) and update consuming apps to use v6.

- workspaces/theme/plugins/theme/package.json[49-55]
- workspaces/orchestrator/plugins/orchestrator/package.json[122-125]
- workspaces/bulk-import/packages/app/package.json[53-63]

ⓘ Copy this prompt and use it to remediate the issue with your preferred AI generation tools


2. Breaking change marked patch 🐞 Bug ⚙ Maintainability
Description
The changeset declares a patch release for the theme plugin even though it raises the required major
peer dependency for @mui/icons-material, which is a breaking requirement change for consumers. This
can cause consumers on semver ranges to auto-upgrade into an incompatible peer-dependency set.
Code

workspaces/theme/.changeset/late-panthers-drive.md[R1-3]

+---
+'@red-hat-developer-hub/backstage-plugin-theme': patch
+---
Evidence
The changeset explicitly requests a patch bump, while the theme plugin’s peerDependency requires a
new major version of @mui/icons-material. That mismatch means the published versioning will not
reflect the compatibility break introduced by the new peer requirement.

workspaces/theme/.changeset/late-panthers-drive.md[1-5]
workspaces/theme/plugins/theme/package.json[49-56]

Agent prompt
The issue below was found during a code review. Follow the provided context and guidance below and implement a solution

### Issue description
The theme plugin changeset is marked as `patch`, but the PR changes the theme plugin’s peer dependency requirement for `@mui/icons-material` to a new major version. This is a breaking compatibility change and should not be released as a patch.

### Issue Context
Consumers using semver ranges (e.g. `^0.13.0`) can pick up a patch release automatically; if that patch now requires a new major peer dependency, installs/builds can break unexpectedly.

### Fix Focus Areas
- Update the changeset release type to at least `minor` (or `major`, depending on your repo’s semver policy for peer-dependency major bumps).
- Ensure other dependent packages/workspaces are updated in lockstep if v6 is required.

- workspaces/theme/.changeset/late-panthers-drive.md[1-5]
- workspaces/theme/plugins/theme/package.json[49-56]

ⓘ Copy this prompt and use it to remediate the issue with your preferred AI generation tools


Grey Divider

ⓘ The new review experience is currently in Beta. Learn more

Grey Divider

Qodo Logo

@rhdh-gh-app
Copy link
Copy Markdown

rhdh-gh-app bot commented Apr 6, 2026

Changed Packages

Package Name Package Path Changeset Bump Current Version
@red-hat-developer-hub/backstage-plugin-lightspeed workspaces/lightspeed/plugins/lightspeed patch v1.4.0
@red-hat-developer-hub/backstage-plugin-theme workspaces/theme/plugins/theme patch v0.14.0

@sonarqubecloud
Copy link
Copy Markdown

sonarqubecloud bot commented Apr 6, 2026

Comment on lines +53 to 54
"@mui/icons-material": "^6.1.8",
"@mui/material": "^5.0.0",
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Action required

1. Icons peer version conflict 🐞 Bug ☼ Reliability

@red-hat-developer-hub/backstage-plugin-theme now requires @mui/icons-material ^6.1.8 as a
peerDependency, but in-repo consumers still require v5, making the peer requirement unsatisfied and
likely breaking installs/builds for those workspaces. For example, bulk-import app pins
@mui/icons-material 5.18.0 while depending on the theme plugin, and orchestrator’s peerDependency
still requires @mui/icons-material ^5.17.1.
Agent Prompt
### Issue description
`@red-hat-developer-hub/backstage-plugin-theme` now declares a peer dependency on `@mui/icons-material` `^6.1.8`, but existing in-repo consumers still require `@mui/icons-material` v5. This creates incompatible peer constraints across the monorepo and can break yarn installs or workspace builds.

### Issue Context
- The theme plugin peer range is now v6.
- Bulk-import app pins `@mui/icons-material` to v5 while depending on the theme plugin.
- Orchestrator plugin still has a v5 peer range for `@mui/icons-material`.

### Fix Focus Areas
Choose one direction and apply consistently:
- **Option A (maintain v5 compatibility):** widen the theme plugin peer range to accept both v5 and v6 (and consider whether the implementation truly requires v6).
- **Option B (upgrade ecosystem to v6):** update other packages’ peer ranges (e.g., orchestrator) and update consuming apps to use v6.

- workspaces/theme/plugins/theme/package.json[49-55]
- workspaces/orchestrator/plugins/orchestrator/package.json[122-125]
- workspaces/bulk-import/packages/app/package.json[53-63]

ⓘ Copy this prompt and use it to remediate the issue with your preferred AI generation tools

Comment on lines +1 to +3
---
'@red-hat-developer-hub/backstage-plugin-theme': patch
---
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Action required

2. Breaking change marked patch 🐞 Bug ⚙ Maintainability

The changeset declares a patch release for the theme plugin even though it raises the required major
peer dependency for @mui/icons-material, which is a breaking requirement change for consumers. This
can cause consumers on semver ranges to auto-upgrade into an incompatible peer-dependency set.
Agent Prompt
### Issue description
The theme plugin changeset is marked as `patch`, but the PR changes the theme plugin’s peer dependency requirement for `@mui/icons-material` to a new major version. This is a breaking compatibility change and should not be released as a patch.

### Issue Context
Consumers using semver ranges (e.g. `^0.13.0`) can pick up a patch release automatically; if that patch now requires a new major peer dependency, installs/builds can break unexpectedly.

### Fix Focus Areas
- Update the changeset release type to at least `minor` (or `major`, depending on your repo’s semver policy for peer-dependency major bumps).
- Ensure other dependent packages/workspaces are updated in lockstep if v6 is required.

- workspaces/theme/.changeset/late-panthers-drive.md[1-5]
- workspaces/theme/plugins/theme/package.json[49-56]

ⓘ Copy this prompt and use it to remediate the issue with your preferred AI generation tools

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.

1 participant