Skip to content

Add support for live activities#16046

Merged
JamieB-gu merged 4 commits into
mainfrom
bridget-live-activities-client
Jun 8, 2026
Merged

Add support for live activities#16046
JamieB-gu merged 4 commits into
mainfrom
bridget-live-activities-client

Conversation

@JamieB-gu

@JamieB-gu JamieB-gu commented Jun 3, 2026

Copy link
Copy Markdown
Contributor

If the app supports live activities, and a particular live activity is available for this match, we want to allow the user to turn it on or off. If not, we want to check if match notifications are available instead, and show a button for that. If these aren't available either, the app might tell us the reason why (e.g. the user has already subscribed to notifications by following a team), and we show that information to the user. If none of these features are available, or we're not in the app at all, we show nothing.

The majority of this change involves refactoring the Notifications sub-component of FootballMatchHeader to support this, and updating the stories.

Part of guardian/bridget#252

Screenshots

Live Activities

If live activities are supported.

Off On
Fixture fixture-off fixture-on
Live live-off live-on

Notifications

If live activities aren't supported, but notifications are.

Off On
Fixture notifications-fixture-off notifications-fixture-on
Live notifications-live-off notifications-live-on

Unavailable With Reason

Live activities aren't available, and notifications aren't available because you follow at least one of the teams already.

Fixture Live
notifications-unavailable-fixture notifications-unavailable-live

Unavailable

Neither live activities nor notifications are available, and we have no explanation as to why.

Fixture Live
no-notifications-fixture no-notifications-live

If the app supports live activities, and a particular live activity is
available for this match, we want to allow the user to turn it on or
off. If not, we want to check if match notifications are available
instead, and show a button for that. If these aren't available either,
the app might tell us the reason why (e.g. the user has already
subscribed to notifications by following a team), and we show that
information to the user. If none of these features are available, or
we're not in the app at all, we show nothing.

The majority of this change involves refactoring the `Notifications`
sub-component of `FootballMatchHeader` to support this, and updating the
stories.

**Note:** For now this change is using a pre-release version of Bridget
and hardcodes the expected new Bridget version for testing. This will be
updated to use the production release of Bridget once it's available.
@JamieB-gu JamieB-gu added the feature Departmental tracking: work on a new feature label Jun 3, 2026
@github-actions

github-actions Bot commented Jun 3, 2026

Copy link
Copy Markdown

@alexduf alexduf left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Nice, thanks for guiding us through the code 👍

Comment thread dotcom-rendering/src/components/LiveActivitiesToggle.tsx

@jamesmockett jamesmockett left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Thanks for the walkthrough, it was really helpful. This all looks good 👍

JamieB-gu added 2 commits June 4, 2026 16:34
The new version includes the `LiveActivities` service.
@JamieB-gu JamieB-gu added the run_chromatic Runs chromatic when label is applied label Jun 4, 2026
@github-actions github-actions Bot removed the run_chromatic Runs chromatic when label is applied label Jun 4, 2026
@JamieB-gu JamieB-gu marked this pull request as ready for review June 4, 2026 16:16
@JamieB-gu JamieB-gu requested a review from a team as a code owner June 4, 2026 16:16
@github-actions

github-actions Bot commented Jun 4, 2026

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.

@JamieB-gu JamieB-gu merged commit cc5167f into main Jun 8, 2026
30 checks passed
@JamieB-gu JamieB-gu deleted the bridget-live-activities-client branch June 8, 2026 14:19
@JamieB-gu JamieB-gu mentioned this pull request Jun 8, 2026
@gu-prout

gu-prout Bot commented Jun 8, 2026

Copy link
Copy Markdown

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

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

Labels

feature Departmental tracking: work on a new feature Seen-on-PROD

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants