diff --git a/.changeset/breezy-pots-worry.md b/.changeset/breezy-pots-worry.md new file mode 100644 index 0000000000..48d5ae6c80 --- /dev/null +++ b/.changeset/breezy-pots-worry.md @@ -0,0 +1,5 @@ +--- +'@backstage/plugin-org': patch +--- + +consistently show parent and child relations in group profile card diff --git a/plugins/org/src/components/Cards/Group/GroupProfile/GroupProfileCard.tsx b/plugins/org/src/components/Cards/Group/GroupProfile/GroupProfileCard.tsx index 174067275d..dfdb566b20 100644 --- a/plugins/org/src/components/Cards/Group/GroupProfile/GroupProfileCard.tsx +++ b/plugins/org/src/components/Cards/Group/GroupProfile/GroupProfileCard.tsx @@ -144,43 +144,52 @@ export const GroupProfileCard = (props: { variant?: InfoCardVariants }) => { - - {profile.email} - + {profile.email}} + secondary="Email" + /> )} - - {parentRelations.length ? ( - - - - - - - - - - - ) : null} - - {childRelations.length ? ( - - - - - - - - - - - ) : null} + + + + + + + + ) : ( + 'N/A' + ) + } + secondary="Parent Group" + /> + + + + + + + + + ) : ( + 'N/A' + ) + } + secondary="Child Groups" + /> +