Skip to content

Commit

Permalink
feat(rhelView): issues/226 display cloud metering data (#237)
Browse files Browse the repository at this point in the history
* i18, public cloud string
* rhelView, filter for cloud meter sockets
* rhsmServices, mock for cloud meter properties
* rhsmApiTypes, add cloud meter types
  • Loading branch information
cdcabrera committed Mar 26, 2020
1 parent f39426c commit 26319ae
Show file tree
Hide file tree
Showing 8 changed files with 446 additions and 16 deletions.
1 change: 1 addition & 0 deletions public/locales/en-US.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
"dateLabel": "Date",
"coresLabel": "Cores",
"socketsLabel": "Sockets",
"cloudSocketsLabel": "Public cloud",
"hypervisorCoresLabel": "Virtualized cores",
"hypervisorSocketsLabel": "Virtualized {{product}}",
"physicalCoresLabel": "Physical cores",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ msgstr \\"\\"
\\"Content-Type: text/plain; charset=UTF-8\\\\n\\"
#: src/components/openshiftView/openshiftView.js:92
#: src/components/rhelView/rhelView.js:47
#: src/components/rhelView/rhelView.js:49
msgid \\"curiosity-graph.cardHeading\\"
msgstr \\"\\"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,11 @@ exports[`RhelView Component should have a fallback title: title 1`] = `
"id": "hypervisorSockets",
"stroke": "#009596",
},
Object {
"fill": "#b2b0ea",
"id": "cloudSockets",
"stroke": "#5752d1",
},
Object {
"id": "thresholdSockets",
},
Expand Down Expand Up @@ -79,6 +84,11 @@ exports[`RhelView Component should render a non-connected component: non-connect
"id": "hypervisorSockets",
"stroke": "#009596",
},
Object {
"fill": "#b2b0ea",
"id": "cloudSockets",
"stroke": "#5752d1",
},
Object {
"id": "thresholdSockets",
},
Expand Down
5 changes: 4 additions & 1 deletion src/components/rhelView/rhelView.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,9 @@ import {
chart_color_blue_100 as chartColorBlueLight,
chart_color_blue_300 as chartColorBlueDark,
chart_color_cyan_100 as chartColorCyanLight,
chart_color_cyan_300 as chartColorCyanDark
chart_color_cyan_300 as chartColorCyanDark,
chart_color_purple_100 as chartColorPurpleLight,
chart_color_purple_300 as chartColorPurpleDark
} from '@patternfly/react-tokens';
import { PageLayout, PageHeader, PageSection, PageToolbar } from '../pageLayout/pageLayout';
import { RHSM_API_QUERY_GRANULARITY_TYPES as GRANULARITY_TYPES, rhsmApiTypes } from '../../types/rhsmApiTypes';
Expand Down Expand Up @@ -86,6 +88,7 @@ RhelView.defaultProps = {
initialFilters: [
{ id: 'physicalSockets', fill: chartColorBlueLight.value, stroke: chartColorBlueDark.value },
{ id: 'hypervisorSockets', fill: chartColorCyanLight.value, stroke: chartColorCyanDark.value },
{ id: 'cloudSockets', fill: chartColorPurpleLight.value, stroke: chartColorPurpleDark.value },
{ id: 'thresholdSockets' }
],
t: helpers.noopTranslate,
Expand Down
Loading

0 comments on commit 26319ae

Please sign in to comment.