Skip to content

Add content type specific placeholder images to search#559

Merged
sarangj merged 2 commits into
qafrom
placeholder_images
Apr 28, 2026
Merged

Add content type specific placeholder images to search#559
sarangj merged 2 commits into
qafrom
placeholder_images

Conversation

@sarangj

@sarangj sarangj commented Apr 28, 2026

Copy link
Copy Markdown
Contributor

Ticket:

This PR does the following:

Pipe the contentType of the search result through the card props and use
it to determine which placeholder image we render if no thumbnail is
available.

Open questions

How has this been tested? How should a reviewer test this?

Check out the lou reed papers to see audio and image placeholders:
Screenshot 2026-04-28 at 11 52 55 AM

Do a video specific search and scroll til you find a video without a thumbnail:
Screenshot 2026-04-28 at 11 52 38 AM

Accessibility concerns or updates

Checklist:

  • I have added relevant accessibility documentation for this pull request.
  • All new and existing tests passed.
  • I have updated the CHANGELOG.md.

sarangj added 2 commits April 28, 2026 11:21
Looks like the SearchCardImage doesn't know what props it is receiving,
so add it in!
Pipe the contentType of the search result through the card props and use
it to determine which placeholder image we render if no thumbnail is
available.
@vercel

vercel Bot commented Apr 28, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
digital-collections Ready Ready Preview, Comment Apr 28, 2026 3:36pm

Request Review

@sarangj sarangj changed the title Placeholder images Add content type specific placeholder images to search Apr 28, 2026
@sarangj sarangj marked this pull request as ready for review April 28, 2026 15:54

@keithbauer keithbauer left a comment

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!

also the image diff is pretty neat with Swipe and Onion Skin, don't think I've seen these before

@sarangj

sarangj commented Apr 28, 2026

Copy link
Copy Markdown
Contributor Author

yes, the diff view is so cool!

@sarangj sarangj merged commit 0a3e86a into qa Apr 28, 2026
9 checks passed
@sarangj sarangj deleted the placeholder_images branch April 28, 2026 17:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants