Skip to content

Commit f8cdc5c

Browse files
authored
21131 - Update product description (#3195)
1 parent ff81711 commit f8cdc5c

File tree

4 files changed

+11
-6
lines changed

4 files changed

+11
-6
lines changed

auth-web/package-lock.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

auth-web/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "auth-web",
3-
"version": "2.7.0",
3+
"version": "2.7.1",
44
"appName": "Auth Web",
55
"sbcName": "SBC Common Components",
66
"private": true,

auth-web/src/components/auth/common/Product.vue

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
class="title font-weight-bold product-title mt-n1"
3030
:data-test="productDetails.code"
3131
>
32-
{{ productDetails.description }}
32+
{{ productDescription(productDetails.code, productDetails.description) }}
3333
<v-tooltip
3434
v-if="productPremTooltipText(productDetails.code)"
3535
class="pa-2"
@@ -199,6 +199,7 @@ import AccountMixin from '@/components/auth/mixins/AccountMixin.vue'
199199
import LaunchDarklyService from 'sbc-common-components/src/services/launchdarkly.services'
200200
import ProductFee from '@/components/auth/common/ProductFeeViewEdit.vue'
201201
import ProductTos from '@/components/auth/common/ProductTOS.vue'
202+
import { productDisplay } from '@/resources/display-mappers'
202203
203204
const TOS_NEEDED_PRODUCT = ['VS']
204205
@@ -379,6 +380,10 @@ export default class Product extends Mixins(AccountMixin) {
379380
public productPremTooltipText (code: string) {
380381
return LaunchDarklyService.getFlag(`product-${code}-prem-tooltip`)
381382
}
383+
384+
public productDescription (code: string, description: string) {
385+
return productDisplay[code] || description
386+
}
382387
}
383388
</script>
384389

auth-web/tests/unit/components/Product.spec.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,14 +15,14 @@ describe('Product.vue', () => {
1515

1616
const productDetails = {
1717
'code': 'VS',
18-
'description': 'test',
18+
'description': 'Vital Statistics',
1919
'url': 'url',
2020
'type': 'PARTNER',
2121
'subscriptionStatus': ProductStatus.NOT_SUBSCRIBED
2222
}
2323
const pprProduct = {
2424
'code': 'PPR',
25-
'description': 'ppr',
25+
'description': 'Personal Property Registry',
2626
'url': 'url',
2727
'type': 'PARTNER',
2828
'subscriptionStatus': ProductStatus.NOT_SUBSCRIBED,

0 commit comments

Comments
 (0)