Skip to content
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

Open
wants to merge 13 commits into
base: main
Choose a base branch
from

Conversation

tina-cloud-app[bot]
Copy link
Contributor

@tina-cloud-app tina-cloud-app bot commented Sep 19, 2024

New API for reference field introduced

Add documentation for custom filter in reference field

Co-authored-by: Ben Neoh <benneoh@ssw.com.au>
Copy link

vercel bot commented Sep 19, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
tina-io ✅ Ready (Inspect) Visit Preview 💬 Add feedback Sep 27, 2024 0:54am

@Ben0189 Ben0189 marked this pull request as ready for review September 19, 2024 04:40
@Ben0189 Ben0189 requested a review from a team as a code owner September 19, 2024 04:40
@Ben0189
Copy link
Member

Ben0189 commented Sep 19, 2024

⚠️This PR should not be merge until the feature in TinaCMS is deployed tinacms/tinacms#4780

content/docs/reference/types/reference.mdx Outdated Show resolved Hide resolved

If you have a long list of reference item, you can filter them in the schema before build time using `ui.collectionFilter`

> Senario: You have a list of author in different location, and you only want the reference select in your post collection to show the desired location.
Copy link
Contributor

@isaaclombardssw isaaclombardssw Sep 19, 2024

Choose a reason for hiding this comment

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

Suggested change
> Senario: You have a list of author in different location, and you only want the reference select in your post collection to show the desired location.
> Senario: You have a collection of authors in different locations, and you only want the references selected from that collection to be authors from one location.

content/docs/reference/types/reference.mdx Outdated Show resolved Hide resolved
content/docs/reference/types/reference.mdx Show resolved Hide resolved
content/docs/reference/types/reference.mdx Outdated Show resolved Hide resolved
content/docs/reference/types/reference.mdx Show resolved Hide resolved
content/docs/reference/types/reference.mdx Outdated Show resolved Hide resolved
tina-cloud-app bot and others added 3 commits September 19, 2024 23:14
Co-authored-by: Ben Neoh <benneoh@ssw.com.au>
Co-authored-by: Ben Neoh <benneoh@ssw.com.au>
Co-authored-by: Ben Neoh <benneoh@ssw.com.au>
tina-cloud-app bot and others added 7 commits September 20, 2024 05:34
Co-authored-by: Ben Neoh <benneoh@ssw.com.au>
Co-authored-by: Isaac Lombard [SSW] <152236421+isaaclombardssw@users.noreply.github.com>
Co-authored-by: Isaac Lombard [SSW] <152236421+isaaclombardssw@users.noreply.github.com>
Co-authored-by: Isaac Lombard [SSW] <152236421+isaaclombardssw@users.noreply.github.com>
Co-authored-by: Ben Neoh <benneoh@ssw.com.au>
@isaaclombardssw
Copy link
Contributor

Still waiting on the feature for this one @Ben0189

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