From 29aed064e9333fcb3fd995e9da91b60b3afe49e7 Mon Sep 17 00:00:00 2001 From: Adam Caouette Date: Mon, 12 Jan 2026 15:38:27 -0500 Subject: [PATCH 1/3] Revert "Merge pull request #2994 from Safelite/feature/CASH-2034-for-develop-branch" This reverts commit a5f9f0343dcefdc5c012f0d449dc5cf9b00b08f7, reversing changes made to 34b9e8e9bdb4fbbe644612bb97ccf9fd55758d9d. --- src/layouts/schedule/schedule.vue | 14 +++----------- 1 file changed, 3 insertions(+), 11 deletions(-) diff --git a/src/layouts/schedule/schedule.vue b/src/layouts/schedule/schedule.vue index 948a7de19..e0edcd544 100644 --- a/src/layouts/schedule/schedule.vue +++ b/src/layouts/schedule/schedule.vue @@ -22,7 +22,6 @@ cmsWidgetName="ScheduleYourServiceWidget" id="schedule-your-service" /> 0; - } else { - return this.selectableDatesInshop?.days?.length > 0; - } - }, }, methods: { splitCopyOnCMSPlaceHolder, @@ -1751,8 +1743,8 @@ export default { } else { this.appointmentType = null; } - this.setSelectedDateToFirstAvailable(); // v-if on appointmentTypeQuestion ensures dates have been loaded by now - this.setDisplayWaitList(); // v-if on appointmentTypeQuestion ensures dates have been loaded by now + this.setSelectedDateToFirstAvailable(); + this.setDisplayWaitList(); }, setSelectedDateToFirstAvailable() { this.selectedDate = this.getFirstAvailableDate(); @@ -1884,7 +1876,7 @@ export default { watch: { appointmentTypeFromAppointmentTypeQuestion: { handler(newValue, oldValue) { - this.handleAppointmentTypeChange(newValue); // v-if on appointmentTypeQuestion ensures dates have been loaded by now + this.handleAppointmentTypeChange(newValue); }, }, }, From 040e179f5755a4765073ed0a640c05eff72029ea Mon Sep 17 00:00:00 2001 From: Adam Caouette Date: Mon, 12 Jan 2026 15:40:43 -0500 Subject: [PATCH 2/3] Revert "Merge pull request #2992 from Safelite/feature/CASH-1790-refactor-2" This reverts commit 34b9e8e9bdb4fbbe644612bb97ccf9fd55758d9d, reversing changes made to 51b58cb042bb083719bc288a05a5802c599a2ff4. --- .../date-picker/date-picker.vue | 8 +- src/layouts/schedule/schedule.vue | 109 ++++++++++++------ .../time-slot-question/time-slot-question.vue | 4 + .../appointment-type-question.vue | 1 - 4 files changed, 83 insertions(+), 39 deletions(-) diff --git a/src/digital-components/date-picker/date-picker.vue b/src/digital-components/date-picker/date-picker.vue index f38df0372..f48b1f43b 100644 --- a/src/digital-components/date-picker/date-picker.vue +++ b/src/digital-components/date-picker/date-picker.vue @@ -281,7 +281,7 @@ export default { if (event.screenX === 0 && event.screenY === 0) { return; } - this.$emit("date-selected", date); + this.$emit("date-clicked", date); }, getWeekStartDate(dateString) { const date = convertDateStringToDate(dateString); @@ -846,6 +846,12 @@ export default { }, }, watch: { + isLoading(newValue) { + // if done loading dates, then set to first available date + if (newValue === false && this.firstAvailableSelectableDate) { + this.selectedDate = this.firstAvailableSelectableDate; + } + }, modelValue(newValue) { this.resetField({ value: newValue, diff --git a/src/layouts/schedule/schedule.vue b/src/layouts/schedule/schedule.vue index e0edcd544..654c7b01a 100644 --- a/src/layouts/schedule/schedule.vue +++ b/src/layouts/schedule/schedule.vue @@ -133,6 +133,8 @@ :isOvernightDropoff="isOvernightDropoff" /> Date: Mon, 12 Jan 2026 15:41:47 -0500 Subject: [PATCH 3/3] Revert "Merge pull request #2993 from Safelite/feature/CASH-1790-for-develop" This reverts commit 51b58cb042bb083719bc288a05a5802c599a2ff4, reversing changes made to 783c726bd70cd15a24e43c3a312123b99cb6adc7. --- src/layouts/schedule/schedule.vue | 31 ++++++++++++++----- .../time-slot-question/time-slot-question.vue | 18 +++-------- 2 files changed, 28 insertions(+), 21 deletions(-) diff --git a/src/layouts/schedule/schedule.vue b/src/layouts/schedule/schedule.vue index 654c7b01a..1ebf47c7e 100644 --- a/src/layouts/schedule/schedule.vue +++ b/src/layouts/schedule/schedule.vue @@ -167,7 +167,6 @@ :timeSlotsForSelectedDate="timeSlotsForSelectedDate" :isSameDay="isSameDay" :selectedRouteCodeData="selectedRouteCodeData" - :isDatePickerDoneInitializing="isDatePickerDoneInitializing" @waitListRequested="handleWaitListRequested" />
@@ -137,7 +133,6 @@ export default { isSameDay: Boolean, displayWaitList: Boolean, selectedRouteCodeData: Object, - isDatePickerDoneInitializing: Boolean, }, data() { return { @@ -191,9 +186,6 @@ export default { this.updateDropoffAndTimeSlotAnswersFromSelectedRouteCodeData(newValue); }, timeSlotsForSelectedDate() { - if (!this.isDatePickerDoneInitializing) { - return; - } // needed otherwise it nulls these too early and prevents a previously selected time slot from auto-selecting this.selectedAnswerForDropOffOrInshop = null; this.selectedAnswerForTimeSlots = null; this.autoSelectTimeSlotIfOnlyOneIsAvailable(); @@ -397,7 +389,7 @@ export default { this.answersForDropOffQuestion[0].value !== PICK_A_TIME_BUTTON_VALUE ); }, - displayTimeSlotQuestion() { + shouldDisplayTimeSlotQuestion() { return ( this.selectedAnswerForDropOffOrInshop == PICK_A_TIME_BUTTON_VALUE || !this.isDropOffAppointmentAvailable