Skip to content

Conversation

@NotMyFault
Copy link
Member

The change proposed moves the "copy to clipboard" button above the output box, matching with other buttons' locations.
Additionally, I've changed the generation button from YUI to make use the Jenkins button layout:

Before:
Screenshot 2024-03-10 at 09 51 54

After:
Screenshot 2024-03-10 at 09 51 09

@NotMyFault NotMyFault requested a review from a team as a code owner March 10, 2024 08:52
Copy link
Member

@jtnord jtnord left a comment

Choose a reason for hiding this comment

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

aside from the inline comments the buttons are not vertically aligned - the copy button is quite a bit higher than the generate button.
This could be an issue in the Jenkins styles, or in the layout used here.

I am +0 on the moving of the button. In one hand it means once you know the flow there is less need to move the mouse (or tab), on the other your eyes would normally click the button, then scan the text so your eyes would be at the bottom of the textarea.

data-url="${rootURL}/${it.GENERATE_URL}"/>
<button class="jenkins-button jenkins-button--primary" id="generatePipelineScript"
data-url="${rootURL}/${it.GENERATE_URL}">${%Generate Pipeline Script}</button>
<nbsp/>
Copy link
Member

Choose a reason for hiding this comment

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

? if we need to wrap this button and the copy button does the UI not have more issues than this?
Does this even need a space, as the margin-left has been specified?

<button class="jenkins-button jenkins-button--primary" id="generatePipelineScript"
data-url="${rootURL}/${it.GENERATE_URL}">${%Generate Pipeline Script}</button>
<nbsp/>
<l:copyButton text="" tooltip="${%Click to copy}" clazz="jenkins-!-margin-left-2"/>
Copy link
Member

Choose a reason for hiding this comment

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

this is now shown when there is nothing to copy - which seems like a UX issue (either the button should be hidden as now until the script has been generated, or the button should be disabled until there is something to copy)?

@jtnord jtnord requested a review from a team March 11, 2024 12:06
@jglick
Copy link
Member

jglick commented Apr 10, 2025

(merge conflicts)

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.

3 participants