Giter VIP home page Giter VIP logo

reviewboard-userscripts's Introduction

Userscripts to enhance the Review Board experience

Primarily for use at NI. If you also use Review Board, it is possible that this script can also help you too (with modifications).

Getting Started

  1. Install a userscripts extension — such as Tampermonkey or Violentmonkey — and refresh this page
  2. Install this userscript

What does it do?

Neat new features!

  • Categories reviews into Incomplete, Reviewed, and Ship It groups
  • Buttons to decline themselves and others if they are on vacation or unnecessary on the review
  • Buttons to get reset on a review (aka. re-added or "please see these changes again")
  • Adds an icon to navigate to file from its diff
  • Lets you click anywhere in the header to expand/collapse a comment
  • Shows you the file regex patterns for group default reviewers from the groups join page
  • Lets you choose between diff scrollbars or word wrap -- no more hidden text!
  • Displays absolute times next to relative times if you want it

Bringing you info where you expect it!

  • Annotates users and groups with their approvals
  • Annotates the .niconfig owner review block with approvals
  • Extracts and annotates prebuild results

Save your eyeballs!

  • Restyles the page for a more modern experience
  • Changes the default avatar to something more useful and distinguishable
  • Gives you options to reverse the sort order, optimize for readability, and even change the background theme

Getting Updates

Tampermonkey and Violentmonkey auto update userscripts daily. You can force an update from the extensions menu or the settings page.

Resources


Made with ❤️ by Dev Efficiency

reviewboard-userscripts's People

Contributors

alejandro5042 avatar dependabot[bot] avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Forkers

ghas-results

reviewboard-userscripts's Issues

Links for all comments

Is your feature request related to a problem?

I'd like the ability to easily link to any arbitrary review comment. Currently, clicking an issue in the issues list for a review will link to (and highlight, but that's less important) the relevant comment. I'd like to have a way to link to specific comments without having to inspect the page source and find the comment ID myself.

Describe the solution you'd like

For comments on issues, make the timestamp text a link to the issue:
comment
For issues, add some element to each issue which is also a link to the comment. The timestamp doesn't make as much sense here since all of the issues from one review will have the same timestamp, but it may be worth having for consistency.

Describe alternatives you've considered

None.

Additional context

Add any other context or screenshots about the feature request here.

Re-organization of my dashboard is applied to Outgoing reviews

It makes sense to organize my incoming reviews around whether I have responded or given a ship it, but this doesn't make sense for outgoing reviews. I did try removing the 'My Comments' column in the Outgoing view, but apparently this setting is global, since it was also then removed from the Incoming view.

Screenshots

image

Context

Change draft review header color to yellow/orange

Is your feature request related to a problem?

Since I recolored submitted reviews to green, there is now a conflict with the existing green banner representing a draft review.

Describe the solution you'd like

Color the draft review banner yellow.

Describe alternatives you've considered

Reverting the green back to gray, but it should be green to better match AzDO and societal expectation of what green means (success).

Additional context

Userscript version: v1.1.10

Link formatting with inline code is broken

With this script enabled, there's no distinguishable link formatting for links that are also code segments. Example markdown:

