Skip to content

Commit 8c51c17

Browse files
Added 3 new Australian Newsletters (#3295)
<!-- See https://github.com/guardian/recommendations/blob/main/pull-requests.md for recommendations on raising and reviewing pull requests. --> ## What does this change? This PR replaces 3 Australian newsletters (Afternoon Update, Saved For Later, The Crunch) with (Breaking News, Five Great Reads and Clear Air) to `/welcome/newsletters`. I've also updated the Morning Mail newsletter image. https://trello.com/c/r8UH1fsN <!-- A PR should have enough detail to be understandable far in the future. e.g what is the problem/why is the change needed, how does it solve it and any questions or points of discussion. Prefer copying information from a Trello card over linking to it; the card may not always exist and reviewers may not have access to the board. --> ## How to test Deployed to CODE and viewed using a VPN. ## Images | Before | After | | --- | --- | |<img width="1908" height="992" alt="Screenshot 2025-12-01 at 13 55 13" src="https://github.com/user-attachments/assets/8d61fde7-6fba-42e8-8d15-49744af67d73" /> | <img width="1906" height="993" alt="Screenshot 2025-12-03 at 11 34 07" src="https://github.com/user-attachments/assets/d1b9554a-6132-4a30-b2ad-3694f1186691" /> | <!-- Usually only applicable to UI changes, what did it look like before and what will it look like after? -->
1 parent cd5c23d commit 8c51c17

File tree

9 files changed

+19
-4
lines changed

9 files changed

+19
-4
lines changed
81.3 KB
Loading
344 KB
Loading
42.9 KB
Loading
34.1 KB
Loading
-45.4 KB
Binary file not shown.

src/client/assets/newsletters/index.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
export { default as SATURDAY_EDITION_SMALL_SQUARE_IMAGE } from '@/client/assets/newsletters/saturday-edition-small-square.jpg';
2-
export { default as MORNING_MAIL_AU_SQUARE_IMAGE } from '@/client/assets/newsletters/au-morning-mail-square.png';
2+
export { default as MORNING_MAIL_AU_SQUARE_IMAGE } from '@/client/assets/newsletters/au-morning-mail-square.jpg';
3+
export { default as BREAKING_NEWS_AU_SQUARE_IMAGE } from '@/client/assets/newsletters/au-breaking-news.jpg';
4+
export { default as FIVE_GREAT_READS_AU_SQUARE_IMAGE } from '@/client/assets/newsletters/au-five-great-reads-square.png';
5+
export { default as CLEAR_AIR_AU_SQUARE_IMAGE } from '@/client/assets/newsletters/au-clear-air.png';
36
export { default as AFTERNOON_UPDATE_AU_SQUARE_IMAGE } from '@/client/assets/newsletters/au-afternoon-update-square.png';
47
export { default as SAVED_FOR_LATER_AU_SQUARE_IMAGE } from '@/client/assets/newsletters/au-saved-for-later-square.jpg';
58
export { default as THE_CRUNCH_AU_SQUARE_IMAGE } from '@/client/assets/newsletters/au-the-crunch-square.jpg';

src/client/models/Newsletter.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
import { Newsletters, NewslettersWithImages } from '@/shared/model/Newsletter';
22
import {
33
AFTERNOON_UPDATE_AU_SQUARE_IMAGE,
4+
BREAKING_NEWS_AU_SQUARE_IMAGE,
5+
CLEAR_AIR_AU_SQUARE_IMAGE,
6+
FIVE_GREAT_READS_AU_SQUARE_IMAGE,
47
HEADLINES_US_SQUARE_IMAGE,
58
MORNING_MAIL_AU_SQUARE_IMAGE,
69
SAVED_FOR_LATER_AU_SQUARE_IMAGE,
@@ -12,6 +15,9 @@ import {
1215

1316
export const NEWSLETTER_IMAGES: Record<NewslettersWithImages, string> = {
1417
[Newsletters.MORNING_MAIL_AU]: MORNING_MAIL_AU_SQUARE_IMAGE,
18+
[Newsletters.BREAKING_NEWS_AU]: BREAKING_NEWS_AU_SQUARE_IMAGE,
19+
[Newsletters.FIVE_GREAT_READS_AU]: FIVE_GREAT_READS_AU_SQUARE_IMAGE,
20+
[Newsletters.CLEAR_AIR_AU]: CLEAR_AIR_AU_SQUARE_IMAGE,
1521
[Newsletters.AFTERNOON_UPDATE_AU]: AFTERNOON_UPDATE_AU_SQUARE_IMAGE,
1622
[Newsletters.SAVED_FOR_LATER_AU]: SAVED_FOR_LATER_AU_SQUARE_IMAGE,
1723
[Newsletters.THE_CRUNCH_AU]: THE_CRUNCH_AU_SQUARE_IMAGE,

src/server/lib/newsletters.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,9 @@ export const NewsletterMap = new Map<
2121
'AU',
2222
[
2323
Newsletters.MORNING_MAIL_AU,
24-
Newsletters.AFTERNOON_UPDATE_AU,
25-
Newsletters.SAVED_FOR_LATER_AU,
26-
Newsletters.THE_CRUNCH_AU,
24+
Newsletters.BREAKING_NEWS_AU,
25+
Newsletters.FIVE_GREAT_READS_AU,
26+
Newsletters.CLEAR_AIR_AU,
2727
],
2828
],
2929
['EU', []],

src/shared/model/Newsletter.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,9 @@ export const Newsletters = {
2222
AFTERNOON_UPDATE_AU: '6023',
2323
THE_CRUNCH_AU: '6034',
2424
SAVED_FOR_LATER_AU: '6003',
25+
BREAKING_NEWS_AU: '6048',
26+
FIVE_GREAT_READS_AU: '6019',
27+
CLEAR_AIR_AU: '6055',
2528
// Registration newsletters
2629
SATURDAY_EDITION: '6031',
2730
FEAST: '6002',
@@ -34,6 +37,9 @@ export const Newsletters = {
3437

3538
export type NewslettersWithImages =
3639
| typeof Newsletters.MORNING_MAIL_AU
40+
| typeof Newsletters.BREAKING_NEWS_AU
41+
| typeof Newsletters.FIVE_GREAT_READS_AU
42+
| typeof Newsletters.CLEAR_AIR_AU
3743
| typeof Newsletters.AFTERNOON_UPDATE_AU
3844
| typeof Newsletters.SAVED_FOR_LATER_AU
3945
| typeof Newsletters.THE_CRUNCH_AU

0 commit comments

Comments
 (0)