tez-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From prak...@apache.org
Subject tez git commit: TEZ-2416. Tez UI: Make tooltips display faster. (Sreenath Somarajapuram via pramachandran)
Date Thu, 07 May 2015 12:17:04 GMT
Repository: tez
Updated Branches:
  refs/heads/branch-0.7 4405dff23 -> a142c3350


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

(cherry picked from commit 70cd396d27188aa5e79280552199e7c81f7d2822)


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

Branch: refs/heads/branch-0.7
Commit: a142c335009350f9bdfae542b1fc360e65563d93
Parents: 4405dff
Author: Prakash Ramachandran <pramachandran@hortonworks.com>
Authored: Thu May 7 17:45:04 2015 +0530
Committer: Prakash Ramachandran <pramachandran@hortonworks.com>
Committed: Thu May 7 17:46:46 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/a142c335/CHANGES.txt
----------------------------------------------------------------------
diff --git a/CHANGES.txt b/CHANGES.txt
index 13eed41..1ef3a40 100644
--- a/CHANGES.txt
+++ b/CHANGES.txt
@@ -11,6 +11,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/a142c335/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/a142c335/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/a142c335/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;
+}


Mime
View raw message