-
Notifications
You must be signed in to change notification settings - Fork 14
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
fixed show/hide all #5475
base: develop
Are you sure you want to change the base?
fixed show/hide all #5475
Conversation
@roxy-dao I need a review on 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.
Hi, thanks for this, it's working as you intended.
However, I think the problem here is that it doesn't make sense to be able to turn off all columns.
Also, there is some additional confusion caused by the incorrect labelling of this originally -- it said "Select / unselect all columns", but what it actually did was toggle the column that should be labelled "Select / unselect all rows", which is what this column is used for in the actual tables.
I think the correct behaviour should be as follows:
- The column label should be "Select / unselect all rows" (this only appears as a hover tool-tip on the table header, so makes sense in context)
- In the column selection drop-down, this column (probably) should not be visible (i.e it's always on and we don't refer to it at all)
- If (and only if) there is any columns hidden, then in the selection drop-down, there should be a button/link to "Restore all columns" which resets all columns to visible. Not sure about the UI design here, but it needs to be fairly unobtrusive and not clutter the UI (perhaps we need a mockup from @mariyamsupply before we go any further?)
- There should be no option to hide all columns, it's purely a "restore" functionality.
Maybe wait till we get some design consensus on this before progressing further?
Thanks @CarlosNZ I think you've summarised the requirements nicely. Agree with the first two changes - and I think there's a valid case for having a show/hide all option. happy to go with that or the 'restore' option. That could just be a standard link style, but yeah, will leave that for @mariyamsupply |
Now that I understand that 'select/unselect' is the name for the checkbox, not the action, I think it's actually shouldn't be on the list.
|
Fixes #5396
π©π»βπ» What does this PR do?
This adds the show or hide all logic to the data table custom column picker, reported in the detailed view of any outbound shipment. Previously, the hide/show all checkbox existed but the logic was unavailable.
π Any notes for the reviewer?
π§ͺ Testing
π Documentation
1.
2.