diff --git a/jest.config.js b/jest.config.js index ae8dd01c5..421a9a907 100644 --- a/jest.config.js +++ b/jest.config.js @@ -31,6 +31,9 @@ module.exports = { "!src/layouts/payment-pia-return/*.vue", // Temp test exclusion while in development "!src/layouts/insurance/*.vue", // Temp test exclusion while in development "!src/layouts/insurance-company/*.vue", // Temp test exclusion while in development + + "!src/**/*-june-2025.vue", // Exclude these temporary files for CASH-845 project + "!src/layouts/insurance-company/insurance-company-question/*.vue", // Temp test exclusion while in development "!src/experiment-components/*.vue", // END diff --git a/src/constants/progress-bar-mapper.js b/src/constants/progress-bar-mapper.js index dc1bc4a05..50b353151 100644 --- a/src/constants/progress-bar-mapper.js +++ b/src/constants/progress-bar-mapper.js @@ -13,8 +13,9 @@ const pagePercentageMapper = { "capability-questions": 40, quote: 48, "insurance-company": 52, - "service-location": 60, - schedule: 72, + // TODO: REMOVE THIS COMMENT AND BELOW, ONCE CASH-803 (SERVICE-LOCATION AND SCHEDULE PAGE COMBINATION) HAS BEEN VETTED + // "service-location": 60, + schedule: 64, "mobile-details": 76, "customer-details": 84, "payment-method": 92, diff --git a/src/digital-components/date-picker/date-picker-june-2025.vue b/src/digital-components/date-picker/date-picker-june-2025.vue new file mode 100644 index 000000000..9d001a113 --- /dev/null +++ b/src/digital-components/date-picker/date-picker-june-2025.vue @@ -0,0 +1,1335 @@ + + + + + + + + + + + diff --git a/src/layouts/schedule/schedule-june-2025.vue b/src/layouts/schedule/schedule-june-2025.vue new file mode 100644 index 000000000..0464b2914 --- /dev/null +++ b/src/layouts/schedule/schedule-june-2025.vue @@ -0,0 +1,782 @@ + + + + + + + + + + + diff --git a/src/layouts/service-location/service-location-june-2025.vue b/src/layouts/service-location/service-location-june-2025.vue new file mode 100644 index 000000000..8dac38faf --- /dev/null +++ b/src/layouts/service-location/service-location-june-2025.vue @@ -0,0 +1,848 @@ + + + + + + + + + + + diff --git a/src/router/constants/routes.js b/src/router/constants/routes.js index 7e9a3a793..5632fe357 100644 --- a/src/router/constants/routes.js +++ b/src/router/constants/routes.js @@ -56,6 +56,7 @@ export const routeData = { path: "/insurance-company", }, SERVICE_LOCATION: { + // keep even though this page has been removed from the regular flow bc Heritage still points to it name: "service-location", path: "/service-location", }, diff --git a/src/router/constants/routing-table.js b/src/router/constants/routing-table.js index 4a07bcfaf..02a0d9384 100644 --- a/src/router/constants/routing-table.js +++ b/src/router/constants/routing-table.js @@ -421,7 +421,7 @@ const routingTable = function () { }, { scenario: navigationScenarios.CLICKED_FORWARD_WITH_CASH, - destinationPageData: routeData.SERVICE_LOCATION, + destinationPageData: routeData.SCHEDULE, }, { scenario: navigationScenarios.CLICKED_FORWARD_WITH_INSURANCE, @@ -449,8 +449,26 @@ const routingTable = function () { }, ], }, + // TODO: REMOVE THIS COMMENT AND BELOW, ONCE CASH-803 (SERVICE-LOCATION AND SCHEDULE PAGE COMBINATION) HAS BEEN VETTED + // { + // pageName: routeData.SERVICE_LOCATION.name, + // maps: [ + // { + // scenario: navigationScenarios.CLICKED_BACK, + // destinationPageData: routeData.QUOTE, + // }, + // { + // scenario: navigationScenarios.CLICKED_FORWARD, + // destinationPageData: routeData.SCHEDULE, + // }, + // { + // scenario: navigationScenarios.CLICKED_FORWARD_WITH_MOBILE_SERVICE, + // destinationPageData: routeData.MOBILE_DETAILS, + // }, + // ], + // }, { - pageName: routeData.SERVICE_LOCATION.name, + pageName: routeData.SCHEDULE.name, maps: [ { scenario: navigationScenarios.CLICKED_BACK, @@ -458,37 +476,24 @@ const routingTable = function () { }, { scenario: navigationScenarios.CLICKED_FORWARD, - destinationPageData: routeData.SCHEDULE, + destinationPageData: routeData.CUSTOMER_DETAILS, }, + // { + // scenario: navigationScenarios.CLICKED_CHANGE_LOCATION, + // destinationPageData: routeData.SERVICE_LOCATION, + // }, { scenario: navigationScenarios.CLICKED_FORWARD_WITH_MOBILE_SERVICE, destinationPageData: routeData.MOBILE_DETAILS, }, ], }, - { - pageName: routeData.SCHEDULE.name, - maps: [ - { - scenario: navigationScenarios.CLICKED_BACK, - destinationPageData: routeData.SERVICE_LOCATION, - }, - { - scenario: navigationScenarios.CLICKED_FORWARD, - destinationPageData: routeData.CUSTOMER_DETAILS, - }, - { - scenario: navigationScenarios.CLICKED_CHANGE_LOCATION, - destinationPageData: routeData.SERVICE_LOCATION, - }, - ], - }, { pageName: routeData.MOBILE_DETAILS.name, maps: [ { scenario: navigationScenarios.CLICKED_BACK, - destinationPageData: routeData.SERVICE_LOCATION, + destinationPageData: routeData.SCHEDULE, }, { scenario: navigationScenarios.CLICKED_FORWARD, diff --git a/src/router/methods/route-logic/service-location.js b/src/router/methods/route-logic/service-location.js new file mode 100644 index 000000000..ecaebe149 --- /dev/null +++ b/src/router/methods/route-logic/service-location.js @@ -0,0 +1,8 @@ +import { routeData } from "@/router/constants/routes"; + +export async function serviceLocationBeforeEnter(to, from) { + return { + name: routeData.SCHEDULE.name, + replace: true, + }; +} diff --git a/src/router/methods/routes.js b/src/router/methods/routes.js index 01f4f8a58..97af04068 100644 --- a/src/router/methods/routes.js +++ b/src/router/methods/routes.js @@ -12,6 +12,7 @@ import { errorBeforeEnter } from "@/router/methods/route-logic/error"; import { restartBeforeEnter } from "@/router/methods/route-logic/restart"; import { paymentMethodBeforeEnter } from "@/router/methods/route-logic/payment-method"; import { paymentBeforeEnter } from "@/router/methods/route-logic/payment"; +import { serviceLocationBeforeEnter } from "@/router/methods/route-logic/service-location"; export const routes = [ // Non-virtual pages. @@ -29,7 +30,7 @@ export const routes = [ createRoute(routeData.CAPABILITY_QUESTIONS), createRoute(routeData.QUOTE, quoteBeforeEnter), createRoute(routeData.INSURANCE_COMPANY, insuranceCompanyBeforeEnter), - createRoute(routeData.SERVICE_LOCATION), + createRoute(routeData.SERVICE_LOCATION, serviceLocationBeforeEnter), createRoute(routeData.SCHEDULE), createRoute(routeData.CUSTOMER_DETAILS), createRoute(routeData.PAYMENT_METHOD, paymentMethodBeforeEnter),