enhance(ui): color-code and shrink the activity feed action icons - #38667
Open
kp2fcf88vn-lab wants to merge 3 commits into
Open
enhance(ui): color-code and shrink the activity feed action icons#38667kp2fcf88vn-lab wants to merge 3 commits into
kp2fcf88vn-lab wants to merge 3 commits into
Conversation
The dashboard activity feed rendered every action icon at 32px in a single muted color, so the icon carried no information and dominated the row. Render it at 16px and color it by action type, following the same conventions as the issue and pull request icons: green for opened and approved, red for closed and rejected, purple for merged, blue for repository and commit activity, yellow for tags and releases. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com> Signed-off-by: Sascha Simon <apps@sascha-simon.com>
kp2fcf88vn-lab
marked this pull request as ready for review
July 27, 2026 16:33
Member
|
I have a feeling those icons should be 24px at least. Regarding colors, I'm not sure, Gitea has been following GitHub which has a pretty color-less design overall, hard to decide for me. Also keep note that this affects the frontpage feed, which may or may not use the same shared template. |
Author
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.

The dashboard activity feed renders every action icon at 32px in a single
muted color. The icon carries no information and visually dominates the row.
This renders it at 16px and colors it by action type, reusing the conventions
already used for issue and pull request icons in
templates/shared/issueicon.tmpl:The colors come from the existing
tw-text-*utilities, so they follow theactive theme rather than being hardcoded.
star_repo,watch_repoandpull_request_ready_for_reviewhave no textbranch in
feeds.tmpland already fall back toocticon-question; they keepthe current muted color, so this changes nothing for them.
Testing
Seeded a local instance with one action of every
ActionType(all 27) andchecked the feed renders each one with the intended icon and color.
AI assistance
The implementation was drafted with AI assistance. I reviewed and tested the
change myself and can explain and defend it.
Before:
After: