Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Feature] Add project label on page #711

Closed
frank-zsy opened this issue Aug 2, 2023 · 7 comments
Closed

[Feature] Add project label on page #711

frank-zsy opened this issue Aug 2, 2023 · 7 comments
Labels
kind/feature Category issues or prs related to feature request.

Comments

@frank-zsy
Copy link
Contributor

Description

As implemented in X-lab2017/open-digger#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.

@frank-zsy frank-zsy added the kind/feature Category issues or prs related to feature request. label Aug 2, 2023
@menbotics
Copy link

menbotics bot commented Aug 3, 2023

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
Copy link

will-ww commented Aug 3, 2023

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

@tyn1998
Copy link
Member

tyn1998 commented Aug 6, 2023

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
Copy link
Contributor Author

@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
Copy link
Member

tyn1998 commented Aug 6, 2023

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
Copy link
Contributor Author

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

@frank-zsy
Copy link
Contributor Author

frank-zsy commented Aug 7, 2023

As implemented in X-lab2017/open-digger#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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/feature Category issues or prs related to feature request.
Projects
None yet
Development

No branches or pull requests

4 participants