-
Notifications
You must be signed in to change notification settings - Fork 91
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
Added custom button menu to Resource Details page #1254
Conversation
@AllenBW I am confused here. the design if I am not mistaking is to have the kebab menu when there are too many Custom button on the top bar not all the time... |
@serenamarie125 need your comment here.. |
@Loicavenel , no need to ask @AllenBW , I was the one working on this issue. This kebab menu will not show all the time, we put a limit of 3 custom buttons or button groups to show on the screen before we show the kebab menu instead. This limit can be programmatically adjusted we just wanted to start with an implementation that would prevent button overflow on the screen. |
@chalettu my apologise.. |
No worries @Loicavenel . Screenshots and small videos can sometimes make it hard to convey other logic behind what is intended. |
@chalettu could you please address the CC issues? @Loicavenel I think what @chalettu is showing is that it is limiting the buttons now (it's not all the time)...at least that is not what the desired behavior is. @chalettu could you clarify? |
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.
@chalettu spacing between buttons is an issue. I think I have another Issue about this, but can't find it now.
Questions:
- what is "SS" ??? The custom button group should be shown on the toolbar in this case, I'm a bit confused
- why is there a tooltip on each of the menu items?
@serenamarie125 , I agree that button spacing is an issue. Chris K had created another issue to address it for clarity sake and being consistent. |
LOL - i'm being too literal sorry @chalettu now i get the "SS" tooltips are fine, @Loicavenel just showed me that you can set hover text, so that makes sense. I do see an issue that the drop down menu has a caret at the top ... it should be straight, similar to the user menu shown below |
@serenamarie125 , Here is a SS with the caret removed. Please let me know if we think any more changes might be required. |
@chalettu this is really more complex :\ Kebab uses caret (http://www.patternfly.org/pattern-library/widgets/#kebabs)
The regular menus ( snapshots & power operations) shouldn't |
@chalettu Any update on centering of the kebab dropdown ? |
@AllenBW , haven't come back to this one. I will try and take a look at centering the kebab. |
@chalettu I suspect this might be a less is more kinda situation... rip out classes see what changes... 🤔 |
Also updated how buttons and button groups are collectively calculated
@serenamarie125 , can you take a look at this latest screenshot and see if it matches your expectations of this caret menu? |
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.
perfect @chalettu thank you!
@miq-bot add_labels ux/approved |
@miq-bot remove_labels ux/review |
@miq-bot add_label ux/approved |
@miq-bot remove_label ux/review |
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.
@chalettu ok just the one thing, ONE THING then this is g2g 🙇 ❤️
} | ||
} | ||
|
||
function postFailure () { |
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's gonna be real valuable server feedback on the error here, something similar to this should be used here
Checked commits https://github.com/chalettu/manageiq-ui-service/compare/7f09ef9d7c5909f5ec50565db7c14b84b57362a9~...24ad37e28fdda13f3dc3b30efb81ad1336742441 with ruby 2.3.3, rubocop 0.47.1, haml-lint 0.20.0, and yamllint 1.10.0 |
@AllenBW , I updated based on feedback. Let me know if you approve. |
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.
Looks delicious 😋 thanks for updating!!
Added custom button menu to Resource Details page (cherry picked from commit 672d128) https://bugzilla.redhat.com/show_bug.cgi?id=1524718
Gaprindashvili backport details:
|
@miq-bot add_label gaprindashvili/yes
@miq-bot add_label enhancement
BZ - https://bugzilla.redhat.com/show_bug.cgi?id=1513113