Merge branch 'develop' into feature/csr-1465

This commit is contained in:
Chloe Herd 2023-10-17 14:51:32 -04:00
commit fb79312440
6 changed files with 7796 additions and 15 deletions

File diff suppressed because it is too large Load diff

View file

@ -72,7 +72,10 @@ https://safelite.atlassian.net/wiki/spaces/DC/pages/76644418/Button+Question+Com
</div> </div>
</fieldset> </fieldset>
</div> </div>
<div class="row form-test-error"> <div
id="form-test-error"
class="row form-test-error"
:class="isErrorCentered ? 'text-center' : ''">
<error-message <error-message
role="comment" role="comment"
aria-atomic="true" aria-atomic="true"
@ -227,8 +230,18 @@ export default {
classes += " two-list-card-width"; classes += " two-list-card-width";
} }
if (this.buttonTypeString == "listCard" && this.buttonsInfo.length === 1) {
classes += " one-list-card-width";
}
return classes; return classes;
}, },
isErrorCentered() {
if (this.buttonTypeString == "listCard" && this.buttonsInfo.length <= 2) {
return true;
}
return false;
},
buttonsInfo() { buttonsInfo() {
return (Array.isArray(this.answers) ? this.answers : [])?.map((answer) => ({ return (Array.isArray(this.answers) ? this.answers : [])?.map((answer) => ({
buttonLabel: answer.buttonLabel ?? answer.Text ?? answer, buttonLabel: answer.buttonLabel ?? answer.Text ?? answer,

View file

@ -59,7 +59,7 @@ export default {
return item.partType === "RAIN DEFENSE"; return item.partType === "RAIN DEFENSE";
}); });
const price = lineItem.laborAmount + lineItem.sellingPrice + lineItem.kitPrice; const price = lineItem?.laborAmount + lineItem?.sellingPrice + lineItem?.kitPrice;
return parseFloat(price).toFixed(2); return parseFloat(price).toFixed(2);
}, },
wipersPrice() { wipersPrice() {
@ -68,7 +68,7 @@ export default {
return item.partType.includes(" WIPER"); return item.partType.includes(" WIPER");
}); });
lineItems?.forEach((item) => { lineItems?.forEach((item) => {
price += item.laborAmount + item.sellingPrice + item.kitPrice; price += item?.laborAmount + item?.sellingPrice + item?.kitPrice;
}); });
return parseFloat(price).toFixed(2); return parseFloat(price).toFixed(2);
}, },
@ -87,12 +87,12 @@ export default {
}; };
if (this.showAddWipers) { if (this.showAddWipers) {
const answer = getAnswer("ADD WIPER BLADES", this.answersCmsData); const answer = getAnswer("WipersModal", this.answersCmsData);
answer.SubText = "+$" + this.wipersPrice; answer.SubText = "+$" + this.wipersPrice;
answers.push(answer); answers.push(answer);
} }
if (this.showAddRainDefense) { if (this.showAddRainDefense) {
const answer = getAnswer("ADD RAIN DEFENSE", this.answersCmsData); const answer = getAnswer("RainDefenseModal", this.answersCmsData);
answer.SubText = "+$" + this.rainDefensePrice; answer.SubText = "+$" + this.rainDefensePrice;
answers.push(answer); answers.push(answer);
} }

View file

@ -14,7 +14,7 @@
:displayGenericVehicleImage="false" /> :displayGenericVehicleImage="false" />
<funnelSubHeader <funnelSubHeader
class="mb-5" class="mb-5 mt-4"
cmsWidgetName="FunnelSubHeaderWidget" cmsWidgetName="FunnelSubHeaderWidget"
leftAlignHeader /> leftAlignHeader />
@ -111,7 +111,6 @@ export default {
null, null,
"payment-method" "payment-method"
); );
console.log("rainDefensePromise: ", rainDefensePromise);
const supportingItemsPromise = baseMixin.methods.dispatchStoreActionWithLogging( const supportingItemsPromise = baseMixin.methods.dispatchStoreActionWithLogging(
storeActions.GET_SUPPORTING_ITEMS, storeActions.GET_SUPPORTING_ITEMS,

View file

@ -51,14 +51,8 @@
<input type="hidden" name="sgNoKeystrokeProcessing" value="false" /> <input type="hidden" name="sgNoKeystrokeProcessing" value="false" />
<input type="hidden" name="maskCharacter" value="*" /> <input type="hidden" name="maskCharacter" value="*" />
<input <input type="hidden" name="styleSheetCode" :value="dynamicCSSUrl" />
type="hidden" <input type="hidden" name="styleSheetCode2" :value="dynamicCSSUrl" />
name="styleSheetCode"
value="https://fixmyglasstest.safelite.com/FixMyGlass/css/experiments/site-2020Styling.css" />
<input
type="hidden"
name="styleSheetCode2"
value="https://fixmyglasstest.safelite.com/FixMyGlass/css/experiments/SLHop-2020Styling.css" />
<input <input
type="hidden" type="hidden"
@ -244,6 +238,12 @@ export default {
vm.fetchSignatureInfo(); vm.fetchSignatureInfo();
}); });
}, },
computed: {
dynamicCSSUrl() {
const { protocol, hostname, port } = window.location;
return `${protocol}//${hostname}:${port}/css/site-2020Styling.css`;
},
},
methods: { methods: {
arePagePrerequisitesValid() { arePagePrerequisitesValid() {
// TODO // TODO

View file

@ -23,6 +23,12 @@ body {
} }
.col { .col {
max-width: 236px; max-width: 236px;
&.one-list-card-width {
max-width: 472px;
@include media-breakpoint-up(xl) {
max-width: 66.6666666%;
}
}
} }
} }
.col-xl-4 { .col-xl-4 {