Skip to content

Conversation

@silverwind
Copy link
Member

  1. Use octicon-repo-locked to indicate private repos, also visible on the repo header now
  2. Use octicon-repo-forked to indicate forked repos
  3. Fix pull icons on pulse page
  4. Remove "gold" color from private icons, we have been removing this color on frontpage repolist, so now the rest of the UI is also consistent. Also remove the now-unused gold color.
Screenshot 2025-11-28 at 00 50 42
Screenshot 2025-11-28 at 00 45 21
Screenshot 2025-11-28 at 00 38 53
Screenshot 2025-11-28 at 00 36 34
Screenshot 2025-11-28 at 00 36 25

@GiteaBot GiteaBot added the lgtm/need 2 This PR needs two approvals by maintainers to be considered for merging. label Nov 27, 2025
@github-actions github-actions bot added modifies/templates This PR modifies the template files modifies/frontend labels Nov 27, 2025
@GiteaBot GiteaBot added lgtm/need 1 This PR needs approval from one additional maintainer to be merged. and removed lgtm/need 2 This PR needs two approvals by maintainers to be considered for merging. labels Nov 28, 2025
{{svg "octicon-mirror" 24}}
{{else if $.IsFork}}
{{svg "octicon-repo-forked" 24}}
{{else if $.IsPrivate}}
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

But there is already a label indicating the repository is private.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I guess we could remove the label with this change, possibly adding a title attribute on the icon.

Copy link
Member Author

@silverwind silverwind Nov 28, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Both the .IsPrivate and .IsTemplate template conditions render labels and I guess for clarity we should keep these labels. I think it's not a big issue if the repo icon now additionally displays these states.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Leaving for others to decide whether this is fine (both icon and tag indicate private status):

image

@github-actions github-actions bot added the modifies/go Pull requests that update Go code label Nov 28, 2025
@silverwind
Copy link
Member Author

Regarding octicon-repo-locked: I'm not sure it's actually right. I checked GH and they do not use it for the purpose of private repos at all. All they do is show a octicon-lock besides repo names in some places. So I think I will revert this change.

@github-actions github-actions bot removed the modifies/go Pull requests that update Go code label Nov 28, 2025
@silverwind
Copy link
Member Author

silverwind commented Nov 28, 2025

Regarding octicon-repo-locked: I'm not sure it's actually right. I checked GH and they do not use it for the purpose of private repos at all. All they do is show a octicon-lock besides repo names in some places. So I think I will revert this change.

Maybe this icon is actually fine. I think a repo book icon with a padlock is better than a padlock only. We do not have a "locked" state yet for repos, so this icon is unambiguous too.

@silverwind
Copy link
Member Author

One more minor change, ShowRepoAvatar is now enabled in repo lists, meaning they will render the repo avatar. This affects at least the explore repo list and org repo list.

@lunny
Copy link
Member

lunny commented Nov 28, 2025

A repository can fall into several state groups:

  • Group 1: IsMirror, IsFork, IsRegular
  • Group 2: IsTemplate
  • Group 3: Public, Private

We can add icons for the states in Group 1, and use text labels for the other groups to maintain consistency and avoid visual conflicts.

@silverwind
Copy link
Member Author

Sounds like a plan, I will try that.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

lgtm/need 1 This PR needs approval from one additional maintainer to be merged. modifies/frontend modifies/templates This PR modifies the template files

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants