Automate days remaining in campaign copy from countdown
What are you doing in this PR?
Currently MRR are manually updating the number of days remaining for a campaign in the copy. This automates the days remaining using the days remaining from the countdown.
If the countdown exists on the page, it updates state in the landing page with the number of days remaining when it changes. If the placeholder for the %%CAMPAIGN_DEADLINE%% exists in the copy AND the state for the countdown days is defined, it will replace the placeholder with the number of days remaining. If the placeholder exists but there is no countdown to update the date, we DO WHAT??
Why are you doing this?
How to test
How can we measure success?
Have we considered potential risks?
Accessibility test checklist
- [ ] Tested with screen reader
- [ ] Navigable with keyboard
- [ ] Colour contrast passed
- [ ] The change doesn't use only colour to convey meaning
Screenshots
Size Change: +267 B (+0.02%)
Total Size: 1.62 MB
âšī¸ View Unchanged
| Filename | Size | Change |
|---|---|---|
./support-frontend/public/compiled-assets/javascripts/[countryGroupId]/events/router.js |
117 kB | 0 B |
./support-frontend/public/compiled-assets/javascripts/[countryGroupId]/router.js |
145 kB | +114 B (+0.08%) |
./support-frontend/public/compiled-assets/javascripts/ausMomentMap.js |
107 kB | 0 B |
./support-frontend/public/compiled-assets/javascripts/contributionsRedirectStyles.js |
20 B | 0 B |
./support-frontend/public/compiled-assets/javascripts/downForMaintenancePage.js |
88.2 kB | 0 B |
./support-frontend/public/compiled-assets/javascripts/error404Page.js |
88.1 kB | 0 B |
./support-frontend/public/compiled-assets/javascripts/error500Page.js |
88.1 kB | 0 B |
./support-frontend/public/compiled-assets/javascripts/favicons.js |
43 B | 0 B |
./support-frontend/public/compiled-assets/javascripts/paperSubscriptionLandingPage.js |
111 kB | 0 B |
./support-frontend/public/compiled-assets/javascripts/payPalErrorPage.js |
87.3 kB | 0 B |
./support-frontend/public/compiled-assets/javascripts/payPalErrorPageStyles.js |
20 B | 0 B |
./support-frontend/public/compiled-assets/javascripts/promotionTerms.js |
94.1 kB | 0 B |
./support-frontend/public/compiled-assets/javascripts/subscriptionsLandingPage.js |
117 kB | 0 B |
./support-frontend/public/compiled-assets/javascripts/unsupportedBrowserStyles.js |
20 B | 0 B |
./support-frontend/public/compiled-assets/javascripts/weeklySubscriptionLandingPage.js |
116 kB | 0 B |
./support-frontend/public/compiled-assets/webpack/143.js |
13.1 kB | 0 B |
./support-frontend/public/compiled-assets/webpack/241.js |
4.25 kB | 0 B |
./support-frontend/public/compiled-assets/webpack/299.js |
3.32 kB | 0 B |
./support-frontend/public/compiled-assets/webpack/308.js |
33.3 kB | 0 B |
./support-frontend/public/compiled-assets/webpack/355.js |
30.2 kB | 0 B |
./support-frontend/public/compiled-assets/webpack/430.js |
5.53 kB | 0 B |
./support-frontend/public/compiled-assets/webpack/442.js |
6.82 kB | 0 B |
./support-frontend/public/compiled-assets/webpack/650.js |
4.36 kB | 0 B |
./support-frontend/public/compiled-assets/webpack/678.js |
5.76 kB | 0 B |
./support-frontend/public/compiled-assets/webpack/709.js |
109 kB | 0 B |
./support-frontend/public/compiled-assets/webpack/724.js |
18 kB | 0 B |
./support-frontend/public/compiled-assets/webpack/754.js |
9.24 kB | 0 B |
./support-frontend/public/compiled-assets/webpack/762.js |
4.64 kB | 0 B |
./support-frontend/public/compiled-assets/webpack/8.js |
19.5 kB | +120 B (+0.62%) |
./support-frontend/public/compiled-assets/webpack/843.js |
4.3 kB | 0 B |
./support-frontend/public/compiled-assets/webpack/862.js |
3.15 kB | 0 B |
./support-frontend/public/compiled-assets/webpack/checkout.js |
20.6 kB | 0 B |
./support-frontend/public/compiled-assets/webpack/GuardianAdLiteLanding.js |
13.8 kB | 0 B |
./support-frontend/public/compiled-assets/webpack/LandingPage.js |
17.4 kB | +33 B (+0.19%) |
./support-frontend/public/compiled-assets/webpack/oneTimeCheckout.js |
7.46 kB | 0 B |
./support-frontend/public/compiled-assets/webpack/StudentLandingPageGlobalContainer.js |
1.74 kB | 0 B |
./support-frontend/public/compiled-assets/webpack/StudentLandingPageUTSContainer.js |
1.94 kB | 0 B |
./support-frontend/public/compiled-assets/webpack/ThankYou.js |
118 kB | 0 B |
Seen on PROD (merged by @sookburt 10 minutes and 59 seconds ago)
- Keep an eye out for the post deployment Playwright smoke tests github action
- If the tests have failed, the post deployment test runbook should help troubleshoot.