From 964fba953ff4e2903a83c9509aaee8608706e61f Mon Sep 17 00:00:00 2001 From: Cameron Bowler Date: Thu, 31 Oct 2024 08:47:39 -0700 Subject: [PATCH 1/3] Launch Tiles+ --- auth-web/.env.example | 1 + auth-web/devops/vaults.env | 1 + auth-web/package-lock.json | 4 +- auth-web/package.json | 2 +- auth-web/src/assets/img/icon-drs.svg | 6 ++ .../img/icon-involuntary-dissolution.svg | 3 + auth-web/src/components/LaunchTile.vue | 74 ++++++++++++++++++ auth-web/src/components/index.ts | 1 + auth-web/src/models/common.ts | 12 +++ auth-web/src/util/config-helper.ts | 4 + auth-web/src/util/constants.ts | 1 + .../views/auth/staff/StaffDashboardView.vue | 75 ++++++++++--------- .../tests/unit/components/LaunchTile.spec.ts | 66 ++++++++++++++++ 13 files changed, 212 insertions(+), 38 deletions(-) create mode 100644 auth-web/src/assets/img/icon-drs.svg create mode 100644 auth-web/src/assets/img/icon-involuntary-dissolution.svg create mode 100644 auth-web/src/components/LaunchTile.vue create mode 100644 auth-web/src/models/common.ts create mode 100644 auth-web/tests/unit/components/LaunchTile.spec.ts diff --git a/auth-web/.env.example b/auth-web/.env.example index 13aa5dbc9..f4bae2a31 100644 --- a/auth-web/.env.example +++ b/auth-web/.env.example @@ -20,6 +20,7 @@ VUE_APP_XLP_FORMS_URL="https://www2.gov.bc.ca/assets/gov/employment-business-and VUE_APP_REGISTRY_HOME_URL="https://dev.bcregistry.gov.bc.ca/" VUE_APP_AUTH_WEB_URL="https://dev.account.bcregistry.gov.bc.ca/" VUE_APP_DASHBOARD_URL="https://dev.business.bcregistry.gov.bc.ca/" +VUE_APP_DOCUMENTS_UI_URL="https://documents-ui-dev.firebaseapp.com" VUE_APP_ENTITY_SELECTOR_URL="https://entity-selection-dev.apps.silver.devops.gov.bc.ca/" VUE_APP_SITEMINDER_LOGOUT_URL="https://logontest7.gov.bc.ca/clp-cgi/logoff.cgi" VUE_APP_NAME_REQUEST_URL="https://dev.names.bcregistry.gov.bc.ca/" diff --git a/auth-web/devops/vaults.env b/auth-web/devops/vaults.env index 950381cdc..743b09d10 100644 --- a/auth-web/devops/vaults.env +++ b/auth-web/devops/vaults.env @@ -15,6 +15,7 @@ VUE_APP_ONE_STOP_URL="op://relationship/$APP_ENV/auth-web/ONE_STOP_URL" VUE_APP_REGISTRY_HOME_URL="op://web-url/$APP_ENV/registry/REGISTRY_HOME_URL" VUE_APP_AUTH_WEB_URL="op://web-url/$APP_ENV/auth-web/AUTH_WEB_URL" VUE_APP_DASHBOARD_URL="op://web-url/$APP_ENV/business/DASHBOARD_URL" +VUE_APP_DOCUMENTS_UI_URL="op://web-url/$APP_ENV/documents-ui/DOCUMENTS_UI_URL" VUE_APP_ENTITY_SELECTOR_URL="op://web-url/$APP_ENV/entity-selector/ENTITY_SELECTOR_URL" VUE_APP_SITEMINDER_LOGOUT_URL="op://web-url/$APP_ENV/siteminder/SITEMINDER_LOGOUT_URL" VUE_APP_NAME_REQUEST_URL="op://web-url/$APP_ENV/name-request/NAME_REQUEST_URL" diff --git a/auth-web/package-lock.json b/auth-web/package-lock.json index f15cd0bdf..643679b85 100644 --- a/auth-web/package-lock.json +++ b/auth-web/package-lock.json @@ -1,12 +1,12 @@ { "name": "auth-web", - "version": "2.6.105", + "version": "2.6.106", "lockfileVersion": 2, "requires": true, "packages": { "": { "name": "auth-web", - "version": "2.6.105", + "version": "2.6.106", "dependencies": { "@bcrs-shared-components/base-address": "2.0.3", "@bcrs-shared-components/bread-crumb": "1.0.8", diff --git a/auth-web/package.json b/auth-web/package.json index 1641f3e70..d528bee41 100644 --- a/auth-web/package.json +++ b/auth-web/package.json @@ -1,6 +1,6 @@ { "name": "auth-web", - "version": "2.6.105", + "version": "2.6.106", "appName": "Auth Web", "sbcName": "SBC Common Components", "private": true, diff --git a/auth-web/src/assets/img/icon-drs.svg b/auth-web/src/assets/img/icon-drs.svg new file mode 100644 index 000000000..98f62cbc8 --- /dev/null +++ b/auth-web/src/assets/img/icon-drs.svg @@ -0,0 +1,6 @@ + + + + + + diff --git a/auth-web/src/assets/img/icon-involuntary-dissolution.svg b/auth-web/src/assets/img/icon-involuntary-dissolution.svg new file mode 100644 index 000000000..14f38a5d8 --- /dev/null +++ b/auth-web/src/assets/img/icon-involuntary-dissolution.svg @@ -0,0 +1,3 @@ + + + diff --git a/auth-web/src/components/LaunchTile.vue b/auth-web/src/components/LaunchTile.vue new file mode 100644 index 000000000..f4d8ad882 --- /dev/null +++ b/auth-web/src/components/LaunchTile.vue @@ -0,0 +1,74 @@ + + + + + diff --git a/auth-web/src/components/index.ts b/auth-web/src/components/index.ts index d02b10883..bb8811a41 100644 --- a/auth-web/src/components/index.ts +++ b/auth-web/src/components/index.ts @@ -3,3 +3,4 @@ export { default as BaseVExpansionPanel } from './BaseVExpansionPanel.vue' export { default as CardHeader } from './CardHeader.vue' export { default as DatePicker } from './DatePicker.vue' export { default as IconTooltip } from './IconTooltip.vue' +export { default as LaunchTile } from './LaunchTile.vue' diff --git a/auth-web/src/models/common.ts b/auth-web/src/models/common.ts new file mode 100644 index 000000000..2dbaf792e --- /dev/null +++ b/auth-web/src/models/common.ts @@ -0,0 +1,12 @@ +import { ComputedRef } from '@vue/composition-api' + +/** Interface for the LaunchTileConfig object */ +export interface LaunchTileConfigIF { + showTile: ComputedRef + image: string + title: string + description: string + href?: ComputedRef + action?: () => void + actionLabel: string +} diff --git a/auth-web/src/util/config-helper.ts b/auth-web/src/util/config-helper.ts index 15229588d..a1e2504ca 100644 --- a/auth-web/src/util/config-helper.ts +++ b/auth-web/src/util/config-helper.ts @@ -46,6 +46,10 @@ export default class ConfigHelper { return `${import.meta.env.VUE_APP_REGISTRY_HOME_URL}dashboard` } + static getBcrosDocumentsUiURL () { + return `${import.meta.env.VUE_APP_DOCUMENTS_UI_URL}` + } + static getBcrosURL () { return `${ConfigHelper.getSelfURL()}/signin/bcros/` } diff --git a/auth-web/src/util/constants.ts b/auth-web/src/util/constants.ts index c2bd88b33..c8879c0e0 100644 --- a/auth-web/src/util/constants.ts +++ b/auth-web/src/util/constants.ts @@ -484,6 +484,7 @@ export enum LDFlags { EnableAffiliationDelegation = 'enable-affiliation-delegation', EnableCreditCardPremium = 'enable-credit-card-premium', EnableEFTBalanceByPAD = 'enable-eft-balance-by-pad', + EnableDRSLookup = 'enable-drs-lookup', // Document Record Services } export enum DateFilterCodes { diff --git a/auth-web/src/views/auth/staff/StaffDashboardView.vue b/auth-web/src/views/auth/staff/StaffDashboardView.vue index 6565af5d2..1809679b5 100644 --- a/auth-web/src/views/auth/staff/StaffDashboardView.vue +++ b/auth-web/src/views/auth/staff/StaffDashboardView.vue @@ -265,53 +265,30 @@ - - - + + - -
-

- Involuntary Dissolution -

-

- Set up and manage automation for Involuntary Dissolution of businesses -

-
-
- - - Manage Involuntary Dissolution - - -
-
+ + +