diff --git a/jest.config.js b/jest.config.js index aaf2d9ff8..0a6fbc048 100644 --- a/jest.config.js +++ b/jest.config.js @@ -26,8 +26,7 @@ module.exports = { testMatch: ["**/*.spec.(js|jsx|ts|tsx)|**/__tests__/*.(js|jsx|ts|tsx)"], coverageThreshold: { global: { - statements: 75, - // Got the go ahead from Mark to temporarily lower this. Taking out initialize component made the year,make,model and style coverage drop a bit. Once unit tests for license plate lookup, vin lookup and address lookup are in the coverage should go back up to 90 + statements: 80, }, }, // Uncomment this to avoid the massive amount of warnings we are getting for onSubmit and onInvalidSubmit diff --git a/src/constants/store-actions.js b/src/constants/store-actions.js index 9d7d3ea6a..fc0daf323 100644 --- a/src/constants/store-actions.js +++ b/src/constants/store-actions.js @@ -62,6 +62,7 @@ const storeActions = { SAVE_VEHICLE_MAKE: "saveVehicleMake", SAVE_VEHICLE_MODEL: "saveVehicleModel", SAVE_VEHICLE_STYLE: "saveVehicleStyle", + SAVE_VEHICLE: "saveVehicle", SAVE_VEHICLE_DAMAGE: "saveVehicleDamage", SAVE_VIN_LOOKUP: "saveVinLookup", SAVE_SERVICE_ZIP_CODE_INFO: "saveServiceZipCodeInfo", @@ -85,6 +86,7 @@ const storeActions = { "saveSupportingItemsSuppressingStateResetting", SAVE_VAPS: "saveVaps", SAVE_CUSTOMER_DETAILS: "saveCustomerDetails", + SAVE_SERVICE_LOCATION_TECH_NOTES: "saveServiceLocationTechNotes", }; export { storeActions }; diff --git a/src/constants/store-mutations.js b/src/constants/store-mutations.js index 76d510507..7b57187c2 100644 --- a/src/constants/store-mutations.js +++ b/src/constants/store-mutations.js @@ -34,11 +34,13 @@ const storeMutations = { UPDATE_SERVICE_ZIP: "updateServiceZip", UPDATE_SERVICE_LOCATION: "updateServiceLocation", + UPDATE_SERVICE_LOCATION_TECH_NOTES: "updateServiceLocationTechNotes", + UPDATE_TECH_NOTES: "updateTechNotes", UPDATE_SCHEDULE: "updateSchedule", UPDATE_CUSTOMER_EMAIL_ADDRESS: "updateCustomerEmailAddress", - //CUSTOMER MUTATIONS + // CUSTOMER MUTATIONS UPDATE_CUSTOMER_DETAILS: "updateCustomerDetails", // ORDER MUTATIONS diff --git a/src/digital-components/dropdown-question/dropdown-question.vue b/src/digital-components/dropdown-question/dropdown-question.vue index 7c0dd0d3b..6c032b740 100644 --- a/src/digital-components/dropdown-question/dropdown-question.vue +++ b/src/digital-components/dropdown-question/dropdown-question.vue @@ -16,9 +16,13 @@ :disabled="isDisabled" :aria-required="isRequired" :validationRules="validationRules" - :placeHolderText="placeHolderText"> + :placeHolderText="placeHolderText" + :valueAsKey="valueAsKey"> - @@ -47,6 +51,11 @@ export default { placeHolderText: String, cmsWidgetName: String, hasError: Boolean, + valueAsKey: { + type: Boolean, + required: false, + default: false, + }, }, setup(props) { const uuid = uuidv4(); diff --git a/src/digital-components/textarea-question/textarea-question.vue b/src/digital-components/textarea-question/textarea-question.vue index 0ffe5ec0a..83d718976 100644 --- a/src/digital-components/textarea-question/textarea-question.vue +++ b/src/digital-components/textarea-question/textarea-question.vue @@ -54,7 +54,7 @@ export default { }, }, remainingCount() { - return this.maxLength - this.value.length; + return this.maxLength - (this.value?.length ?? 0); }, urgentCountdown() { return this.remainingCount <= this.maxLength * 0.1 ? true : false; diff --git a/src/fmg-components/funnel-header/menu-modal/menu-modal.vue b/src/fmg-components/funnel-header/menu-modal/menu-modal.vue index 72fef029b..ffd3352ee 100644 --- a/src/fmg-components/funnel-header/menu-modal/menu-modal.vue +++ b/src/fmg-components/funnel-header/menu-modal/menu-modal.vue @@ -19,15 +19,13 @@ tabindex="-1" aria-labelledby="footerModalLabel" aria-hidden="true" - v-on="{ 'show.bs.modal': show, 'hide.bs.modal': hide }" - :style="`height: calc(100% - ${currentFooterAndHeaderHeight}px);`"> + v-on="{ 'show.bs.modal': show, 'hide.bs.modal': hide }">