Skip to content

Conversation

domlander
Copy link
Contributor

@domlander domlander commented Aug 18, 2025

What does this change?

Refactors mentions of image where over time this has come to mean media. We started displaying only images in fronts cards, but over time we have added slideshows, videos and more, so media is a better term for where this content is referenced.

Why?

Less confusing to read the code.

@domlander domlander self-assigned this Aug 18, 2025
@domlander domlander force-pushed the doml/refactor-image-wrapper branch from c628131 to 89eed1e Compare August 18, 2025 09:14
@domlander domlander added run_chromatic Runs chromatic when label is applied fronts + curation labels Aug 18, 2025
@domlander domlander changed the title WIP image -> media refactor Aug 18, 2025
@domlander domlander changed the title image -> media refactor Refactor image -> media Aug 18, 2025
Copy link

github-actions bot commented Aug 18, 2025

@github-actions github-actions bot removed the run_chromatic Runs chromatic when label is applied label Aug 18, 2025
@domlander domlander force-pushed the doml/refactor-image-wrapper branch from 89eed1e to 576d854 Compare August 22, 2025 06:15
@domlander domlander force-pushed the doml/refactor-image-wrapper branch from 576d854 to d1d8ba8 Compare August 22, 2025 07:40
@domlander domlander marked this pull request as ready for review August 22, 2025 07:41
@domlander domlander added the run_chromatic Runs chromatic when label is applied label Aug 22, 2025
@github-actions github-actions bot removed the run_chromatic Runs chromatic when label is applied label Aug 22, 2025

const sizingStyles = (
imageSize: ImageSizeType,
imageSize: MediaSizeType,
Copy link
Contributor

Choose a reason for hiding this comment

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

Assuming imageSize and imagePositionType have been left as is as avatar is (currently) always an image.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yep! I've tried to leave these alone when it can only be an image, with the goal of making it as easy as possible to understand for the reader. If we were to add another media type to Avatar, then we should update this prop.

@domlander domlander merged commit bac26e8 into main Aug 26, 2025
32 checks passed
@domlander domlander deleted the doml/refactor-image-wrapper branch August 26, 2025 12:36
@gu-prout
Copy link

gu-prout bot commented Aug 26, 2025

Overdue on PROD (merged by @domlander 30 minutes and 8 seconds ago) What's gone wrong?

@gu-prout
Copy link

gu-prout bot commented Aug 26, 2025

Seen on PROD (merged by @domlander 5 hours, 37 minutes and 21 seconds ago) Please check your changes!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants