Skip to content
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 for search #452

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open

Conversation

timja
Copy link
Member

@timja timja commented Dec 15, 2024

Requires jenkinsci/branch-api-plugin#497 to be taken out of draft

Part of jenkinsci/jenkins#10049 but can be merged interdependently

image

Proposed changelog entries

  • Entry 1: Issue, Human-readable Text
  • ...

Submitter checklist

  • JIRA issue is well described
  • Changelog entry appropriate for the audience affected by the change (users or developer, depending on the change).
    * Use the Internal: prefix if the change has no user-visible impact (API, test frameworks, etc.)
  • Appropriate autotests or explanation to why this change has no tests

@timja timja force-pushed the restore-icon-spec branch from 9acde54 to 3190d98 Compare December 16, 2024 22:36
@timja timja marked this pull request as ready for review December 16, 2024 22:36
@timja timja requested a review from a team as a code owner December 16, 2024 22:36
@Override
public String getIconClassName() {
// avoid https://issues.jenkins.io/browse/JENKINS-74990
if (icon.getClass().getName().equals("jenkins.branch.MetadataActionFolderIcon")) {
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

not ideal but I couldn't see a cleaner solution.

This if block means that the MetadataActionFolderIcon falls back into the code it previously did before Folder had an IconSpec.

in command palette it works fine because e.g. OrganizationFolder overrides getIconClassName so it gets the right icon, in the example I tried (GitHub organisation) it didn't load the icon in command palette but that's because it was using the IconSet API and not symbols which isn't supported by command palette right now (cc @janfaracik )

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant