This is an automated email from the ASF dual-hosted git repository.
pdallig pushed a commit to branch branch-0.10
in repository https://gitbox.apache.org/repos/asf/zeppelin.git
The following commit(s) were added to refs/heads/branch-0.10 by this push:
new 3eaa552 [ZEPPELIN-5519] Show note path in the tooltip
3eaa552 is described below
commit 3eaa5525e2a9696018eb62c505a337701d01fb2a
Author: Philipp Dallig <[email protected]>
AuthorDate: Tue Sep 14 16:31:23 2021 +0200
[ZEPPELIN-5519] Show note path in the tooltip
### What is this PR for?
This PR adds a tooltip in zeppelin-web-angular and changes the tooltip in
zeppelin-web to the note path.
Please note that I am not a front-end developer, so if you have any
improvements, let me know.
### What type of PR is it?
- Improvement
### What is the Jira issue?
* https://issues.apache.org/jira/browse/ZEPPELIN-5519
### How should this be tested?
* CI
### Screenshots (if appropriate)
zeppelin-web Before:

zeppelin-web After:

zeppelin-web-angular After:

### Questions:
* Does the licenses files need update? No
* Is there breaking changes for older versions? No
* Does this needs documentation? No
Author: Philipp Dallig <[email protected]>
Closes #4222 from Reamer/tooltip_note and squashes the following commits:
cca8618b7 [Philipp Dallig] Show note path in the tooltip
(cherry picked from commit dae84d3c4bb7cd694c201195ffb14d60bb02f4d3)
Signed-off-by: Philipp Dallig <[email protected]>
---
.../zeppelin-sdk/src/interfaces/message-notebook.interface.ts | 1 +
.../app/pages/workspace/notebook/action-bar/action-bar.component.html | 4 +++-
zeppelin-web/src/app/notebook/notebook-actionBar.html | 2 +-
3 files changed, 5 insertions(+), 2 deletions(-)
diff --git
a/zeppelin-web-angular/projects/zeppelin-sdk/src/interfaces/message-notebook.interface.ts
b/zeppelin-web-angular/projects/zeppelin-sdk/src/interfaces/message-notebook.interface.ts
index 649a312..c4e739b 100644
---
a/zeppelin-web-angular/projects/zeppelin-sdk/src/interfaces/message-notebook.interface.ts
+++
b/zeppelin-web-angular/projects/zeppelin-sdk/src/interfaces/message-notebook.interface.ts
@@ -51,6 +51,7 @@ export interface Note {
paragraphs: ParagraphItem[];
name: string;
id: string;
+ path: string;
defaultInterpreterGroup: string;
noteParams: NoteParams;
noteForms: NoteForms;
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 1da21e6..bba8226 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
@@ -12,7 +12,9 @@
<div class="bar" [class.simple]="looknfeel !== 'default'">
<div class="title">
- <zeppelin-elastic-input [readonly]="revisionView"
+ <zeppelin-elastic-input nz-tooltip
+ [nzTitle]="note.path"
+ [readonly]="revisionView"
[value]="note.name"
(valueUpdate)="updateNoteName($event)"></zeppelin-elastic-input>
</div>
diff --git a/zeppelin-web/src/app/notebook/notebook-actionBar.html
b/zeppelin-web/src/app/notebook/notebook-actionBar.html
index c553d8c..4822f66 100644
--- a/zeppelin-web/src/app/notebook/notebook-actionBar.html
+++ b/zeppelin-web/src/app/notebook/notebook-actionBar.html
@@ -22,7 +22,7 @@ limitations under the License.
<p class="form-control-title"
ng-class="{'reverse-ellipsis ellipsis':noteName(note).length > 45}"
tooltip-placement="bottom"
- uib-tooltip={{noteName(note)}}
+ uib-tooltip={{notePath(note)}}
ng-click="input.showEditor = !revisionView; input.value = note.name"
ng-show="!input.showEditor"><span>{{noteName(note)}}</span></p>
</div>