-
-
Notifications
You must be signed in to change notification settings - Fork 8.8k
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
Add icons to Command Palette #10049
Add icons to Command Palette #10049
Conversation
This reverts commit 24837ea.
…jenkins into add-icons-to-command-palette
@janfaracik add the web-ui is just for filtering for people interested it doesn't do anything itself |
I guess this comment is relevant here. |
…jenkins into add-icons-to-command-palette
done |
Please take a moment and address the merge conflicts of your pull request. 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.
LGTM, (tested locally)
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 okay to me too!
Looks like a test is failing consistently on this @janfaracik ? |
Yeah, I see the following in the logs: 19:31:19 [INFO] Results:
19:31:19 [INFO]
19:31:19 [ERROR] Failures:
19:31:19 [ERROR] AbstractProjectTest.autoCompleteUpstreamProjects:630->testAutoCompleteResponse:669
19:31:19 Expected: is <true>
19:31:19 but: was <false>
19:31:19 [INFO]
19:31:19 [ERROR] Tests run: 2212, Failures: 1, Errors: 0, Skipped: 55
19:31:19 [INFO]
19:31:19 [ERROR] There are test failures.
19:31:19
19:31:19 See /home/jenkins/agent/workspace/Core_jenkins_PR-10049/test/target/surefire-reports for the individual test results. |
/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! |
It looks like we also have a java.lang.NullPointerException: Cannot invoke "org.htmlunit.html.DomElement.getHtmlElementDescendants()" because "doc" is null
at org.htmlunit.html.HtmlPage.executeDeferredScriptsIfNeeded(HtmlPage.java:1466)
at org.htmlunit.html.HtmlPage.initialize(HtmlPage.java:265)
at org.htmlunit.WebClient.loadWebResponseInto(WebClient.java:701)
at org.htmlunit.WebClient.loadWebResponseInto(WebClient.java:575)
at org.htmlunit.WebClient.getPage(WebClient.java:493)
at org.htmlunit.WebClient.getPage(WebClient.java:402)
at org.htmlunit.WebClient.getPage(WebClient.java:538)
at org.htmlunit.WebClient.getPage(WebClient.java:520)
at org.jvnet.hudson.test.JenkinsRule$WebClient.getPage(JenkinsRule.java:2735)
at org.jvnet.hudson.test.JenkinsRule.after(JenkinsRule.java:518)
at org.jvnet.hudson.test.JenkinsRule$1.evaluate(JenkinsRule.java:676)
at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
at java.base/java.lang.Thread.run(Thread.java:840) Also one seen at https://ci.jenkins.io/job/Core/job/jenkins/job/PR-10049/7/: 02:14:48 [ERROR] FileParameterValueTest.fileParameter_canStillUse_internalHierarchy » NullPointer Cannot invoke "org.htmlunit.html.DomElement.getHtmlElementDescendants()" because "doc" is null
02:14:48 [INFO]
02:14:48 [ERROR] Tests run: 2212, Failures: 0, Errors: 1, Skipped: 55
02:14:48 [INFO]
02:14:48 [ERROR] |
for (SuggestedItem item : getSuggestions(req, query)) | ||
r.suggestions.add(new Item(item.getPath(), item.getUrl())); | ||
for (SuggestedItem curItem : getSuggestions(req, query)) { | ||
String iconName = curItem.item.getSearchIcon(); |
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.
(nonblocking as pre-existing, but can potentially be enhanced in a followup)
One pre-existing issue is that items with a display name are found twice, (even when the actual name is nothing alike)
But the display name version isn't an instanceof Item, which means it just gets the default icon.
Ideally it wouldn't report twice or at least it would provide the right item.
/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! |
Medium-ish PR to add icons to the newly introduced Command Palette. This is one of the first refinements to search, with the intention of making search more useful and visual for users. Actions can override
getSearchIcon()
to add an icon, or if they implementIconSpec
getSearchIcon()
will use that by default.Big thanks to @timja for help on this :)
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