Skip to content
This repository has been archived by the owner on Feb 27, 2024. It is now read-only.

Better UI control than CheckboxSetField for selecting items #2

Open
sminnee opened this issue Sep 26, 2017 · 1 comment
Open

Better UI control than CheckboxSetField for selecting items #2

sminnee opened this issue Sep 26, 2017 · 1 comment

Comments

@sminnee
Copy link
Owner

sminnee commented Sep 26, 2017

Right members / projects / etc are selected with a CheckboxSetField. This doesn't scale well and is a pain point of actually using the UI.

A better UI control, e.g. a list with an autocomplete-based picker, would be better. It's possible that GridField can be used to build this, but would need testing.

@Cheddam
Copy link

Cheddam commented Oct 23, 2017

There are a couple of existing fields that might improve the situation a bit, but aren't super well suited and would require hackery to get them storing data in the right way:

  • A GridField with the GridFieldConfig_RelationEditor component attached
  • A TagField (this could end up just as unwieldy as the current CheckboxSetField)

Alternatively, we could produce a new field that better suits this purpose. Here's what I've come up with:

image

The default 'All' filter would show every option, sorted by Enabled first. The ellipsis (or something similar) would expand to display the full list, which could default to ~10 items. Useful for quickly toggling particular items in a small list off, but should still be plenty usable with large datasets by way of the search input.

Happy to PoC it (likely in Vue initially, as I have more experience with that than React). Let me know if you have any thoughts on the mock, and if you think it's worth investing some time to build 👍

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants