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

Add support for fonticons in TreeBuilder root nodes #100

Merged
merged 2 commits into from
Jan 10, 2017

Conversation

skateman
Copy link
Member

@skateman skateman commented Jan 9, 2017

Because we're supporting images and icons at the same time, it was necessary to modify all the root_options methods to return with a Hash instead of an Array. This way it will be possible to specify an :icon or an :image the same way as for TreeNode::Hash. Also the fallback folder image has been changed to a folder fonticon.

@skateman skateman force-pushed the tree-root-options branch 6 times, most recently from 17616f1 to 492c933 Compare January 9, 2017 16:13
@miq-bot
Copy link
Member

miq-bot commented Jan 9, 2017

This pull request is not mergeable. Please rebase and repush.

@miq-bot
Copy link
Member

miq-bot commented Jan 9, 2017

@skateman Cannot apply the following label because they are not recognized: technical_debt

@skateman
Copy link
Member Author

skateman commented Jan 9, 2017

@miq-bot add_label technical debt

@himdel
Copy link
Contributor

himdel commented Jan 9, 2017

Sorry @skateman , at least one more tree to go .. #22 ;) ( app/presenters/tree_builder_miq_action_category.rb )

@skateman
Copy link
Member Author

skateman commented Jan 9, 2017

@himdel I love free 🍻 😉

@miq-bot
Copy link
Member

miq-bot commented Jan 9, 2017

Checked commits skateman/manageiq-ui-classic@7e02ea5~...d7a3ba5 with ruby 2.2.5, rubocop 0.37.2, and haml-lint 0.16.1
93 files checked, 2 offenses detected

spec/presenters/tree_builder_policy_simulation_results_spec.rb

spec/presenters/tree_builder_spec.rb

  • ❗ - Line 50, Col 17 - Style/AlignHash - Align the elements of a hash literal if they span more than one line.

@skateman skateman closed this Jan 10, 2017
@skateman skateman reopened this Jan 10, 2017
@himdel himdel self-assigned this Jan 10, 2017
{
:title => @root.name,
:tooltip => _("Host: %{name}") % {:name => @root.name},
:image => '100/host.png',
Copy link
Contributor

Choose a reason for hiding this comment

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

@epwinchell there's a few more pngs in the TreeBuilders to convert...

Copy link
Member Author

Choose a reason for hiding this comment

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

@himdel we know :) but no one likes monstercommits

@himdel himdel merged commit b6d95b0 into ManageIQ:master Jan 10, 2017
@himdel himdel added this to the Sprint 52 Ending Jan 16, 2017 milestone Jan 10, 2017
@himdel
Copy link
Contributor

himdel commented Jan 10, 2017

LGTM, tested in the UI :)

@skateman skateman deleted the tree-root-options branch January 10, 2017 14:46
@himdel himdel mentioned this pull request Jan 10, 2017
3 tasks
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.

3 participants