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

Remove 'Disable project' button from project view #9287

Conversation

janfaracik
Copy link
Contributor

@janfaracik janfaracik commented May 18, 2024

Reverts the revert in #9272

Fix for the workflow-job-plugin test failure here jenkinsci/workflow-job-plugin#437


Discussed briefly in the last UX Sig, the 'Disable project' (and 'Add/edit description') button take up a lot of vertical space (roughly 100px) and this forces useful information, such as stage view plugin etc down.

My proposal would be just to remove the 'Disable project' button altogether and instead have users rely on the configure screen to disable projects.

Before
image

After
image

Testing done

  • Disable button has been removed, still possible to reenable a project from that view however

Proposed changelog entries

  • Remove 'Disable project' button from project view.

Proposed upgrade guidelines

N/A

Submitter checklist

Desired reviewers

@jenkinsci/sig-ux

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

Maintainer checklist

@timja timja requested a review from NotMyFault May 21, 2024 14:50
@timja timja added the rfe For changelog: Minor enhancement. use `major-rfe` for changes to be highlighted label May 21, 2024
@timja
Copy link
Member

timja commented May 26, 2024

/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!

@comment-ops-bot comment-ops-bot bot added the ready-for-merge The PR is ready to go, and it will be merged soon if there is no negative feedback label May 26, 2024
@NotMyFault NotMyFault merged commit 69b320f into jenkinsci:master May 27, 2024
16 checks passed
@0023-119
Copy link

I hope the community will make you bring that button back, because this change is truly horrible and the supposed few pixel gains are negligible on current displays.

@HeikoNardmann
Copy link

HeikoNardmann commented May 31, 2024

I hope the community will make you bring that button back, because this change is truly horrible and the supposed few pixel gains are negligible on current displays.

I agree. With the same arguments you could state that "Add description" should vanish as well.

I'd prefer to use a different layout with one column with infos to the left and one with buttons to the right.

Or move "Disable Project" to the left to the other links as well.

@MarkEWaite
Copy link
Contributor

I hope the community will make you bring that button back, because this change is truly horrible and the supposed few pixel gains are negligible on current displays.

My experience is in the other direction. I use a Chromebook laptop and vertical space is quite precious when I'm using that laptop. Removing the wasted vertical space gives me a better chance that the actions I frequently perform will not require that I scroll the screen downward. This change is expected to save me multiple clicks and scrolling to see useful information. In those rare cases where I want to disable a job, I click the app bar and disable it.

@timja
Copy link
Member

timja commented May 31, 2024

I click the app bar and disable it.

This moves the disable into the configure job page as its expected to be a rare action and its already available there. Enable has been left on the page as it will be more convenient to quickly enable something and it shouldn't often show.

@0023-119
Copy link

Well it's half of 2024, this button has been there for the last 15 years, back in time when 1280x800 laptops were a norm and yet it is now - in the era of 4K screens everywhere - that you found this particular button space-wasting?
Do you guys even have anyone familiar with human-machine interaction stuff in the team?

Make it in line with "add description" - which of the two is definitely more useless and more easily movable to settings - or make it an option for the user to decide.

Removing it completely is the laziest and worst decision possible.

@gwolf2u
Copy link

gwolf2u commented May 31, 2024

I would rather have it there since it doesn't take that much space anyway
Was easier (in my case) to enable/disable projects on the fly just by clicking the project name not to go to configuration and click save
Was on button click, now is two
Anyway, a redesign of that page would be more useful I'd say

@quarkcz
Copy link

quarkcz commented Jun 12, 2024

Why in the h..l did you remove this button from project screen??!! Why do you think it's such a rare action?

It's so much difficult now to disable project. Please, bring it back or at least make a settings item to turn it on.

Sometimes, I need to temporarily disable >5 projects and then bring them back. You made this much more difficult and time consuming. And for what reson - for 100px???

Make it smaller, move it anywhere on the project screen, but don't force me to go to project settings to disable it.

@uhafner
Copy link
Member

uhafner commented Jun 18, 2024

@quarkcz @0023-119 @gwolf2u

This PR is merged so it makes no sense to discuss its contents anymore here. If you want to get a disable project toggle button, then please create a followup issue in Jira (and reference this PR). From what I understand the idea is to create an application bar on every Jenkins page where all controls, menus and buttons will appear. Maybe it makes sense to put such a toggle bar into this application bar. Then those controls are visible but take no additional space and help to remove the clutter in Jenkins UI. (The same is true for the edit job description button: it is used by a handful of people only but clutters the UI)

@daniel-beck
Copy link
Member

edit job description button: it is used by a handful of people only

citation needed

@jonesbusy
Copy link
Contributor

I've open a PR for the folder plugin to also remove the disable button for multibranch: jenkinsci/cloudbees-folder-plugin#419

It looks strange to me to have those button for multibranch but not other branch types. I personally never used such button and would like to get rid of them everywhere.

Not sure if there should be a way to restore them like https://plugins.jenkins.io/disable-job-button/

@daniel-beck
Copy link
Member

I personally never

It's the only interactive UI element I use regularly on trusted.ci (besides "Build Now" I guess). Now what?

@jonesbusy
Copy link
Contributor

Not sure to get it, but I'm raising the point that removing the Disable button for all jobs exception multibranch is an inconsistence for me

@daniel-beck
Copy link
Member

@jonesbusy I do not disagree, it should be consistent. So if it's gone from core, it should be gone from plugins.

I point out that we don't have great ways to determine what features/UI elements are used and what aren't from the user base, and unless we define and want to encourage best practices, it's all just guesses, and we should be careful when extrapolating from oneself.

@timja timja deleted the revert-9272-revert-9202-remove-disable-project branch August 22, 2024 08:14
@mazer1310
Copy link

Count me as one of the people impacted by this. I frequently have to disable dozens of jobs at the same time (for instance, when working on bulk configuration changes, bulk runner node changes) and having this button on the main job page is critical for being able to do so efficiently.

Fortunately, I found this Jenkins community discussion: https://community.jenkins.io/t/lost-the-disable-button/18134
which includes a link to a plugin that restores the button: https://plugins.jenkins.io/disable-job-button/
and that has allowed me to get things back as I need them.

@0023-119

This comment was marked as off-topic.

@caichao1103
Copy link

Can we bring the button back. We have Ops role and Admin role. Ops have the rights to run/enable/disable jobs but have not the right to configure the job.

@jonesbusy
Copy link
Contributor

FYI : https://plugins.jenkins.io/disable-job-button/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ready-for-merge The PR is ready to go, and it will be merged soon if there is no negative feedback rfe For changelog: Minor enhancement. use `major-rfe` for changes to be highlighted
Projects
None yet
Development

Successfully merging this pull request may close these issues.