Merge branch 'release/2025.02.13' into feature/CASH-176
This commit is contained in:
commit
9b71a07132
5 changed files with 23 additions and 4 deletions
|
|
@ -55,7 +55,7 @@ const storeActions = {
|
||||||
GET_RECAL_PARTS_AND_SAVE_TO_LINE_ITEMS: "getRecalPartsAndSaveToLineItems",
|
GET_RECAL_PARTS_AND_SAVE_TO_LINE_ITEMS: "getRecalPartsAndSaveToLineItems",
|
||||||
|
|
||||||
// Analytics
|
// Analytics
|
||||||
LOG_EXPERIMENT_EXPOSURE: "logExperimentExposure",
|
LOG_EXPERIMENT_EXPOSURE_AND_UPDATE_STORE: "logExperimentExposureAndUpdateStore",
|
||||||
LOG_PAGE_VIEW: "logPageView",
|
LOG_PAGE_VIEW: "logPageView",
|
||||||
LOG_CUSTOM_EVENT: "logCustomEvent",
|
LOG_CUSTOM_EVENT: "logCustomEvent",
|
||||||
INITIALIZE_SESSION: "initializeSession",
|
INITIALIZE_SESSION: "initializeSession",
|
||||||
|
|
|
||||||
|
|
@ -123,6 +123,7 @@ export default {
|
||||||
flex-direction: row;
|
flex-direction: row;
|
||||||
justify-content: center;
|
justify-content: center;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
|
height: 3rem;
|
||||||
border-radius: 0.5rem;
|
border-radius: 0.5rem;
|
||||||
|
|
||||||
&.progress-saved {
|
&.progress-saved {
|
||||||
|
|
@ -156,6 +157,10 @@ export default {
|
||||||
background: none;
|
background: none;
|
||||||
box-shadow: none;
|
box-shadow: none;
|
||||||
}
|
}
|
||||||
|
&:focus-visible span {
|
||||||
|
outline: 2px solid #005FCC;
|
||||||
|
border-radius: .25rem;
|
||||||
|
}
|
||||||
&.delay {
|
&.delay {
|
||||||
// fixes flicker while transitioning between states
|
// fixes flicker while transitioning between states
|
||||||
transition: background 0s 0s ease-in-out;
|
transition: background 0s 0s ease-in-out;
|
||||||
|
|
|
||||||
|
|
@ -201,7 +201,8 @@ export function areAllSessionCookiesSet() {
|
||||||
|
|
||||||
export function refreshSessionExpiration() {
|
export function refreshSessionExpiration() {
|
||||||
refreshCookieExpiration(cookieNames.SESSION_ID, cookieExpirations.SESSION_ID);
|
refreshCookieExpiration(cookieNames.SESSION_ID, cookieExpirations.SESSION_ID);
|
||||||
refreshCookieExpiration(cookieNames.DXDEV, cookieExpirations.DXDEV);
|
// Change 2/4/25: Don't update DXDEV to avoid Safari constraints on client-set cookies.
|
||||||
|
// refreshCookieExpiration(cookieNames.DXDEV, cookieExpirations.DXDEV);
|
||||||
refreshCookieExpiration(cookieNames.FUNNEL_USER_ID, cookieExpirations.FUNNEL_USER_ID);
|
refreshCookieExpiration(cookieNames.FUNNEL_USER_ID, cookieExpirations.FUNNEL_USER_ID);
|
||||||
refreshCookieExpiration(cookieNames.FUNNEL_SESSION_KEY, cookieExpirations.FUNNEL_SESSION_KEY);
|
refreshCookieExpiration(cookieNames.FUNNEL_SESSION_KEY, cookieExpirations.FUNNEL_SESSION_KEY);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -187,7 +187,7 @@ export default {
|
||||||
if (experimentForLogging !== undefined) {
|
if (experimentForLogging !== undefined) {
|
||||||
// Log experiment exposure
|
// Log experiment exposure
|
||||||
baseMixin.methods.dispatchStoreActionWithLogging(
|
baseMixin.methods.dispatchStoreActionWithLogging(
|
||||||
storeActions.LOG_EXPERIMENT_EXPOSURE,
|
storeActions.LOG_EXPERIMENT_EXPOSURE_AND_UPDATE_STORE,
|
||||||
{
|
{
|
||||||
userId: getUserIdValue(),
|
userId: getUserIdValue(),
|
||||||
deviceId: getDeviceIdValue(),
|
deviceId: getDeviceIdValue(),
|
||||||
|
|
|
||||||
|
|
@ -1288,10 +1288,23 @@ export const actions = {
|
||||||
},
|
},
|
||||||
|
|
||||||
// Analytics Actions
|
// Analytics Actions
|
||||||
logExperimentExposure(
|
logExperimentExposureAndUpdateStore(
|
||||||
context,
|
context,
|
||||||
{ payload: { userId, deviceId, sessionKey, pageName, experiment }, pageNameToLog }
|
{ payload: { userId, deviceId, sessionKey, pageName, experiment }, pageNameToLog }
|
||||||
) {
|
) {
|
||||||
|
const experiments = deepClone(context.getters.applicationUser.experiments);
|
||||||
|
const experimentToMarkAsExposed = experiments.find(ex => {
|
||||||
|
ex.universeId == experiment.universeId &&
|
||||||
|
ex.testId == experiment.testIde &&
|
||||||
|
ex.variationId == experiment.variationId &&
|
||||||
|
ex.assignmentId == experiment.assignmentId
|
||||||
|
});
|
||||||
|
if (experimentToMarkAsExposed) {
|
||||||
|
experimentToMarkAsExposed.isExposed = true;
|
||||||
|
}
|
||||||
|
|
||||||
|
context.commit(storeMutations.UPDATE_EXPERIMENTS, experiments);
|
||||||
|
|
||||||
return globalMethods.callHttpClient({
|
return globalMethods.callHttpClient({
|
||||||
method: endpoints.LogExperimentExposureIfAssigned.method,
|
method: endpoints.LogExperimentExposureIfAssigned.method,
|
||||||
endpoint: endpoints.LogExperimentExposureIfAssigned.url,
|
endpoint: endpoints.LogExperimentExposureIfAssigned.url,
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue