From 490641cebaf8a836ce0e36c9a31cbfc28062b9c0 Mon Sep 17 00:00:00 2001 From: Katie Kroell Date: Mon, 8 Sep 2025 11:51:12 -0400 Subject: [PATCH] add big truck no service alert to vin/license/address lookup, remove bailout --- src/constants/vehicle-lookup-alert-types.js | 3 ++- src/layouts/address-lookup/address-lookup.vue | 20 +++++++++++++- .../license-plate-lookup.vue | 19 +++++++++++++- .../no-service-alert/no-service-alert.vue | 26 +++++++++++++++++++ .../vin-lookup-alerts/vin-lookup-alerts.vue | 9 ++++++- src/layouts/vin-lookup/vin-lookup.vue | 11 ++++---- 6 files changed, 79 insertions(+), 9 deletions(-) create mode 100644 src/layouts/vin-lookup/vin-lookup-alerts/no-service-alert/no-service-alert.vue diff --git a/src/constants/vehicle-lookup-alert-types.js b/src/constants/vehicle-lookup-alert-types.js index 551ebe0a..98961165 100644 --- a/src/constants/vehicle-lookup-alert-types.js +++ b/src/constants/vehicle-lookup-alert-types.js @@ -2,7 +2,8 @@ const vehicleLookupAlertTypes = Object.freeze({ NOT_FOUND: 'notFound', NOT_MATCHED: 'notMatched', TWO_IDENTICAL_YMM_MATCHED: 'twoIdenticalYMMMatched', - PERFECT_MATCH: 'perfectMatch' + PERFECT_MATCH: 'perfectMatch', + NO_SERVICE: 'noService' }); export default vehicleLookupAlertTypes; diff --git a/src/layouts/address-lookup/address-lookup.vue b/src/layouts/address-lookup/address-lookup.vue index 6a63e895..24aa2f20 100644 --- a/src/layouts/address-lookup/address-lookup.vue +++ b/src/layouts/address-lookup/address-lookup.vue @@ -53,6 +53,13 @@ cmsWidgetName="AlertVinLookupsByHomeAddressNotAllowedWidget" alertClass="alert-danger" :isDismissible="false" /> + @@ -137,7 +144,8 @@ export default { isCarIdDifferent: false, isSelectedGlassAvailableForVehicle: true, customAlertData: {}, - forwardButtonCarStyle: '' + forwardButtonCarStyle: '', + displayNoServiceAlert: false }; }, computed: { @@ -255,6 +263,15 @@ export default { return this.$refs.siteFooter.removeLoader(); } + // Check if vehicle is a non-servicable big truck + if (resultMap.vinLookupResponse.isBigTruck && !resultMap.vinLookupResponse.canSafeliteService) { + this.displayNoServiceAlert = true; + this.resetVehicleFromLookup(); + this.$refs.siteFooter.disableForwardButton(); + this.$refs.siteFooter.removeLoader(); + return; + } + const carsFound = resultMap.vinLookupResponse.vinVehicles; // Handle cases for different amounts of VINS found for the address. @@ -370,6 +387,7 @@ export default { this.displayVinNotFoundAlert = false; this.displayMatchedDifferentVehicleAlert = false; this.displayVinLookupByHomeAddressNotAllowedAlert = false; + this.displayNoServiceAlert = false; this.$refs.siteFooter.enableForwardAction(); } } diff --git a/src/layouts/license-plate-lookup/license-plate-lookup.vue b/src/layouts/license-plate-lookup/license-plate-lookup.vue index cca0a20a..1df5b919 100644 --- a/src/layouts/license-plate-lookup/license-plate-lookup.vue +++ b/src/layouts/license-plate-lookup/license-plate-lookup.vue @@ -47,6 +47,13 @@ :manualCopy="AlertMatchedTwoIdenticalYMMVehicleBody" alertClass="alert-warning" :isDismissible="false" /> + + + + + \ No newline at end of file diff --git a/src/layouts/vin-lookup/vin-lookup-alerts/vin-lookup-alerts.vue b/src/layouts/vin-lookup/vin-lookup-alerts/vin-lookup-alerts.vue index 014fcad0..f9be7ede 100644 --- a/src/layouts/vin-lookup/vin-lookup-alerts/vin-lookup-alerts.vue +++ b/src/layouts/vin-lookup/vin-lookup-alerts/vin-lookup-alerts.vue @@ -10,6 +10,8 @@ v-else-if="isVehicleNotMatchedVisible" /> +