Skip to content

Commit 1651c47

Browse files
authored
15568 - As a BCOL HD staff user I need to launch any/all products (bcgov#3273)
1 parent 6c83c65 commit 1651c47

File tree

3 files changed

+115
-0
lines changed

3 files changed

+115
-0
lines changed
Lines changed: 104 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,104 @@
1+
<template>
2+
<v-card
3+
class="product-container"
4+
:href="businessURL"
5+
>
6+
<v-row
7+
align="center"
8+
no-gutters
9+
>
10+
<v-col cols="auto">
11+
<img
12+
alt="product"
13+
class="product-img"
14+
:src="getImgUrl(img)"
15+
>
16+
</v-col>
17+
<v-col
18+
class="product-info"
19+
align-self="baseline"
20+
>
21+
<h2>{{ title }}</h2>
22+
<p class="mt-5 mb-0">
23+
{{ text }}
24+
</p>
25+
<v-btn class="primary product-info__btn px-5">
26+
Open
27+
<v-icon>mdi-chevron-right</v-icon>
28+
</v-btn>
29+
</v-col>
30+
</v-row>
31+
</v-card>
32+
</template>
33+
34+
<script lang="ts">
35+
import { computed, defineComponent, reactive, toRefs } from '@vue/composition-api'
36+
import ConfigHelper from '@/util/config-helper'
37+
import { useI18n } from 'vue-i18n-composable'
38+
39+
export default defineComponent({
40+
setup () {
41+
const { t } = useI18n()
42+
43+
const state = reactive({
44+
img: 'AssetsRegistries_dashboard.jpg',
45+
title: t('viewAllProductsLauncherTitle').toString(),
46+
text: t('viewAllProductsLauncherText').toString()
47+
})
48+
49+
const businessURL = computed(() => ConfigHelper.getBcrosDashboardURL())
50+
51+
function getImgUrl (imgName: string) {
52+
return new URL(`/src/assets/img/${imgName}`, import.meta.url).href
53+
}
54+
55+
return {
56+
...toRefs(state),
57+
businessURL,
58+
getImgUrl
59+
}
60+
}
61+
})
62+
</script>
63+
64+
<style lang="scss" scoped>
65+
h2 {
66+
line-height: 1.5rem;
67+
}
68+
69+
.product-container {
70+
border-left: 3px solid transparent;
71+
box-shadow: none;
72+
cursor: pointer;
73+
height: 100%;
74+
max-width: none;
75+
padding: 30px;
76+
77+
&:hover {
78+
border-left: 3px solid $app-blue !important;
79+
}
80+
}
81+
.product-img {
82+
height: 196px;
83+
width: 230px;
84+
}
85+
.product-info {
86+
height: 196px;
87+
padding-left: 15px !important;
88+
position: relative;
89+
90+
p {
91+
color: $gray7;
92+
font-size: 1rem;
93+
}
94+
95+
&__btn {
96+
font-weight: 600;
97+
height: 40px !important;
98+
text-transform: none;
99+
pointer-events: none;
100+
position: absolute;
101+
bottom: 0;
102+
}
103+
}
104+
</style>

auth-web/src/locales/en.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -225,6 +225,8 @@
225225
"developerAccessSubtitle": "Enabling developer access would allow you to integrate the BC Registries API services to your system.<br />Learn more in the <a href=\"{url}\">API documentation</a>.",
226226
"assetLauncherText": "Register or search for manufactured homes and register or search for legal claims on personal property.",
227227
"assetLauncherTitle": "Staff Asset Registries",
228+
"viewAllProductsLauncherTitle": "View All Products",
229+
"viewAllProductsLauncherText": "Access various products and services available to your account.",
228230
"pprLauncherText": "Register or search for legal claims on personal property.",
229231
"pprLauncherTitle": "Staff Personal Property Registry",
230232
"mhrLauncherText": "Register or search for legal claims on manufactured homes.",

auth-web/src/views/auth/staff/StaffDashboardView.vue

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -134,6 +134,13 @@
134134
>
135135
<PPRLauncher />
136136
</v-col>
137+
<v-col
138+
v-if="isContactCentreStaff"
139+
class="pr-2"
140+
cols="6"
141+
>
142+
<AllProductsLauncher />
143+
</v-col>
137144
</v-row>
138145

139146
<!-- Director search -->
@@ -310,6 +317,7 @@
310317
import { BaseVExpansionPanel, LaunchTile } from '@/components'
311318
import { ComputedRef, Ref, computed, defineComponent, reactive, ref, toRefs } from '@vue/composition-api'
312319
import { LDFlags, Role, SessionStorageKeys } from '@/util/constants'
320+
import AllProductsLauncher from '@/components/auth/staff/AllProductsLauncher.vue'
313321
import CommonUtils from '@/util/common-util'
314322
import ConfigHelper from '@/util/config-helper'
315323
import ContinuationApplications from '@/components/auth/staff/continuation-application/ContinuationApplications.vue'
@@ -356,6 +364,7 @@ export default defineComponent({
356364
GLCodesListView,
357365
IncorporationSearchResultView,
358366
PPRLauncher,
367+
AllProductsLauncher,
359368
StaffAccountManagement,
360369
ContinuationApplications,
361370
Transactions

0 commit comments

Comments
 (0)