foreman
foreman copied to clipboard
Fixes #35287 - Create column selector on host index page
User should be able to specify what columns wants to see on host index page. This approach using PF4 Selector hopefully can be applied for other index pages in the future.
Depends on #9319
Issues: #35287
Also, there is a conflict now :/
When I try to save my selection, nothing happens and I get this in the browser console. What am I doing wrong?

Adding some screenshots:

@MariSvirik any thoughts on this?
@pkoprda I would just copy what we have in PF4. Can I see somewhere this implementation and click through it?
Table
- First of all, I would go with "Manage filters" copy instead of "Filter columns".
- The button should be closer to the end of the search bar: 16 px spacing between those two
- The button should be either a link button (without a box around it) as in the PF4 example or a secondary button.
Modal
- add a description: e.g. "Select columns to display in the table." Otherwise, I'm not sure what is happening there.
- The position of the modal should be fixed even when the rows collapse. Otherwise, it's super annoying.
- Based on your example I can clear out the entire table. We should have some default columns that you can't hide e.g. Name.
@ofedoren please don't squash commits unless that's really what you want. We generally use the rebase option to merge.