mirror of
https://github.com/datahub-project/datahub.git
synced 2025-10-27 17:02:03 +00:00
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:
commit
cd94e5af6f
@ -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;
|
||||
}
|
||||
|
||||
@ -14,6 +14,7 @@ $score-gauge-dimension: 128px;
|
||||
font-size: 16px;
|
||||
font-weight: 600;
|
||||
margin: 0;
|
||||
color: get-color(black);
|
||||
}
|
||||
|
||||
&-value {
|
||||
|
||||
@ -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}}
|
||||
|
||||
@ -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>
|
||||
|
||||
@ -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")}}
|
||||
|
||||
@ -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>
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user