-
-
Notifications
You must be signed in to change notification settings - Fork 8.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Update appearance of keyboard shortcut tooltips #8435
base: master
Are you sure you want to change the base?
Update appearance of keyboard shortcut tooltips #8435
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
works nicely
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks fine from a security perspective!
/label ready-for-merge This PR is now ready for merge, after ~24 hours, we will merge it if there's no negative feedback. Thanks! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is there a way to demonstrate the CMD/CTRL behavior? Right now it's unused code.
</st:documentation> | ||
|
||
<div class="jenkins-tooltip__keyboard-shortcut"> | ||
<j:if test="${attrs.prefix != null}"> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good spot - updated.
Subjective design feedback: The animation doesn't look good at the actual size. I first thought it was a bug, in particular on the default (non-dark) theme. weird.animation.firefox.mov |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@daniel-beck I like your single string approach, you happy with this? |
@daniel-beck you able to check this please? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I didn't exactly provide a complete solution 😅
English localization is missing, so hovering just shows shortcut
.
<j:jelly xmlns:j="jelly:core" xmlns:st="jelly:stapler" xmlns:d="jelly:define"> | ||
<st:documentation> | ||
<st:attribute name="message"> | ||
Optional message for the shortcut |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Optional message for the shortcut | |
Tooltip message for the shortcut. Use the placeholder <code>{0}</code> escaped (wrapped in <code>"</code>). A minimal message consisting of only the shortcut would be <code>"{0}"</code>. |
(Assuming <code>
works here.)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
it renders the code and " literally with the intellij plugin, unsure about stapler-maven-plugin itself, searching the code I couldn't see any handling of it though.
@daniel-beck @timja Updated this - big thanks to both of you for the comments and assistance. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM - tested the latest changes and reviewed the code, much more in line with what was expected and cleaner, thanks. Apologies for the delay
Re-requested @NotMyFault review as the code has changed a fair bit since last approved. @daniel-beck do you have an ETA / plan to review again? Thanks |
Please take a moment and address the merge conflicts of your pull request. Thanks! |
cc @NotMyFault ^^ |
Small one in preparation for #7569. This PR adds a new component for showing keyboard shortcuts, it's currently used in the tooltip for search bars.
Screen.Recording.2023-08-25.at.21.29.41.mov
This will be used for the Command Palette button too, where hovering over the Search icon will list what shortcuts activate it.
Testing done
Proposed changelog entries
Proposed upgrade guidelines
N/A
Submitter checklist
Desired reviewers
@jenkinsci/sig-ux
Before the changes are marked as
ready-for-merge
:Maintainer checklist