Skip to content

Add bugs-tab feature - #2750

Merged
fregante merged 14 commits into
masterfrom
bugs-life
Feb 7, 2020
Merged

fregante merged 14 commits into
masterfrom
bugs-life

Conversation

@fregante

@fregante fregante commented Feb 4, 2020 •

Copy link
Copy Markdown
Member

Closes #2749

bugs-tab

Your thoughts needed on the ❓ tasks:

  • Basic implementation
  • Cache but prefer local count if available (edit: way too convoluted)
  • Subtract bugs from Issues tab’s count ❓
  • Hide bugs from Issues tab ❓
  • Improve with Improve GitHub search query manipulation #2752
  • Add some comments and document

@fregante
fregante marked this pull request as ready for review February 4, 2020 11:55
Comment thread readme.md Resolved
Comment thread source/features/bugs-tab.tsx Resolved
Co-Authored-By: Flo Edelmann <[email protected]>
@fregante

fregante commented Feb 4, 2020

Copy link
Copy Markdown
Member Author

Thank you!

@staabm

staabm commented Feb 5, 2020

Copy link
Copy Markdown

would it make sense to have something similar for 'good first issues'?

@fregante

fregante commented Feb 5, 2020

Copy link
Copy Markdown
Member Author

I don’t think that’s nearly as useful for most people. I kinda have an idea for a “customizable tabs” extension but not as part of Refined GitHub

It generates an element, adds it, mutates a nearby one, and returns the element. It doesn't just `add`

Inlining it avoids this lie
@fregante

fregante commented Feb 7, 2020

Copy link
Copy Markdown
Member Author

I made the last change: exclude label:bug from Issues.

I fear this feature will be controversial, but then again it can be disabled. I'll probably still extract it into its own configurable/smarter extension at some point.

@sindresorhus sindresorhus left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks and works great for me 👌

@sindresorhus

Copy link
Copy Markdown
Member

I made the last change: exclude label:bug from Issues.

Makes sense.

Comment on lines +58 to +63
const bugsLink = select('a', bugsTab)!;
new SearchQuery(bugsLink).add('label:bug');

// Hide bugs from Issues tab
const issuesLink = select('a', issuesTab)!;
new SearchQuery(issuesLink).add('-label:bug');

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm loving how easy SearchQuery (#2752) makes this manipulation.

@fregante

fregante commented Feb 7, 2020

Copy link
Copy Markdown
Member Author

Thanks!

@staabm

staabm commented Mar 22, 2020 •

Copy link
Copy Markdown

Since we have this bugs tab, it might make sense to additionally have a „thank you“ tab, which lists apprecitations from the community?

Idea from https://twitter.com/dzhavatushev/status/1241619880736182273?s=20

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 "Bugs" tab

4 participants