Feature: Display image thumbnails in collection list views#1525
Open
mrprkr wants to merge 1 commit intoThinkmill:mainfrom
Open
Feature: Display image thumbnails in collection list views#1525mrprkr wants to merge 1 commit intoThinkmill:mainfrom
mrprkr wants to merge 1 commit intoThinkmill:mainfrom
Conversation
|
a598e75 to
62f07bc
Compare
…ering Fields can now define an optional Cell component to control how their values are rendered in collection list views. The image field provides a default Cell that renders 32x32 rounded thumbnails with a fallback to displaying the path string if the image fails to load.
62f07bc to
e86097f
Compare
emmatown
reviewed
Mar 31, 2026
| parse(value: FormFieldStoredValue): ReaderValue; | ||
| }; | ||
| label?: string; | ||
| Cell?: ComponentType<{ value: any }>; |
Member
There was a problem hiding this comment.
value should be ParsedValue here and etc.
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.
Summary
columnsconfigurationChanges
packages/keystatic/src/app/CollectionPage.tsx— AddedImageThumbnailcomponent,isImageColumn()andisImagePath()helpers, updated cell rendering logicdev-projects/next-app/keystatic.config.tsx— Addedcolumnsconfig withheroImageto posts collection for testing; configuredpublicPathanddirectoryon the image fieldTest plan
imagefield and include it in thecolumnsarrayfile) still display as text