Skip to content

Add notifications to football match header#15720

Merged
JamieB-gu merged 1 commit intomainfrom
football-match-header-include-notifications
Apr 20, 2026
Merged

Add notifications to football match header#15720
JamieB-gu merged 1 commit intomainfrom
football-match-header-include-notifications

Conversation

@JamieB-gu
Copy link
Copy Markdown
Contributor

@JamieB-gu JamieB-gu commented Apr 16, 2026

The header now takes a NotificationsClient as a prop. The live version of this is passed from the wrapper component, and a mock version is passed in the stories. There are also some small changes to the stories to ensure that a mix of apps and web versions of the header are captured, demonstrating that notifications are correctly shown on apps and not on web.

For the notification payload sent via Bridget a "display name" is required, which specifies the two teams and the date of the match. This change therefore includes a function to calculate this from the match information, and some tests to ensure this works as expected.

Part of #14905.

The header now takes a `NotificationsClient` as a prop. The live version
of this is passed from the wrapper component, and a mock version is
passed in the stories. There are also some small changes to the stories
to ensure that a mix of apps and web versions of the header are
captured, demonstrating that notifications are correctly shown on apps
and not on web.

For the notification payload sent via Bridget a "display name" is
required, which specifies the two teams and the date of the match. This
change therefore includes a function to calculate this from the match
information, and some tests to ensure this works as expected.
@JamieB-gu JamieB-gu added the run_chromatic Runs chromatic when label is applied label Apr 16, 2026
@github-actions github-actions Bot removed the run_chromatic Runs chromatic when label is applied label Apr 16, 2026
@JamieB-gu JamieB-gu requested a review from a team April 16, 2026 15:18
@JamieB-gu JamieB-gu marked this pull request as ready for review April 16, 2026 15:18
@github-actions
Copy link
Copy Markdown

Hello 👋! When you're ready to run Chromatic, please apply the run_chromatic label to this PR.

You will need to reapply the label each time you want to run Chromatic.

Click here to see the Chromatic project.

Copy link
Copy Markdown
Contributor

@marjisound marjisound left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good 👍

@JamieB-gu JamieB-gu merged commit d8beb4e into main Apr 20, 2026
29 checks passed
@JamieB-gu JamieB-gu deleted the football-match-header-include-notifications branch April 20, 2026 10:56
@gu-prout
Copy link
Copy Markdown

gu-prout Bot commented Apr 20, 2026

Seen on PROD (merged by @JamieB-gu 10 minutes and 11 seconds ago) Please check your changes!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants