Repository navigation
Dashboard: Give the issue, pull request, milestone and notification pages GitHub's list layout - #82
Merged
Merged
Conversation
…ages GitHub's list layout /issues, /pulls, /milestones and /notifications were stock Forgejo. They now use the layout the repository issue list already has, measured against GitHub's own /issues and /notifications pages: a sidebar with the views and their counts, a heading, the search field, and a bordered list under an Open/Closed bar. - Issues, pull requests and milestones reuse the repository list's classes, so they share its styles and add nothing to the theme files. The dashboard context switcher moves from a bar across the page to the top of the sidebar; the same templates serve organization dashboards. - Notifications get a sidebar (Unread with its count, Read, Subscriptions), a heading with "Mark all as read", and compact rows where read notifications recede. - The few page-specific rules live in a new page stylesheet instead of the theme files, which are at their size limit. - The sidebar script also sets up a sidebar that is inserted later, because Forgejo replaces the notifications page element after an action. 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.
What
/issues,/pulls,/milestonesand/notifications(and their organization-dashboard variants) were stock Forgejo. They now follow GitHub's/issuesand/notificationspages, viewed signed in:How
templates/user/dashboard/issues.tmpl(serves issues and pull requests) andmilestones.tmpluse the repository issue list's classes (repository issue-list,github-issues/github-pull-list), so they share its existing styles and add nothing to the theme files. The view filter (in your repositories, assigned, created, mentioning, review requested, reviewed) becomes sidebar links; project, label and sort stay as dropdowns. All labels come from Forgejo's translations.templates/user/notification/notification_div.tmplkeeps Forgejo's element ids, classes and forms, which its script relies on.styles/pages/dashboard-lists.css(new page stylesheet, linked fromcomponent_assets.tmpl): the context switcher in the sidebar, counters at the right, the milestone list box and the notification rows.components/common/sidebar/sidebar.js: a sidebar inserted after load is set up too, since Forgejo replaces the notifications page element after an action.public/assets/js/issue-list.js: keeps the milestone search placeholder instead of overwriting it with the issue one.Not matched
/pullsis now a grouped "Inbox" (needs your review, drafts, waiting, ready to merge). Forgejo has a flat list with a view filter, so pull requests use the same list as issues.Verification
Checked in the preview: all four pages, the organization variants of issues, pull requests and milestones, the closed and read views, and marking a notification as read (the count drops and the sidebar keeps working).
bun vitest(403 passed),bun checkand Prettier pass. Theme file size is unchanged. Screenshots are not attached.🤖 Generated with Claude Code