hypertrons / hypertrons-crx

A browser extension for insights into GitHub projects and developers.
https://crx.hypertrons.io
Apache License 2.0
342 stars 98 forks source link

[Feature] Add project label on page #711

Closed frank-zsy closed 1 month ago

frank-zsy commented 1 year ago

Description

As implemented in https://github.com/X-lab2017/open-digger/pull/1301 , the meta file for repos exported by OpenDigger contains label data too right now.

Just like in https://oss.x-lab.info/open_digger/github/X-lab2017/open-digger/meta.json , all labels for OpenDigger is listed in the file.

So I think we can add label data to project page as well due to the meta file content, like below:

image

Although we have more detail to discuss, I think the idea is feasible.

menbotics[bot] commented 1 year ago

This issue has not been replied for 24 hours, please pay attention to this issue: @heming6666 @LiuChangFreeman @xiaoya-Esther @tyn1998 @zhuxiangning @wxharry @lhbvvvvv

will-ww commented 1 year ago

I think @Zzzzzhuzhiwei can look at this feature as your research interest include repo labeling and recommendation~

tyn1998 commented 1 year ago

Hi @frank-zsy, good idea!

Just drew a draft, does it look good to you?

image

Submit labels in OpenDigger” can also be "Create an issue to submit labels"

PS: hovering on a label type icon will trigger a tooltip that shows the label type name, such as "Region".

frank-zsy commented 1 year ago

@tyn1998 Aggregate all labels into a single icon is fine too, but it will make it not that easy to see all the labels attached to current repo.

Another approach is what I draw above which is adding all labels directly on the page like below the repo name, and hover to a label should show a list with other repos/orgs with same label and users can click in the list to navigate to corresponding repos/orgs. Because I think for users maybe interested in investigating and exploring with label data like for certain technology.

tyn1998 commented 1 year ago

and hover to a label should show a list with other repos/orgs with same label

@frank-zsy Is there a way to get all repos/orgs by label id?

frank-zsy commented 1 year ago

@tyn1998 Not right now, I can add it to OpenDigger export task.

frank-zsy commented 1 year ago

As implemented in https://github.com/X-lab2017/open-digger/pull/1358 , the label has been exported to OSS, we can acess the label data by https://oss.x-lab.info/open_digger/label_data/{label_id}/data.json , like https://oss.x-lab.info/open_digger/label_data/:communities/xlab/data.json .

I also add OpenRank value to the data for sorting purpose, repos or orgs with higher OpenRank may need to be shown above.