Merge pull request #1391 from cptran777/health-score-enhancements

Add a tooltip for health score and remove more info from tooltip messages
This commit is contained in:
Charlie Tran 2018-09-18 14:05:15 -07:00 committed by GitHub
commit cd94e5af6f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
6 changed files with 22 additions and 8 deletions

View File

@ -93,6 +93,8 @@ public class Application extends Controller {
Play.application().configuration().getString("links.wiki.complianceOwner", "");
private static final String WHZ_WIKI_LINKS__EXPORT_POLICY =
Play.application().configuration().getString("links.wiki.exportPolicy", "");
private static final String WHZ_WIKI_LINKS__METADATA_HEALTH =
Play.application().configuration().getString("links.wiki.metadataHealth", "");
private static final String WHZ_LINKS__JIT_ACL_CONTACT =
Play.application().configuration().getString("links.jitAcl.contact", "");
@ -266,6 +268,7 @@ public class Application extends Controller {
wikiLinks.put("jitAcl", WHZ_WIKI_LINKS__JIT_ACL_FAQ);
wikiLinks.put("metadataCustomRegex", WHZ_WIKI_LINKS__METADATA_CUSTOM_REGEX);
wikiLinks.put("exportPolicy", WHZ_WIKI_LINKS__EXPORT_POLICY);
wikiLinks.put("metadataHealth", WHZ_WIKI_LINKS__METADATA_HEALTH);
return wikiLinks;
}

View File

@ -14,6 +14,7 @@ $score-gauge-dimension: 128px;
font-size: 16px;
font-weight: 600;
margin: 0;
color: get-color(black);
}
&-value {

View File

@ -1,8 +1,13 @@
{{#if getHealthScoreTask.isIdle}}
{{visualization/charts/score-gauge
{{#visualization/charts/score-gauge
class="dataset-health-score"
score=healthScore
title="Health Score:"}}
score=healthScore}}
Health Score:
{{more-info
link=@wikiLinks.metadataHealth
tooltip="Click for more information on Metadata Health Score"
}}
{{/visualization/charts/score-gauge}}
{{else}}
{{pendulum-ellipsis-animation}}
{{/if}}

View File

@ -2,12 +2,11 @@
<sup>
{{#if tooltip}}
<i data-title="{{tooltip}}" class="nacho-tooltip">
More Info
<span class="glyphicon glyphicon-question-sign"></span>
</i>
{{else}}
More Info
<span class="glyphicon glyphicon-question-sign"></span>
{{/if}}
<span class="glyphicon glyphicon-question-sign"></span>
</sup>
</a>

View File

@ -1,7 +1,11 @@
{{high-charts chartOptions=(readonly chartOptions) content=(readonly chartData)}}
<div class="score-gauge__legend-wrapper">
<h6 class="score-gauge__legend-title">
{{title}}
{{#if hasBlock}}
{{yield}}
{{else}}
{{title}}
{{/if}}
</h6>
<span class="score-gauge__legend-value {{labelValueClass}}">
{{#if (eq scoreDisplay "percent")}}

View File

@ -62,7 +62,9 @@
avatarEntityProps=avatarEntityProps
class="dataset-owner-list"}}
{{datasets/containers/health-score-gauge urn=encodedUrn}}
{{#link-to "datasets.dataset.health" encodedUrn}}
{{datasets/containers/health-score-gauge urn=encodedUrn wikiLinks=wikiLinks}}
{{/link-to}}
{{/if}}
</div>