Coder Social home page Coder Social logo

reywood / bitbucket-pr-review Goto Github PK

View Code? Open in Web Editor NEW
19.0 19.0 14.0 930 KB

Chrome extension that allows you to flag individual files in a pull request as reviewed

License: GNU Lesser General Public License v3.0

JavaScript 76.88% CSS 5.88% Makefile 1.76% HTML 7.98% SCSS 7.50%

bitbucket-pr-review's People

Stargazers

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

Watchers

 avatar  avatar  avatar  avatar

bitbucket-pr-review's Issues

Need help with internationalization (i18n)

I was checking out the stats for this extension on the Firefox Add-ons store and noticed that we have some international users. I thought it'd be nice if they could use this extension in their native language. If anyone is fluent (or at least semi-fluent) in a language other than English, I'd greatly appreciate your help with translations.

The following languages appear in the Firefox stats, so they are a good place to start:

  • French (fr)
  • German (de)
  • Polish (pl)
  • Russian (ru)
  • Spanish (es)
  • Turkish (tr)

To add a new language, create a new directory under the _locales directory with the locale code as the name (e.g. fr for French, de for German, etc). Then, copy the messages.json file from the en directory and modify the message values with the correct translation. For example, if you were creating a French translation, your new file would be located at _locales/fr/messages.json. You can remove the description fields from this new file as they are not needed.

You can find more info about how browser extension internationalization works here and here.

"Done Reviewing" the entire pull request

When viewing your list of pull requests, would it be possible to show which ones you are done reviewing? Sometimes we leave comments that need some action taken and we don't want to decline or approve the review, but we also want to see which pull requests in our list have been reviewed and which haven't.

This could be done by checking if all the files are reviewed, or by adding a separate "Done Reviewing" button at the pull request level.

Improvement - mark comments as completed

When reviewing, you can have some conversations that remain in the PR because the related update is not on the specific line you commented on, or it is on the file itself.

It would be nice to have the ability to mark a conversation as done / completed.

This would hide the comment and add a small (X) label (X being the number of hidden comments in the hidden conversation). Clicking the (X) would restore / unhide the conversation.

Firefox version

Please, give Firefox users the pleasure to use your work as well!

Very large pull requests have unloaded files that can't be marked as reviewed.

When a pull request is particularly large, some files aren't loaded and instead show the message "Oops! You've got a lot of code in this diff and it couldn't load with the page. Click here to give it another chance." Then when you click to load the file, the Done Reviewing button is not present for that file.

giveitanotherchance

giveitanotherchance2

TypeError: Cannot read property 'local' of undefined

Hi!

Just installed your plugin on Chrome latest and got the following issue:

Uncaught (in promise) TypeError: Cannot read property 'local' of undefined
at Promise (dataStore.js:57)
at new Promise ()
at Function.[set] (dataStore.js:56)
at Function.setReviewed (dataStore.js:14)
at FileDiff.setReviewed (fileDiff.js:50)
at
Promise @ dataStore.js:57
[set] @ dataStore.js:56
setReviewed @ dataStore.js:14
setReviewed @ fileDiff.js:50
async function (async)
setReviewed @ fileDiff.js:48
[handleButtonClick] @ fileDiff.js:95
btn.addEventListener @ fileDiff.js:68

Any hint as to what I should do to make it work?

I'm getting "tab menu not found" in the console log

Microsoft Edge Version 96.0.1054.34 (Official build) (64-bit)
BitBucket Pull Request Review Helper Version1.7.1

Using against bitbucket.org pull request. Any ideas?

Below is where the console log comes from in init.js

function isDiffTabActive() {
    const tabMenu = document.querySelector('.pr-tab-links');
    if (!tabMenu) {
        console.log('tab menu not found');
        return false;
    }
    const activeTab = tabMenu.querySelector('.active-tab [data-tab-link-id]');
    return !!activeTab && activeTab.dataset.tabLinkId === 'diff';
}

Improvement - Sync reviewed files with commits

In the diff view, your plugin helps see which file was reviewed. It would be nice to have the commits whose files have been been "Done reviewing" marked as "Done reviewing" too.
Also the other way around: allow the user to mark a commit as "Done reviewing", which would in turn update the Diff view.

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.