From 3456d7ff2f09c9e664dadca0ef57379939519d38 Mon Sep 17 00:00:00 2001 From: Adam Caouette Date: Fri, 31 Jan 2025 08:47:46 -0500 Subject: [PATCH 1/4] CASH-177: restore SYP Save Your Progress feature --- src/layouts/capability-questions/capability-questions.vue | 4 +--- src/layouts/molding-questions/molding-questions.vue | 4 +--- src/layouts/part-questions/part-questions.vue | 4 +--- src/layouts/quote/quote.vue | 8 ++------ src/layouts/vehicle-parts/vehicle-parts.vue | 4 +--- 5 files changed, 6 insertions(+), 18 deletions(-) diff --git a/src/layouts/capability-questions/capability-questions.vue b/src/layouts/capability-questions/capability-questions.vue index 57567e128..1896513a1 100644 --- a/src/layouts/capability-questions/capability-questions.vue +++ b/src/layouts/capability-questions/capability-questions.vue @@ -64,9 +64,7 @@ export default { // Call the "next" function to complete the transition to this page. next(async (vm) => { vm.setCmsContent(resultMap.cmsContent); - // turned off Save Your Progress for 1/23/25 release - // to restore, uncomment line below - // vm.showSaveProgressModal = !(emailFromStore?.length > 0); + vm.showSaveProgressModal = !(emailFromStore?.length > 0); if (store.getters.externalParameterState?.isExternalParameter) { if (store.getters.externalParameterServiceZip.zipCode) { await baseMixin.methods.dispatchStoreAction( diff --git a/src/layouts/molding-questions/molding-questions.vue b/src/layouts/molding-questions/molding-questions.vue index 4da3588d7..1bcc3d7a8 100644 --- a/src/layouts/molding-questions/molding-questions.vue +++ b/src/layouts/molding-questions/molding-questions.vue @@ -64,9 +64,7 @@ export default { // Call the "next" function to complete the transition to this page. next(async (vm) => { vm.setCmsContent(resultMap.cmsContent); - // turned off Save Your Progress for 1/23/25 release - // to restore, uncomment line below - // vm.showSaveProgressModal = !(emailFromStore?.length > 0); + vm.showSaveProgressModal = !(emailFromStore?.length > 0); if (store.getters.externalParameterState?.isExternalParameter) { if (store.getters.externalParameterServiceZip.zipCode) { await baseMixin.methods.dispatchStoreAction( diff --git a/src/layouts/part-questions/part-questions.vue b/src/layouts/part-questions/part-questions.vue index 37f005d48..f905e86c7 100644 --- a/src/layouts/part-questions/part-questions.vue +++ b/src/layouts/part-questions/part-questions.vue @@ -64,9 +64,7 @@ export default { // Call the "next" function to complete the transition to this page. next(async (vm) => { vm.setCmsContent(resultMap.cmsContent); - // turned off Save Your Progress for 1/23/25 release - // to restore, uncomment line below - // vm.showSaveProgressModal = !(emailFromStore?.length > 0); + vm.showSaveProgressModal = !(emailFromStore?.length > 0); if (store.getters.externalParameterState?.isExternalParameter) { if (store.getters.externalParameterServiceZip.zipCode) { const serviceState = store.getters.order.serviceLocation.state; diff --git a/src/layouts/quote/quote.vue b/src/layouts/quote/quote.vue index 61034fe5e..4428f6e40 100644 --- a/src/layouts/quote/quote.vue +++ b/src/layouts/quote/quote.vue @@ -294,12 +294,8 @@ export default { // Call the "next" function to complete the transition to this page. next(async (vm) => { vm.setCmsContent(resultMap.cmsContent); - - // turned off Save Your Progress for 1/23/25 release - // to restore, uncomment the 2 lines below - // vm.showSaveProgressPopup = showSaveProgressPopup; - // vm.showSaveProgressModal = showSaveProgressModal; - + vm.showSaveProgressPopup = showSaveProgressPopup; + vm.showSaveProgressModal = showSaveProgressModal; vm.addableVaps = addableVaps; vm.lineItems = lineItems; vm.availableLineItems = pricingResults; diff --git a/src/layouts/vehicle-parts/vehicle-parts.vue b/src/layouts/vehicle-parts/vehicle-parts.vue index 832589043..4b68007f9 100644 --- a/src/layouts/vehicle-parts/vehicle-parts.vue +++ b/src/layouts/vehicle-parts/vehicle-parts.vue @@ -94,9 +94,7 @@ export default { // Call the "next" function to complete the transition to this page. next((vm) => { vm.setCmsContent(resultMap.cmsContent); - // turned off Save Your Progress for 1/23/25 release - // to restore, uncomment line below - // vm.showSaveProgressModal = !(emailFromStore?.length > 0); + vm.showSaveProgressModal = !(emailFromStore?.length > 0); // Glass Part Question dynamic component Object.keys(vm.$refs) From 00596bc232b41201ad126e543bc2ff6e693b136a Mon Sep 17 00:00:00 2001 From: Adam Caouette Date: Fri, 31 Jan 2025 16:21:16 -0500 Subject: [PATCH 2/4] CASH-177: necessary structure and CSS updates due to modal markup changes made on SYP modal question --- .../save-progress-modal-question.vue | 78 +++++++++++++------ 1 file changed, 54 insertions(+), 24 deletions(-) diff --git a/src/fmg-components/save-progress-modal-question/save-progress-modal-question.vue b/src/fmg-components/save-progress-modal-question/save-progress-modal-question.vue index 48973c2e5..5b885f27f 100644 --- a/src/fmg-components/save-progress-modal-question/save-progress-modal-question.vue +++ b/src/fmg-components/save-progress-modal-question/save-progress-modal-question.vue @@ -1,13 +1,12 @@ @@ -112,7 +113,7 @@ export default { }; - From 9443e3182510b4819605774fb24fbaf9ab81df93 Mon Sep 17 00:00:00 2001 From: Adam Caouette Date: Fri, 31 Jan 2025 17:02:10 -0500 Subject: [PATCH 3/4] CASH-177: necessary structure and CSS updates due to modal markup changes made on SYP /quote popup question --- .../save-progress-popup-question.vue | 96 ++++++++++++------- 1 file changed, 63 insertions(+), 33 deletions(-) diff --git a/src/fmg-components/save-progress-popup-question/save-progress-popup-question.vue b/src/fmg-components/save-progress-popup-question/save-progress-popup-question.vue index 808163fe6..5d98d5c4b 100644 --- a/src/fmg-components/save-progress-popup-question/save-progress-popup-question.vue +++ b/src/fmg-components/save-progress-popup-question/save-progress-popup-question.vue @@ -14,20 +14,22 @@ v-model="userInput" cmsWidgetName="SaveProgressPopupQuestionWidget" class="save-progress-popup-question" /> - + - @@ -205,35 +207,63 @@ export default { left: 0; } } - .modal-footer { - order: 3; - padding: 0; - } - .modal-disclaimer { - order: 4; + .modal.modal-component .modal-dialog .modal-content { + p.modal-body { + padding: 0; + } + .modal-body { + display: flex; + flex-direction: column; + padding: 0 1.5rem; + + .textbox-question { + padding: 0; + margin: 0 0 1.5rem 0; + + label { + text-align: left; + font-weight: 900; + } + } + } + .modal-body-inner { + text-align: center; + margin-bottom: 1.5rem; + } + .modal-footer { + padding: 0 1.5rem; + margin: 0 0 1.5rem 0; + + button.btn { + order: 1; + margin-bottom: 1.5rem; + } + button.btn.skip-button { + padding: 0; + order: 2; + font-size: 1rem; + } + .modal-disclaimer { + font-size: 0.75rem; + text-align: left; + order: 3; + margin: 0; + + a { + text-decoration: none; + } + } + } } &.progress-saved { - .modal-footer, - .save-progress-popup-question { + .modal-footer-button, + .modal-disclaimer { display: none; } + .skip-button { + margin-bottom: 0; + } } } -.applied-promo { - font-size: 0.875rem; - font-weight: 500; - line-height: 24px; - color: $green; - - .promo-code { - text-transform: uppercase; - } -} -.alert { - color: $red; - font-size: 0.875rem; - font-weight: 500; - line-height: 24px; -} From b5f158ce803047ff84352d58e5702dd8cf054a48 Mon Sep 17 00:00:00 2001 From: Adam Caouette Date: Fri, 31 Jan 2025 17:05:57 -0500 Subject: [PATCH 4/4] CASH-177: adding 2nd slot to modal / removing SYP-specific CSS --- src/digital-components/modal/modal.vue | 52 +------------------------- 1 file changed, 2 insertions(+), 50 deletions(-) diff --git a/src/digital-components/modal/modal.vue b/src/digital-components/modal/modal.vue index 571c0aeb8..72ed56035 100644 --- a/src/digital-components/modal/modal.vue +++ b/src/digital-components/modal/modal.vue @@ -29,9 +29,10 @@