Skip to content

Add linkify-labels-on-dashboard feature - #2513

Merged
fregante merged 13 commits into
refined-github:masterfrom
dertieran:add-dashboard-label-links
Nov 18, 2019
Merged

fregante merged 13 commits into
refined-github:masterfrom
dertieran:add-dashboard-label-links

Conversation

@dertieran

Copy link
Copy Markdown
Contributor

Just ran into this issue a few days back when I wanted to click on one of the labels and nothing happened. 😄

I included the sort:updated-desc query from the sort-issues-by-update-time feature.
Not sure if this should be included here or if there is another way for both to work together.

Also I wasn't sure what the cleanest way is to detect the activities being loaded, so I copied this part from infinite-scroll.

Closes #2509

@dertieran
dertieran requested a review from fregante November 6, 2019 20:12
@fregante

fregante commented Nov 7, 2019

Copy link
Copy Markdown
Member

Can you take a screenshot of that box and add a simple arrow to a label? This would make it clear

@dertieran

dertieran commented Nov 7, 2019 •

Copy link
Copy Markdown
Contributor Author

Thanks for the improvements 👍

Just noticed that I missed handling PR labels 😄
Fixing this right now and then I will add the screenshot.

Edit: Didn't have time to add the screenshot and update the readme yet, but I made a quick screenshot.

Screenshot

image

@sindresorhus

Copy link
Copy Markdown
Member

Can you add the feature to the readme?

@dertieran

Copy link
Copy Markdown
Contributor Author

@sindresorhus will do, I'm just not on a PC till tomorrow (~9h)

@fregante fregante changed the title Add links to labels in recent activities Add linkify-labels-on-dashboard feature Nov 8, 2019
@dertieran

Copy link
Copy Markdown
Contributor Author

@fregante I don't feel too strongly about that, so I'm also okay changing it.

But I still think handling issue and pr activities is the better default.
Right now it has the same behavior as clicking on a label in the issues and pr tab.
(If the default query wasn't changed)

I also think it is clear to the user whey they sees only issues or prs, because they clicked on the respective activity.
They can then still change the query and remove the is:pr part.

@fregante

fregante commented Nov 8, 2019

Copy link
Copy Markdown
Member

@sindresorhus thoughts?

@sindresorhus

Copy link
Copy Markdown
Member

But I still think handling issue and pr activities is the better default.

👍

@sindresorhus

Copy link
Copy Markdown
Member

I noticed a bug. It doesn't linkify labels shown when you click "Show more".

@fregante

fregante commented Nov 11, 2019 •

Copy link
Copy Markdown
Member

I noticed a bug. It doesn't linkify labels shown when you click "Show more".

If that's the case, only the selector(s) need to be tweaked because all the activity is loaded at once. This is the fragment: https://github.com/dashboard/recent-activity

This will also select all hidden activities.
@dertieran

dertieran commented Nov 12, 2019 •

Copy link
Copy Markdown
Contributor Author

@sindresorhus Good catch, it seems I don't have enough activities 😄

Changed the selector to a simple li, they would also share a .d-flex but I think that is also very generic.

@fregante
fregante merged commit 50c6ff4 into refined-github:master Nov 18, 2019
@fregante

Copy link
Copy Markdown
Member

Thank you @dertieran! 🗿

@fregante fregante mentioned this pull request Dec 18, 2019
@dertieran
dertieran deleted the add-dashboard-label-links branch August 27, 2020 06:37
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.

Linkable labels in dashboard

3 participants