-
-
Notifications
You must be signed in to change notification settings - Fork 338
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
Change order of filters in the filters section #4095
base: develop
Are you sure you want to change the base?
Change order of filters in the filters section #4095
Conversation
Hey @seancolsen I have changed the ui to be truncated as I mentioned in the issue conversation. But I have to yet figure out the filtering operations. |
@sharath-1517 Can you clarify this please?
Is this PR ready for review? Or do you still have more work to do on it? I'm no sure what you mean by "filtering operations", given that the issue is clear about not changing any of the logic used to filter records. |
Yes absolutely @seancolsen the PR is ready to review. I mentioned "But I have to yet figure out the filtering operations" because I thought that I should work on the filtering operations as well after seeing these points below, Seems like that's not how it was and I have misunderstood the task. You can go on with the review for this PR. Thanks for your response and sorry for the inconvenience. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks @sharath-1517
Your application of <Truncate>
looks good.
Unfortunately there are still two problems here...
Labels need to be type-aware
When filtering a non-text column via "equals", the label for the comparison should read "equals" not "equals (case sensitive)". I would imagine this to be relatively straightforward to fix, though I don't know the exact steps. I'd like you to take a stab at addressing this issue.
User confusion will still arise
Hmmmm... This is where this change gets a little trickier than I initially thought. This PR kind of helps, but it doesn't fully address the original intent of the issue. The problem here was that users expected filtering to be done in a case insensitive manner but the "happy path" to applying a filter results in the filter being performed in a case-sensitive manner.
Here's why this PR doesn't fully solve the problem:
-
Say I click "Filter" to open the filtering drop down.
-
Then I click "Add New Filter".
At this point, a filter condition will be added, with the first column chosen by default (say
id
). In most cases that first column will be a numeric column, so it won't have a "contains" comparison. So "equals" will be chosen as the comparison by default. -
Now, if I change
id
to some other text-like column, sayname
, then I'm right back to this same problem — we have case-sensitive filtering when we ought to have case-insensitive filtering.
What does work about this PR is that if I begin from the column header, open the context menu, and choose "Filter Column", then I get "contains" by default. That's great!
So here's what I think we should do...
When you open the "Group" dropdown, do you see how the "Add New Grouping" button opens a dropdown to select a column? I think we should implement that same UX for Filter. Let's also do it for Sort too, just to make them all consistent. This way, when you add a new filter condition, you'll begin with a specific column, not just the first column. I think this is actually an improvement anyway, because the user is unlikely to want to filter or sort by id
.
Do you think you could try to figure out how to do that?
Fixes #4094
Technical details
Screenshots
Checklist
Update index.md
).develop
branch of the repositoryvisible errors.
Developer Certificate of Origin
Developer Certificate of Origin