[`boost::none`](https://www.boost.org/doc/libs/1_74_0/boost/none.hpp)

Screenshots

With the script disabled/enabled:
image

Logs

None

Context

  • Extension Version: 1.18.1
  • Browser: Firefox 79.0 (64-bit) for Windows
  • URL: None

Dashboard view in Firefox uses limited width and does not fully display show status column on far right

In Firefox 76.0.1 on Windows, the dashboard (incoming review list / default landing page) doesn't take up the full windows width that it does without the plugin (seems optimized for mobile?), and the far right status column is cut off by the scrollbar. See screenshot. This is all if you have not enabled the My Comments column.

Workaround

Follow the instructions on the nag dialog about dashboard sorting by adding the My Comments column. With the My Comments field added, the width rendering becomes more sane. If you don't have that field enabled, it will nag you on every reload and have the messed up width. If you remove that column, the problem will come back.

Screenshots

If applicable, add screenshots to help explain your problem.
image

Nag dialog:
image

Comparison of workaround after adding the sortability "My Comments" column:
image

Logs

If applicable, add any relevant messages or errors you see in the browser's JavaScript console.

Context

  • Extension Version: 1.1.2
  • Browser: Firefox 76.0.1 64-bit on Windows 10 v1809 64-bit,
  • URL: N/A

With no incoming requests, counter can still say 1

I have a minor bug report with the new extension: I'm seeing an "Incomplete" count of (1) even though I have no incoming requests. See screenshot below. (This is in Firefox if that matters)

Screenshots

image

Context

  • Extension Version: ?
  • Browser: Firefox
  • URL: Dashboard

Diffs associated with comments on Reviews page overrun the width of the main column

I can't see the full width of the diff associated with a comment on the Reviews page of a review. It wraps sometime later, but I can't see the full file path or the rightmost part of the diff.

Screenshots

image

I'm wondering if it's related to this rendering oddity where the comments are narrower than the review summary:
image

Context

Dark Theme makes it difficult to read incoming review categories list which uses dark text on dark background

The dark theme uses a midnight blue / inky color but the categories view in the RB dashboard for what review groups you belong to are still rendered in black, so they are almost impossible to read as dark text on a dark background unless you zoom way in.

Screenshots

Screenshot has group names censored, but the Incoming categories "Open" and "To Me" show the problem just as well. Not sure why we have weird negative counts in some cases but I don't believe it's anything to do with this userscript.

image

Logs

If applicable, add any relevant messages or errors you see in the browser's JavaScript console.
N/A

Context

  • Extension Version: 1.1.2
  • Browser: Firefox 76.1
  • URL: outgoing RB dashboard

Button to "ping" reviewers

Is your feature request related to a problem?

No

People aren't reviewing my code fast enough.

Describe the solution you'd like

A button like we have in AzDo to remind them to review my code.

Describe alternatives you've considered

None

Odd repetition of date with new display

With the new "intelligent" timestamp display I'm seeing some... less-than-intelligent displays 😄

Screenshots

If applicable, add screenshots to help explain your problem.
image.

Context

  • Extension Version: 1.18.0
  • Browser: Chrome 83.0.4103.97
  • URL: (if any)

Better handle archiving/unarchiving reviews in the dashboard

When viewing incoming reviews, if I select a review and archive/unarchive it, the page stops filtering reviews until I refresh the page. Is this a known limitation? I see a text box pop up that says "When you are done changing/rearranging columns, reload the page to refresh the review list", but I'm archiving reviews, not rearranging columns.

We should change the text or be able to handle a review being archived/unarchived.

Context

  • Extension Version: v1.1.10
  • Browser: Chrome

Long review comments give overly wide summary boxes when you click OK

When leaving a comment to a review, if you have a longer string (multi-line? Not sure if it' sa character cutoff or line thing), the summary box shown after you click OK but before you click Publish/Discard/Close will get really wide and shift to the right, regardless of your setting for review with to be optimized for readability or full width (original)

Steps to reproduce:

  1. On an active review, click the Review button at the top to get a dialog box prompt
  2. Enter a long comment in there which spans at least 2 lines
  3. Click OK to preview the comment before publish/discard/close

Screenshots

image

Logs

If applicable, add any relevant messages or errors you see in the browser's JavaScript console.

Context

  • Extension Version: 1.4.0
  • Browser: Firefox 76.0.1 on Win 10 x64 1809

Ability to sort based on ownership

Is your feature request related to a problem?

Yes. Review overload. My team gets a lot of reviews (as I'm sure most teams do). In our retrospective, most people expressed wanting to be alerted to the reviews, but also want to be able to sort reviews that they have to review vs reviews where they are optional.

Describe the solution you'd like

Be able to sort reviews on the reviewboard mainpage based on whether you're an owner, an alternate, or a reviewer.

Describe alternatives you've considered

An email rule that flags a reviewboard email if you're an owner.

Edit pencil is missing for main description

The edit pencil is missing for the main description. This includes when initially adding the review, and double clicking doesn't always enable editing.

Screenshots

With script enabled
image

With script disabled
image

Logs

Context

  • Extension Version: 1.18.1
  • Browser: New Microsoft Edge: Version 84.0.522.61 (Official build) (64-bit)
  • URL:

Empty outgoing review list tallies 1 for Incomplete

I have zero outgoing reviews open in RB, but counter on the Outgoing dashboard shows incomplete 1.

Screenshots

Comparing Chrome with no extension to Firefox with this extension

image

Logs

If applicable, add any relevant messages or errors you see in the browser's JavaScript console.

Context

  • Extension Version: 1.18.1
  • Browser: Firefox 82.0.2 (64-bit)
  • URL: .../dashboard/?view=outgoing

Review in inbox even after user removed

I was removed (declined) from a review by another reviewer/alternate, but the review still appears in my incoming list. I assume that if I've been removed from the review, I wouldn't still need to see it in my incoming list.

In this review: https://review-board.natinst.com/r/339057/
Valerie Juarez declined jdowns (out of office) on June 15, but on June 17, I still see the review in the Incomplete bucket of the incoming review list.
image

For screenshots, horizontal scrollbar only visible at bottom of the image

When viewing a large screenshot, both vertical and horizontal scrollbars are always visible. However, with this user script, only the vertical scrollbar is visible at all times; the horizontal scrollbar is only visible when you scroll to the bottom of the image.

Screenshots

Without userscript, both scrollbars are always visible:
Screen Shot 2020-06-09 at 12 26 42 PM

With userscript, only vertical scrollbar is visible at first:
Screen Shot 2020-06-09 at 12 26 58 PM

...but when I scroll to the bottom of the image, the horizontal scrollbar is also visible.
Screen Shot 2020-06-09 at 12 27 11 PM

Logs

If applicable, add any relevant messages or errors you see in the browser's JavaScript console.

Context

'My Dashboard' view window width has a tiny maximum on Firefox

On a 4k monitor, using Firefox, the 'My Dashboard' window does not scale to fit the whole window width, making it hard to read.

Screenshots

image

Logs

If applicable, add any relevant messages or errors you see in the browser's JavaScript console.

Context

  • Extension Version: (found in the userscript dashboard)
    TamperMonkey running script v1.1.2

  • Browser: (name and version)
    image

  • URL: (if any)

See if requests have issues directly from the dashboard

As an overloaded code owner, I would like a way to automatically re-classify / re-prioritize reviews that have open issues from other reviewers, so that I can focus on the reviews that are ready for my attention.

Perhaps by adding a fourth category, in addition to "Incomplete", "Reviewed" and "Ship It!"

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.