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

Display providers' suspended status in their quadicon #4022

Merged
merged 5 commits into from Jun 7, 2018

Conversation

skateman
Copy link
Member

@skateman skateman commented Jun 1, 2018

After consulting with UX we decided to use the bottom-right quadrant of each provider quadicon to display the suspended status. For now this quadrant is being used to display the authentication status, however, when suspended this information is meaningless so we can safely reuse the same quadrant.

There's some inconsistency in container provider quads that would cause redundant displaying the same information in multiple quadrans, but that's being addressed in a separate PR.

First I had to generalize the QuadiconHelper.status_img method to return a hash instead of a string. This way it is possible to handle both fonticons and fileicons simultaneously. Then I added the condition for displaying the suspended icon (without a background color as @epwinchell suggested) and finally set the tooltips.

Before:
screenshot from 2018-06-06 18-05-03

After:
screenshot from 2018-06-06 18-04-43

Related issue: ManageIQ/manageiq#17489
Depends on: ManageIQ/manageiq#17452

@miq-bot add_label pending core, gaprindashvili/no, GTLs
@miq-bot add_reviewer @romanblanco
@miq-bot add_reviewer @epwinchell

@miq-bot
Copy link
Member

miq-bot commented Jun 1, 2018

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

when "valid"
{:fileicon => '100/checkmark.png'}
when "None"
{:fileicon => '100/unknown.png'}
Copy link
Contributor

Choose a reason for hiding this comment

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

@skateman Let's update this to pficon-unknown in a follow-up PR

@skateman skateman force-pushed the provider-suspended-quadicon branch 2 times, most recently from 5730840 to 7f16269 Compare June 1, 2018 14:28
@skateman skateman changed the title [WIP] Display providers' suspended status in their quadicon Display providers' suspended status in their quadicon Jun 1, 2018
@miq-bot miq-bot removed the wip label Jun 1, 2018
@skateman skateman force-pushed the provider-suspended-quadicon branch from 7f16269 to 1d1750b Compare June 1, 2018 14:47
@epwinchell
Copy link
Contributor

@skateman I approve.

@skateman skateman force-pushed the provider-suspended-quadicon branch from 1d1750b to 576fd16 Compare June 4, 2018 20:28
unless enabled
return {
:fonticon => 'pficon pficon-asleep',
:tooltip => _('This provider is paused, no data is currently collected from it')
Copy link
Member

Choose a reason for hiding this comment

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

Based on what is described in the issue @slemrmartin created, I feel like the tooltip message is incorrect:

What does it mean - suspend provider? What features should be disabled?

  • Ems Refresh
  • SmartState analysis of: Vm, Template, Host, ..(?)
  • Metrics Collection (C&U)

It's not the whole provider that is suspended, but the data collection.
Correct me if I'm wrong, @slemrmartin.

Copy link
Contributor

Choose a reason for hiding this comment

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

Yes, you're right, but the second part of tooltip describes what it means, maybe there can be replaced ',' for '-' or '->' for make it more obvious.
Important is, unify the words "paused" / "suspended" according to button names in toolbars

Copy link
Member

Choose a reason for hiding this comment

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

@slemrmartin @skateman I'd suggest something like "Data collection for this provider is paused".

/cc @epwinchell

Copy link
Contributor

@epwinchell epwinchell Jun 6, 2018

Choose a reason for hiding this comment

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

@romanblanco "Data collection for this provider is suspended" sounds good.

@miq-bot
Copy link
Member

miq-bot commented Jun 5, 2018

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

@skateman skateman force-pushed the provider-suspended-quadicon branch from 09fcd60 to 6e45fed Compare June 6, 2018 09:58
@skateman skateman force-pushed the provider-suspended-quadicon branch from 6e45fed to b0202ec Compare June 6, 2018 09:58
@miq-bot
Copy link
Member

miq-bot commented Jun 6, 2018

Checked commits skateman/manageiq-ui-classic@3cd7dee~...b0202ec with ruby 2.3.3, rubocop 0.52.1, haml-lint 0.20.0, and yamllint 1.10.0
8 files checked, 0 offenses detected
Everything looks fine. 🍰

@skateman
Copy link
Member Author

skateman commented Jun 6, 2018

This is actually not depending on any core PR as containers already have this feature.
@miq-bot rm_label pending core

@mzazrivec mzazrivec self-assigned this Jun 7, 2018
@mzazrivec mzazrivec added this to the Sprint 88 Ending Jun 18, 2018 milestone Jun 7, 2018
@mzazrivec mzazrivec merged commit 8bfa17f into ManageIQ:master Jun 7, 2018
@skateman skateman deleted the provider-suspended-quadicon branch June 7, 2018 07:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

6 participants