-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
[RelationshipList] A field for a relation-many that display a table #2646
Conversation
…ltionship many See packages/fields/src/types/Relationship/README.md BREAKING CHANGE: Not working styles
…clude styled components
…ve classes to styled components
💥 No ChangesetLatest commit: ce3db18 Merging this PR will not cause any packages to be released. If these changes should not cause updates to packages in this repo, this is fine 🙂 If these changes should be published to npm, you need to add a changeset. This PR includes no changesetsWhen changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types Click here to learn what changesets are, and how to add one. Click here if you're a maintainer who wants to add a changeset to this PR |
This idea is great, but I think rather than making a new field it would be better to have options on the relationship field type to choose different presentations. What do you think about that? |
Sure sounds great, if the option inner field is present it should automatically take the table presentation I'll be working on this 😁 |
I like this. I'd recommend specifying an explicit option for our relationship fields, i.e
That new option would default to I'd also like to call the option that specifies the data to display We'll also need to pull the column views for the fields specified by @Nikodermus tbh this isn't going to be a small amount of work or particularly simple (I'm sure there will be more things to do as you get closer) but I'm really happy you're taking it on & will keep advising as you go if you're up for it! |
It may also be helpful to have it expand to table (configurable isExpanded) and minimize to regular select. Thoughts? |
I think changing from the regular select to the table would be too agressive for the user, I think we should keep one look so we can handle in the list only |
Use this branch as updater and be able to have multiple requests
Moved to #2885 |
Why
The idea behind this, is for some fields with large relations to many, text chips are insufficient and hard to consume. That field display can grow out of control and doesn't provide detail if needed.
How
This would display a customizable table, with special support for links and booleans. For a more in depth explanation of the customization see
packages/fields/src/types/RelationshipList/README.md
What it looks like
Before merge