gitea icon indicating copy to clipboard operation
gitea copied to clipboard

WIP: overhaul profile overview tab UI

Open hazycora opened this issue 1 year ago • 6 comments

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

hazycora avatar Sep 21 '23 22:09 hazycora

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 :)

hazycora avatar Sep 21 '23 22:09 hazycora

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

eeyrjmr avatar Sep 22 '23 14:09 eeyrjmr

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

a1012112796 avatar Sep 23 '23 17:09 a1012112796

and #19831

delvh avatar Sep 23 '23 17:09 delvh

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

delvh avatar Sep 23 '23 17:09 delvh

@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 :)

6543 avatar Jan 27 '24 20:01 6543