Skip to content

Commit

Permalink
feat(openshiftView): ent-3324 activate two column view
Browse files Browse the repository at this point in the history
* i18n, locale strings
* openshiftView, activate uom, quick fix
* productView, remove unused viewSelector, redux
* viewSelectors, quick fix to force render of openshiftView
  • Loading branch information
cdcabrera committed Feb 26, 2021
1 parent 5e122ce commit 241923c
Show file tree
Hide file tree
Showing 14 changed files with 1,219 additions and 967 deletions.
11 changes: 9 additions & 2 deletions public/locales/en-US.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@
"cardHeading": "CPU usage",
"cardHeading_cores": "CPU core usage",
"cardHeading_sockets": "CPU socket usage",
"cardHeading_OpenShift Container Platform": "Fixed capacity",
"cardHeading_OpenShift-metrics": "Flexible subscriptions",
"cardHeading_OpenShift-dedicated-metrics": "Flexible subscriptions",
"cardHeading_RHEL": "CPU socket usage",
"cardHeading_Satellite": "CPU socket usage",
Expand Down Expand Up @@ -83,7 +85,12 @@
"header_measurementType": "Type",
"header_inventoryId": "UUID",
"header_sockets": "Subscribed sockets",
"header_sockets_OpenShift Container Platform": "Sockets",
"header_sockets_OpenShift-metrics": "Sockets",
"header_sockets_OpenShift-dedicated-metrics": "Sockets",
"header_lastSeen": "Last seen",
"header_lastSeen_OpenShift Container Platform": "Last check-in",
"header_lastSeen_OpenShift-metrics": "Last check-in",
"header_lastSeen_OpenShift-dedicated-metrics": "Last check-in",
"header_productName": "Product",
"header_serviceLevel": "Service level",
Expand Down Expand Up @@ -152,8 +159,8 @@
"curiosity-view": {
"title": "{{appName}}",
"subtitle": "Monitor your usage based on your subscription terms. <0>Learn more about {{appName}} reporting</0>",
"title_OpenShift Container Platform": "Red Hat OpenShift",
"subtitle_OpenShift Container Platform": "Monitor your Red Hat OpenShift usage by socket or core usage, based on your subscription terms. <0>Learn more about {{appName}} reporting</0>",
"title_OpenShift Container Platform": "OpenShift Container Platform",
"subtitle_OpenShift Container Platform": "Monitor your OpenShift Container Platform usage for both fixed and flexible capacity subscriptions. <0>Learn more about {{appName}} reporting</0>",
"title_OpenShift-dedicated-metrics": "OpenShift Dedicated",
"subtitle_OpenShift-dedicated-metrics": "Monitor your OpenShift Dedicated usage for flexible capacity subscriptions. <0>Learn more about {{appName}} reporting</0>",
"title_RHEL": "Red Hat Enterprise Linux",
Expand Down
26 changes: 17 additions & 9 deletions src/components/i18n/__tests__/__snapshots__/i18n.test.js.snap
Original file line number Diff line number Diff line change
Expand Up @@ -149,13 +149,9 @@ Array [
Object {
"file": "./src/components/openshiftView/openshiftView.js",
"keys": Array [
Object {
"key": "curiosity-view.title",
"match": "t(\`curiosity-view.title\`, { appName: helpers.UI_DISPLAY_NAME, context: productLabel })",
},
Object {
"key": "curiosity-graph.cardHeading",
"match": "t('curiosity-graph.cardHeading', { context: uomFilter })",
"match": "t('curiosity-graph.cardHeading', { context: productId })",
},
Object {
"key": "curiosity-inventory.tab",
Expand All @@ -165,6 +161,10 @@ Array [
"key": "curiosity-inventory.tab",
"match": "t('curiosity-inventory.tab', { context: 'subscriptions' })",
},
Object {
"key": "curiosity-view.title",
"match": "t(\`curiosity-view.title\`, { appName: helpers.UI_DISPLAY_NAME, context: productLabel })",
},
Object {
"key": "curiosity-inventory.header",
"match": "translate('curiosity-inventory.header', { context: 'guestsDisplayName' })",
Expand All @@ -174,12 +174,16 @@ Array [
"match": "translate('curiosity-inventory.label', { context: 'numberOfGuests', count: numberOfGuests.value }, [ <PfLabel color=\\"blue\\" /> ])",
},
Object {
"key": "curiosity-inventory.measurementType",
"match": "translate('curiosity-inventory.measurementType', { context: measurementType.value })",
"key": "curiosity-inventory.header",
"match": "translate('curiosity-inventory.header', { context: 'sockets_OpenShift Container Platform' })",
},
Object {
"key": "curiosity-inventory.cloudProvider",
"match": "translate('curiosity-inventory.cloudProvider', { context: cloudProvider.value })",
"key": "curiosity-inventory.header",
"match": "translate('curiosity-inventory.header', { context: 'cores_OpenShift Container Platform' })",
},
Object {
"key": "curiosity-inventory.label",
"match": "translate('curiosity-inventory.label', { context: 'numberOfGuests', count: numberOfGuests.value }, [ <PfLabel color=\\"blue\\" /> ])",
},
],
},
Expand Down Expand Up @@ -559,6 +563,10 @@ Array [
"file": "./src/components/openshiftView/openshiftView.js",
"key": "curiosity-inventory.label",
},
Object {
"file": "./src/components/openshiftView/openshiftView.js",
"key": "curiosity-inventory.label",
},
Object {
"file": "./src/components/productView/productView.js",
"key": "curiosity-inventory.tab",
Expand Down
Loading

0 comments on commit 241923c

Please sign in to comment.