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
Table: Add select/unselect all column values to table filter #79290
Table: Add select/unselect all column values to table filter #79290
Conversation
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 for the contribution! I'm just reviewing the documentation updates, so there will still need to be a technical review. I've made a couple grammar edits but mostly tried to simplify some of the language. I think we probably also need to think about changing the names of the buttons, but I'd need to see the implementation first (hopefully when all the checks pass, the system will provide a preview).
docs/sources/panels-visualizations/visualizations/table/index.md
Outdated
Show resolved
Hide resolved
docs/sources/panels-visualizations/visualizations/table/index.md
Outdated
Show resolved
Hide resolved
docs/sources/panels-visualizations/visualizations/table/index.md
Outdated
Show resolved
Hide resolved
docs/sources/panels-visualizations/visualizations/table/index.md
Outdated
Show resolved
Hide resolved
thank you very much @imatwawana for you review and help. |
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.
Hey, thank you for your contribution!
This is useful and the code looks good at first glance (I'll look closer soon). But I think we could improve the UI and the wording on these buttons. @catherineymgui, is this something to bring to one of the UX feedback sessions?
Yes, please bring it to a UX feedback session! |
Hi there, please, may I propose a new feature in this PR? I have added a new ListBox to alllow users to select what items are displayed using comparison expressions, not only using regex patterns. It is useful when you need to filter values like numbers. This new commit shows a list box (In order to do not alter the behavior in other panels, there is in the component a new I still need to fix an issue with the What do you think? It can be useful to include? If you disagree, I revert this change. UPDATE: |
@ahuarte47 I'm merely a humble user, but I've been looking for this kind of feature for ages. It seems clearly outside the scope of this issue, but while we're at it:
This can be extended further and further (why not auto-bucket numeric values? arbitrary regular expressions?), but what you propose would already be hugely beneficial. |
dcb11b9
to
2061652
Compare
Hi @tjanson this extra filter could be implemented in new operator "expression" in this list, but I am not an expert grafana & react developer, any help would be great! I hope I haven't already made a mess in the code. |
1b65af9
to
fecd54a
Compare
OK, great! I remove that extra temporal commit. |
fecd54a
to
26f30b5
Compare
Hi, seems to be a similiar functionality as in #79072. If this one is accepted I think the other one could be omitted. |
26f30b5
to
e4fe747
Compare
@ahuarte47 Thank you, I will get back to this soon! |
@ahuarte47 - After @oscarkilhed has completed his review and any changes are implemented, please request review from me again, so I can take another look at the docs with the updated UI. Just FYI, I'll be away until January 2nd after today, so it might be in a couple weeks. In the meantime I've added a label to keep the PR from going stale. |
d5a22a5
to
a0974c6
Compare
I have created a new feature-request issue: #79800 I will try to propose a PR soon. |
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.
I think this is close to mergable.
I've created a pull request (ahuarte47#1) to your branch to align the select all checkbox with the rest of the checkboxes.
I also removed the "Click to" bit in the checkbox label as I found it superfluous.
Align select all checkbox and fix wording
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.
This looks good. When @imatwawana has gone over the docs we can merge this.
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.
One quibble about where the box is located. If I'm wrong, please update my suggestion accordingly and commit to add the text formatting for the buttons.
docs/sources/panels-visualizations/visualizations/table/index.md
Outdated
Show resolved
Hide resolved
Co-authored-by: Isabel <76437239+imatwawana@users.noreply.github.com>
Thank you very much @imatwawana @oscarkilhed for your help! |
Thanks @oscarkilhed @imatwawana for Your help! |
Thanks for the contribution, @ahuarte47! I was literally wishing for the features you've added just a couple weeks ago! |
* Add/Remove columns values to the filter using a UX similar to the github inbox * Align select all checkbox and fix wording * Update docs/sources/panels-visualizations/visualizations/table/index.md Co-authored-by: Isabel <76437239+imatwawana@users.noreply.github.com> --------- Co-authored-by: Oscar Kilhed <oscar.kilhed@grafana.com> Co-authored-by: Isabel <76437239+imatwawana@users.noreply.github.com>
What is this feature?
This MR adds two buttons to easily select or unselect subset of columns values in Table panels:
To select the subset of column values currently displayed.
To unselect the subset of column values currently displayed.
Why do we need this feature?
When using big tables there is often a need to filter by values to select many entries. Then you use the filter you can find e.g. 100 of values and there is no possibility to select them all with one click, you need to check them one by one, that is not feasible with such a large number of entries.
Who is this feature for?
Users filtetring large list of values in tables.
Which issue(s) does this PR fix?:
Fixes #79371
Special notes for your reviewer:
Please check that: