-
-
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 Appearance
system configuration page
#8403
Conversation
eb29185
to
3e12ca2
Compare
Nice. https://plugins.jenkins.io/test-results-analyzer/ looks like an additional candidate, but mixes appearance settings with other settings... |
From a security perspective, I see no blockers! |
I've had a look but I don't think it fits with the page that well. |
I think this is great! LGTM. Would be good to see something similar in #7268 if it's going forward. |
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.
That's awesome!
/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! |
Previously, creation of new config categories were motivated by overcrowding on the global configuration (Tools, Clouds, possibly Security as well – matrix-auth gets huge quickly). This doesn't seem to be the case here. What motivates this change, what's special about this config page that does not apply to tons of other potential categories? Also, we should better define what goes here so plugin maintainers know what's appropriate to put there. The discussion about some plugins above indicates this isn't the case. |
This groups related elements together, originally I had started jenkinsci/theme-manager-plugin#105 but that would've been a breaking change at configuration level. This pull request #8379 then reminded of the design https://jenkins-redesign.vercel.app/settings/appearance. Which seemed like a much cleaner approach to solve the problem. It means that you can configure the look and feel of Jenkins from one place without having to scroll all over the place to find it.
Other sensible categories could likely be added if there are enough sensible elements that would go there? e.g. possibly notifications?
|
That makes sense if we move from "this is unwieldy, split it up" to "categories are based on loosely coupled semantic relationships between elements". That seems like a JEP-level change though given the downstream impact. |
The javadoc already says that as far as I can tell
|
Looks login-theme-plugin was forgotten. I've open a PR here : jenkinsci/login-theme-plugin#37 Regards, |
On the System configuration page, I see a few settings that could perhaps be moved to Appearance:
If there's no objection, I think I'll file issues for the last two in a few days. |
https://github.com/jenkinsci/prism-api-plugin/releases/tag/v1.29.0-9 |
As a user of |
Yeah it makes sense for that to go there, https://github.com/jenkinsci/jenkins/blob/master/core/src/main/java/jenkins/appearance/AppearanceCategory.java#L30-L41 |
This adds a new system configuration page 'Appearance' for configuring the look and feel of Jenkins.
It moves a bit of config out of the main System page into a more appropriate place.
Screenshots
It implements the design from https://jenkins-redesign.vercel.app/settings/appearance
It complements #8379 but doesn't require it
I've gone through a number of plugins that contribute UI and have sent pull requests for:
TODO
I have gone for ones that directly affect the look and feel of Jenkins rather than ones that affect builds like ansicolor.
Any other suggestions?
After #7268 is in the user profile page can be updated to match.
Could possibly move the Display notification URL provider to appearance too? (the thing that selects Classic, Blue Ocean or Pipeline Graph View)
Testing done
Started Jenkins with no plugins contributing to the appearance category, the page doesn't show.
Installed jenkinsci/theme-manager-plugin#210, the page shows up and theme manager is on the appearance page and not on the system configuration page.
Unit test wise I don't think there's much value for it will something in core uses it, although happy to add something if its thought to be needed
Proposed changelog entries
Proposed upgrade guidelines
N/A
Submitter checklist
Desired reviewers
@mention
Before the changes are marked as
ready-for-merge
:Maintainer checklist