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

Icons to discern automate method types #2700

Merged
merged 1 commit into from Nov 14, 2017

Conversation

mkanoor
Copy link
Contributor

@mkanoor mkanoor commented Nov 10, 2017

There are different automate method types like

  • Inline (Ruby)
  • Playbook (Ansible)
  • Expression (MiqExpression/Search)
  • Builtin (Macros)

In the Automate Explorer we can't discern the method type if they all have the same icons, this PR adds different icons for different method types.

Before, my_method is an Ansible method but the icon doesn't give you a hint.

screen shot 2017-11-10 at 11 10 00 am

After the my_method has ansible logo to indicate that its a Ansible Playbook method, we dont have to open the method to figure out its type.

screen shot 2017-11-13 at 12 10 50 pm

@mkanoor
Copy link
Contributor Author

mkanoor commented Nov 10, 2017

@skateman @epwinchell
Please review
For Ansible playbook I have use the font icon A.
For the ruby method we might have to color the diamond red.

when "playbook"
'fa fa-font'
when "inline"
'fa fa-diamond'
Copy link
Contributor Author

Choose a reason for hiding this comment

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

@epwinchell This diamond is for ruby method so we might need it to be colored red.

Copy link
Member

Choose a reason for hiding this comment

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

@epwinchell let's create a new icon class called fa-diamond-red, what do you think?

@skateman
Copy link
Member

@mkanoor are you sure about the fonticon-only approach? I'd like the ansible logo svg and a ruby gem logo more. But maybe @epwinchell will say differently...

@epwinchell
Copy link
Contributor

@mkanoor Looks good

There are different automate method types like
* Inline (ruby)
* Playbook (Ansible)
* Expression (MiqExpression/Search)
* Builtin (Macros)

In the UI we can't discren the method type if they all have the same
icons, this PR adds different icons for different method types
@mkanoor
Copy link
Contributor Author

mkanoor commented Nov 13, 2017

@skateman @epwinchell
Please review, all tests pass.

@miq-bot
Copy link
Member

miq-bot commented Nov 13, 2017

Checked commit mkanoor@dbd6aed with ruby 2.3.3, rubocop 0.47.1, haml-lint 0.20.0, and yamllint 1.10.0
3 files checked, 0 offenses detected
Everything looks fine. 🍰

Copy link
Member

@skateman skateman left a comment

Choose a reason for hiding this comment

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

The Seal of Approval

@h-kataria h-kataria self-assigned this Nov 14, 2017
@h-kataria h-kataria added this to the Sprint 74 Ending Nov 27, 2017 milestone Nov 14, 2017
@h-kataria h-kataria merged commit fdb8f57 into ManageIQ:master Nov 14, 2017
simaishi pushed a commit that referenced this pull request Nov 15, 2017
Icons to discern automate method types
(cherry picked from commit fdb8f57)
@simaishi
Copy link
Contributor

Gaprindashvili backport details:

$ git log -1
commit 464b0865fb6d3ff494592fd024eea485d52c2935
Author: Harpreet Kataria <hkataria@redhat.com>
Date:   Tue Nov 14 17:31:11 2017 -0500

    Merge pull request #2700 from mkanoor/add_icons_for_methods
    
    Icons to discern automate method types
    (cherry picked from commit fdb8f578189e3f96664bc905e107d5ec2f39c417)

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.

None yet

6 participants