Skip to content

Using LineUpEnhanced API to Enhance Football Substitutions - #16496

Draft
williammead wants to merge 4 commits into
mainfrom
jlk/football-substitutions
Draft

Using LineUpEnhanced API to Enhance Football Substitutions#16496
williammead wants to merge 4 commits into
mainfrom
jlk/football-substitutions

Conversation

@williammead

@williammead williammead commented Jul 31, 2026

Copy link
Copy Markdown
Contributor

What does this change?

Uses the new data from the PA LineUpEnhanced API to show who is replacing whom when substitutions occur. This involved a change to the parsing and storing of data coming from Frontend, as well as a change to the LineUps component where we actually show the players' names.

N.B. The test fixture for parsing match data needed to be updated to include the new substitution data but I don't believe that data is still readily available so I have replaced the fixture with a new one complete with substitutions.

Why?

Providing more detailed substitution information has been asked for by the sports desk.

How has this change been tested?

  • running the change locally and verifying correct behaviour

Screenshots

Before After
before after

Jakeii and others added 3 commits July 31, 2026 11:49
Co-authored-by: williammead <285652121+williammead@users.noreply.github.com>
Co-authored-by: Jake LK <1731150+Jakeii@users.noreply.github.com>
@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.

@williammead
williammead marked this pull request as draft July 31, 2026 10:53
@williammead williammead changed the title Using LineUPEnhanced Football Substitutions Using LineUpEnhanced API to Enhance Football Substitutions Jul 31, 2026
@williammead williammead added the maintenance Departmental tracking: maintenance work, not a fix or a feature label Jul 31, 2026
@github-actions

github-actions Bot commented Jul 31, 2026

Copy link
Copy Markdown

@williammead williammead added the run_chromatic Runs chromatic when label is applied label Jul 31, 2026
@williammead
williammead requested a review from a team July 31, 2026 11:14
@github-actions github-actions Bot removed the run_chromatic Runs chromatic when label is applied label Jul 31, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

maintenance Departmental tracking: maintenance work, not a fix or a feature

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Update the DCAR to support substitution for both incoming & outgoing players

2 participants