Skip to content

WIP: overhaul profile overview tab UI #27183

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

Draft
wants to merge 10 commits into
base: main
Choose a base branch
from

Conversation

hazycora
Copy link
Contributor

@hazycora hazycora commented Sep 21, 2023

There was some love shown for this idea in the Discord so I thought I'd make a draft PR for it. This is a patch to make the overview tab of user profiles display not just a profile readme but also a users 6 most popular repos (sorted by stars), along with their activity. This PR also does the same for organization overview pages (albeit without activity) building off of my other PR.

People suggested on Discord that pinning repositories would be a better solution than displaying the 6 most starred repositories. I completely agree, and I'll look into adding that, but as the pinned repositories list would need to be stored in the database some guidance on how best to do that would be appreciated!

The new profile overview tab, displaying a profile README along with 4 repositories and some contribution activity below

@GiteaBot GiteaBot added the lgtm/need 2 This PR needs two approvals by maintainers to be considered for merging. label Sep 21, 2023
@github-actions github-actions bot added the topic/ui Change the appearance of the Gitea UI label Sep 21, 2023
@hazycora
Copy link
Contributor Author

I've marked this as a WIP because as multiple others mentioned, pinning repositories would be better. The feature works as-is, however. If it's preferred for pinning repositories to be added as a separate follow-up PR, I'd be open to that as well :)

@eeyrjmr
Copy link
Contributor

eeyrjmr commented Sep 22, 2023

I've marked this as a WIP because as multiple others mentioned, pinning repositories would be better. The feature works as-is, however. If it's preferred for pinning repositories to be added as a separate follow-up PR, I'd be open to that as well :)

Pinning would be fantastic! The best place to look is the previous pin-issue PR ( #19831 ) as there is alot of discussion as well as some code ideas.

Likewise the merged "pin issues" PR ( #24406 ) should proivde alot of reuse as well as what can be done with the DB

@a1012112796
Copy link
Member

I've marked this as a WIP because as multiple others mentioned, pinning repositories would be better. The feature works as-is, however. If it's preferred for pinning repositories to be added as a separate follow-up PR, I'd be open to that as well :)

I has try it in #12498, may be helpfull for you

@delvh
Copy link
Member

delvh commented Sep 23, 2023

and #19831

@delvh
Copy link
Member

delvh commented Sep 23, 2023

You can mostly reuse the approach of #19831 if you use a table in 1NF.

@6543 6543 added the type/enhancement An improvement of existing functionality label Jan 27, 2024
@6543
Copy link
Member

6543 commented Jan 27, 2024

@hazycora i did resolve the conflicts ... and if you make it a "profile overview" enhancement only e.g. remove the grid and do that in another pull. then we can get that enhancemen in sooner :)

@wxiaoguang wxiaoguang marked this pull request as draft January 1, 2025 03:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
lgtm/need 2 This PR needs two approvals by maintainers to be considered for merging. topic/ui Change the appearance of the Gitea UI type/enhancement An improvement of existing functionality
Projects
None yet
Development

Successfully merging this pull request may close these issues.

8 participants