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

Update appearance of buttons for password and secretTextarea matching 'jenkins-button's #8179

Merged
merged 5 commits into from
Jun 30, 2023

Conversation

mawinter69
Copy link
Contributor

@mawinter69 mawinter69 commented Jun 22, 2023

replace old style buttons with new jenkins-button

Before:
image
image

After:
image
image

Testing done

Manual testing
create password credential and update it
create ssh username with private key credential and update it
Verified that things still work as expected

Proposed changelog entries

  • Update appearance of buttons for password and secretTextarea matching 'jenkins-button's.

Proposed upgrade guidelines

N/A

Submitter checklist

Preview Give feedback

Desired reviewers

@mention

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

Maintainer checklist

Preview Give feedback

@NotMyFault NotMyFault requested a review from a team June 26, 2023 07:40
@NotMyFault NotMyFault added web-ui The PR includes WebUI changes which may need special expertise rfe For changelog: Minor enhancement. use `major-rfe` for changes to be highlighted needs-security-review Awaiting review by a security team member labels Jun 26, 2023
Copy link
Contributor

@Wadeck Wadeck left a comment

Choose a reason for hiding this comment

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

👍 Fine security wise

@Wadeck Wadeck added security-approved @jenkinsci/core-security-review reviewed this PR for security issues and removed needs-security-review Awaiting review by a security team member labels Jun 26, 2023
Copy link
Member

@NotMyFault NotMyFault left a comment

Choose a reason for hiding this comment

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

Thanks!

@NotMyFault NotMyFault requested a review from a team June 26, 2023 16:35
@NotMyFault
Copy link
Member

/label ready-for-merge


This PR is now ready for merge. We will merge it after ~24 hours if there is no negative feedback.
Please see the merge process documentation for more information about the merge process.
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 Jun 29, 2023
@NotMyFault NotMyFault merged commit 29f59d0 into jenkinsci:master Jun 30, 2023
@NotMyFault NotMyFault changed the title update buttons for password and secretTextarea Update appearance of buttons for password and secretTextarea matching 'jenkins-button's Jun 30, 2023
MarkEWaite added a commit to MarkEWaite/docker-commons-plugin that referenced this pull request Jul 8, 2023
Jenkins 2.412 and earlier use a text area for the client key.

Jenkins 2.413 and newer use an input field for the client key.

Jenkins 2.413 looks much nicer with a button that is consistent with
the other buttons used in the Jenkins pages.

jenkinsci/jenkins#8179 is the Jenkins core pull
request that implemented the change in Jenkins 2.413.  Other plugins
that use HTMLUnit to enter a value for the secret text may need a
similar change.
@MarkEWaite
Copy link
Contributor

MarkEWaite commented Jul 8, 2023

A minor test change was needed in the docker-commons plugin as a result of the change from textarea to input for the secret text field. Change is in:

Other plugins that use HTMLUnit to create credentials may need a similar change.

I'm a little perplexed that SecretTextAreaTest in Jenkins core is not affected by the same change, but I assume it is not affected because the secret button that is being created in that test is using the old secrets button instead of the newer and better looking secrets button.

@mawinter69 does that make sense to you, or have I misunderstood something?

I didn't find any other matches for plugins using HTMLUnit to create credentials. It seems much easier to me to create test credentials from Java objects rather than using the web interface to do it.

@mawinter69
Copy link
Contributor Author

The change in core also changed in the test the way the button is selected and clicked. The same problem is in docker-commons. The button is not clicked (it looks for an input but is now a button) that is why the content is still in an input and not a textarea.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ready-for-merge The PR is ready to go, and it will be merged soon if there is no negative feedback rfe For changelog: Minor enhancement. use `major-rfe` for changes to be highlighted security-approved @jenkinsci/core-security-review reviewed this PR for security issues 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.

6 participants