Skip to content

Commit

Permalink
Tidy up
Browse files Browse the repository at this point in the history
  • Loading branch information
janfaracik committed Feb 10, 2025
1 parent b746fba commit b2da3f8
Show file tree
Hide file tree
Showing 7 changed files with 9 additions and 12 deletions.
1 change: 0 additions & 1 deletion core/src/main/java/hudson/model/Computer.java
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,6 @@
import hudson.node_monitors.NodeMonitor;
import hudson.remoting.Channel;
import hudson.remoting.VirtualChannel;

import hudson.security.ACL;
import hudson.security.AccessControlled;
import hudson.security.Permission;
Expand Down
1 change: 0 additions & 1 deletion core/src/main/java/hudson/model/Job.java
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,6 @@
import hudson.scm.ChangeLogSet;
import hudson.scm.SCM;
import hudson.search.QuickSilver;

import hudson.search.SearchIndex;
import hudson.search.SearchIndexBuilder;
import hudson.search.SearchItem;
Expand Down
1 change: 0 additions & 1 deletion core/src/main/java/hudson/model/User.java
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,6 @@
import hudson.init.InitMilestone;
import hudson.init.Initializer;
import hudson.model.listeners.SaveableListener;

import hudson.security.ACL;
import hudson.security.AccessControlled;
import hudson.security.SecurityRealm;
Expand Down
1 change: 0 additions & 1 deletion core/src/main/java/hudson/model/View.java
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,6 @@
import hudson.model.Descriptor.FormException;
import hudson.model.listeners.ItemListener;
import hudson.search.CollectionSearchIndex;

import hudson.search.SearchIndexBuilder;
import hudson.security.ACL;
import hudson.security.AccessControlled;
Expand Down
4 changes: 2 additions & 2 deletions core/src/main/java/hudson/search/Search.java
Original file line number Diff line number Diff line change
Expand Up @@ -171,9 +171,9 @@ public void doSuggest(StaplerRequest2 req, StaplerResponse2 rsp, @QueryParameter

if (iconName.startsWith("symbol")) {
r.suggestions.add(new Item(curItem.getPath(), curItem.getUrl(),
Symbol.get(new SymbolRequest.Builder().withRaw(iconName).build()), "symbol", curItem.item.getSearchGroup()));
Symbol.get(new SymbolRequest.Builder().withRaw(iconName).build()), "symbol", curItem.item.getSearchGroup().getDisplayName()));
} else {
r.suggestions.add(new Item(curItem.getPath(), curItem.getUrl(), iconName, "image", curItem.item.getSearchGroup()));
r.suggestions.add(new Item(curItem.getPath(), curItem.getUrl(), iconName, "image", curItem.item.getSearchGroup().getDisplayName()));
}
}
rsp.serveExposedBean(req, r, new ExportConfig());
Expand Down
4 changes: 2 additions & 2 deletions src/main/js/components/command-palette/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ function init() {
label: i18n.dataset.getHelp,
url: headerCommandPaletteButton.dataset.searchHelpUrl,
isExternal: true,
group: null
group: null,
}),
]);
} else {
Expand All @@ -86,7 +86,7 @@ function init() {

if (query.length === 0 || Object.keys(results).length > 0) {
for (const [group, items] of Object.entries(results)) {
if (group !== 'null') {
if (group !== "null") {
const heading = document.createElement("p");
heading.className = "jenkins-command-palette__results__heading";
heading.innerText = group;
Expand Down
9 changes: 5 additions & 4 deletions src/main/scss/components/_command-palette.scss
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@

&::backdrop {
background: var(--command-palette-backdrop-background);
backdrop-filter: contrast(0.7) brightness(0.9) saturate(1.25) blur(3px);
backdrop-filter: brightness(0.9) saturate(1.25) blur(2px);
animation: jenkins-dialog-backdrop-animate-in 0.1s linear;
}

Expand Down Expand Up @@ -76,7 +76,7 @@
&__search {
--search-bar-height: 3rem !important;

background: transparent;
background: color-mix(in sRGB, var(--card-background), transparent);
box-shadow: var(--command-palette-inset-shadow);
margin-bottom: var(--section-padding);
border-radius: 1rem;
Expand Down Expand Up @@ -109,6 +109,7 @@
display: flex;
flex-direction: column;
border-radius: 1rem;
background: color-mix(in sRGB, var(--card-background), transparent);
backdrop-filter: var(--command-palette-results-backdrop-filter);
box-shadow: var(--command-palette-inset-shadow);

Expand All @@ -132,7 +133,7 @@
color: var(--text-color-secondary);

&:not(:first-of-type) {
padding-top: 1.5rem;
padding-top: 1.375rem;
}
}

Expand All @@ -153,7 +154,7 @@
display: flex;
align-items: center;
justify-content: flex-start;
padding: 0.75rem;
padding: 0.625rem;
border-radius: 0.5rem;
color: var(--text-color) !important;
transition: var(--standard-transition);
Expand Down

0 comments on commit b2da3f8

Please sign in to comment.