-
Notifications
You must be signed in to change notification settings - Fork 1.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
reference field-custom-filter-api (PR from TinaCMS) #2229
Conversation
Co-authored-by: Ben Neoh <[email protected]>
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
|
Co-authored-by: Ben Neoh <[email protected]>
Co-authored-by: Ben Neoh <[email protected]>
Co-authored-by: Ben Neoh <[email protected]>
Co-authored-by: Ben Neoh <[email protected]>
Co-authored-by: Isaac Lombard [SSW] <[email protected]>
Co-authored-by: Isaac Lombard [SSW] <[email protected]>
Co-authored-by: Isaac Lombard [SSW] <[email protected]>
Co-authored-by: Ben Neoh <[email protected]>
Still waiting on the feature for this one @Ben0189 |
Co-authored-by: Ben Neoh <[email protected]>
Co-authored-by: Isaac Lombard [SSW] <[email protected]>
Co-authored-by: Isaac Lombard [SSW] <[email protected]>
Co-authored-by: Isaac Lombard [SSW] <[email protected]>
Co-authored-by: Isaac Lombard [SSW] <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Great update, good feature.
Might also be worth mentioning the following, Inline functions won't work as the properties aren't called. e.g. the below code won't work and will return all authors (collection): collectionFilter: {
author: {
date: () => Date.now().toString(),
},
}, Instead we would need to add this function outside as it will only be run on build (and initialisation of the tinacms panel) const filterByAuthorDate = () => Date.now().toString(),
const postSchema = {
...,
collectionFilter: {
author: {
date: filterByAuthorDate(),
},
},
} |
Co-authored-by: Ben Neoh <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🦙
This PR is ready to merge , the feature has merge into main |
New API for reference field introduced
Add documentation for custom filter in reference field