You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tez.apache.org by ss...@apache.org on 2015/05/09 03:42:48 UTC

[10/43] tez git commit: TEZ-2416. Tez UI: Make tooltips display faster. (Sreenath Somarajapuram via pramachandran)

TEZ-2416. Tez UI: Make tooltips display faster. (Sreenath Somarajapuram via pramachandran)


Project: http://git-wip-us.apache.org/repos/asf/tez/repo
Commit: http://git-wip-us.apache.org/repos/asf/tez/commit/70cd396d
Tree: http://git-wip-us.apache.org/repos/asf/tez/tree/70cd396d
Diff: http://git-wip-us.apache.org/repos/asf/tez/diff/70cd396d

Branch: refs/heads/TEZ-2003
Commit: 70cd396d27188aa5e79280552199e7c81f7d2822
Parents: 02870f0
Author: Prakash Ramachandran <pr...@hortonworks.com>
Authored: Thu May 7 17:45:04 2015 +0530
Committer: Prakash Ramachandran <pr...@hortonworks.com>
Committed: Thu May 7 17:45:04 2015 +0530

----------------------------------------------------------------------
 CHANGES.txt                                 | 1 +
 tez-ui/src/main/webapp/app/index.html       | 1 -
 tez-ui/src/main/webapp/app/scripts/app.js   | 5 +++++
 tez-ui/src/main/webapp/app/styles/main.less | 9 ++++++++-
 4 files changed, 14 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/tez/blob/70cd396d/CHANGES.txt
----------------------------------------------------------------------
diff --git a/CHANGES.txt b/CHANGES.txt
index 7feefcc..c3d48b6 100644
--- a/CHANGES.txt
+++ b/CHANGES.txt
@@ -20,6 +20,7 @@ INCOMPATIBLE CHANGES
     Default max limit increased. Should not affect existing users.
 
 ALL CHANGES:
+  TEZ-2416. Tez UI: Make tooltips display faster.
   TEZ-2404. Handle DataMovementEvent before its TaskAttemptCompletedEvent
   TEZ-2424. Bump up max counter group name length limit to account for per_io counters.
   TEZ-2417. Tez UI: Counters are blank in the Attempts page if all attempts failed

http://git-wip-us.apache.org/repos/asf/tez/blob/70cd396d/tez-ui/src/main/webapp/app/index.html
----------------------------------------------------------------------
diff --git a/tez-ui/src/main/webapp/app/index.html b/tez-ui/src/main/webapp/app/index.html
index f87b2a6..35cfa20 100644
--- a/tez-ui/src/main/webapp/app/index.html
+++ b/tez-ui/src/main/webapp/app/index.html
@@ -39,7 +39,6 @@
     <script src="bower_components/jquery-ui/jquery-ui.js"></script>
     <script src="bower_components/bootstrap/js/dropdown.js"></script>
     <script src="bower_components/bootstrap/js/button.js"></script>
-    <script src="bower_components/bootstrap/js/tooltip.js"></script>
     <script src="bower_components/jquery-ui/ui/datepicker.js"></script>
     <script src="bower_components/moment/moment.js"></script>
     <script src="bower_components/handlebars/handlebars.js"></script>

http://git-wip-us.apache.org/repos/asf/tez/blob/70cd396d/tez-ui/src/main/webapp/app/scripts/app.js
----------------------------------------------------------------------
diff --git a/tez-ui/src/main/webapp/app/scripts/app.js b/tez-ui/src/main/webapp/app/scripts/app.js
index 37aa563..dd493d0 100644
--- a/tez-ui/src/main/webapp/app/scripts/app.js
+++ b/tez-ui/src/main/webapp/app/scripts/app.js
@@ -54,6 +54,11 @@ App.Configs = Em.Namespace.create();
 App.ready = function () {
   $.extend(App.env, App.Configs.envDefaults);
 
+  $(document).tooltip({
+    delay: 20,
+    tooltipClass: 'generic-tooltip'
+  });
+
   ["timelineBaseUrl", "RMWebUrl"].forEach(function(item) {
     if (!!App.env[item]) {
       App.env[item] = App.Helpers.misc.normalizePath(App.env[item]);

http://git-wip-us.apache.org/repos/asf/tez/blob/70cd396d/tez-ui/src/main/webapp/app/styles/main.less
----------------------------------------------------------------------
diff --git a/tez-ui/src/main/webapp/app/styles/main.less b/tez-ui/src/main/webapp/app/styles/main.less
index ad3f132..e89d4c3 100644
--- a/tez-ui/src/main/webapp/app/styles/main.less
+++ b/tez-ui/src/main/webapp/app/styles/main.less
@@ -897,4 +897,11 @@ body, html {
 
 .per-io {
   color: @text-green;
-}
\ No newline at end of file
+}
+
+.generic-tooltip {
+  padding: 3px 5px !important;
+  background: rgba(0,0,0,.8) !important;
+  color: white !important;
+  border: none !important;
+}