Skip to content

ElectionTracker component - #16574

Open
JamieB-gu wants to merge 1 commit into
mainfrom
election-tracker-component
Open

ElectionTracker component#16574
JamieB-gu wants to merge 1 commit into
mainfrom
election-tracker-component

Conversation

@JamieB-gu

@JamieB-gu JamieB-gu commented Aug 19, 2026

Copy link
Copy Markdown
Contributor

Create a component designed to handle multiple different election tracker layouts. The events service will specify which election elements to include, and what data should be passed to them, allowing us to build several different election graphics from the same components.

Examples

See storybook for more examples.

Note: There are some padding issues that we'll fix in future changes.

uk-general eu-parliament uk-exit-poll

@JamieB-gu JamieB-gu self-assigned this Aug 19, 2026
@JamieB-gu JamieB-gu added feature Departmental tracking: work on a new feature run_chromatic Runs chromatic when label is applied labels Aug 19, 2026
@github-actions github-actions Bot removed the run_chromatic Runs chromatic when label is applied label Aug 19, 2026
@github-actions

github-actions Bot commented Aug 19, 2026

Copy link
Copy Markdown

@JamieB-gu
JamieB-gu force-pushed the election-trackers-us-congress branch from 8e4579c to b1873fd Compare August 20, 2026 11:19
Base automatically changed from election-trackers-us-congress to main August 21, 2026 10:25
Create a component designed to handle multiple different election
tracker layouts.
@JamieB-gu
JamieB-gu force-pushed the election-tracker-component branch from ff31a3f to f30a14d Compare August 25, 2026 09:33
@github-actions

Copy link
Copy Markdown

🚀 Image pushed to AWS ECR

Image digest: sha256:dc947cccd47898458a1760d065b9f54955e20c4b00d3fda08981acfa330b2b2d

🐛 Run the image locally

The following can be used to run the image locally:

# Refer to image using the immutable digest. Find alternatives below.
IMAGE_IDENTIFIER="@sha256:dc947cccd47898458a1760d065b9f54955e20c4b00d3fda08981acfa330b2b2d"

# Refer to image using branch tag
# IMAGE_IDENTIFIER=":branch-election-tracker-component"

# Refer to image using build tag
# IMAGE_IDENTIFIER=":build-30344"

# Refer to image via the GitHub commit SHA tag
# IMAGE_IDENTIFIER=":sha-f30a14d69a7c544fe86cc880f75ea4594c794bcb"

# Set environment variables for the AWS CLI
AWS_PROFILE="<A_PROFILE_FROM_JANUS>"
AWS_DEFAULT_REGION="eu-west-1"

IMAGE_ACCOUNT_ID=$(aws ssm get-parameter --name /organisation/accounts/deployTools --query "Parameter.Value" --output text)
REGISTRY="${IMAGE_ACCOUNT_ID}.dkr.ecr.${AWS_DEFAULT_REGION}.amazonaws.com"
IMAGE="${REGISTRY}/guardian/dotcom-rendering${IMAGE_IDENTIFIER}"

# Login to AWS ECR https://docs.aws.amazon.com/AmazonECR/latest/userguide/registry_auth.html
aws ecr get-login-password | docker login --username AWS --password-stdin $REGISTRY

# Pull the image
docker pull $IMAGE

# Run the image. You'll likely need to set additional flags. See https://docs.docker.com/reference/cli/docker/container/run.
docker run $IMAGE

From guardian/actions-publish-image.

@JamieB-gu JamieB-gu added the run_chromatic Runs chromatic when label is applied label Aug 26, 2026
@github-actions github-actions Bot removed the run_chromatic Runs chromatic when label is applied label Aug 26, 2026
@JamieB-gu
JamieB-gu marked this pull request as ready for review August 26, 2026 11:00
@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.

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.

1 participant