From a83ceebd5414b4488f3d8ce1d53c39a816cdbac1 Mon Sep 17 00:00:00 2001 From: "karim.jazzar@gov.bc.ca" Date: Mon, 23 Dec 2024 19:03:39 -0500 Subject: [PATCH] feat: changed to use new BRD feature flags --- business-registry-dashboard/app/enums/ld-flags.ts | 2 ++ business-registry-dashboard/app/utils/business.ts | 2 +- business-registry-dashboard/app/utils/name-request.ts | 2 +- business-registry-dashboard/package.json | 2 +- 4 files changed, 5 insertions(+), 3 deletions(-) diff --git a/business-registry-dashboard/app/enums/ld-flags.ts b/business-registry-dashboard/app/enums/ld-flags.ts index 5cf7138..95059a7 100644 --- a/business-registry-dashboard/app/enums/ld-flags.ts +++ b/business-registry-dashboard/app/enums/ld-flags.ts @@ -4,10 +4,12 @@ export enum LDFlags { BannerText = 'banner-text', BusSearchLink = 'bus-search-staff-link', EnableBcCccUlc = 'enable-bc-ccc-ulc', + EnableBcCccUlcBrd = 'enable-bc-ccc-ulc-brd', EnableBusinessNrSearch = 'enable-business-nr-search', EnableDetailsFilter = 'enable-transactions-detail-filter', EnableEFTPaymentMethod = 'enable-eft-payment-method', IaSupportedEntities = 'ia-supported-entities', + IaSupportedEntitiesBrd = 'ia-supported-entities-brd', ProductBCAStatus = 'product-BCA-status', ProductBusSearchPremTooltip = 'product-BUSINESS_SEARCH-prem-tooltip', ProductBusSearchStatus = 'product-BUSINESS_SEARCH-status', diff --git a/business-registry-dashboard/app/utils/business.ts b/business-registry-dashboard/app/utils/business.ts index d5e34d2..bc7c053 100644 --- a/business-registry-dashboard/app/utils/business.ts +++ b/business-registry-dashboard/app/utils/business.ts @@ -75,7 +75,7 @@ export function isSocieties (item: Business): boolean { export function isModernizedEntity (item: Business): boolean { const ldStore = useConnectLaunchdarklyStore() - const supportedEntityFlags = ldStore.getStoredFlag(LDFlags.IaSupportedEntities) + const supportedEntityFlags = ldStore.getStoredFlag(LDFlags.IaSupportedEntitiesBrd) const entityType = getEntityType(item) if (typeof supportedEntityFlags === 'string') { return supportedEntityFlags.split(' ').includes(entityType) diff --git a/business-registry-dashboard/app/utils/name-request.ts b/business-registry-dashboard/app/utils/name-request.ts index 6e0b3f2..dfc7063 100644 --- a/business-registry-dashboard/app/utils/name-request.ts +++ b/business-registry-dashboard/app/utils/name-request.ts @@ -17,7 +17,7 @@ export function mapRequestTypeCdToNrType (requestTypeCd: NrRequestTypeCodes): st /* Internal function to build the namerequest object. */ export function buildNameRequestObject (nr: NameRequestResponse) { const ldStore = useConnectLaunchdarklyStore() - const enableBcCccUlc = ldStore.getStoredFlag(LDFlags.EnableBcCccUlc) || false + const enableBcCccUlc = ldStore.getStoredFlag(LDFlags.EnableBcCccUlcBrd) || false /** Returns True if NR has applicants for registration. */ const isApplicantsExist = (nr: NameRequestResponse): boolean => { diff --git a/business-registry-dashboard/package.json b/business-registry-dashboard/package.json index e2c36a9..5083511 100644 --- a/business-registry-dashboard/package.json +++ b/business-registry-dashboard/package.json @@ -2,7 +2,7 @@ "name": "business-registry-dashboard", "private": true, "type": "module", - "version": "0.0.11", + "version": "0.0.12", "scripts": { "build-check": "nuxt build", "build": "nuxt generate",