Merge pull request #2321 from Safelite/CASH-132-add-experiment-settings

CASH-132 add experiment.
This commit is contained in:
bmauger 2025-02-23 15:53:24 -05:00 committed by GitHub
commit 5987e78e2a
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 21 additions and 4 deletions

View file

@ -19,6 +19,7 @@ const experimentSettings = {
INSURANCE_TAB_TO_DISPLAY_THRESHOLD_EXTERNAL: "NextGen_ExternalInsuranceTabDisplayThreshold", INSURANCE_TAB_TO_DISPLAY_THRESHOLD_EXTERNAL: "NextGen_ExternalInsuranceTabDisplayThreshold",
DISPLAY_MSR: "DisplayMSR", DISPLAY_MSR: "DisplayMSR",
PRICING_BY_DAY: "DisplayPricingByDay", PRICING_BY_DAY: "DisplayPricingByDay",
FOSTER_LOVE: "DisplayFosterLove",
}; };
const experimentTriggers = { const experimentTriggers = {

View file

@ -20,7 +20,9 @@
target="_blank" /> target="_blank" />
</div> </div>
</div> </div>
<div class="px-4" :class="[showDonationSuccess ? 'hide-donation-block' : 'show-donation-block']"> <div
class="px-4"
:class="[showDonationSuccess ? 'hide-donation-block' : 'show-donation-block']">
<div class="row"> <div class="row">
<div class="col-12"> <div class="col-12">
<div class="donation-slider my-4"> <div class="donation-slider my-4">
@ -31,9 +33,17 @@
:value="donationValues[0]" :value="donationValues[0]"
checked /> checked />
<label for="one" class="label">$1</label> <label for="one" class="label">$1</label>
<input name="amount" id="three" type="radio" :value="donationValues[1]" /> <input
name="amount"
id="three"
type="radio"
:value="donationValues[1]" />
<label for="three" class="label">$3</label> <label for="three" class="label">$3</label>
<input name="amount" id="five" type="radio" :value="donationValues[2]" /> <input
name="amount"
id="five"
type="radio"
:value="donationValues[2]" />
<label for="five" class="label">$5</label> <label for="five" class="label">$5</label>
<div class="indicator-bar"></div> <div class="indicator-bar"></div>
</div> </div>

View file

@ -64,7 +64,7 @@
:isItac="isItac" :isItac="isItac"
:isNoComp="isNoComp" /> :isNoComp="isNoComp" />
<div class="mt-3"> <div class="mt-3" v-if="displayFosterLove">
<donationBlock <donationBlock
cmsWidgetName="DonationWidget" cmsWidgetName="DonationWidget"
v-model="donationAmount" v-model="donationAmount"
@ -245,6 +245,12 @@ export default {
}; };
}, },
computed: { computed: {
DisplayFosterLove() {
return experimentMixin.methods.hasSettingEqualTo(
experimentSettings.FOSTER_LOVE,
"true"
);
},
isRecalibrationOnOrder() { isRecalibrationOnOrder() {
return containsRecalParts(this?.lineItems); return containsRecalParts(this?.lineItems);
}, },