Skip to content

Cricket mini match stats - #16279

Merged
williammead merged 19 commits into
mainfrom
cricket-mini-match-stats
Jul 6, 2026
Merged

williammead merged 19 commits into
mainfrom
cricket-mini-match-stats

Conversation

@williammead

@williammead williammead commented Jun 26, 2026

Copy link
Copy Markdown
Contributor

What does this change?

Adds a mini stats component to cricket liveblogs behind the cricket redesign abTest.

This addition touches a fair few files, but has generally been done inline with how the football mini stats component is implemented as well as borrowing styles from the cricket scorecard.

The data is filtered to only show the two batters who are currently batting. The whole component will not be shown if there are no batters (for whatever reason). The button links to the scorecard tab using "#scorecard".

I'm not sure about future plans to include other sports, but inline with the headers being extracted into a separate component I've extracted the mini stats into a separate component to make it slightly easier to update with other sports if need be in the future.

Screenshots

Screenshot 2026-07-01 at 12 26 42

@williammead williammead added the feature Departmental tracking: work on a new feature label Jun 26, 2026
@williammead williammead linked an issue Jun 26, 2026 that may be closed by this pull request
@github-actions

github-actions Bot commented Jun 26, 2026

Copy link
Copy Markdown

@github-actions

github-actions Bot commented Jul 1, 2026

Copy link
Copy Markdown

@williammead
williammead marked this pull request as ready for review July 2, 2026 15:19
@github-actions

github-actions Bot commented Jul 2, 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.

@williammead williammead added the run_chromatic Runs chromatic when label is applied label Jul 2, 2026
@github-actions github-actions Bot removed the run_chromatic Runs chromatic when label is applied label Jul 2, 2026
@williammead williammead added the run_chromatic Runs chromatic when label is applied label Jul 6, 2026
@github-actions github-actions Bot removed the run_chromatic Runs chromatic when label is applied label Jul 6, 2026
Comment thread dotcom-rendering/src/components/CricketMiniMatchStats.tsx Outdated
/>
</Island>
)}
<MiniMatchStats

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.

Nice shared component 👍

@williammead williammead added the run_chromatic Runs chromatic when label is applied label Jul 6, 2026
@github-actions github-actions Bot removed the run_chromatic Runs chromatic when label is applied label Jul 6, 2026
@williammead
williammead merged commit 21a9353 into main Jul 6, 2026
36 checks passed
@williammead
williammead deleted the cricket-mini-match-stats branch July 6, 2026 14:46
@gu-prout

gu-prout Bot commented Jul 6, 2026

Copy link
Copy Markdown

Seen on PROD (merged by @williammead 10 minutes and 16 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.

Component for Cricket Mini Match Stats

2 participants