Skip to content
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 buttons to VM details page #750

Merged
merged 2 commits into from
May 12, 2017
Merged

Added custom buttons to VM details page #750

merged 2 commits into from
May 12, 2017

Conversation

chalettu
Copy link
Contributor

@chalettu chalettu commented May 9, 2017

@chalettu
Copy link
Contributor Author

chalettu commented May 9, 2017

@miq-bot add_label fine/no
@miq-bot add_label my services / details
@miq-bot add_label enhancement

@chalettu
Copy link
Contributor Author

chalettu commented May 9, 2017

custom_buttons

Screen shot of an example of custom buttons on VM Details page

@miq-bot
Copy link
Member

miq-bot commented May 9, 2017

Checked commits https://github.com/chalettu/manageiq-ui-service/compare/f2569a62ae850128a352bc41f07daaec61a1cec1~...f2c6f137c530b15b2acee92ce95906b64e4e8fed with ruby 2.2.6, rubocop 0.47.1, and haml-lint 0.20.0
0 files checked, 0 offenses detected
Everything looks fine. 🍪

@chriskacerguis
Copy link
Contributor

@ManageIQ/core-ux for your review.

@serenamarie125
Copy link

@chalettu the mock is showing custom button and button groups without icons, which looks great! Does the code support displaying an icon if there is one as well?

@chriskacerguis do we have a separate issue or PV for adding custom buttons for VMs on the service details page?

@chriskacerguis
Copy link
Contributor

chriskacerguis commented May 10, 2017

@serenamarie125 yes, there is a separate PT for that (and the custom icons)

Custom images: https://www.pivotaltracker.com/story/show/143798905

Service details: https://www.pivotaltracker.com/story/show/142773333

[edit]: added links

@@ -46,6 +46,8 @@ export function VmsService(CollectionsApi, RBAC) {
'compliances',
'cpu_affinity',
'created_on',
'custom_actions',
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I belieeeeeeve adding these new attributes will break mock api get requests... probably should update that 😬

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah, they will. I have an update for mock api that I will submit that should fix these

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

Copy link
Member

@AllenBW AllenBW left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

@Loicavenel
Copy link

@serenamarie125 can you approve it quickly, thanks

@chriskacerguis chriskacerguis added this to the Sprint 61 Ending May 22, 2017 milestone May 12, 2017
@chriskacerguis chriskacerguis merged commit 4918c1a into ManageIQ:master May 12, 2017
simaishi pushed a commit that referenced this pull request May 12, 2017
@simaishi
Copy link
Contributor

Fine backport details:

$ git log -1
commit 223c3c1425aa5c4945005764fa4349cba08742fc
Author: Chris Kacerguis <[email protected]>
Date:   Fri May 12 13:56:11 2017 -0500

    Merge pull request #750 from chalettu/vm-custom-buttons
    
    Added custom buttons to VM details page
    (cherry picked from commit 4918c1ac4444398983b63540adebb9c03bc94ad9)
    
    https://bugzilla.redhat.com/show_bug.cgi?id=1450502

@simaishi
Copy link
Contributor

@chalettu @chriskacerguis please take a look at Travis failure for fine branch: https://travis-ci.org/ManageIQ/manageiq-ui-service/jobs/231694009.

ERROR in ./client/app/services/vm-details/vm-details.component.js
/home/travis/build/ManageIQ/manageiq-ui-service/client/app/services/vm-details/vm-details.component.js
  102:12  error  'lodash' is not defined  no-undef

@chalettu
Copy link
Contributor Author

Not sure what do on this one @chriskacerguis. I double checked the code and we are defining lodash. This seems like something going wrong with Travis.

@chriskacerguis
Copy link
Contributor

I restarted the job...let's see what we see

@simaishi
Copy link
Contributor

simaishi commented May 15, 2017

yarn command failed trying to compile SUI, so I don't think it's Travis... master branch has more change in that file which doesn't exist in fine. Does this PR depend on something that's not in Fine branch?

@chriskacerguis
Copy link
Contributor

No. Basically, it's saying it can't find lodash but, it is installed, and injected...so not sure the issue.

@chalettu
Copy link
Contributor Author

Figured it out. Its missing one small thing in that file that probably due to some other changes for vm details not being in fine. @simaishi how do you want me to go about fixing it?

@simaishi
Copy link
Contributor

Can you please create a Fine PR, referencing this?

@simaishi
Copy link
Contributor

Depends on: ManageIQ/manageiq#14817

@chalettu chalettu deleted the vm-custom-buttons branch January 10, 2018 19:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

7 participants