-
Notifications
You must be signed in to change notification settings - Fork 4.9k
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
For ID based dashboard filters, provide a search widget for the target record's name #2739
Comments
I believe @mazameli 's design has the UI elements spec'd already. |
I couldn't find where or if I did this somewhere in Sketch previously, but this is what I was thinking. Sameer, WDYT about displaying the ID subtly on the right in the dropdown list and in the selected state? I'm thinking you could of course also search by the ID in case you happen to know it, too (e.g. if I work in Support and I'm using a category filter to look up a specific Customer ID from a support ticket), in which case the ID part of the dropdown would be bold instead. |
Makes sense from a UX perspective. From an implementation standpoint I imagine the performance will depend a lot on the database, number of rows, whether an index is present on the name column, whether we want to only support |
Killer feature, can't wait to see it live! |
I'd say we should start with |
A couple things to think through:
|
What conditions need to be met for this functionality be enabled for a particular ID widget? What if a widget is wired to two different PKs? Can an admin disable this functionality? Is it actual typeahead or triggered by hitting enter? Would there still be a way to enter a raw id? This same widget could be used in the query builder for filters on PK/FKs. Should we do that? An addendum, I think we should try to be smart here and cache the valid values if possible. |
So what is the actual state of this? Can we use entity names somehow instead of IDs in those filters? I think that forcing the uses to paste IDs everytime is a pretty awkward approach... |
@vkovalskiy if I'm not completely mistaken it looks like it's being actively worked on in PR #4241 linked to just a few lines above your comment - so still WIP ... |
Yep, #4241 is coming along nicely and will be part of version 0.29 if everything goes according to plan. |
When a dashboard creator wires up a foreign key ID as the dimension to be filtered on, we current ask people to input the actual ID.
This is often not widely known and it would be much more useful to search for
Acme Co
instead of entering the company ID.⬇️ Please click the 👍 reaction instead of leaving a
+1
or 👍 commentThe text was updated successfully, but these errors were encountered: