-
Notifications
You must be signed in to change notification settings - Fork 993
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
Fixes #35287 - Create column selector on host index page #9323
Conversation
Issues: #35287 |
358405e
to
6ef0743
Compare
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.
Unless I'm missing something, the filter button does nothing.
Maybe it is just my browser, but the elements on the page look a bit out of place. Do we have a ui mockup for this?
webpack/assets/javascripts/react_app/components/ColumnSelector/ColumnSelector.js
Outdated
Show resolved
Hide resolved
webpack/assets/javascripts/react_app/components/ColumnSelector/ColumnSelector.js
Outdated
Show resolved
Hide resolved
f6b3f69
to
ec295ea
Compare
bb2e19f
to
7fd3cb0
Compare
Also, there is a conflict now :/ |
7fd3cb0
to
c38508c
Compare
8d4e5ea
to
1f0d4d3
Compare
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, @pkoprda, few suggestions inline for now, more to come :)
webpack/assets/javascripts/react_app/components/ColumnSelector/ColumnSelector.js
Outdated
Show resolved
Hide resolved
webpack/assets/javascripts/react_app/components/ColumnSelector/ColumnSelector.js
Outdated
Show resolved
Hide resolved
|
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.
There are still some problems:
1 - If there is another profile then checkboxes of other columns are selected even though they are not default ones.
2 - For some reason when I don't change selections via selector and reload the page, other columns appear (even though they are not default, see the gif)
webpack/assets/javascripts/react_app/components/ColumnSelector/column-selector.scss
Outdated
Show resolved
Hide resolved
@pkoprda I would just copy what we have in PF4. Can I see somewhere this implementation and click through it? Table
Modal
|
9785b1e
to
708b061
Compare
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 still encounter few issues:
- codewise: names of the variables are not so consistent, slows the reading/reviewing. I've added few suggestions, but there is still room for improvements.
- workwise: I guess after one hits
Save
the API call is asynchronous and it migth be the cause of the issue with old columns being selected after the page reloaded.
I'm going to continue with review tomorrow, I'm sending this just to save the notes :)
webpack/assets/javascripts/react_app/components/ColumnSelector/ColumnSelector.js
Outdated
Show resolved
Hide resolved
webpack/assets/javascripts/react_app/components/ColumnSelector/ColumnSelector.js
Outdated
Show resolved
Hide resolved
webpack/assets/javascripts/react_app/components/ColumnSelector/ColumnSelector.js
Outdated
Show resolved
Hide resolved
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, @pkoprda, there are few moments to fix, but otherwise it's almost done. Also, I like the new style more than previous button, so 🍪 for improving this as well :)
webpack/assets/javascripts/react_app/components/ColumnSelector/ColumnSelector.js
Outdated
Show resolved
Hide resolved
webpack/assets/javascripts/react_app/components/ColumnSelector/ColumnSelector.js
Outdated
Show resolved
Hide resolved
webpack/assets/javascripts/react_app/components/ColumnSelector/ColumnSelector.js
Outdated
Show resolved
Hide resolved
webpack/assets/javascripts/react_app/components/ColumnSelector/ColumnSelector.js
Outdated
Show resolved
Hide resolved
7d42de4
to
cd0972d
Compare
31e31cc
to
364c27c
Compare
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, @pkoprda, I think now it's ready. I've added a final fix, nothing much. Let's finally get this in. Thanks for bearing with me this whole time!
@ofedoren please don't squash commits unless that's really what you want. We generally use the rebase option to merge. |
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 #9351