From aea7bd9f0e2eb67a425f8e149a36130adca4a97a Mon Sep 17 00:00:00 2001 From: Johan Persson Date: Thu, 26 Feb 2026 16:39:10 +0100 Subject: [PATCH] feat(org): migrate GroupProfileCard to BUI EntityInfoCard Signed-off-by: Johan Persson --- .../Group/GroupProfile/GroupProfileCard.tsx | 30 +++++++++---------- 1 file changed, 15 insertions(+), 15 deletions(-) diff --git a/plugins/org/src/components/Cards/Group/GroupProfile/GroupProfileCard.tsx b/plugins/org/src/components/Cards/Group/GroupProfile/GroupProfileCard.tsx index 89eba12b97..1cda4c7399 100644 --- a/plugins/org/src/components/Cards/Group/GroupProfile/GroupProfileCard.tsx +++ b/plugins/org/src/components/Cards/Group/GroupProfile/GroupProfileCard.tsx @@ -22,12 +22,7 @@ import { RELATION_PARENT_OF, stringifyEntityRef, } from '@backstage/catalog-model'; -import { - Avatar, - InfoCard, - InfoCardVariants, - Link, -} from '@backstage/core-components'; +import { Avatar, Link } from '@backstage/core-components'; import Box from '@material-ui/core/Box'; import IconButton from '@material-ui/core/IconButton'; import List from '@material-ui/core/List'; @@ -36,6 +31,7 @@ import ListItemIcon from '@material-ui/core/ListItemIcon'; import ListItemText from '@material-ui/core/ListItemText'; import Tooltip from '@material-ui/core/Tooltip'; import { + EntityInfoCard, EntityRefLinks, catalogApiRef, getEntityRelations, @@ -57,6 +53,7 @@ import { catalogEntityRefreshPermission } from '@backstage/plugin-catalog-common import { useTranslationRef } from '@backstage/frontend-plugin-api'; import { orgTranslationRef } from '../../../../translation'; import { makeStyles } from '@material-ui/core/styles'; +import { Flex, Text } from '@backstage/ui'; const useStyles = makeStyles(theme => ({ container: { @@ -72,17 +69,21 @@ const useStyles = makeStyles(theme => ({ })); const CardTitle = (props: { title: string }) => ( - + - {props.title} - + {props.title} + ); /** @public */ export const GroupProfileCard = (props: { - variant?: InfoCardVariants; + // Accepted for API compatibility but not applied. + // The new entity page layout handles card sizing. + // TODO: Discuss removal in code review. + variant?: string; showLinks?: boolean; }) => { + const { variant: _variant } = props; const catalogApi = useApi(catalogApiRef); const alertApi = useApi(alertApiRef); const { entity: group } = useEntity(); @@ -148,11 +149,9 @@ export const GroupProfileCard = (props: { ); return ( - } - subheader={description} - variant={props.variant} - action={ + headerActions={ <> {allowRefresh && canRefresh && ( } > + {description && {description}} @@ -237,6 +237,6 @@ export const GroupProfileCard = (props: { {props?.showLinks && } - + ); };