-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Implement VAR for C24_WMDE_Mobile_DE_14
- add button for UOF to minibanner - use new 2024 UOF component https://phabricator.wikimedia.org/T382481
- Loading branch information
Showing
13 changed files
with
144 additions
and
31 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
import { TrackingEventConverterFactory } from '@src/tracking/LegacyTrackerWPORG'; | ||
import { WMDELegacyBannerEvent } from '@src/tracking/WPORG/WMDELegacyBannerEvent'; | ||
import { MobileMiniBannerExpandedEvent } from '@src/tracking/events/MobileMiniBannerExpandedEvent'; | ||
import { FormStepShownEvent } from '@src/tracking/events/FormStepShownEvent'; | ||
import { mapFormStepShownEvent } from '@src/tracking/LegacyEventTracking/mapFormStepShownEvent'; | ||
import { CloseEvent } from '@src/tracking/events/CloseEvent'; | ||
import { mapCloseEvent } from '@src/tracking/LegacyEventTracking/mapCloseEvent'; | ||
import { NotShownEvent } from '@src/tracking/events/NotShownEvent'; | ||
import { mapNotShownEvent } from '@src/tracking/LegacyEventTracking/mapNotShownEvent'; | ||
import { BannerSubmitEvent } from '@src/tracking/events/BannerSubmitEvent'; | ||
import { WMDESizeIssueEvent } from '@src/tracking/WPORG/WMDEBannerSizeIssue'; | ||
import { createViewportInfo } from '@src/tracking/LegacyEventTracking/createViewportInfo'; | ||
import { BannerSubmitOnReturnEvent } from '@src/tracking/events/BannerSubmitOnReturnEvent'; | ||
import { UseOfFundsShownEvent } from '@src/tracking/events/UseOfFundsShownEvent'; | ||
|
||
export default new Map<string, TrackingEventConverterFactory>( [ | ||
[ CloseEvent.EVENT_NAME, mapCloseEvent ], | ||
[ MobileMiniBannerExpandedEvent.EVENT_NAME, | ||
( e: MobileMiniBannerExpandedEvent ): WMDELegacyBannerEvent => new WMDELegacyBannerEvent( e.eventName + ( e.userChoice !== '' ? `-${e.userChoice}` : '' ), 1 ) ], | ||
[ FormStepShownEvent.EVENT_NAME, mapFormStepShownEvent ], | ||
[ NotShownEvent.EVENT_NAME, mapNotShownEvent ], | ||
|
||
[ BannerSubmitEvent.EVENT_NAME, ( e: BannerSubmitEvent ): WMDESizeIssueEvent => { | ||
switch ( e.feature ) { | ||
case 'MiniBanner': | ||
case 'UpgradeToYearlyForm': | ||
return new WMDESizeIssueEvent( `submit-${e.userChoice}`, createViewportInfo(), 1 ); | ||
default: | ||
return new WMDESizeIssueEvent( `submit`, createViewportInfo(), 1 ); | ||
} | ||
} ], | ||
[ BannerSubmitOnReturnEvent.EVENT_NAME, | ||
( e: BannerSubmitOnReturnEvent ): WMDELegacyBannerEvent => | ||
new WMDELegacyBannerEvent( | ||
e.eventName + ( e.userChoice !== '' ? `-${e.userChoice}` : '' ), | ||
1 | ||
) | ||
], | ||
[ UseOfFundsShownEvent.EVENT_NAME, | ||
( e: UseOfFundsShownEvent ): WMDELegacyBannerEvent => | ||
new WMDELegacyBannerEvent( | ||
e.eventName + ( e.userChoice !== '' ? `-${e.userChoice}` : '' ), | ||
1 | ||
) | ||
] | ||
] ); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
import { UseOfFundsContent } from '@src/domain/UseOfFunds2024/UseOfFundsContent'; | ||
|
||
export const useOfFundsContent: UseOfFundsContent = { | ||
title: '', | ||
summary: '', | ||
callToAction: '', | ||
accordion: { | ||
items: [], | ||
summary: '' | ||
}, | ||
benefits: { | ||
title: '', | ||
items: [] | ||
}, | ||
revenueComparison: { | ||
title: '', | ||
content: [], | ||
companies: { | ||
title: '', | ||
items: [] | ||
} | ||
}, | ||
closingParagraph: '' | ||
}; |