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

Make toggleLogKeep button primary #8178

Closed
wants to merge 1 commit into from

Conversation

lucaswerkmeister
Copy link

@lucaswerkmeister lucaswerkmeister commented Jun 22, 2023

This matches the appearance in earlier Jenkins versions, and makes the button more visible. The button doesn’t have any associated more primary button, nor much else to draw attention to it (it’s just kind of floating on the page).

No associated Jira issue.

Testing done

I added the jenkins-button--primary class in dev tools, on a random build in Wikimedia’s CI infrastructure.
Before:
image
After:
image

(I’m just assuming that primary="true" will result in that class being added, I haven’t set up a local test environment.)

Proposed changelog entries

  • Style the "Keep this build forever" and "Don't keep this build forever" buttons as primary.

Proposed upgrade guidelines

N/A

Submitter checklist

Preview Give feedback

Desired reviewers

CC @janfaracik, who had added the primary="false" in b7b37d5 (part of #7203) – I’m not sure if it was intentional or just part of a large-scale update of all sorts of buttons. Also CC @hashar who helped digging up the relevant code :)

Before the changes are marked as ready-for-merge:

Maintainer checklist

Preview Give feedback

This matches the appearance in earlier Jenkins versions, and makes the
button more visible. The button doesn’t have any associated more primary
button, nor much else to draw attention to it (it’s just kind of
floating on the page).
@welcome
Copy link

welcome bot commented Jun 22, 2023

Yay, your first pull request towards Jenkins core was created successfully! Thank you so much!

A contributor will provide feedback soon. Meanwhile, you can join the chats and community forums to connect with other Jenkins users, developers, and maintainers.

@hashar
Copy link

hashar commented Jun 22, 2023

The keep this build forever button becoming light gray was definitely surprising. For additional context we have upgraded our instance from 2.375.4 to 2.401.1 last week hence why we haven't noticed earlier.

As mentioned in the PR, I believe the change made by b7b37d5 is a mistake, given #7203 has 14 commits and probably involves a lot of search and replaces, I guess it was easy to miss.

@NotMyFault NotMyFault added web-ui The PR includes WebUI changes which may need special expertise rfe For changelog: Minor enhancement. use `major-rfe` for changes to be highlighted labels Jun 22, 2023
@NotMyFault NotMyFault requested a review from a team June 22, 2023 21:18
@timja
Copy link
Member

timja commented Jun 22, 2023

It was intentionally changed here:
#7203 (comment)

I think there's a lack of contrast on the default theme for non primary buttons that is making it more of an issue.

It's not really a primary action as-in that's what people go to the page to do, so we don't really want the users eye drawn to it when they load the page. Looking at the page the primary button really pulls you to look at it.

@janfaracik
Copy link
Contributor

It was intentionally changed here:

#7203 (comment)

I think there's a lack of contrast on the default theme for non primary buttons that is making it more of an issue.

It's not really a primary action as-in that's what people go to the page to do, so we don't really want the users eye drawn to it when they load the page. Looking at the page the primary button really pulls you to look at it.

+1 to this really. I’d avoid using the primary class for this button as it’s a rarely used action. The secondary buttons do need some contrast work.

@timja timja added the proposed-for-close There is no consensus about feasibility of this PR, and maintainers do not see a way forward for it label Jun 24, 2023
@NotMyFault
Copy link
Member

Thanks for the PR @lucaswerkmeister, but I'm with Jan and Tim, the change proposed wouldn't make a good addition.

@NotMyFault NotMyFault closed this Jun 26, 2023
@lucaswerkmeister lucaswerkmeister deleted the patch-2 branch June 28, 2023 18:20
@lucaswerkmeister
Copy link
Author

I think there's a lack of contrast on the default theme for non primary buttons that is making it more of an issue.

Then I look forward to that getting fixed more generally.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
proposed-for-close There is no consensus about feasibility of this PR, and maintainers do not see a way forward for it rfe For changelog: Minor enhancement. use `major-rfe` for changes to be highlighted web-ui The PR includes WebUI changes which may need special expertise
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants