[Infra] Change "Inventory" to uppercase in "Infrastructure inventory" (#210078)

Closes #210027 

## Summary

This PR changes inventory to start with a capital letter in Infra and
APM

| Before | After |
|-------|-------|
|
![image](https://github.com/user-attachments/assets/f0ec7d3c-647a-4da0-94b7-f7a9f57efd47)
| <img width="1826" alt="image"
src="https://github.com/user-attachments/assets/b91a82ec-effc-45ca-9c82-622e4f631374"
/> |

## How to check
- Search for infra
- Search for inventory
- Check the left side nav 
- Check the Infrastructure Inventory page title
- Check the breadcrumbs



https://github.com/user-attachments/assets/030bab66-6f3c-45bc-9b2c-7860ae63ad24
This commit is contained in:
jennypavlova 2025-02-07 14:31:30 +01:00 committed by GitHub
parent 97d0c1b2ae
commit 02c3373419
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
9 changed files with 15 additions and 15 deletions

View file

@ -36,7 +36,7 @@ const mainApiRequestsToIntercept = [
const mainAliasNames = mainApiRequestsToIntercept.map(({ aliasName }) => `@${aliasName}`);
describe('Service inventory', () => {
describe('Service Inventory', () => {
before(() => {
const { rangeFrom, rangeTo } = timeRange;
synthtrace.index(

View file

@ -36,7 +36,7 @@ export function CardFooterContent() {
<LegacyAPMLink path="/services">
{i18n.translate(
'xpack.apm.settings.schema.success.returnText.serviceInventoryLink',
{ defaultMessage: 'Service inventory' }
{ defaultMessage: 'Service Inventory' }
)}
</LegacyAPMLink>
),

View file

@ -84,7 +84,7 @@ export function TipsAndResources() {
},
{
label: i18n.translate('xpack.apm.storageExplorer.resources.serviceInventory', {
defaultMessage: 'Service inventory',
defaultMessage: 'Service Inventory',
}),
href: router.link('/services', {
query: {

View file

@ -35,7 +35,7 @@ export const metricsTitle = i18n.translate('xpack.infra.header.infrastructureTit
});
export const inventoryTitle = i18n.translate('xpack.infra.metrics.infrastructureInventoryTitle', {
defaultMessage: 'Infrastructure inventory',
defaultMessage: 'Infrastructure Inventory',
});
export const metricsExplorerTitle = i18n.translate('xpack.infra.metrics.metricsExplorerTitle', {

View file

@ -153,7 +153,7 @@ function createNavTree({ streamsAvailable }: { streamsAvailable?: boolean }) {
{
link: 'metrics:inventory',
title: i18n.translate('xpack.observability.infrastructure.inventory', {
defaultMessage: 'Infrastructure inventory',
defaultMessage: 'Infrastructure Inventory',
}),
getIsActive: ({ pathNameSerialized, prepend }) => {
return pathNameSerialized.startsWith(prepend('/app/metrics/inventory'));

View file

@ -87,7 +87,7 @@ export const createNavigationTree = ({
{
link: 'apm:services',
title: i18n.translate('xpack.serverlessObservability.nav.apm.services', {
defaultMessage: 'Service inventory',
defaultMessage: 'Service Inventory',
}),
},
{ link: 'apm:traces' },
@ -141,7 +141,7 @@ export const createNavigationTree = ({
title: i18n.translate(
'xpack.serverlessObservability.nav.infrastructureInventory',
{
defaultMessage: 'Infrastructure inventory',
defaultMessage: 'Infrastructure Inventory',
}
),
},

View file

@ -144,7 +144,7 @@ export default ({ getPageObjects, getService }: FtrProviderContext) => {
const documentTitle = await browser.getTitle();
expect(documentTitle).to.contain(
'Infrastructure inventory - Infrastructure - Observability - Elastic'
'Infrastructure Inventory - Infrastructure - Observability - Elastic'
);
});
@ -459,7 +459,7 @@ export default ({ getPageObjects, getService }: FtrProviderContext) => {
await retry.tryForTime(5000, async () => {
const documentTitle = await browser.getTitle();
expect(documentTitle).to.contain(
'host-5 - Infrastructure inventory - Infrastructure - Observability - Elastic'
'host-5 - Infrastructure Inventory - Infrastructure - Observability - Elastic'
);
});
@ -476,7 +476,7 @@ export default ({ getPageObjects, getService }: FtrProviderContext) => {
await retry.tryForTime(5000, async () => {
const documentTitle = await browser.getTitle();
expect(documentTitle).to.contain(
'pod-0 - Infrastructure inventory - Infrastructure - Observability - Elastic'
'pod-0 - Infrastructure Inventory - Infrastructure - Observability - Elastic'
);
});
@ -494,7 +494,7 @@ export default ({ getPageObjects, getService }: FtrProviderContext) => {
await retry.tryForTime(5000, async () => {
const documentTitle = await browser.getTitle();
expect(documentTitle).to.contain(
'container-id-4 - Infrastructure inventory - Infrastructure - Observability - Elastic'
'container-id-4 - Infrastructure Inventory - Infrastructure - Observability - Elastic'
);
});

View file

@ -70,7 +70,7 @@ export default function ({ getPageObjects, getService }: FtrProviderContext) {
}
await solutionNavigation.sidenav.clickPanelLink('metrics:inventory');
await solutionNavigation.breadcrumbs.expectBreadcrumbExists({
text: 'Infrastructure inventory',
text: 'Infrastructure Inventory',
});
{

View file

@ -57,7 +57,7 @@ export default ({ getPageObjects, getService }: FtrProviderContext) => {
const documentTitle = await browser.getTitle();
expect(documentTitle).to.contain(
'Infrastructure inventory - Infrastructure - Observability - Elastic'
'Infrastructure Inventory - Infrastructure - Observability - Elastic'
);
});
@ -87,7 +87,7 @@ export default ({ getPageObjects, getService }: FtrProviderContext) => {
await retry.try(async () => {
const documentTitle = await browser.getTitle();
expect(documentTitle).to.contain(
'demo-stack-redis-01 - Infrastructure inventory - Infrastructure - Observability - Elastic'
'demo-stack-redis-01 - Infrastructure Inventory - Infrastructure - Observability - Elastic'
);
});
@ -103,7 +103,7 @@ export default ({ getPageObjects, getService }: FtrProviderContext) => {
await retry.try(async () => {
const documentTitle = await browser.getTitle();
expect(documentTitle).to.contain(
'pod-0 - Infrastructure inventory - Infrastructure - Observability - Elastic'
'pod-0 - Infrastructure Inventory - Infrastructure - Observability - Elastic'
);
});