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

Use new dialog design for adding credentials #500

Merged
merged 6 commits into from
Mar 1, 2024

Conversation

zbynek
Copy link
Contributor

@zbynek zbynek commented Jan 6, 2024

Uses a nicer dialog (no need to scroll to get OK button, works with dark theme, ...), reducing dependency on YUI framework.

Testing done

Checked that credentials can be added (username and password) when running hpi:run

Screenshot

image

Submitter checklist

@zbynek zbynek requested a review from a team as a code owner January 6, 2024 14:13
pom.xml Outdated Show resolved Hide resolved
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.

nice! (not tested locally, code and screenshots look good)

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.

Looks good in mvn hpi:run :)

@zbynek
Copy link
Contributor Author

zbynek commented Jan 16, 2024

@jtnord will you have time to review/merge this?

<h3>${%Add Credentials}</h3>
<form action="${it.url}/addCredentials" method="POST" id="credentials-dialog-form">
<div>
<form action="${it.url}/addCredentials" method="POST" id="credentials-dialog-form" data-title="${it.description}: ${it.displayName}" data-add="${%Add}">

Choose a reason for hiding this comment

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

I think it would be better to have the Add Credentials in the title as well
e.g. Add Credentials (Provider: Jenkins)

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Good idea, but I'd suggest to do that in a follow-up PR and keep this one just about the design.

@timja
Copy link
Member

timja commented Feb 28, 2024

@zbynek looks like some tests are failing

@zbynek
Copy link
Contributor Author

zbynek commented Feb 29, 2024

Should be passing now. The main issue was that HtmlUnit got updated and the tests ran into HtmlUnit/htmlunit#740

@timja
Copy link
Member

timja commented Feb 29, 2024

@jglick possible to merge please?

@timja
Copy link
Member

timja commented Mar 1, 2024

@jglick addressed review comment

@jglick jglick merged commit f395fdf into jenkinsci:master Mar 1, 2024
14 of 15 checks passed
@zbynek zbynek deleted the dialog-update branch March 2, 2024 14:01
@jglick
Copy link
Member

jglick commented Mar 8, 2024

@zbynek @timja I think this broke ATH. For example https://ci.jenkins.io/job/Core/job/acceptance-test-harness/job/master/1063/testReport/plugins/SshSlavesPluginTest/lts_linux_jdk11_firefox_split8___connectWithPassword/

org.openqa.selenium.NoSuchElementException: Unable to locate By.cssSelector: #credentialsDialog in http://127.0.0.1:38331/computer/createItem
	at org.jenkinsci.test.acceptance.po.CapybaraPortingLayerImpl.find(CapybaraPortingLayerImpl.java:197)
	at org.jenkinsci.test.acceptance.plugins.credentials.Credential.add(Credential.java:30)
	at org.jenkinsci.test.acceptance.plugins.ssh_slaves.SshSlaveLauncher.pwdCredentials(SshSlaveLauncher.java:76)
	at plugins.SshSlavesPluginTest.connectWithPassword(SshSlavesPluginTest.java:165)

@zbynek
Copy link
Contributor Author

zbynek commented Mar 9, 2024

@jglick thanks for pointing that out, fixed in jenkinsci/acceptance-test-harness#1497.

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

Successfully merging this pull request may close these issues.

5 participants