Skip to content

Wire up cricket header in live blog#16161

Open
marjisound wants to merge 3 commits into
mainfrom
wire-up-cricket-header-in-live-blog
Open

Wire up cricket header in live blog#16161
marjisound wants to merge 3 commits into
mainfrom
wire-up-cricket-header-in-live-blog

Conversation

@marjisound

@marjisound marjisound commented Jun 15, 2026

Copy link
Copy Markdown
Contributor

What does this change?

Wiring up cricket header into cricket live blog

This PR adds a new CricketMatchHeaderWrapper component that wraps the CricketMatchHeader. The purpose of having this component is for testing. This way we can easily add storybook interaction tests using the play function since the logic for getHeaderData can be passed to the component as a prop, so the consumer decides how to get the data.

The CricketMatchHeaderWrapper is used in the LiveLayout when the live blog is for a cricket match. This is now behind a feature flag and you'd need to opt-in in order to see it (https://m.code.dev-theguardian.com/ab-tests/opt-in/webx-cricket-redesign:enable).

Note: Currently I have added some interaction tests in CricketMatchHeader storybook, but the tests need to get expanded and improved after we have the tab logic for the scorecard.

Screenshots

Before After
before after

Tested in CODE.

@github-actions

github-actions Bot commented Jun 15, 2026

Copy link
Copy Markdown

@marjisound marjisound force-pushed the wire-up-cricket-header-in-live-blog branch from f3385e4 to b5311ff Compare June 15, 2026 17:12
@github-actions

github-actions Bot commented Jun 15, 2026

Copy link
Copy Markdown

@marjisound marjisound added the feature Departmental tracking: work on a new feature label Jun 16, 2026
The tests are still not covering all scenarios.
This will need to be improved after the tabs logic is implemented
@marjisound marjisound force-pushed the wire-up-cricket-header-in-live-blog branch from df60e72 to d73d4c6 Compare June 16, 2026 08:08
@marjisound marjisound marked this pull request as ready for review June 16, 2026 11:08
@marjisound marjisound requested a review from a team as a code owner June 16, 2026 11:08
@marjisound marjisound added the run_chromatic Runs chromatic when label is applied label Jun 16, 2026
@marjisound marjisound requested a review from a team June 16, 2026 11:10
@github-actions github-actions Bot removed the run_chromatic Runs chromatic when label is applied label Jun 16, 2026
Comment on lines +1114 to +1123
football: {
footballMatchLeagueName: string;
footballMatchLeagueUrl: string;
footballMatchHeaderUrl?: string;
footballMatchUrl?: string;
};
cricket: {
cricketMatchHeaderUrl?: string;
isCricketRedesignEnabled: boolean;
};

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Could these props be derived in the Header component? Looks like they mostly come from the article

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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants