feat: add combobox component to connect #217
Merged
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.
Why did you create this PR
To fix the problem when connect with another table shows all items in that table as options.
What did you do
Replaced with a combobox to handle this case.
Limit the query with take = 10 to reduce load, and added a search functionality.
Now I got a majority problem
1. No connected value in update page
When connect with another table on the update page, the connected value does not appear in this version of Genseki.
https://linear.app/metier/issue/BRV-517/genseki-%E0%B8%82%E0%B9%89%E0%B8%AD%E0%B8%A1%E0%B8%B9%E0%B8%A5%E0%B8%9A%E0%B8%B2%E0%B8%87-field-%E0%B8%AB%E0%B8%B2%E0%B8%A2%E0%B8%95%E0%B8%AD%E0%B8%99%E0%B8%81%E0%B8%94-edit
2. Typesafe
In this PR, I implemented new options for the posts collection, for example:
and
but I have no idea to get type the __options value.
I think this should be defined or configured in the Genseki types, not declare custom type in posts file?
Screenshots / Recordings
Problem:

Combobox:
Screen.Recording.2568-09-25.at.11.54.27.mov
Checklist