-
Notifications
You must be signed in to change notification settings - Fork 250
New credentials dialog #992
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
Draft
timja
wants to merge
94
commits into
jenkinsci:master
Choose a base branch
from
timja:new-credentials-dialog
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Draft
Changes from all commits
Commits
Show all changes
94 commits
Select commit
Hold shift + click to select a range
852e45a
Use card layout for credentials tables
timja b633bf9
Refine card UI
janfaracik 27276a3
Adjust colors + padding
janfaracik 10b4636
Update domain items
janfaracik 8d9e091
Add Configure button
janfaracik 9302a64
Add credential count
janfaracik 2f8f1dd
Start migrating home page
janfaracik e30d6ed
WIP homepage cards
janfaracik a06256d
Update credentials.css
janfaracik 08fd291
Fixes
janfaracik 600c93d
Refine further
janfaracik 1a1805b
Update credentials.css
janfaracik 4a94613
Add missing check
timja 4bcb15b
Remove no longer needed brackets
timja b6353cd
Fix non editable stores showing actions
timja 850049f
Add empty state support
timja 2947831
Remove unneeded brackets around description
timja ce2e83f
Drop the .
janfaracik a5ed6be
Switch to adjunct for settings-subpage compat
timja a41d5cf
Fix text wrap, fix icon shrinking + alignment
janfaracik 3b0cb04
Fix description wrap
janfaracik 02d734e
Pull out Stores into own Jelly file
janfaracik 0123378
Use symbol-business-outline plugin-ionicons-api
janfaracik f9b420a
Fix page description spacing
janfaracik 18109b0
Use dialog for deleting domains
janfaracik 8df7aa8
Use dialog for deleting credentials
janfaracik 21f5196
Update index.jelly
janfaracik b8944f9
Fix ATH
timja 4645df8
Basic new credentials dialog
timja 0ccee24
Working
timja d3a89e3
Init
janfaracik 04ff0d9
Almost working
janfaracik 245d836
Push
janfaracik a44f0f3
Improve info
janfaracik e1858f3
Move apply sub tree
timja c89f3bd
Add non functional back button
janfaracik 84650ef
Fix back button, reduce padding
janfaracik afdf656
Fix behavior loading
janfaracik fba7ea0
Ensure only writable stores are used
timja c642caa
Fix not all stores showing
janfaracik 56fc28e
Fixups
timja 38491b1
Merge branch 'new-credentials-wizard' into new-credentials-dialog
timja 26bee01
Hide empty descriptions
timja 17775bf
Don't repeat Add to as its in the button label
timja 8db3ac8
Add description to overflow
timja b2e16f1
Remove unneeded adjunct
timja 0fcbe92
Fix dialogs since credentials added
timja f2ad90f
Use dialog for domains
janfaracik 3ef9688
Hacky sticky bottom bar
janfaracik 04dad00
Merge branch 'master' into new-credentials-dialog
timja 8482a8c
Fix merge
timja 3587fb2
Fix merge 2
timja 662de8e
Discard changes to src/main/resources/lib/credentials/store.jelly
timja a7c87bf
Update dialog.jelly
janfaracik 2db0e2d
Remove unused newCredentials
timja 2cbd2b6
Better param name
timja d7c1500
Update card.css
janfaracik eb8ec31
Return to correct view
timja f9f5d5d
Fix title on c:select
timja 1336234
Mostly implement c:select
timja 6a068f6
Mostly there with c:select
timja bc6cea6
Refine, fix sticky bottom app bar
janfaracik 02ba7e3
Rename classes based on my taste in music, disable next button if no …
janfaracik 6737634
Make c:select refill only
timja 6608c61
WIP HtmlUnit
timja e6908be
Update select.js
janfaracik 7c86666
Test now working a little more - failing on action
janfaracik 8498ed0
Further
timja 951099e
Some progress...
timja 88156c8
Fix first test
timja e75bf3e
Simplify
timja 763ccf2
Progress
timja 81a7f5b
Getting there
timja c93c995
Update index.jelly
janfaracik c1510d4
Fix tests
timja 9a64610
Tidy up notice link, add permission check for add credentials
janfaracik ce76505
Merge branch 'master' into new-credentials-dialog
timja d4fc4d8
Add empty state add for main page
timja 658fbbf
Fix appearance of dropdowns
janfaracik 0474461
Use jenkins-button for notice
janfaracik fff6ff2
Fix description wrap
janfaracik b126aa8
Adjust content, simplify domains
janfaracik 28c48d6
Fix tests
janfaracik 4352625
Fix name tests
janfaracik b9065c9
Remove getModifiableStoreActions
janfaracik 14d1765
Make store icon non clickable / focusable
timja d409620
Fix folder credentials provider
timja 2b9f561
Fix c:select
timja e33fa7b
Fix c:select overflow menu
timja c07aa45
Merge branch 'master' into pr/992
janfaracik 179773d
Merge branch 'master' into new-credentials-dialog
timja 997bfa0
Revert baseline change
timja 4fe9e4e
Tests pass on this baseline
timja 172b32e
Improve Behaviour handling
timja File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
47 changes: 0 additions & 47 deletions
47
...bees/plugins/credentials/CredentialsSelectHelper/WrappedCredentialsStore/credential.jelly
This file was deleted.
Oops, something went wrong.
23 changes: 0 additions & 23 deletions
23
...gins/credentials/CredentialsSelectHelper/WrappedCredentialsStore/credential_fr.properties
This file was deleted.
Oops, something went wrong.
23 changes: 0 additions & 23 deletions
23
...gins/credentials/CredentialsSelectHelper/WrappedCredentialsStore/credential_it.properties
This file was deleted.
Oops, something went wrong.
23 changes: 0 additions & 23 deletions
23
...gins/credentials/CredentialsSelectHelper/WrappedCredentialsStore/credential_ja.properties
This file was deleted.
Oops, something went wrong.
25 changes: 0 additions & 25 deletions
25
.../plugins/credentials/CredentialsSelectHelper/WrappedCredentialsStore/dialog_fr.properties
This file was deleted.
Oops, something went wrong.
26 changes: 0 additions & 26 deletions
26
.../plugins/credentials/CredentialsSelectHelper/WrappedCredentialsStore/dialog_it.properties
This file was deleted.
Oops, something went wrong.
25 changes: 0 additions & 25 deletions
25
.../plugins/credentials/CredentialsSelectHelper/WrappedCredentialsStore/dialog_ja.properties
This file was deleted.
Oops, something went wrong.
72 changes: 72 additions & 0 deletions
72
...urces/com/cloudbees/plugins/credentials/CredentialsStoreAction/DomainWrapper/dialog.jelly
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,72 @@ | ||
| <?xml version="1.0" encoding="utf-8"?> | ||
| <!-- | ||
| ~ The MIT License | ||
| ~ | ||
| ~ Copyright (c) 2011-2016, CloudBees, Inc., Stephen Connolly. | ||
| ~ | ||
| ~ Permission is hereby granted, free of charge, to any person obtaining a copy | ||
| ~ of this software and associated documentation files (the "Software"), to deal | ||
| ~ in the Software without restriction, including without limitation the rights | ||
| ~ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | ||
| ~ copies of the Software, and to permit persons to whom the Software is | ||
| ~ furnished to do so, subject to the following conditions: | ||
| ~ | ||
| ~ The above copyright notice and this permission notice shall be included in | ||
| ~ all copies or substantial portions of the Software. | ||
| ~ | ||
| ~ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR | ||
| ~ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, | ||
| ~ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE | ||
| ~ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER | ||
| ~ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, | ||
| ~ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN | ||
| ~ THE SOFTWARE. | ||
| --> | ||
| <?jelly escape-by-default='true'?> | ||
| <j:jelly xmlns:j="jelly:core" xmlns:st="jelly:stapler" xmlns:l="/lib/layout" xmlns:f="/lib/form"> | ||
| <st:setHeader name="X-Wizard-Title" value="${%Add Credentials}" /> | ||
|
|
||
| <l:ajax> | ||
|
|
||
| <j:set var="relativePath" value="${request2.getParameter('relativePath')}"/> | ||
|
|
||
| <j:choose> | ||
| <j:when test="${request2.getParameter('refill') == 'true'}"> | ||
| <j:set var="query" value="?refill=true&relativePath=${relativePath}"/> | ||
| </j:when> | ||
| <j:otherwise> | ||
| <j:set var="query" value="?relativePath=${relativePath}"/> | ||
| </j:otherwise> | ||
| </j:choose> | ||
|
|
||
| <form action="${relativePath}dialog2${query}" method="GET" name="dialog"> | ||
| <fieldset class="jenkins-!-display-contents"> | ||
| <div> | ||
| <legend class="jenkins-form-label">${%Select a type of credential}</legend> | ||
| <div class="jenkins-choice-list"> | ||
| <j:forEach var="kind" items="${it.store.credentialsDescriptors}"> | ||
| <div class="jenkins-choice-list__item"> | ||
| <label> | ||
| <div class="jenkins-choice-list__item__icon"> | ||
| <l:icon src="${kind.iconClassName}" /> | ||
| </div> | ||
| <input type="radio" name="kind" value="${kind.id}" /> | ||
| <div class="jenkins-choice-list__item__label"> | ||
| ${kind.displayName} | ||
| </div> | ||
| <j:if test="${kind.description != null}"> | ||
| <div class="jenkins-choice-list__item__description">${kind.description}</div> | ||
| </j:if> | ||
| </label> | ||
| </div> | ||
| </j:forEach> | ||
| </div> | ||
| </div> | ||
| </fieldset> | ||
|
|
||
| <f:bottomButtonBar borderless="true"> | ||
| <button id="cr-dialog-next" class="jenkins-button jenkins-button--primary cr-bottom-button" disabled="true">${%Next}</button> | ||
| </f:bottomButtonBar> | ||
| </form> | ||
| </l:ajax> | ||
| </j:jelly> |
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
Something isn't right here with nested folders.
It's showing 2 global domains: