diff --git a/.changeset/three-tables-smash.md b/.changeset/three-tables-smash.md
new file mode 100644
index 0000000000..647647b666
--- /dev/null
+++ b/.changeset/three-tables-smash.md
@@ -0,0 +1,5 @@
+---
+'@backstage/plugin-catalog': patch
+---
+
+Clearer titles for the relationship cards
diff --git a/plugins/catalog/src/components/DependsOnResourcesCard/DependsOnResourcesCard.test.tsx b/plugins/catalog/src/components/DependsOnResourcesCard/DependsOnResourcesCard.test.tsx
index d224356300..f9729e561c 100644
--- a/plugins/catalog/src/components/DependsOnResourcesCard/DependsOnResourcesCard.test.tsx
+++ b/plugins/catalog/src/components/DependsOnResourcesCard/DependsOnResourcesCard.test.tsx
@@ -66,7 +66,7 @@ describe('', () => {
,
);
- expect(getByText('Resources')).toBeInTheDocument();
+ expect(getByText('Depends on resources')).toBeInTheDocument();
expect(
getByText(/No resource is a dependency of this component/i),
).toBeInTheDocument();
@@ -114,7 +114,7 @@ describe('', () => {
);
await waitFor(() => {
- expect(getByText('Resources')).toBeInTheDocument();
+ expect(getByText('Depends on resources')).toBeInTheDocument();
expect(getByText(/target-name/i)).toBeInTheDocument();
});
});
diff --git a/plugins/catalog/src/components/DependsOnResourcesCard/DependsOnResourcesCard.tsx b/plugins/catalog/src/components/DependsOnResourcesCard/DependsOnResourcesCard.tsx
index 163a51b84e..34a8e5824d 100644
--- a/plugins/catalog/src/components/DependsOnResourcesCard/DependsOnResourcesCard.tsx
+++ b/plugins/catalog/src/components/DependsOnResourcesCard/DependsOnResourcesCard.tsx
@@ -31,7 +31,7 @@ export const DependsOnResourcesCard = ({ variant = 'gridItem' }: Props) => {
return (
', () => {
,
);
- expect(getByText('Components')).toBeInTheDocument();
+ expect(getByText('Has components')).toBeInTheDocument();
expect(
getByText(/No component is part of this system/i),
).toBeInTheDocument();
@@ -114,7 +114,7 @@ describe('', () => {
);
await waitFor(() => {
- expect(getByText('Components')).toBeInTheDocument();
+ expect(getByText('Has components')).toBeInTheDocument();
expect(getByText(/target-name/i)).toBeInTheDocument();
});
});
diff --git a/plugins/catalog/src/components/HasComponentsCard/HasComponentsCard.tsx b/plugins/catalog/src/components/HasComponentsCard/HasComponentsCard.tsx
index a54147d6a8..cefdb15a6e 100644
--- a/plugins/catalog/src/components/HasComponentsCard/HasComponentsCard.tsx
+++ b/plugins/catalog/src/components/HasComponentsCard/HasComponentsCard.tsx
@@ -31,7 +31,7 @@ export const HasComponentsCard = ({ variant = 'gridItem' }: Props) => {
return (
', () => {
,
);
- expect(getByText('Resources')).toBeInTheDocument();
+ expect(getByText('Has resources')).toBeInTheDocument();
expect(
getByText(/No resource is part of this system/i),
).toBeInTheDocument();
@@ -114,7 +114,7 @@ describe('', () => {
);
await waitFor(() => {
- expect(getByText('Resources')).toBeInTheDocument();
+ expect(getByText('Has resources')).toBeInTheDocument();
expect(getByText(/target-name/i)).toBeInTheDocument();
});
});
diff --git a/plugins/catalog/src/components/HasResourcesCard/HasResourcesCard.tsx b/plugins/catalog/src/components/HasResourcesCard/HasResourcesCard.tsx
index bf96945602..3a57317a06 100644
--- a/plugins/catalog/src/components/HasResourcesCard/HasResourcesCard.tsx
+++ b/plugins/catalog/src/components/HasResourcesCard/HasResourcesCard.tsx
@@ -31,7 +31,7 @@ export const HasResourcesCard = ({ variant = 'gridItem' }: Props) => {
return (
', () => {
,
);
- expect(getByText('Subcomponents')).toBeInTheDocument();
+ expect(getByText('Has subcomponents')).toBeInTheDocument();
expect(
getByText(/No subcomponent is part of this component/i),
).toBeInTheDocument();
@@ -114,7 +114,7 @@ describe('', () => {
);
await waitFor(() => {
- expect(getByText('Subcomponents')).toBeInTheDocument();
+ expect(getByText('Has subcomponents')).toBeInTheDocument();
expect(getByText(/target-name/i)).toBeInTheDocument();
});
});
diff --git a/plugins/catalog/src/components/HasSubcomponentsCard/HasSubcomponentsCard.tsx b/plugins/catalog/src/components/HasSubcomponentsCard/HasSubcomponentsCard.tsx
index 67582453e2..ddeffe3fbd 100644
--- a/plugins/catalog/src/components/HasSubcomponentsCard/HasSubcomponentsCard.tsx
+++ b/plugins/catalog/src/components/HasSubcomponentsCard/HasSubcomponentsCard.tsx
@@ -30,7 +30,7 @@ export const HasSubcomponentsCard = ({ variant = 'gridItem' }: Props) => {
return (
', () => {
,
);
- expect(getByText('Systems')).toBeInTheDocument();
+ expect(getByText('Has systems')).toBeInTheDocument();
expect(getByText(/No system is part of this domain/i)).toBeInTheDocument();
});
@@ -112,7 +112,7 @@ describe('', () => {
);
await waitFor(() => {
- expect(getByText('Systems')).toBeInTheDocument();
+ expect(getByText('Has systems')).toBeInTheDocument();
expect(getByText(/target-name/i)).toBeInTheDocument();
});
});
diff --git a/plugins/catalog/src/components/HasSystemsCard/HasSystemsCard.tsx b/plugins/catalog/src/components/HasSystemsCard/HasSystemsCard.tsx
index e5217efe48..b3e756c8dc 100644
--- a/plugins/catalog/src/components/HasSystemsCard/HasSystemsCard.tsx
+++ b/plugins/catalog/src/components/HasSystemsCard/HasSystemsCard.tsx
@@ -31,7 +31,7 @@ export const HasSystemsCard = ({ variant = 'gridItem' }: Props) => {
return (