gitea
gitea copied to clipboard
WIP: overhaul profile overview tab UI
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!
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'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 ( https://github.com/go-gitea/gitea/pull/19831 ) as there is alot of discussion as well as some code ideas.
Likewise the merged "pin issues" PR ( https://github.com/go-gitea/gitea/pull/24406 ) should proivde alot of reuse as well as what can be done with the DB
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 https://github.com/go-gitea/gitea/pull/12498, may be helpfull for you
and #19831
You can mostly reuse the approach of #19831 if you use a table in 1NF.
@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 :)