-
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
Implement Generic Objects on services details page #996
Conversation
Here is a sample screenshot of the implementation of Generic Objects, @chriskacerguis . Keep in mind this does not currently show the custom actions drop down yet. |
@chalettu can you please attach the issue to this PR? |
@chalettu looking good. I know this is WIP, but since it has the ux/review tag i assume you want me to provide feedback on what you have
|
@bascar do you have some example of Key/Value = Generic Object Properties we may have.. Today we have 3 on one line and Serena is suggesting may be 4.. Do you know what is the limit engineering put in the DB for a a key and a Value.. 255? |
@chalettu @Loicavenel @bascar regarding my #3 comment, I didn't mean we should show 4 pairs on a row, having 3 on a row is sufficient. I'm suggesting that we have dummy data for 4 key/value pairs that are used and added as a mockup to understand what it looks like. It would be great to have some real examples from Brad so that Chris can show them here though! |
There is no limit to the pairs as it is all a JSON payload made to look like attributes. |
Currently awaiting ManageIQ/manageiq-api#57 that will allow subcollections on Generic Objects |
@chalettu this needs to get bumped in test coverage :) |
@bascar @Loicavenel FYI - This is blocked until ManageIQ/manageiq-api#57 is merged |
I asked nicely for a merge, thanks @chriskacerguis |
@chalettu could we add some tests for this? |
@chriskacerguis we are also dependent on ManageIQ/manageiq-api#93 for implementing custom actions on Generic Objects |
Is there any way we can see what this will look like with more pairs? Brad provided some. It would be nice to see what it'll look like. I'm concerned about alignment, and would rather see that now if possible than later. |
|
We are going to add generic object icon support after ManageIQ/manageiq-api#114 gets merged in. This will allow us to show custom pictures |
@serenamarie125 here is a updated screenshot that includes Generic object picture support and also for multiple generic object attributes. Please let me know if you approve of the UI. |
@miq-bot remove_label wip |
@serenamarie125 I spoke to @chalettu this is good for your review :) /cc @bascar @Loicavenel |
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.
LGTM @chalettu nice work! Once this is merged, I may take another pass at a high fidelity review, but this looks great as far as functionality is concerned
@miq-bot add_labels ux/approved |
@miq-bot remove_labels ux/review |
Checked commits https://github.com/chalettu/manageiq-ui-service/compare/b6547b599492e33b52b2aa18c28d8dabb951a864~...eff6bb53659fe29fa7b750cd2d64063bf65bd9c1 with ruby 2.3.3, rubocop 0.47.1, and haml-lint 0.20.0 |
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.
Only the one thing jumps out, overall loooooks 🌮 💃 !!!
ng-click="$ctrl.customScope.toggleExpand(item)"> | ||
<i class="fa fa-angle-right" | ||
ng-class="{'fa-angle-down': item.isExpanded}"></i> | ||
<img src="{{item.picture.image_href}}" class="generic-object-icon" ng-if="item.picture"> |
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.
prefer use of ng-src
here, while this probably will work most of the time, this should be done for the one time the browser will still try to load the {{path}} string it finds in <img src="{{path}}">
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.
🌮 💃
BZ: https://bugzilla.redhat.com/show_bug.cgi?id=1497705