From 1008539d3d51f5b2fbf3f078d84b8d1c395f60dd Mon Sep 17 00:00:00 2001 From: Corinna Hillebrand Date: Thu, 19 Dec 2024 13:52:12 +0100 Subject: [PATCH] Implement VAR for C24_WMDE_Mobile_DE_14 - add button for UOF to minibanner - use new 2024 UOF component https://phabricator.wikimedia.org/T382481 --- .../C24_WMDE_Mobile_DE_14/banner_ctrl.ts | 2 +- .../C24_WMDE_Mobile_DE_14/banner_var.ts | 2 +- .../components/BannerCtrl.vue | 23 ++++++---- .../components/BannerVar.vue | 32 ++++++++----- .../components/MiniBanner_var.vue | 11 ++++- .../C24_WMDE_Mobile_DE_14/event_map_var.ts | 46 +++++++++++++++++++ .../styles/MiniBanner_var.scss | 21 +++++++++ .../C24_WMDE_Mobile_DE_14/styles/styles.scss | 4 +- .../styles/styles_var.scss | 4 +- campaign_info.toml | 2 +- .../components/BannerCtrl.spec.ts | 2 +- .../components/BannerVar.spec.ts | 2 +- test/banners/useOfFundsContent2024.ts | 24 ++++++++++ 13 files changed, 144 insertions(+), 31 deletions(-) create mode 100644 banners/mobile/C24_WMDE_Mobile_DE_14/event_map_var.ts create mode 100644 test/banners/useOfFundsContent2024.ts diff --git a/banners/mobile/C24_WMDE_Mobile_DE_14/banner_ctrl.ts b/banners/mobile/C24_WMDE_Mobile_DE_14/banner_ctrl.ts index 4b3126924..e138b88d5 100644 --- a/banners/mobile/C24_WMDE_Mobile_DE_14/banner_ctrl.ts +++ b/banners/mobile/C24_WMDE_Mobile_DE_14/banner_ctrl.ts @@ -18,7 +18,7 @@ import { WindowPageScroller } from '@src/utils/PageScroller/WindowPageScroller'; import { LegacyTrackerWPORG } from '@src/tracking/LegacyTrackerWPORG'; import eventMappings from './event_map'; import messages from './messages'; -import { LocaleFactoryDe } from '@src/utils/LocaleFactory/LocaleFactoryDe'; +import { LocaleFactoryDe } from '@src/utils/LocaleFactory2024/LocaleFactoryDe'; import { createFormItems } from './form_items'; import { createFormActions } from '@src/createFormActions'; import { LocalStorageCloseTracker } from '@src/utils/LocalCloseTracker'; diff --git a/banners/mobile/C24_WMDE_Mobile_DE_14/banner_var.ts b/banners/mobile/C24_WMDE_Mobile_DE_14/banner_var.ts index 130119991..ac29cb044 100644 --- a/banners/mobile/C24_WMDE_Mobile_DE_14/banner_var.ts +++ b/banners/mobile/C24_WMDE_Mobile_DE_14/banner_var.ts @@ -18,7 +18,7 @@ import { WindowPageScroller } from '@src/utils/PageScroller/WindowPageScroller'; import { LegacyTrackerWPORG } from '@src/tracking/LegacyTrackerWPORG'; import eventMappings from './event_map'; import messages from './messages'; -import { LocaleFactoryDe } from '@src/utils/LocaleFactory/LocaleFactoryDe'; +import { LocaleFactoryDe } from '@src/utils/LocaleFactory2024/LocaleFactoryDe'; import { createFormItems } from './form_items'; import { createFormActions } from '@src/createFormActions'; import { LocalStorageCloseTracker } from '@src/utils/LocalCloseTracker'; diff --git a/banners/mobile/C24_WMDE_Mobile_DE_14/components/BannerCtrl.vue b/banners/mobile/C24_WMDE_Mobile_DE_14/components/BannerCtrl.vue index 8b2c17d15..f637675a2 100644 --- a/banners/mobile/C24_WMDE_Mobile_DE_14/components/BannerCtrl.vue +++ b/banners/mobile/C24_WMDE_Mobile_DE_14/components/BannerCtrl.vue @@ -102,8 +102,9 @@