Skip to content

Conversation

@kerwin612
Copy link
Member

image

@GiteaBot GiteaBot added the lgtm/need 2 This PR needs two approvals by maintainers to be considered for merging. label Nov 27, 2024
@wxiaoguang

This comment was marked as resolved.

@kerwin612 kerwin612 closed this Nov 27, 2024
@kerwin612 kerwin612 deleted the patch-24 branch November 27, 2024 05:39
@kerwin612 kerwin612 restored the patch-24 branch November 27, 2024 05:41
@kerwin612 kerwin612 reopened this Nov 27, 2024
@kerwin612
Copy link
Member Author

  1. I do not think it is right because this selector is used by many other pages.
  2. please name the branch name properly, I can't figure which branch is for what.

I have revised it to: "The new entry is only available on the repository homepage" .
Regarding the branch name, I will pay attention to it later. Thanks for the suggestion.

@kerwin612 kerwin612 requested a review from wxiaoguang November 27, 2024 11:05
Copy link
Contributor

@wxiaoguang wxiaoguang left a comment

Choose a reason for hiding this comment

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

Not look good to me but I won't block it if other reviewers like&approve it.

@kerwin612 kerwin612 requested review from a team and lunny November 27, 2024 11:25
@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 27, 2024
@justusbunsi
Copy link
Member

@kerwin612 In what way does this change the current behavior. From the code changes and only the screenshot as PR description I have no idea what the diff does. Could you explain it, please.

@lunny
Copy link
Member

lunny commented Nov 27, 2024

Can you add some descriptions about why we need this sub-menu?

@yp05327
Copy link
Contributor

yp05327 commented Nov 27, 2024

Need more descriptions +1

@kerwin612
Copy link
Member Author

@kerwin612 In what way does this change the current behavior. From the code changes and only the screenshot as PR description I have no idea what the diff does. Could you explain it, please.

The theme of this PR is: "A new shortcut has been added to the branch selector on the repository's homepage, enabling quick navigation to the [All Branches/Tags] page

@kerwin612
Copy link
Member Author

Honestly, the reason for adding this entry is quite simple; it's just that I'm used to using this entry on GitHub, and I feel a bit uneasy without it on Gitea. So I added this entry to align it with GitHub. @yp05327 @lunny @justusbunsi
b1bc8742c17d75357931993c4a27b99

@yp05327
Copy link
Contributor

yp05327 commented Nov 28, 2024

I understand now. Then it should be View all branches/tags not All branches/tags, or it is hard to understand what is it used for.

ps:
You can also access all branches from:
In Gitea:
image
In GitHub:
image

@justusbunsi
Copy link
Member

@kerwin612 Thanks for your explanation. As @yp05327 mentioned, there are already shortcuts to both views - with less clicks needed to reach them. For me it doesn't seem like a useful addition.

@KN4CK3R
Copy link
Member

KN4CK3R commented Nov 28, 2024

It may be useful on sub pages without the branch link:
grafik

@justusbunsi
Copy link
Member

It may be useful on sub pages without the branch link:
grafik

Good point. Haven't thought about this.

@kerwin612 kerwin612 requested a review from yp05327 November 28, 2024 14:48
@lunny lunny changed the title Add "All branches/tags" entry to Branch Selector Add "View all branches/tags" entry to Branch Selector Nov 28, 2024
@wxiaoguang
Copy link
Contributor

Do this first to clean up the legacy code: Refactor RepoBranchTagSelector #32681

@wxiaoguang
Copy link
Contributor

Is there any objection to merge? If no, please vote your approval.

@GiteaBot GiteaBot added lgtm/done This PR has enough approvals to get merged. There are no important open reservations anymore. and removed lgtm/need 1 This PR needs approval from one additional maintainer to be merged. labels Dec 2, 2024
@lunny lunny added the reviewed/wait-merge This pull request is part of the merge queue. It will be merged soon. label Dec 2, 2024
@lunny lunny added this to the 1.23.0 milestone Dec 2, 2024
@lunny lunny enabled auto-merge (squash) December 2, 2024 19:55
@lunny lunny merged commit 576e31a into go-gitea:main Dec 2, 2024
26 checks passed
@GiteaBot GiteaBot removed the reviewed/wait-merge This pull request is part of the merge queue. It will be merged soon. label Dec 2, 2024
zjjhot added a commit to zjjhot/gitea that referenced this pull request Dec 3, 2024
* giteaofficial/main:
  Add "View all branches/tags" entry to Branch Selector (go-gitea#32653)
  Remove all "floated" CSS styles (go-gitea#32691)
  Optimize the styling of icon buttons within file-header-right (go-gitea#32675)
  fix: show tag name on branch/tag selector if repo shown from tag ref (go-gitea#32689)
@go-gitea go-gitea locked as resolved and limited conversation to collaborators Mar 3, 2025
@kerwin612 kerwin612 deleted the patch-24 branch March 5, 2025 06:27
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

lgtm/done This PR has enough approvals to get merged. There are no important open reservations anymore. modifies/frontend modifies/templates This PR modifies the template files modifies/translation

Projects

None yet

Development

Successfully merging this pull request may close these issues.

8 participants