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

Make branding overridable in signin/login page #8462

Merged
merged 2 commits into from
Sep 9, 2023

Conversation

Vlatombe
Copy link
Member

@Vlatombe Vlatombe commented Sep 4, 2023

This makes branding implementation in login/register pages overridable via a SimplePageDecorator implementation.

cc @dwnusbaum

Testing done

Proposed changelog entries

  • Developer: make branding an extension via SimplePageDecorator.

Proposed upgrade guidelines

N/A

Submitter checklist

Desired reviewers

Before the changes are marked as ready-for-merge:

Maintainer checklist

* Move resources from DefaultSimplePageDecorator to SimplePageDecorator to ease implementation.
Vlatombe added a commit to Vlatombe/ui-samples-plugin that referenced this pull request Sep 5, 2023
This demonstrates branding of the login/register screen made possible via jenkinsci/jenkins#8462
@Vlatombe Vlatombe marked this pull request as ready for review September 5, 2023 07:32
@@ -48,19 +48,16 @@ THE SOFTWARE.
<!-- mobile friendly layout -->
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<!-- css styling, will fallback to default implementation -->
<st:include it="${simpleDecorator}" page="simple-head.jelly" optional="true"/>
Copy link
Member

Choose a reason for hiding this comment

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

why remove these optionals?

Copy link
Member Author

Choose a reason for hiding this comment

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

Since the views are moved from DefaultSimplePageDecorator to SimplePageDecorator now, they can't be missing, so just clarifying that (although it doesn't change anything functionally)

Copy link
Member

@timja timja Sep 5, 2023

Choose a reason for hiding this comment

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

Copy link
Member Author

@Vlatombe Vlatombe Sep 5, 2023

Choose a reason for hiding this comment

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

Works fine as the default from SimplePageDecorator will be used if none is provided by the concrete implementation.

Copy link
Member

@timja timja left a comment

Choose a reason for hiding this comment

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

not tested manually but looks good, thanks!

@timja timja added web-ui The PR includes WebUI changes which may need special expertise developer Changes which impact plugin developers labels Sep 5, 2023
@timja timja requested review from a team September 5, 2023 11:01
@timja
Copy link
Member

timja commented Sep 8, 2023

/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!

@comment-ops-bot comment-ops-bot bot added the ready-for-merge The PR is ready to go, and it will be merged soon if there is no negative feedback label Sep 8, 2023
@MarkEWaite MarkEWaite merged commit 2971155 into jenkinsci:master Sep 9, 2023
16 checks passed
@scherler scherler mentioned this pull request Sep 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
developer Changes which impact plugin developers ready-for-merge The PR is ready to go, and it will be merged soon if there is no negative feedback web-ui The PR includes WebUI changes which may need special expertise
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants