Merge branch 'release/2024.12.12' into rlsmerge/2024.12.12-TODEVELOP
This commit is contained in:
commit
b6115a5a5f
11 changed files with 43 additions and 10 deletions
|
|
@ -102,6 +102,8 @@ const storeActions = {
|
||||||
RESET_SUBMITTED_ORDER: "resetSubmittedOrder",
|
RESET_SUBMITTED_ORDER: "resetSubmittedOrder",
|
||||||
RESET_EXTERNAL_PARAMETER_STATE: "resetExternalParameterState",
|
RESET_EXTERNAL_PARAMETER_STATE: "resetExternalParameterState",
|
||||||
UPDATE_EXTERNAL_PARAMETER_MMS: "updateExternalParameterMMS",
|
UPDATE_EXTERNAL_PARAMETER_MMS: "updateExternalParameterMMS",
|
||||||
|
|
||||||
|
SAVE_LOGGING_OPTION: "saveLoggingOption",
|
||||||
};
|
};
|
||||||
|
|
||||||
export { storeActions };
|
export { storeActions };
|
||||||
|
|
|
||||||
|
|
@ -84,6 +84,7 @@ const storeMutations = {
|
||||||
UPDATE_STATE_WITH_ORDER_INFORMATION: "updateStateWithOrderInformation",
|
UPDATE_STATE_WITH_ORDER_INFORMATION: "updateStateWithOrderInformation",
|
||||||
UPDATE_SAVE_SESSION_PROMISE: "updateSaveSessionPromise",
|
UPDATE_SAVE_SESSION_PROMISE: "updateSaveSessionPromise",
|
||||||
UPDATE_LAST_PAGE_VISITED: "updateLastPageVisited",
|
UPDATE_LAST_PAGE_VISITED: "updateLastPageVisited",
|
||||||
|
UPDATE_LOGGING_OPTION: "updateLoggingOption",
|
||||||
|
|
||||||
// EXPERIMENT MUTATIONS
|
// EXPERIMENT MUTATIONS
|
||||||
UPDATE_EXPERIMENTS: "updateExperiments",
|
UPDATE_EXPERIMENTS: "updateExperiments",
|
||||||
|
|
|
||||||
|
|
@ -13,7 +13,7 @@ export function updateOrCreateFunnelCookie() {
|
||||||
|
|
||||||
// Set up cookie with all the props.
|
// Set up cookie with all the props.
|
||||||
setFunnelCookieProperties({
|
setFunnelCookieProperties({
|
||||||
LastTouched: new Date().toUTCString(),
|
LastTouched: new Date().toJSON(),
|
||||||
SavedSessionTimeoutDate: store.getters.applicationUser.savedSessionTimeout,
|
SavedSessionTimeoutDate: store.getters.applicationUser.savedSessionTimeout,
|
||||||
DidHeritageFunnelUpdateLast: false,
|
DidHeritageFunnelUpdateLast: false,
|
||||||
ShouldResetState: false,
|
ShouldResetState: false,
|
||||||
|
|
|
||||||
|
|
@ -43,5 +43,5 @@ Function to calculate the date for the saved session timeout.
|
||||||
export function getDateForSavedSessionTimeout() {
|
export function getDateForSavedSessionTimeout() {
|
||||||
const currentDate = new Date(new Date().toUTCString());
|
const currentDate = new Date(new Date().toUTCString());
|
||||||
currentDate.setDate(currentDate.getDate() + applicationConfig.SAVED_SESSION_TIMEOUT_DAYS);
|
currentDate.setDate(currentDate.getDate() + applicationConfig.SAVED_SESSION_TIMEOUT_DAYS);
|
||||||
return currentDate.toUTCString();
|
return currentDate.toJSON();
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -81,7 +81,7 @@ describe("getDateForSavedSessionTimeout", () => {
|
||||||
currentDate.setDate(currentDate.getDate() + applicationConfig.SAVED_SESSION_TIMEOUT_DAYS);
|
currentDate.setDate(currentDate.getDate() + applicationConfig.SAVED_SESSION_TIMEOUT_DAYS);
|
||||||
|
|
||||||
// Act
|
// Act
|
||||||
const result = getDateForSavedSessionTimeout();
|
const result = new Date(getDateForSavedSessionTimeout()).toUTCString();
|
||||||
|
|
||||||
// Assert
|
// Assert
|
||||||
expect(result).toEqual(currentDate.toUTCString());
|
expect(result).toEqual(currentDate.toUTCString());
|
||||||
|
|
|
||||||
|
|
@ -47,15 +47,16 @@
|
||||||
v-bind:isDismissible="false" />
|
v-bind:isDismissible="false" />
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div v-if="isRecalibrationOnOrder && shouldHideRecalibration" class="questions-about-service my-5">
|
<div
|
||||||
|
v-if="isRecalibrationOnOrder && shouldHideRecalibration"
|
||||||
|
class="questions-about-service my-5">
|
||||||
<textBlock
|
<textBlock
|
||||||
cmsWidgetName="QuestionsAboutYourServiceWidget"
|
cmsWidgetName="QuestionsAboutYourServiceWidget"
|
||||||
justifyText="left"
|
justifyText="left"
|
||||||
class="service-questions" />
|
class="service-questions" />
|
||||||
<textBlock cmsWidgetName="CallOrTextWidget" justifyText="left" />
|
<textBlock cmsWidgetName="CallOrTextWidget" justifyText="left" />
|
||||||
<hr class="my-5" />
|
<hr class="my-5" />
|
||||||
<div
|
<div class="d-flex flex-row checkbox-group">
|
||||||
class="d-flex flex-row checkbox-group">
|
|
||||||
<checkboxQuestion
|
<checkboxQuestion
|
||||||
cmsWidgetName="RecalConfirmWidget"
|
cmsWidgetName="RecalConfirmWidget"
|
||||||
class="mb-5"
|
class="mb-5"
|
||||||
|
|
|
||||||
|
|
@ -97,6 +97,7 @@ export default {
|
||||||
"updated-mobile-fee-part",
|
"updated-mobile-fee-part",
|
||||||
"updated-contains-military-base",
|
"updated-contains-military-base",
|
||||||
"updated-bill-to-account-number",
|
"updated-bill-to-account-number",
|
||||||
|
"mobileLocationSelected",
|
||||||
],
|
],
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
|
|
@ -286,13 +287,15 @@ export default {
|
||||||
// update the page level model
|
// update the page level model
|
||||||
this.$emit("update:modelValue", this.internalModel);
|
this.$emit("update:modelValue", this.internalModel);
|
||||||
|
|
||||||
this.closeModal();
|
//Page advance to Schedule page
|
||||||
|
this.$emit("mobileLocationSelected");
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
// Update the page level model
|
// Update the page level model
|
||||||
this.$emit("update:modelValue", this.internalModel);
|
this.$emit("update:modelValue", this.internalModel);
|
||||||
|
|
||||||
this.closeModal();
|
//Page advance to Schedule page
|
||||||
|
this.$emit("mobileLocationSelected");
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
|
@ -305,6 +308,9 @@ export default {
|
||||||
deep: true,
|
deep: true,
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
unmounted() {
|
||||||
|
if (this.isModalOpened) this.closeModal();
|
||||||
|
},
|
||||||
components: {
|
components: {
|
||||||
textLink,
|
textLink,
|
||||||
modal,
|
modal,
|
||||||
|
|
|
||||||
|
|
@ -96,7 +96,8 @@
|
||||||
validationRules="mobile-location-required"
|
validationRules="mobile-location-required"
|
||||||
ref="mobileLocationQuestions"
|
ref="mobileLocationQuestions"
|
||||||
linkWidgetName="MobileLocationLinkWidget"
|
linkWidgetName="MobileLocationLinkWidget"
|
||||||
modalWidgetName="MobileLocationModalWidget" />
|
modalWidgetName="MobileLocationModalWidget"
|
||||||
|
@mobileLocationSelected="forwardButtonAction" />
|
||||||
|
|
||||||
<shopQuestion
|
<shopQuestion
|
||||||
ref="shopQuestion"
|
ref="shopQuestion"
|
||||||
|
|
|
||||||
|
|
@ -460,6 +460,7 @@ async function navigate(
|
||||||
const promo = getQuerystringParameter(queryStrings.PROMO);
|
const promo = getQuerystringParameter(queryStrings.PROMO);
|
||||||
const pageError = getQuerystringParameter(queryStrings.PAGE_ERROR);
|
const pageError = getQuerystringParameter(queryStrings.PAGE_ERROR);
|
||||||
const logQs = getQuerystringParameter(queryStrings.LOG);
|
const logQs = getQuerystringParameter(queryStrings.LOG);
|
||||||
|
baseMixin.methods.dispatchStoreAction(storeActions.SAVE_LOGGING_OPTION, logQs, false);
|
||||||
|
|
||||||
log("------------- router index.js navigate start -----------------");
|
log("------------- router index.js navigate start -----------------");
|
||||||
log(" --scenario: ", scenario);
|
log(" --scenario: ", scenario);
|
||||||
|
|
|
||||||
|
|
@ -184,6 +184,7 @@ const getDefaultState = () => {
|
||||||
experiments: [],
|
experiments: [],
|
||||||
triggeredSiteEntry: false,
|
triggeredSiteEntry: false,
|
||||||
affiliateCookies: [],
|
affiliateCookies: [],
|
||||||
|
loggingOption: false,
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
@ -414,6 +415,9 @@ export const mutations = {
|
||||||
updateLastPageVisited(state, lastPageVisited) {
|
updateLastPageVisited(state, lastPageVisited) {
|
||||||
state.applicationUser.lastPageVisited = lastPageVisited;
|
state.applicationUser.lastPageVisited = lastPageVisited;
|
||||||
},
|
},
|
||||||
|
updateLoggingOption(state, loggingOption) {
|
||||||
|
state.applicationUser.loggingOption = loggingOption;
|
||||||
|
},
|
||||||
// EVENT BUS MUTATIONS
|
// EVENT BUS MUTATIONS
|
||||||
addEventToBus(state, event) {
|
addEventToBus(state, event) {
|
||||||
state.applicationUser.eventBus.push(event);
|
state.applicationUser.eventBus.push(event);
|
||||||
|
|
@ -689,7 +693,9 @@ export const mutations = {
|
||||||
!sessionInformation.order.payment.isInsurance &&
|
!sessionInformation.order.payment.isInsurance &&
|
||||||
!sessionInformation.order.serviceLocation.provider?.providerNumber
|
!sessionInformation.order.serviceLocation.provider?.providerNumber
|
||||||
) {
|
) {
|
||||||
console.log("------------- updateStateWithOrderInformation reset isInsurance -----------------");
|
console.log(
|
||||||
|
"------------- updateStateWithOrderInformation reset isInsurance -----------------"
|
||||||
|
);
|
||||||
console.log(new Date() + " sessionInformation: " + JSON.stringify(sessionInformation));
|
console.log(new Date() + " sessionInformation: " + JSON.stringify(sessionInformation));
|
||||||
state.order.payment.isInsurance = null;
|
state.order.payment.isInsurance = null;
|
||||||
} else {
|
} else {
|
||||||
|
|
@ -1031,6 +1037,7 @@ export const actions = {
|
||||||
endpoint: endpoints.LookupVehicleByVin.url,
|
endpoint: endpoints.LookupVehicleByVin.url,
|
||||||
payload: {
|
payload: {
|
||||||
vin: vin, // EX "1J4GW58S4XC541166"
|
vin: vin, // EX "1J4GW58S4XC541166"
|
||||||
|
logEnabled: context.getters.applicationUser.loggingOption,
|
||||||
},
|
},
|
||||||
logApiCall: true,
|
logApiCall: true,
|
||||||
pageNameToLog: pageNameToLog,
|
pageNameToLog: pageNameToLog,
|
||||||
|
|
@ -3016,6 +3023,15 @@ export const actions = {
|
||||||
);
|
);
|
||||||
},
|
},
|
||||||
|
|
||||||
|
saveLoggingOption(context, loggingOption) {
|
||||||
|
var option = false;
|
||||||
|
if (loggingOption != null) {
|
||||||
|
option = loggingOption == "true" ? true : false;
|
||||||
|
}
|
||||||
|
|
||||||
|
context.commit(storeMutations.UPDATE_LOGGING_OPTION, option);
|
||||||
|
},
|
||||||
|
|
||||||
async getRecalPartsAndSaveToLineItems(context, { pageNameToLog }) {
|
async getRecalPartsAndSaveToLineItems(context, { pageNameToLog }) {
|
||||||
// identify each part that needs recal
|
// identify each part that needs recal
|
||||||
const glassParts = context.state.order?.lineItems?.glassParts
|
const glassParts = context.state.order?.lineItems?.glassParts
|
||||||
|
|
|
||||||
|
|
@ -404,6 +404,11 @@ describe("Actions", () => {
|
||||||
it("lookupVehicleByVin action, should return car data", async () => {
|
it("lookupVehicleByVin action, should return car data", async () => {
|
||||||
// Arrange
|
// Arrange
|
||||||
const context = state;
|
const context = state;
|
||||||
|
context.getters = {
|
||||||
|
applicationUser: {
|
||||||
|
loggingOption: false,
|
||||||
|
},
|
||||||
|
};
|
||||||
|
|
||||||
// Act
|
// Act
|
||||||
globalMethods.callHttpClient.mockImplementation(() => {
|
globalMethods.callHttpClient.mockImplementation(() => {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue