Skip to content

Add filter-pr-by-build-status feature - #1904

Merged
fregante merged 19 commits into
refined-github:masterfrom
hardikmodha:f_add_filter_pr_by_build_status
Apr 19, 2019
Merged

fregante merged 19 commits into
refined-github:masterfrom
hardikmodha:f_add_filter_pr_by_build_status

Conversation

@hardikmodha

@hardikmodha hardikmodha commented Apr 2, 2019 •

Copy link
Copy Markdown
Contributor

@hardikmodha

hardikmodha commented Apr 2, 2019 •

Copy link
Copy Markdown
Contributor Author

@bfred-it Hi, Can you please take a look at the PR and see if are there any changes needed? Thanks!

I have only one concern with the added extra filter and it's that if the number of PRs is huge then it might cause some styling issues on smaller screens. You can see in the attached image that the filter bar is almost full.
download (3)

@fregante

fregante commented Apr 3, 2019

Copy link
Copy Markdown
Member

It's definitely a lot. My solution would be to use icons for sort, labels, milestones, and projects, the rest of them don't have an recognizable icon. This might look weird though. Maybe grouping these icons to the right would clean it up, but still... 🤷‍♂️

@hardikmodha

Copy link
Copy Markdown
Contributor Author

Yep, I was thinking the same of icons. But some icons and some text would be terrible. Apart from the icons you mentioned maybe we can use icons for the following.

  1. Build status: Depending on the CI tool used by the project we can show the icon. e.g. CircleCI, Travis, Jenkins etc.
  2. Reviews: Something like 👀? (all-contributors uses this) or 🔍?

Assignee and Author icons can be little confusing to the user.

@fregante

fregante commented Apr 3, 2019 •

Copy link
Copy Markdown
Member

As I said, they are not recognizable and there aren't any icons for them on GitHub.

I'd have no idea what 👀 and 🔍 mean if I see them on that bar. Also emojis can't be used as they don't fit GitHub's UI.

@hardikmodha

Copy link
Copy Markdown
Contributor Author

@bfred-it I've reduced the padding around filters and it looks better. Also, I have made few suggested changes except the ones which requires some input from your side. Please have a look. :)

Screen Shot 2019-04-15 at 11 33 27 PM

@yakov116

Copy link
Copy Markdown
Member

@hardikmodha Thanks for your PR!
Can you try not to include the issue number in a commit it creates unnecessary noise

image

@hardikmodha

Copy link
Copy Markdown
Contributor Author

@yakov116 Sorry, It was not my intention. Will keep it in mind 🙂

Comment thread source/content.css Resolved
@sindresorhus sindresorhus changed the title Add dropdown to filter PR by build status success, failure and pending. Add dropdown to filter PR by build status success, failure and pending Apr 17, 2019
Comment thread source/libs/icons.tsx Resolved
Comment thread source/libs/icons.tsx Resolved
@hardikmodha

Copy link
Copy Markdown
Contributor Author

@sindresorhus Thank you for your review. I have made the suggested changes. Please have a look.

Comment thread readme.md Resolved
Comment thread readme.md Resolved
@hardikmodha

Copy link
Copy Markdown
Contributor Author

@sindresorhus I think the changes should be good now. Can you please take a look?

@sindresorhus

Copy link
Copy Markdown
Member

@hardikmodha Can you commit to maintain this feature going forward? For example, in case GitHub changes something that breaks it. We already have way too many features to maintain and this one is not essential for us, so we need to find a way to make this sustainable.

@hardikmodha

Copy link
Copy Markdown
Contributor Author

@sindresorhus Definitely, Yes. I really appreciate your work in the open-source community and you are like my role model. I also understand that open-source is sometimes (or most of the time) difficult, given the number of projects you handle. I will assure you that I'll maintain the features I add, also If I feel if there is something that I can contribute to, I'll do it and will do my best to give back to the community.

Cheers :)

@fregante

fregante commented Apr 19, 2019 •

Copy link
Copy Markdown
Member

Please run this to delete the tags from your fork and locally, we keep pulling them from old forks and pushing them to this repo (we no longer use tags)

git tag -d $(git tag | grep -E '.')
git ls-remote --tags --refs origin | cut -f2 | xargs git push origin --delete

@hardikmodha

Copy link
Copy Markdown
Contributor Author

@bfred-it Done.

I think we should just apply the padding for "all features enabled"

Disabling features is still kind of "subpar experience" so we can't be expected to support all combinations.
@fregante
fregante merged commit 0b4c2dd into refined-github:master Apr 19, 2019
@fregante

fregante commented Apr 19, 2019 •

Copy link
Copy Markdown
Member

Thanks for this feature! I think it will come useful

@hardikmodha
hardikmodha deleted the f_add_filter_pr_by_build_status branch April 19, 2019 17:48
fregante added a commit that referenced this pull request Apr 19, 2019
@fregante fregante changed the title Add dropdown to filter PR by build status success, failure and pending Add filter-pr-by-build-status feature Apr 20, 2019
@yakov116

Copy link
Copy Markdown
Member
❌ filter-pr-by-build-status
content.js:1880 TypeError: Cannot read property 'cloneNode' of null
    at filter_pr_by_build_status_init (content.js:5481)
    at features_run (content.js:1875)
    at content.js:1927
    at HTMLDocument.<anonymous> (content.js:1832)

Will fail if there are no pull requests in the repo

@hardikmodha

Copy link
Copy Markdown
Contributor Author

@bfred-it 11b3e96 introduced a bug.

Screen Shot 2019-04-25 at 8 26 48 PM

The first time filter will work correctly, but subsequent filters won't work.

ezgif com-video-to-gif (2)

@fregante

Copy link
Copy Markdown
Member

🤦‍♂️ sorry

@fregante fregante mentioned this pull request May 18, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Development

Successfully merging this pull request may close these issues.

Add an option to filter PR search by passing/failing/running CI checks

4 participants