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

Move copy button and update generate button #867

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
2 participants