Skip to content

Commit

Permalink
21131 - Update product description (bcgov#3195)
Browse files Browse the repository at this point in the history
  • Loading branch information
Jxio authored Jan 7, 2025
1 parent ff81711 commit f8cdc5c
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 6 deletions.
4 changes: 2 additions & 2 deletions auth-web/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion auth-web/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "auth-web",
"version": "2.7.0",
"version": "2.7.1",
"appName": "Auth Web",
"sbcName": "SBC Common Components",
"private": true,
Expand Down
7 changes: 6 additions & 1 deletion auth-web/src/components/auth/common/Product.vue
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
class="title font-weight-bold product-title mt-n1"
:data-test="productDetails.code"
>
{{ productDetails.description }}
{{ productDescription(productDetails.code, productDetails.description) }}
<v-tooltip
v-if="productPremTooltipText(productDetails.code)"
class="pa-2"
Expand Down Expand Up @@ -199,6 +199,7 @@ import AccountMixin from '@/components/auth/mixins/AccountMixin.vue'
import LaunchDarklyService from 'sbc-common-components/src/services/launchdarkly.services'
import ProductFee from '@/components/auth/common/ProductFeeViewEdit.vue'
import ProductTos from '@/components/auth/common/ProductTOS.vue'
import { productDisplay } from '@/resources/display-mappers'
const TOS_NEEDED_PRODUCT = ['VS']
Expand Down Expand Up @@ -379,6 +380,10 @@ export default class Product extends Mixins(AccountMixin) {
public productPremTooltipText (code: string) {
return LaunchDarklyService.getFlag(`product-${code}-prem-tooltip`)
}
public productDescription (code: string, description: string) {
return productDisplay[code] || description
}
}
</script>

Expand Down
4 changes: 2 additions & 2 deletions auth-web/tests/unit/components/Product.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,14 +15,14 @@ describe('Product.vue', () => {

const productDetails = {
'code': 'VS',
'description': 'test',
'description': 'Vital Statistics',
'url': 'url',
'type': 'PARTNER',
'subscriptionStatus': ProductStatus.NOT_SUBSCRIBED
}
const pprProduct = {
'code': 'PPR',
'description': 'ppr',
'description': 'Personal Property Registry',
'url': 'url',
'type': 'PARTNER',
'subscriptionStatus': ProductStatus.NOT_SUBSCRIBED,
Expand Down

0 comments on commit f8cdc5c

Please sign in to comment.