Bugzilla 3.2 Commit Button Userscript

Last night, Mozilla’s Bugzilla bug tracker was updated to Bugzilla 3.2 with a lot of UI changes, some of which are improvements, others are not.

One of the things that struck me as weird is how all flags, resolutions, etc. moved to the top of the page, while the “commit” button remained at the bottom, by the comment field. That means to resolve a bug, you need to (including the additional click that is now needed to pick something from the resolutions dropdown list):

  • Click on the “status” dropdown list
  • Click on RESOLVED
  • Scroll all the way down the page
  • Click on Commit

So I decided to throw a quick Greasemonkey user script together to put an additional commit button to the top of the page (just so we can drop the scrolling part), like this:

And here’s the script for your enjoyment:
bugzilla-commit.user.js (click to install)

(Please note, it remotely imports jquery from jquery’s google code repository; that’s probably something that should change in version 0.2 ;) ).

Update: It seems, this patch has been upstreamed and deployed at least on the Mozilla bugzilla instance. That makes this user script obsolete. In a good way :)



7 Responses to “Bugzilla 3.2 Commit Button Userscript”

  1. Why use a script when you could just focus a text field and press enter? I’m sorry if it’s not as sexy as a script but a script is just overkill since there’s a built-in solution. I use the enter key often with the bug search page because I have the page zoomed in enough that the search button is off the screen to the right.

  2. Mainly because almost no fields in the new Bugzilla are textfields anymore. The only one that would work for this is “whiteboard”; all others, including “keywords” have special JavaScript magic attached to them or became dropdown lists in the new UI.

  3. You can also change your preferences to have the comment field and thus the commit button to come before the other comments. It still comes after the attachments though.

    To go along with this I flipped the order of the comments to have the newest comment be the first shown. I’ll have to see how that works for me.

  4. Interesting, thanks. I will look into that.

  5. I agree 100% (in fact we had already done this for our version of Bugzilla at NASA), so … https://bugzilla.mozilla.org/show_bug.cgi?id=344559

    Thanks for the feedback!

  6. Funny: The change was deployed to Mozilla’s instance as well. For a little while I had two commit buttons up there now.

    Guess this userscript is obsolete now. But that’s a good thing when improvements are up-streamed!

  7. [...] This user script of mine has also been deprecated by the fix introduced with bug 452734 — we now have a convenient [...]