Giter VIP home page Giter VIP logo

bugzillajs's Introduction

DOWNLOAD THE ADD-ON

https://addons.mozilla.org/firefox/addon/bugzillajs/

DEVELOPING THE ADD-ON

BugzillaJS is in the process of being converted to a cross-browser web extension, and can be installed like this:

git clone [email protected]:gkoberger/BugzillaJS.git bugzillajs
cd bugzillajs
web-ext run

This should open up an install button in Firefox.

To package for distribution, simply run make

TESTING THE ADD-ON

Once you have it installed, check out the following URL to see it in action:

https://bugzilla.mozilla.org/show_bug.cgi?id=574290

FEATURES

This extension was converted to an web extension and is missing some of the previous features. If you are interested in these features you can port them from the 'legacy' directory and submit a PR.

You can turn features on and off by clicking the "BugzillaJS Preferences" link at the top and bottom of every page. You need to refresh the page to see them come into effect.

Keyboard Shortcuts

To view all keyboard shortcuts, type "?" on any page.

  • (Legacy) Enable keyboard shortcuts

Improve Comments

Make the comments on bugs more readable.

  • Highlight reporter and assignee comments
  • Add scrollbar to overflowing comments
  • Hide the first comment if empty

Show inline media

Show images and other types of content right in the comments.

  • Display images and attachments as an inline gallery
  • Use lightbox for images
  • Show GitHub logs inline
  • Show gravatars in comments

Improve Bugs

These pertain to editing bugs.

  • Style the comments like Github
  • Remove flags, status and blocking fields
  • Remove access keys
  • Don't guess OS and hardware
  • Add a "new" link for dependent and blocking fields
  • Add a "browse" link for component fields
  • (Legacy) Show inline Treeherder results

Listing Pages

These modify parts of the pages with lists of bugs.

  • Option to open all bugs in tabs
  • (Legacy) Agile Backlog

Miscellaneous

These are other tidbits that do not fit into other categories.

  • Makes saved searches into a dropdown (requires Mozilla skin)

CONTRIBUTE

If you have an idea for an extra feature, either ask me to implement it or you can implement it yourself and submit a patch. I'll do a better job in the future of cleaning up the code and possibly making it API-like.

Bugzilla Installation URLs

To test patterns/globs against installation URLs you can visit https://www.bugzilla.org/installation-list/ and run:

new Set([...document.querySelectorAll("a[href]")].filter(a => a.textContent.trim() == "Bugzilla").map(a => a.href).filter(url => !url.includes("www.bugzilla.org")).filter(url => !url.match(/(.*bugz.*|.*bugs.*|.*Bugs.*|.*bz.*)/)))

TROUBLESHOOTING

  • It conflicts with other Bugzilla extensions and Userscripts.

IF THERE IS A CONFLICT WITH ANOTHER SCRIPT

Simply disabling the feature in the Bugzilla Preferences should fix it.

STILL HAVE ISSUES?

Post an issue, or contact me at gkoberger [a] gkoberger [dot] com

bugzillajs's People

Contributors

cvan avatar gkoberger avatar groovecoder avatar lonnen avatar mnoorenberghe avatar mrbkap avatar rik avatar wraithan avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

bugzillajs's Issues

nice date format is either wrong or displays "NaN years ago"

If I keep the "Turn timestamps into a nice looking date" on , I either get messages like "2 months ago" for messages only a few days old or it displays "NaN years ago"

My timezone preference in paris is Europe/Paris therefore it displays timestamp such as:
2011-07-12 19:55:49 CEST

My wild guess is that the parsing method for timestamp is not working for non-US timezone

No preferences to add Bugzilla installation URL

Hi Gregory,

I've just found your BugzillaJS Firefox add-on (v1.3.5) with Firefox v8.0.1 and tried it with Mozilla's Bugzilla installation. It's awesome.

We've got our own in-house Bugzilla installation that would be immeasurably enhanced by your add-on.

The 'About' description says that this add-on works with any Bugzilla Installation... However, the add-on does not present me with any preferences! I can't figure out how to add my own URL.

Can you help?

thanking you in advance,

Charles Williams

Add an "open in tabs" link to bug lists

Firefox's bookmarks have an "Open all in tabs" link which I've never actually clicked but I think would be handy for bugzilla. We have those "CSV | Feed | iCalendar | ..." links at the bottom of bug lists. A link would totally fit in there.

Also, iCalendar? wtf.

Simpler page title

The only thing that I miss from Bugzilla Tweaks, from this otherwise awesome addon, is the page title that skips the "Bug" part and starts the title from the bug number, instead. In a browser session crowded with tabs this is a great help, when glancing at a tab in the background.

"It doesn't work" :)

I can see the BugzillaJS preferences menu but the comments are not "enhanced". I've tested with various version of Firefox so I think something changed in Bugzilla markup.

BugzillaJS constantly forgets its settings

Not sure how BugzillaJS stores its settings, but I keep on having to reselect "do not guess OS and hardware". It saves it for a while, but after a few days I notice it is gone again.

Option for wider comments

For what I can understand in Bugzilla code, comments (.bz_comment and .bz_comment_table) width is fixed: 55em.
Is it possible to provide an option in BugzillaJS in order to set a different widht?

Thanks!

Add links to bug numbers in history lines

When bugs are changed, you show their history as little gray lines between comments, such as:

"fwenzel@... depends_on: 607182 => 618210 14 hours ago"

These bug numbers aren't linked, but should be.

Allow Any Bugzilla Installation

Right now, this only works with Mozilla's Bugzilla installation. There should be a way to use this with any bugzilla installation.

Assign-to-me button should not auto-submit

The Assign To Me button should not immediately submit the form. Instead, it should behave as if you clicked on edit and entered your email address into the field.

That allows you to a) fix it if you clicked it on accident and b) make other changes in the same request before submitting.

"NaN years ago"

Sometimes when you change something and bugzilla redirects you straight back to the bug, changes don't show up as "2 seconds ago" but rather "NaN years ago". Screen shot:

https://skitch.com/fredw/ftyht/nan

This might be replication lag in our bugzilla instance, or maybe it shows up when the timestamp for the change is detected to be the same as NOW, but either way it should probably just not show the "... ago" part if it can't show anything useful.

Link to "browse the current component"

For a bug in a certain component, I often find myself click on "browse", then click through a few levels to find that component and see all open bugs in it. I wonder if there could be a lightweight way to get to it.

In fact, I'd rather have the word "Component" link to, well, the browse page of this very component, than having it link to the bugzilla help file explaining what a component is.

Instant "Remember Search"

Here's the code:

$('.bz_query_remember form').submit(function() {
var url = $(this).attr('action');
$.post(url, $(this).serializeArray());
return false;
});

Sharable bugzilla query link

I get so annoyed that I can't use the link in my browser and share it with people.

So it'd be cool if this could be generated, I imagine the best way is to go to "edit query" and rebuild a search from the advanced search fields.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.