From 640e2df3cdb1d019f7302aa24cd98373eba69bcf Mon Sep 17 00:00:00 2001
From: cherrie-k <80851202+cherrie-k@users.noreply.github.com>
Date: Mon, 30 Sep 2024 00:33:13 +0900
Subject: [PATCH] [ZEPPELIN-6072] Unify tooltips across action bar buttons, and
add tooltips to paragraph controller
### What is this PR for?
I noticed that only some buttons in the first group of the action bar (highlighted in the red box in the image below) had tooltips, while others did not. To improve consistency and enhance user experience, I ensured that all buttons in the first group of the action bar display tooltips on hover.
I also considered adding tooltips to the other groups of the action bar (outside the red box), but due to the complexity of implementing this with the ng-zorro UI library, more time and investigation are needed. I aim to address this in a future update.
In addition, the paragraph controller currently lacks tooltips on its icons, which may be confusing for new users unfamiliar with Zeppelin (like myself). Without tooltips, it's unclear what each button does, leading to potential usability issues. I added tooltips to all icons in the paragraph controller to improve clarity and guide users of the functionality of each button.
These changes aim to enhance the overall usability of the interface, making it more intuitive and consistent for all users.
**Before**
Some buttons show no tooltips.

**After**
Missing tooltips are now displayed.

### What type of PR is it?
Improvement
### Todos
* [x] - Add tooltips to action bar
* [x] - Add tooltips to paragraph controller
### What is the Jira issue?
[ZEPPELIN-6072](https://issues.apache.org/jira/browse/ZEPPELIN-6072)
### How should this be tested?
* Build and test - check if tooltips are visible
### Questions:
* Does the license files need to update? No
* Is there breaking changes for older versions? No
* Does this needs documentation? No
Closes #4832 from cherrie-k/feat/tooltip.
Signed-off-by: Cheng Pan
---
.../action-bar/action-bar.component.html | 8 ++++++--
.../paragraph/control/control.component.html | 16 +++++++++++-----
2 files changed, 17 insertions(+), 7 deletions(-)
diff --git a/zeppelin-web-angular/src/app/pages/workspace/notebook/action-bar/action-bar.component.html b/zeppelin-web-angular/src/app/pages/workspace/notebook/action-bar/action-bar.component.html
index 1972a1e7dc9..56c52dc6616 100644
--- a/zeppelin-web-angular/src/app/pages/workspace/notebook/action-bar/action-bar.component.html
+++ b/zeppelin-web-angular/src/app/pages/workspace/notebook/action-bar/action-bar.component.html
@@ -22,7 +22,9 @@
diff --git a/zeppelin-web-angular/src/app/pages/workspace/notebook/paragraph/control/control.component.html b/zeppelin-web-angular/src/app/pages/workspace/notebook/paragraph/control/control.component.html
index 5ec5f52fccf..b21dc8a49d6 100644
--- a/zeppelin-web-angular/src/app/pages/workspace/notebook/paragraph/control/control.component.html
+++ b/zeppelin-web-angular/src/app/pages/workspace/notebook/paragraph/control/control.component.html
@@ -28,22 +28,28 @@
(click)="runParagraph.emit()"
nzType="play-circle"
class="run-para"
- nzTheme="outline">
+ nzTheme="outline"
+ nz-tooltip
+ nzTooltipTitle="Run paragraph">
+ nzTheme="outline"
+ nz-tooltip
+ nzTooltipTitle="Cancel paragraph">
-
+
-
+
-
+
+
+