-
-
Notifications
You must be signed in to change notification settings - Fork 5.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add branch name-copy buttons on the branches list #25569
Conversation
@puni9869 could you check the "allow edits from maintainers" checkbox on this PR? |
How about moving the copy button following the branch name? There are too many buttons at the end of this line. |
I think that would look strange. Imho it looks better when the buttons are together. |
@@ -2474,6 +2474,7 @@ branch.create_branch_operation = Create branch | |||
branch.new_branch = Create new branch | |||
branch.new_branch_from = Create new branch from "%s" | |||
branch.renamed = Branch %s was renamed to %s. | |||
branch.copy_branch_name = Copy Branch Name |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The text could be Copy branch name
, to match other texts like Create new branch
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
See suggestion below
@@ -2474,6 +2474,7 @@ branch.create_branch_operation = Create branch | |||
branch.new_branch = Create new branch | |||
branch.new_branch_from = Create new branch from "%s" | |||
branch.renamed = Branch %s was renamed to %s. | |||
branch.copy_branch_name = Copy Branch Name |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
branch.copy_branch_name = Copy Branch Name | |
branch.copy_branch_name = Copy branch name |
I have the opposite opinion. I don't think putting too many buttons together is a good design. And look like all other places, copy button is near the content. |
Due to conflicts. Pr is moved to #25596 |
Adding branch-name copy to clipboard and button in branches screen Replaces #25569 Fixes #25120 New mocks: <img width="876" alt="Screenshot 2023-06-30 at 12 01 41 AM" src="https://github.com/go-gitea/gitea/assets/80308335/a34ab00f-5625-4529-ba17-f2bf7af58e2a"> <img width="822" alt="Screenshot 2023-06-30 at 12 03 59 AM" src="https://github.com/go-gitea/gitea/assets/80308335/3a32dffc-52cd-49e1-a437-6d11d58d0939"> <img width="476" alt="image" src="https://github.com/go-gitea/gitea/assets/80308335/85e8f361-5cb7-45d4-aced-ad2523d54ab0">
Fix:: #25120
There are some observation in different platforms like Github, Gitlab, Bitbucket and bunch of more platform.
I have observed they all have copy option for branch name. They don't have copy option for tags.
As a UX prespective for tags we don't need copy option.
By above observation I am suggsting the following UI changes, I know they might not align with UX point of way.But they are simplest to make quick.
Here is my suggestions:
When Hover on Copy
When Clicked on Copy
Code changes in files:-
Translations:-
en-US.ini
@silverwind @delvh
I am open for any UI/UX suggestion which work the best.