Repository navigation
Projects: Matched GitHub's project list and board cards - #99
Merged
Merged
Conversation
One project list component (components/project/list) now serves the repository, organization and user pages: Open and Closed tabs with counters and Sort in the box header, a row per project with its number, last update and a menu for Edit, Close and Delete. The repository list sits in the issue sidebar layout, which gains a Projects entry; the organization side nav no longer repeats Open and Closed. Board cards show the repository with the number, use GitHub's card background and title height, and get GitHub's hover menu: Copy URL, Move to top or bottom, and Move to column, saved through Forgejo's move endpoint. Column headers use GitHub's padding. 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 changes
The project pages now match GitHub, compared signed in against a GitHub project at 1440, 700 and 375px.
Project list (one shared component)
Before, the repository list was Forgejo's own markup, and organization and user pages used a separate template. All three now use
components/project/list:The organization side nav no longer repeats Open and Closed; it shows a single Projects entry, as on GitHub. The old profile project styles are removed.
Board
#151b23#0d1117, like GitHub's cardsThe card menu uses the shared dropdown. Moves are saved through Forgejo's column move endpoint, the same one drag and drop uses. On touch screens the "…" is always visible. "Copy URL" uses Forgejo's string; the move actions are in English because Forgejo has none.
The shared dropdown gains a red danger style for destructive items (Delete).
Not changed: GitHub's per-column "+" (Forgejo cannot add an existing item to a column from the board) and column descriptions (Forgejo has no such field).
Before and after
Dark mode, in the dev preview.
Checks
bun run bundleandbunx vitest run(406 tests) pass; Prettier is clean.bun run lintfails on dev as well: typescript-eslint does not support the installed TypeScript 7.Preview: http://localhost:3000/acme/webapp/projects
🤖 Generated with Claude Code