-
-
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
[JENKINS-72020] Restore ability to reorder clouds #8492
[JENKINS-72020] Restore ability to reorder clouds #8492
Conversation
Adding back controls to reorder clouds. Since clouds order is taken into account for node provisioning, users should be able to reorder them as needed.
<a href="move" class="jenkins-table__button"> | ||
<input type="hidden" name="name" value="${cloud.name}"/> | ||
<j:if test="${not status.first}"> | ||
<f:submit name="up" value="" icon="symbol-chevron-up"/> |
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.
I think a tertiary
or button with a symbol would look less intrusive, especially if you have multiple clouds set up: https://weekly.ci.jenkins.io/design-library/Buttons/
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.
I updated the PR with tertiary buttons. Let me know what you think!
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.
Thanks!
This comment was marked as outdated.
This comment was marked as outdated.
(Still not a huge fan of the UX, I've pulled it locally and when I get a chance in the next day or two hopefully I can propose something better) |
Thanks @timja ! Let me know if you find something better. |
This comment was marked as outdated.
This comment was marked as outdated.
core/src/main/resources/jenkins/agents/CloudSet/reorder.properties
Outdated
Show resolved
Hide resolved
Getting further, I included your first option and a save button. Still not fully satisfied with the save usability though. |
you could probably call submit the form async in some way in the on complete, or have the save button made visible after re-arranging? Not the best as it seems a bit weird to have a save button on this page |
Only display order column when admin
<thead> | ||
<tr> | ||
<l:isAdmin> | ||
<th class="jenkins-table__cell--tight">Order</th> |
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.
Looking at the video this seems a bit mis-aligned, we could possibly drop the label in favour of a tooltip on the handle?
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.
Should be slightly better now.
I prefer the version where the handle is on the left.
I think once cloud implementations catch up with providing proper icons this will improve the page usability. Also considered making the icon the drag & drop handle (like you would in a file explorer) but doesn't seem trivial with current dd component. |
It's not really about catching up it's licensing, at least with Azure it's damn hard to get the license -.-. |
I also prefer it on the left, but double icons doesn't feel right to me |
I merged the two columns, the cloud icon can now be used as a drag-and-drop handle. |
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.
Works for me
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.
🚀
/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! |
@Wadeck would the security team like to review this before merge? |
@MarkEWaite Yes please, I think we have forgotten to add a comment / label at this point :( |
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.
Requesting change for the vulnerability.
As a general note, it's not obvious why cloud order matters (and in the current iteration, how to change it, as noted in a line comment). Ideally above or below the clouds list, the impact of order on behavior should be explained.
<div class="jenkins-table__cell__button-wrapper dd-handle"> | ||
<l:icon src="${cloud.iconClassName}" tooltip="${cloud.iconAltText}"/> | ||
</div> |
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.
IMO: This was nicer as in the video, it's too difficult to discover currently.
/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! |
This was discussed at the UX sig yesterday, https://docs.google.com/document/d/1QttPwdimNP_120JukigKsRuBvMr34KZhVfsbgq1HFLM/edit?pli=1 Christina is going to try come up with a design for a next iteration. |
Should this be backported into the 2.426.1 LTS release? |
Yes makes sense |
* [JENKINS-72020] Reorder clouds Adding back controls to reorder clouds. Since clouds order is taken into account for node provisioning, users should be able to reorder them as needed. * Use tertiary buttons * Separate screen for reordering * Include reordering in the cloud list directly (thanks @timja) * Show the save button after the first reordering * Separate JS Only display order column when admin * Fix reviews * Remove unused string * Put drag-and-drop handle in the cloud icon column * Add missing permission check * Add a small blurb to clarify what cloud order is used for. (cherry picked from commit 16bca2e)
Adding back controls to reorder clouds.
Since clouds order is taken into account for node provisioning, users should be able to reorder them as needed.
Enregistrement.de.l.ecran.2023-10-09.a.18.06.15.mov
See JENKINS-72020.
Testing done
Proposed changelog entries
Proposed upgrade guidelines
N/A
Submitter checklist
Desired reviewers
@mention
Before the changes are marked as
ready-for-merge
:Maintainer checklist