From 2b4f76db7f32c8c3a178ef5e15b8984958e3a51d Mon Sep 17 00:00:00 2001 From: Jeremy-Z Date: Wed, 21 Jan 2026 12:50:25 -0500 Subject: [PATCH 1/4] Initial logic to hide duplicate check page. --- src/layouts/duplicate-check/duplicate-check.vue | 4 +++- src/layouts/welcome-page/welcome-page.vue | 3 ++- src/store/index.js | 8 +++++++- 3 files changed, 12 insertions(+), 3 deletions(-) diff --git a/src/layouts/duplicate-check/duplicate-check.vue b/src/layouts/duplicate-check/duplicate-check.vue index 88f32a79..f9d2815e 100644 --- a/src/layouts/duplicate-check/duplicate-check.vue +++ b/src/layouts/duplicate-check/duplicate-check.vue @@ -135,7 +135,9 @@ export default { * @summary Steps to perform when forward button clicked. */ async forwardButtonAction() { - if (this.selectedAnswer == null) { + // If user clicked foward without selecting an option or user click on "start a new claim" button. + if (this.selectedAnswer == null || this.selectedAnswer === 'NewClaim') { + this.mainStore.updateDuplicateCheckVisited(true); this.navigateForward(); return; } diff --git a/src/layouts/welcome-page/welcome-page.vue b/src/layouts/welcome-page/welcome-page.vue index 0c1a965f..ad25ad3a 100644 --- a/src/layouts/welcome-page/welcome-page.vue +++ b/src/layouts/welcome-page/welcome-page.vue @@ -310,7 +310,8 @@ export default { this.mainStore.updatePolicyData(this.welcomePageModel); const promises = []; promises.push(this.configureZip().then(async () => await this.mainStore.getBillToInfo())); - if (!this.mainStore.order.loadedFromCookie) { + // Skip duplicate check if loaded from cookie or already visited duplicate check page. + if (!this.mainStore.order.loadedFromCookie && !this.mainStore.order.visitedDuplicateCheckPage) { promises.push(this.mainStore.getDuplicateReferrals()); } promises.push(this.mainStore.getCoveragePolicyInfo()); diff --git a/src/store/index.js b/src/store/index.js index 4c5bcbbd..5350f9c3 100644 --- a/src/store/index.js +++ b/src/store/index.js @@ -225,7 +225,8 @@ export const getDefaultState = () => ({ loadedFromCookie: false, loadedFromDupeCheck: null, loadedSessionClearedPreviousData: null, - availableVaps: null + availableVaps: null, + visitedDuplicateCheckPage: false }, applicationUser: { experiments: [], @@ -595,6 +596,9 @@ export const useMainStore = defineStore({ return Promise.reject(e); } }, + updateDuplicateCheckVisited(visited) { + this.order.visitedDuplicateCheckPage = visited; + }, updateCoverageStatus(status) { this.order.insuranceCoverage.coverageStatus = status; }, @@ -1719,6 +1723,7 @@ export const useMainStore = defineStore({ order.eon = data?.eon; order.workOrderId = data?.workOrderId; order.loadedFromCookie = true; + order.visitedDuplicateCheckPage = true; order.loadedSessionClearedPreviousData = false; issConfig.enableContinueFromCookie = false; this.updateIsSafeliteProvider(data?.provider?.isSafeliteProvider); @@ -2041,6 +2046,7 @@ export const useMainStore = defineStore({ this.order.carrierPhoneNumber = null; this.order.customerPortalLoginToken = null; this.order.loadedFromCookie = false; + this.order.visitedDuplicateCheckPage = false; }, resetPolicy() { From f807ba20ca0c64d83efe412ba5d0af4b34039e6f Mon Sep 17 00:00:00 2001 From: Jeremy-Z Date: Wed, 21 Jan 2026 14:26:07 -0500 Subject: [PATCH 2/4] Clearing out duplicate orders. --- src/layouts/welcome-page/welcome-page.vue | 6 ++++++ src/store/index.js | 3 +++ 2 files changed, 9 insertions(+) diff --git a/src/layouts/welcome-page/welcome-page.vue b/src/layouts/welcome-page/welcome-page.vue index ad25ad3a..2a9293c1 100644 --- a/src/layouts/welcome-page/welcome-page.vue +++ b/src/layouts/welcome-page/welcome-page.vue @@ -310,6 +310,12 @@ export default { this.mainStore.updatePolicyData(this.welcomePageModel); const promises = []; promises.push(this.configureZip().then(async () => await this.mainStore.getBillToInfo())); + + // Clear duplicate orders if navigating away from the welcome page after visiting duplicate check page. + if (this.mainStore.order.visitedDuplicateCheckPage) { + this.mainStore.clearDuplicateOrders(); + } + // Skip duplicate check if loaded from cookie or already visited duplicate check page. if (!this.mainStore.order.loadedFromCookie && !this.mainStore.order.visitedDuplicateCheckPage) { promises.push(this.mainStore.getDuplicateReferrals()); diff --git a/src/store/index.js b/src/store/index.js index 5350f9c3..5b76ace4 100644 --- a/src/store/index.js +++ b/src/store/index.js @@ -596,6 +596,9 @@ export const useMainStore = defineStore({ return Promise.reject(e); } }, + clearDuplicateOrders() { + this.applicationUser.duplicateOrders = []; + }, updateDuplicateCheckVisited(visited) { this.order.visitedDuplicateCheckPage = visited; }, From 43c9e987a48af541522a392d82674fa7cb559479 Mon Sep 17 00:00:00 2001 From: Jeremy-Z Date: Thu, 22 Jan 2026 12:38:05 -0500 Subject: [PATCH 3/4] Moving the clear duplicate orders call around to coverage more use cases. --- src/layouts/duplicate-check/duplicate-check.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/layouts/duplicate-check/duplicate-check.vue b/src/layouts/duplicate-check/duplicate-check.vue index f9d2815e..33ad86ef 100644 --- a/src/layouts/duplicate-check/duplicate-check.vue +++ b/src/layouts/duplicate-check/duplicate-check.vue @@ -137,7 +137,6 @@ export default { async forwardButtonAction() { // If user clicked foward without selecting an option or user click on "start a new claim" button. if (this.selectedAnswer == null || this.selectedAnswer === 'NewClaim') { - this.mainStore.updateDuplicateCheckVisited(true); this.navigateForward(); return; } @@ -156,6 +155,7 @@ export default { } }, navigateForward() { + this.mainStore.updateDuplicateCheckVisited(true); if (!this.mainStore.isPolicyLookupSuccessful) { this.$router.navigate( this.navigationScenarios.CLICKED_FORWARD_POLICY_UNVERIFIED, From 59abdfc4c3bc87133d8398d496d22570cf86f89f Mon Sep 17 00:00:00 2001 From: Jeremy-Z Date: Thu, 22 Jan 2026 12:38:05 -0500 Subject: [PATCH 4/4] Moving the duplicate page seen flag set call around to coverage more use cases. --- src/layouts/duplicate-check/duplicate-check.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/layouts/duplicate-check/duplicate-check.vue b/src/layouts/duplicate-check/duplicate-check.vue index f9d2815e..33ad86ef 100644 --- a/src/layouts/duplicate-check/duplicate-check.vue +++ b/src/layouts/duplicate-check/duplicate-check.vue @@ -137,7 +137,6 @@ export default { async forwardButtonAction() { // If user clicked foward without selecting an option or user click on "start a new claim" button. if (this.selectedAnswer == null || this.selectedAnswer === 'NewClaim') { - this.mainStore.updateDuplicateCheckVisited(true); this.navigateForward(); return; } @@ -156,6 +155,7 @@ export default { } }, navigateForward() { + this.mainStore.updateDuplicateCheckVisited(true); if (!this.mainStore.isPolicyLookupSuccessful) { this.$router.navigate( this.navigationScenarios.CLICKED_FORWARD_POLICY_UNVERIFIED,