Open robbieaverill opened 5 years ago
@clarkepaul
Just so happens I was discussing this an hour ago, we are lumping this together with some proposed design tidy-ups to the GridField header. When the designs are complete we can likely combine the effort to resolve all three issue under the same set of work. The design output will be here https://invis.io/YGGYS6HDMRK#/291645813_Gridfield , and we are still working on the "Link existing" UI. Related https://github.com/silverstripe/silverstripe-framework/issues/8498 Related https://github.com/silverstripe/silverstripe-framework/issues/8254
Not sure if this is strictly related to this issue, but we have just noticed a bug with GridFieldAddExistingAutocompleter
that is at least related to this issue.
When you have selected an object from the search field, the Add Button retains it's readonly
state (cursor: not-allowed
style is still applied), so the action looks like you cannot click it (even though you can).
Looks like to fix the following line needs to be changed to $addAction->setDisabled(true)
;
Our biggest problem with this component is that the user doesn't know what are the existing items, until trying a letter to get a list. If it was being reworked, it'd be nice if that could be considered as well.
@michalkleiner I would agree to this, maybe the autocomplete should display a list of possible results on focus?
The GridFieldAddExistingAutocompleter looks like this as at 4.3.0:
This design is jQuery UI powered, doesn't conform to more modern SilverStripe design patterns as well as having some minor UX issues such as cutting off the placeholder text in this example (Group > Members GridField out of the box).
We could spruce the design of this up a little bit, and/or convert it to a React component. If it becomes a React component it would be important to ensure that it considers the future state of React GridField (silverstripe/silverstripe-admin#556 silverstripe/silverstripe-admin#537 silverstripe/silverstripe-admin#463) in whatever way it can so it can still be useful in the next generation GridField.
We'd need some designs for this first though.
Related issues: