Repository navigation
Profile: Introduced GitHub's popular repositories on the Overview tab - #159
Draft
whereareiam wants to merge 1 commit into
Draft
whereareiam wants to merge 1 commit into
whereareiam wants to merge 1 commit into
Conversation
A person with a .profile README opens on Overview, which showed only the README. GitHub puts the person's popular repositories below it, two cards to a row and one on phones: the repository icon, the name, its visibility label, the description and the language, stars and forks, the counts only when there are any. The labels are the theme's muted pill label from components/common/label rather than a copy of it. Forgejo loads no repositories for the Overview tab, so a small script, profile-overview.js, takes the first six of the Repositories tab sorted by most stars and limited to public repositories, the server-rendered list the theme already updates in place, and builds the cards from it. The section stays hidden until it has cards, so a person without public repositories, or a failed request, shows the README alone. A fork or mirror keeps the list's own icon for its kind. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
I compared Forgejo's profile Overview tab, which opens when a person has a .profile README, with the Overview on GitHub's profiles and changed what differed.
Forgejo loads no repositories for the Overview tab. A small script, profile-overview.js, therefore requests the person's Repositories tab once, sorted by most stars and filtered to public repositories, and builds the cards from that server-rendered list. It reads only from the same origin, and the cards keep Forgejo's own links, labels, language colours and star/fork aria-labels.
Already matching, so unchanged: the Overview tab and its place in the profile tabs, and the README box with its
user / .profileheading.Left out because Forgejo works differently: pinned repositories and "Customize your pins" (Forgejo has no pinning), and the "Popular" wording (Forgejo has no string for it, so the heading uses Forgejo's "Repositories"). The contribution graph and activity also stay on the Public activity tab: Forgejo loads the heatmap data only for that tab, and its heatmap starts only on page load.
Draft, for a decision: Forgejo's handler loads no repositories for the Overview tab, so
profile-overview.jsfetches the person's Repositories tab page and builds the six cards from that server-rendered list. That is one extra full-page request per Overview view, and it depends on the repository list's markup. The alternative is to leave the cards out until Forgejo provides the data.Before and after
Release notes
Area: Descriptionwith a listed areaBranches: Fixed ...feature,change,bug,dependencies, orskip-changelogbugonly for a bug that shipped in a release; a fix for a bug that only existed ondevisskip-changelogmajoradded when admins must act on upgrade, for example a new minimum Forgejo version.github/release-notes.md, if admins need themChecks
🤖 Generated with Claude Code