Closed frank-zsy closed 1 month ago
This issue has not been replied for 24 hours, please pay attention to this issue: @heming6666 @LiuChangFreeman @xiaoya-Esther @tyn1998 @zhuxiangning @wxharry @lhbvvvvv
I think @Zzzzzhuzhiwei can look at this feature as your research interest include repo labeling and recommendation~
Hi @frank-zsy, good idea!
Just drew a draft, does it look good to you?
“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".
@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.
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?
@tyn1998 Not right now, I can add it to OpenDigger export task.
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.
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:
Although we have more detail to discuss, I think the idea is feasible.