From d0521b34847297e73795103b610f1bb44b9dd75b Mon Sep 17 00:00:00 2001 From: CD Cabrera Date: Wed, 7 Apr 2021 16:43:04 -0400 Subject: [PATCH] fix(locale): ent-3712 update core hours display string (#612) --- public/locales/en-US.json | 4 ++-- .../productViewOpenShiftContainer.test.js.snap | 12 ++++++------ .../productView/productViewOpenShiftContainer.js | 6 +++--- 3 files changed, 11 insertions(+), 11 deletions(-) diff --git a/public/locales/en-US.json b/public/locales/en-US.json index 37899c4a3..4af171719 100644 --- a/public/locales/en-US.json +++ b/public/locales/en-US.json @@ -28,7 +28,7 @@ "dateLabel": "Date", "coresLabel": "Cores", "coresLegendTooltip": "{{product}} CPU usage, per CPU core.", - "coreHoursLabel": "Core Hours", + "coreHoursLabel": "Core hours", "coreHoursLegendTooltip": "{{product}} core hours usage.", "coreHoursLegendTooltip_OpenShift-dedicated-metrics": "OpenShift Dedicated core hours usage.", "socketsLabel": "Sockets", @@ -82,7 +82,7 @@ "header_cores_OpenShift Container Platform": "Cores", "header_cores_OpenShift-metrics": "Cores", "header_cores_OpenShift-dedicated-metrics": "Cores", - "header_coreHours": "Hours used", + "header_coreHours": "Core hours", "header_displayName": "Name", "header_guestsDisplayName": "Guest name", "header_hardwareType": "Type", diff --git a/src/components/productView/__tests__/__snapshots__/productViewOpenShiftContainer.test.js.snap b/src/components/productView/__tests__/__snapshots__/productViewOpenShiftContainer.test.js.snap index e8a6e1f9c..94d9005b1 100644 --- a/src/components/productView/__tests__/__snapshots__/productViewOpenShiftContainer.test.js.snap +++ b/src/components/productView/__tests__/__snapshots__/productViewOpenShiftContainer.test.js.snap @@ -190,7 +190,7 @@ exports[`ProductViewOpenShiftContainer Component should render a non-connected c }, Object { "cell": [Function], - "cellWidth": 15, + "cellWidth": 25, "id": "lastSeen", "isSortable": true, "isWrappable": true, @@ -454,14 +454,14 @@ exports[`ProductViewOpenShiftContainer Component should render a non-connected c }, Object { "cell": [Function], - "cellWidth": 15, + "cellWidth": 20, "id": "coreHours", "isSortable": true, "isWrappable": true, }, Object { "cell": [Function], - "cellWidth": 15, + "cellWidth": 25, "id": "lastSeen", "isSortable": true, "isWrappable": true, @@ -799,7 +799,7 @@ Array [ }, Object { "cell": [Function], - "cellWidth": 15, + "cellWidth": 25, "id": "lastSeen", "isSortable": true, "isWrappable": true, @@ -828,14 +828,14 @@ Array [ }, Object { "cell": [Function], - "cellWidth": 15, + "cellWidth": 20, "id": "coreHours", "isSortable": true, "isWrappable": true, }, Object { "cell": [Function], - "cellWidth": 15, + "cellWidth": 25, "id": "lastSeen", "isSortable": true, "isWrappable": true, diff --git a/src/components/productView/productViewOpenShiftContainer.js b/src/components/productView/productViewOpenShiftContainer.js index 234225087..41a112806 100644 --- a/src/components/productView/productViewOpenShiftContainer.js +++ b/src/components/productView/productViewOpenShiftContainer.js @@ -382,7 +382,7 @@ ProductViewOpenShiftContainer.defaultProps = { cell: data => (data?.lastSeen?.value && ) || '', isSortable: true, isWrappable: true, - cellWidth: 15 + cellWidth: 25 } ], initialInventorySettings: {}, @@ -469,14 +469,14 @@ ProductViewOpenShiftContainer.defaultProps = { `0.00`, isSortable: true, isWrappable: true, - cellWidth: 15 + cellWidth: 20 }, { id: 'lastSeen', cell: data => (data?.lastSeen?.value && ) || '', isSortable: true, isWrappable: true, - cellWidth: 15 + cellWidth: 25 } ], initialToolbarFilters: undefined,