From 995c2da5a1b422781e2fc049a48bf1e50afb4a8d Mon Sep 17 00:00:00 2001 From: AdamCaouetteSafelite Date: Thu, 10 Jul 2025 14:34:44 -0400 Subject: [PATCH] CASH-845: move duration text block from time-slot-question to date-picker --- src/constants/schedule-constants.js | 9 +++ .../date-picker/date-picker.vue | 80 ++++++++++++++++++- src/layouts/schedule/schedule.vue | 4 +- .../time-slot-question/time-slot-question.vue | 67 ++-------------- 4 files changed, 94 insertions(+), 66 deletions(-) diff --git a/src/constants/schedule-constants.js b/src/constants/schedule-constants.js index 8ac97b5de..2b626df18 100644 --- a/src/constants/schedule-constants.js +++ b/src/constants/schedule-constants.js @@ -16,10 +16,19 @@ const RouteCodeFlags = { OVERNIGHT_DROP_OFF: "OVERNIGHT DROP OFF", }; +const cmsWidgetFieldMappings = { + MODAL_CLOSE_BUTTON: "FooterText", + SUPPLEMENTAL_INFORMATION: "BodyText", + TIME_SLOT_BUTTON: "HeaderText", + DISCLAIMER: "FooterText", + DURATION: "SubheaderText", +}; + export { AppointmentTypeStrings, PREMIUM_TIME_SLOT_ID_FLAG, PREMIUM_FEE_PART_TYPE, PRICING_BY_DAY_PART_TYPE, RouteCodeFlags, + cmsWidgetFieldMappings, }; diff --git a/src/digital-components/date-picker/date-picker.vue b/src/digital-components/date-picker/date-picker.vue index bc3682cf0..cd480e478 100644 --- a/src/digital-components/date-picker/date-picker.vue +++ b/src/digital-components/date-picker/date-picker.vue @@ -142,7 +142,7 @@ overnightDropOffCmsWidgetName="OvernightDropOffTimeSlotModal" dropOffOrPickATimeQuestionCmsWidgetName="DropOffOrPickATimeQuestionWidget" :selectedDate="selectedDate" - :appointmentType="appointmentTypeForTimeSlotQuestion" + :appointmentType="appointmentType" :premiumAppointmentFee="premiumAppointmentFee" :displayWaitList="displayWaitList" :timeSlotsForSelectedDate="timeSlotsForSelectedDate" @@ -156,6 +156,7 @@ diff --git a/src/layouts/schedule/schedule.vue b/src/layouts/schedule/schedule.vue index 630156827..a11ba4720 100644 --- a/src/layouts/schedule/schedule.vue +++ b/src/layouts/schedule/schedule.vue @@ -146,7 +146,7 @@ :showPricingByDay="showPricingByDay" :isPricingByDayExperiment="isPricingByDayExperiment" :timeSlotsForSelectedDate="timeSlotsForSelectedDate" - :appointmentTypeForTimeSlotQuestion="appointmentType" + :appointmentType="appointmentType" :premiumAppointmentFee="mobilePremiumAppointmentFee" :estimatedServiceMinutesMinimum="getServiceMinutesMin" :estimatedServiceMinutesMaximum="getServiceMinutesMax" @@ -1703,7 +1703,7 @@ export default { .change-location a { font-family: UrbanistSemibold; } - .date-picker-wrapper { + .date-picker { border-top: 1px solid $gray-500; margin-top: 1.5rem; } diff --git a/src/layouts/schedule/time-slot-question/time-slot-question.vue b/src/layouts/schedule/time-slot-question/time-slot-question.vue index 6bd93f843..9f3ab455a 100644 --- a/src/layouts/schedule/time-slot-question/time-slot-question.vue +++ b/src/layouts/schedule/time-slot-question/time-slot-question.vue @@ -1,11 +1,5 @@