From 43bf0814307ab5c072e1573e8481063412d4eba4 Mon Sep 17 00:00:00 2001 From: Adam Caouette Date: Mon, 5 Jan 2026 11:59:32 -0500 Subject: [PATCH 1/4] Revert "Merge pull request #2988 from Safelite/feature/CASH-2034" This reverts commit 662ef71ffd67761417909306cbb4cfc0c4c7a52c, reversing changes made to f469265fe82b1eab73eb5f19939deff3f4eb2f98. --- 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 366d02516c8ba86f153ff7d2d74bd005a544602a Mon Sep 17 00:00:00 2001 From: Adam Caouette Date: Mon, 5 Jan 2026 12:04:02 -0500 Subject: [PATCH 2/4] Revert "Merge pull request #2975 from Safelite/feature/CASH-1790-refactor-1" This reverts commit cea4cf5d4ac662322d0ff18f66f4f3c0fa646e65, reversing changes made to 90e11544d6de4e47873de632e8a11886a694c69a. --- .../appointment-type-question/appointment-type-question.vue | 1 - 1 file changed, 1 deletion(-) diff --git a/src/layouts/service-location/appointment-type-question/appointment-type-question.vue b/src/layouts/service-location/appointment-type-question/appointment-type-question.vue index 924b2e62a..fc4d08b92 100644 --- a/src/layouts/service-location/appointment-type-question/appointment-type-question.vue +++ b/src/layouts/service-location/appointment-type-question/appointment-type-question.vue @@ -80,7 +80,6 @@ export default { }, set: function (newValue) { this.$emit("update:modelValue", newValue); - this.$emit("handle-appointment-type-change", newValue); }, }, isMobileOnly() { From cc17cf867043e6642ba643d8bd658e9d16448437 Mon Sep 17 00:00:00 2001 From: Adam Caouette Date: Mon, 5 Jan 2026 12:08:10 -0500 Subject: [PATCH 3/4] Revert "Merge pull request #2968 from Safelite/feature/CASH-1790-refactor-1" This reverts commit 8ddce5cd25bdac93115d1a0e491073cf5d898820, reversing changes made to a3eee218126734bb24a9fa95bf8ab19b14d1ce66. --- .../date-picker/date-picker.vue | 8 +- src/layouts/schedule/schedule.vue | 109 ++++++++++++------ .../time-slot-question/time-slot-question.vue | 4 + 3 files changed, 83 insertions(+), 38 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, 5 Jan 2026 12:10:03 -0500 Subject: [PATCH 4/4] Revert "Merge pull request #2963 from Safelite/feature/CASH-1790" This reverts commit 454e187b3903b4e8436e6b4d33a461e9aa059c9a, reversing changes made to 59d4b42609ad4f4a2f6850878de82048b836df8c. --- 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