Skip to content

Commit

Permalink
feat(rhosak): ent-4689 activate billing provider (#894)
Browse files Browse the repository at this point in the history
  • Loading branch information
cdcabrera committed May 25, 2022
1 parent a241e3d commit 1996de2
Show file tree
Hide file tree
Showing 3 changed files with 37 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/components/i18n/__tests__/__snapshots__/i18n.test.js.snap
Original file line number Diff line number Diff line change
Expand Up @@ -648,6 +648,10 @@ Array [
"key": "curiosity-graph.label_axisX",
"match": "translate('curiosity-graph.label_axisX', { context: GRANULARITY_TYPES.DAILY })",
},
Object {
"key": "",
"match": "translate(\`curiosity-inventory.measurement_\${INVENTORY_TYPES.BILLING_PROVIDER}\`, { context: provider?.value })",
},
Object {
"key": "curiosity-inventory.header",
"match": "translate('curiosity-inventory.header', { context: ['tooltip', RHSM_API_PATH_METRIC_TYPES.TRANSFER_GIBIBYTES] })",
Expand Down
18 changes: 18 additions & 0 deletions src/config/__tests__/__snapshots__/product.rhosak.test.js.snap
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@ Object {
Object {
"title": "lorem ipsum",
},
Object {
"title": "t(curiosity-inventory.measurement_billing_provider, {})",
},
Object {
"title": "t(curiosity-inventory.measurement, {\\"context\\":\\"Transfer-gibibytes\\",\\"total\\":\\"0.00035\\"})",
},
Expand All @@ -26,6 +29,12 @@ Object {
"title": "t(curiosity-inventory.header, {\\"context\\":\\"display_name\\"})",
"transforms": Array [],
},
Object {
"title": "t(curiosity-inventory.header, {\\"context\\":\\"billing_provider\\"})",
"transforms": Array [
[Function],
],
},
Object {
"title": <Tooltip
content="t(curiosity-inventory.header, {\\"context\\":\\"tooltip_Transfer-gibibytes\\"})"
Expand Down Expand Up @@ -109,6 +118,9 @@ Object {
lorem ipsum
</Button>,
},
Object {
"title": "t(curiosity-inventory.measurement_billing_provider, {})",
},
Object {
"title": "t(curiosity-inventory.measurement, {\\"context\\":\\"Transfer-gibibytes\\",\\"total\\":\\"0.00035\\"})",
},
Expand All @@ -129,6 +141,12 @@ Object {
"title": "t(curiosity-inventory.header, {\\"context\\":\\"display_name\\"})",
"transforms": Array [],
},
Object {
"title": "t(curiosity-inventory.header, {\\"context\\":\\"billing_provider\\"})",
"transforms": Array [
[Function],
],
},
Object {
"title": <Tooltip
content="t(curiosity-inventory.header, {\\"context\\":\\"tooltip_Transfer-gibibytes\\"})"
Expand Down
15 changes: 15 additions & 0 deletions src/config/product.rhosak.js
Original file line number Diff line number Diff line change
Expand Up @@ -140,6 +140,16 @@ const config = {
},
isSortable: true
},
{
id: INVENTORY_TYPES.BILLING_PROVIDER,
cell: ({ [INVENTORY_TYPES.BILLING_PROVIDER]: provider }) =>
translate(`curiosity-inventory.measurement_${INVENTORY_TYPES.BILLING_PROVIDER}`, {
context: provider?.value
}),
isSortable: true,
isWrappable: false,
cellWidth: 15
},
{
id: RHSM_API_PATH_METRIC_TYPES.TRANSFER_GIBIBYTES,
header: {
Expand Down Expand Up @@ -244,6 +254,11 @@ const config = {
}
],
initialToolbarFilters: [
{
id: RHSM_API_QUERY_SET_TYPES.BILLING_PROVIDER
}
],
initialSecondaryToolbarFilters: [
{
id: 'rangedMonthly'
}
Expand Down

0 comments on commit 1996de2

Please sign in to comment.