feat(org,catalog-graph)!: migrate MembersListCard, OwnershipCard, and CatalogGraphCard to BUI (#33177)
* feat(org): migrate MembersListCard to BUI EntityInfoCard Signed-off-by: Johan Persson <johanopersson@gmail.com> * feat(org)!: migrate OwnershipCard to BUI EntityInfoCard Replaced MUI InfoCard with BUI EntityInfoCard in OwnershipCard. Removed the `variant` and `maxScrollHeight` props since card sizing and scrolling are now handled by the BUI layout. Wrapped body content in a flex column div to keep the relations toggle pinned while the grid scrolls. Updated app-legacy and create-app templates to remove the dropped `variant` prop. Signed-off-by: Johan Persson <johanopersson@gmail.com> * feat(catalog-graph)!: migrate CatalogGraphCard to BUI EntityInfoCard Replace MUI InfoCard with BUI EntityInfoCard in CatalogGraphCard. The `variant` prop is removed — card sizing is now handled by the BUI layout system. The deep link is replaced with a footer Link. Remove `variant="gridItem"` from all EntityCatalogGraphCard usages in app-legacy and create-app templates. Signed-off-by: Johan Persson <johanopersson@gmail.com> * feat(catalog-react): export useEntityRoute hook Signed-off-by: Johan Persson <johanopersson@gmail.com> * fix(cli): update translation extraction test for renamed org keys Signed-off-by: Johan Persson <johanopersson@gmail.com> --------- Signed-off-by: Johan Persson <johanopersson@gmail.com>
This commit is contained in:
@@ -0,0 +1,5 @@
|
||||
---
|
||||
'@backstage/plugin-catalog-react': minor
|
||||
---
|
||||
|
||||
Exported `useEntityRefLink` hook that returns a function for generating entity page URLs from entity references.
|
||||
@@ -0,0 +1,25 @@
|
||||
---
|
||||
'@backstage/plugin-org': minor
|
||||
'@backstage/plugin-catalog-graph': minor
|
||||
'@backstage/create-app': patch
|
||||
---
|
||||
|
||||
**BREAKING**: Migrated `MembersListCard`, `OwnershipCard`, and `CatalogGraphCard` to use BUI card primitives via `EntityInfoCard`.
|
||||
|
||||
- `OwnershipCard`: Removed `variant` and `maxScrollHeight` props. Card height and scrolling are now controlled by the parent container — the card fills its container and the body scrolls automatically when content overflows.
|
||||
- `CatalogGraphCard`: Removed `variant` prop.
|
||||
- `MembersListCard`: Translation keys `subtitle`, `paginationLabel`, `aggregateMembersToggle.directMembers`, `aggregateMembersToggle.aggregatedMembers`, and `aggregateMembersToggle.ariaLabel` have been removed. The `title` key now includes `{{groupName}}`. New keys added: `cardLabel`, `noSearchResult`, `aggregateMembersToggle.label`.
|
||||
- `OwnershipCard`: Translation keys `aggregateRelationsToggle.directRelations`, `aggregateRelationsToggle.aggregatedRelations`, and `aggregateRelationsToggle.ariaLabel` have been removed. New key added: `aggregateRelationsToggle.label`.
|
||||
- Removed `MemberComponentClassKey` export, and `root` and `cardContent` from `MembersListCardClassKey`, `card` from `OwnershipCardClassKey`, and `card` from `CatalogGraphCardClassKey`.
|
||||
|
||||
**Migration:**
|
||||
|
||||
```diff
|
||||
- <EntityOwnershipCard variant="gridItem" />
|
||||
+ <EntityOwnershipCard />
|
||||
```
|
||||
|
||||
```diff
|
||||
- <EntityCatalogGraphCard variant="gridItem" height={400} />
|
||||
+ <EntityCatalogGraphCard height={400} />
|
||||
```
|
||||
Reference in New Issue
Block a user