-
-
Notifications
You must be signed in to change notification settings - Fork 8.9k
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
Allow customization of Job icons #9723
base: master
Are you sure you want to change the base?
Allow customization of Job icons #9723
Conversation
6f31aad
to
12bbfbb
Compare
Thanks! I really like the idea! |
541cda9
to
6cfa2a5
Compare
02f018a
to
dbbce1f
Compare
The complication here is that this is where jobs show their status – hence the "S" in the column title. While it seems useful to have a "type" indicator for jobs (e.g., using the icons from the "New Item" dialog) that extends beyond Folders (an item type with no natural status, at least not before For that reason I am against this proposal as implemented. It seems to me that, to properly support this in a way that makes sense, we'd need another column as job type indicator first (with corresponding adaptation of the Folders plugin behavior IMO). |
I mean, we could have One thing I kind of disagree with is calling it "type" because that again - as the status - has an implication to it. |
Right, the same problem applies to current organization folders, like e.g. on https://ci.jenkins.io/ that use the "Status" column for the organization icon. If we end up splitting the current status (except Folder with fixed icon) column into a "always status" and "always icon" column, that involves looking into how to adapt Folders accordingly. |
So the first step would be to add a new column As said before, I'd imagine adding a WDYT? |
@strangelookingnerd That would be my suggestion, with the default being the item type icon from the New Item dialog. Obviously, that's just me and others may well see this differently (including future me once I've seen a prototype 😬 ). |
I am sure that there will be some back an forth but I will try and look into creating a prototype and we see where that brings us. Setting this back to Draft for the time being. |
Please take a moment and address the merge conflicts of your pull request. Thanks! |
acdbbaa
to
0c59275
Compare
@daniel-beck I updated the PR and implemented the first step towards a polished solution. Please let me know what you think. I also had a go at adding a configuration for items in order to allow customization of icons that also enable providers for the icons. I may need a little more time to contemplate how to best solve it. |
@strangelookingnerd Thanks, I'll try to look at this soon! |
Yes, that is something that I could look into.
While I do agree that the „I“ looks odd - a „T“ would not make it better IMHO. And also, as you already hinted, once there are custom icons involved „Type“ is as misleading as „Status“ is right now. So what about no header text? Would not be the worst idea to be honest. |
0c59275
to
a487d65
Compare
I had a go at making the Things to notice:
I am still not sure what to do with the column header. I tried to remove it which looks a little off and removes the possibility to sort the column - which may be useful if you want to sort by "type" of items. Adding a non-breaking space ( |
a487d65
to
dbc25ca
Compare
In a discussion with @jonesbusy in jenkinsci/custom-folder-icon-plugin#387 I stumbled upon custom-job-icon-plugin which by now has become deprecated / out-dated but brought up the interesting idea of being able to change the default icon of a
Job
from theBallColor
to something else similar as custom-folder-icon-plugin already does it forAbstractFolder
.Since I really liked the idea and already have a use case myself I wanted to bring this to the core to lay the foundation.
This PR aims to introduce configurable icons for jobs and potentially also other types of items.
The first step is to add a new column to show the icon, similar to the status or weather icons. By default the column uses the icon and description describing the "type" of an item.
Screenshot:
The second step is to add some sort of configuration to
Job
that allows customization (tbd. / work in progress).Full disclaimer, I am aware that this draft is still a little rough on the edges how ever to see if this goes anywhere I'd be grateful for some feedback.
Testing done
Only manual testing so far, tests to follow in case we want to follow up on this draft.
Proposed changelog entries
tbd.
Proposed upgrade guidelines
N/A
Submitter checklist
Desired reviewers
N/A
Before the changes are marked as
ready-for-merge
:Maintainer checklist