ElectionTracker component - #16574
Open
JamieB-gu wants to merge 1 commit into
Open
Conversation
JamieB-gu
force-pushed
the
election-trackers-us-congress
branch
from
August 20, 2026 11:19
8e4579c to
b1873fd
Compare
Create a component designed to handle multiple different election tracker layouts.
JamieB-gu
force-pushed
the
election-tracker-component
branch
from
August 25, 2026 09:33
ff31a3f to
f30a14d
Compare
🚀 Image pushed to AWS ECRImage digest: 🐛 Run the image locallyThe 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 |
JamieB-gu
marked this pull request as ready for review
August 26, 2026 11:00
|
Hello 👋! When you're ready to run Chromatic, please apply the You will need to reapply the label each time you want to run Chromatic. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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.