You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Migrate Entity Validation Plugin From MUI to BUI - #10136
The reason will be displayed to describe this comment to others. Learn more.
Hi @AmbrishRamachandiran, I started a review but there's a lot of HTML primitives - divs , ul's, li's - being used here over actual Backstage UI components that it makes it hard to review. Can you please give this another look? 🙏
Hi @AmbrishRamachandiran, I started a review but there's a lot of HTML primitives - divs , ul's, li's - being used here over actual Backstage UI components that it makes it hard to review. Can you please give this another look? 🙏
- Pin @remixicon/react below 4.9.0 (license change in 4.9.0)
- Use backstage:^ version spec for @backstage/ui
- Restore responsive two-column layout using BUI Grid
- Use BUI Flex/Box spacing props and Text colors instead of custom CSS
- Replace InfoCard with BUI Card
- Use onPress for BUI Button
- Update API reports
Signed-off-by: AmbrishRamachandiran <[email protected]>
@awanlin@Parsifal-M I've pushed another round of updates and merged the latest main. Could you please take another look when you get a chance? 🙏
Changes in this update
Pinned @remixicon/react to >=4.6.0 <4.9.0, since 4.9.0 changed its license (per the repo's MUI→BUI migration guidance)
Switched @backstage/ui to the backstage:^ version spec, which now resolves to 0.19.0
Restored the responsive two-column layout with BUI Grid.Root / Grid.Item (it stacks on small screens, like the old md={6} xs={12})
Replaced the custom flexbox CSS with BUI Flex/Box props (gap, align, p, mt) and used Text color="success" | "danger" in place of the color classes. EntityValidationOutput.module.css has been removed
Replaced InfoCard with BUI Card / CardBody
Button now uses onPress
API reports regenerated
All the earlier review items (major changeset, no @layer, no workspace-root changes, Alert, ButtonIcon, List/ListRow, MUI removed from yarn.lock) are still in place. tsc, lint, prettier, and tests pass locally.
@pedrojreis thanks for the question about the header. For now I've kept Page/Header/Content from @backstage/core-components for the standalone page, which matches the recently merged graphiql migration. If the maintainers would prefer the BUI Header here, I'm happy to switch it in this PR.
@awanlin The requested changes should all be addressed now (all review threads are resolved), and I've linked #7869 in the description. Could you re-review when you get a chance? Thanks!
The reason will be displayed to describe this comment to others. Learn more.
🟡 Changes recommended
Missing or null entity metadata can crash result rendering before validation errors appear, while inherited no-wrap styles can clip expanded diagnostics.
- Handle entities with missing metadata when building the result row id,
so their validation errors are still shown (with a test)
- Let expanded validation errors wrap instead of being clipped
- Use BUI tokens that exist for the editor hint and error panel colours
- Opt the page out of the default page header so only the BUI Header
is shown
Signed-off-by: AmbrishRamachandiran <[email protected]>
The reason will be displayed to describe this comment to others. Learn more.
There's still Copilot comments to address. Is it possible for you to trigger that yourself @AmbrishRamachandiran? That would help make the feedback cycle a bit better. I'm looking for it to be either a green approval or a blue human review needed. 👍
- Pass a per-result id from the list instead of deriving it from entity
fields, so repeated or unnamed entities get distinct rows
- Set textValue from the entity display name for keyboard type-ahead
- Add a test with repeated and unnamed entities
Signed-off-by: AmbrishRamachandiran <[email protected]>
Thanks @awanlin. Updated screenshot in description
I tried to re-run the Copilot review myself, but the option isn't available to me since I don't have write access to the repo. Could you trigger it again when you get a chance?
The reason will be displayed to describe this comment to others. Learn more.
🔵 Needs a closer look
Clicking an invalid entity’s name no longer expands or collapses its validation errors, regressing the existing behavior and leaving only the arrow button functional.
No open issues 🎉
1 previously missed issue
In code that hasn't changed since last review
Restore entity name click to expand validation errors
Clicking an entity's name no longer expands or collapses its validation errors: the previous ListItemText click handler was removed, and only the arrow button now updates expanded. Restore the row/name activation handler for invalid entities using ListRow's onAction, and cover it with an interaction test to preserve the existing behavior.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Part of #7869 (migration of community-maintainer-owned plugins from MUI to BUI).
Screenshots
Entity Validator – light theme
Validation errors – light theme
Entity Validator – dark theme
Validation errors – dark theme
Embedded content