Skip to content
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

Remove Pull Request button on repo homepage #20375

Closed
wants to merge 2 commits into from

Conversation

silverwind
Copy link
Member

We have too many buttons on the repo homepage and the "New PR" button seems like a obvious candidate to remove as it already exists in the Pull Requests tab where it makes more sense.

FWIW, GitHub also no longer shows the button on a repo home page but they do have the recent-pushes flash feature which we lack.

Before:

Screen Shot 2022-07-14 at 19 24 56

After:

image

@silverwind silverwind added the topic/ui Change the appearance of the Gitea UI label Jul 14, 2022
@silverwind silverwind changed the title Remove Pull request button on repo homepage Remove Pull Request button on repo homepage Jul 14, 2022
Copy link
Contributor

@Gusted Gusted left a comment

Choose a reason for hiding this comment

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

All fine by me, might receive some push back by users who think everything should exist on the home page.

@GiteaBot GiteaBot added the lgtm/need 1 This PR needs approval from one additional maintainer to be merged. label Jul 18, 2022
@Gusted
Copy link
Contributor

Gusted commented Jul 18, 2022

CI failure is related.

@Gusted Gusted added this to the 1.18.0 milestone Jul 18, 2022
@silverwind
Copy link
Member Author

silverwind commented Jul 18, 2022

Yeah, still need to figure out how to fix these integration tests (and how to run them locally).

I plan to do more slimming of these repo buttons later, I think we can at least reduce the file upload buttons into a dropdown menu like GitHub does to save even more space.

@facorazza
Copy link

Yeah, still need to figure out how to fix these integration tests (and how to run them locally).

I plan to do more slimming of these repo buttons later, I think we can at least reduce the file upload buttons into a dropdown menu like GitHub does to save even more space.

The http and ssh buttons could also be reduced to dropdowns eventually

We have too many buttons on the repo frontpage and this seems like a
obvious candidate to remove as it already exists in the Pull Requests
tab where it makes more sense.

FWIW, GitHub also no longer shows the button on a repo home page but
they do have the recent-pushes flash feature which we lack.
@silverwind
Copy link
Member Author

Replaced by #20602.

@silverwind silverwind closed this Aug 1, 2022
@silverwind silverwind deleted the rmnewpull branch August 1, 2022 19:46
silverwind added a commit to silverwind/gitea that referenced this pull request Aug 2, 2022
- Replace "New PR" and "Go to File" button with Icon Button
- Move all "Add File" actions into a dropdown button
- Remove most custom styling of clone buttons

Buttons are now all equal height, mobile layout wraps gracefully.

Fixes: go-gitea#13671
Replaces: go-gitea#20375
lafriks added a commit that referenced this pull request Aug 7, 2022
* Rework repo buttons

- Replace "New PR" and "Go to File" button with Icon Button
- Move all "Add File" actions into a dropdown button
- Remove most custom styling of clone buttons
- Margin and wiki tweaks

Buttons are now all equal height, mobile layout wraps gracefully.

Fixes: #13671
Replaces: #20375

Co-authored-by: Lauris BH <lauris@nix.lv>
Co-authored-by: zeripath <art27@cantab.net>
Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
silverwind added a commit to silverwind/gitea that referenced this pull request Aug 8, 2022
* Rework repo buttons

- Replace "New PR" and "Go to File" button with Icon Button
- Move all "Add File" actions into a dropdown button
- Remove most custom styling of clone buttons
- Margin and wiki tweaks

Buttons are now all equal height, mobile layout wraps gracefully.

Fixes: go-gitea#13671
Replaces: go-gitea#20375

Co-authored-by: Lauris BH <lauris@nix.lv>
Co-authored-by: zeripath <art27@cantab.net>
Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
vsysoev pushed a commit to IntegraSDL/gitea that referenced this pull request Aug 10, 2022
* Rework repo buttons

- Replace "New PR" and "Go to File" button with Icon Button
- Move all "Add File" actions into a dropdown button
- Remove most custom styling of clone buttons
- Margin and wiki tweaks

Buttons are now all equal height, mobile layout wraps gracefully.

Fixes: go-gitea#13671
Replaces: go-gitea#20375

Co-authored-by: Lauris BH <lauris@nix.lv>
Co-authored-by: zeripath <art27@cantab.net>
Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
zeripath pushed a commit that referenced this pull request Aug 20, 2022
* Rework repo buttons (#20602)

* Rework repo buttons

- Replace "New PR" and "Go to File" button with Icon Button
- Move all "Add File" actions into a dropdown button
- Remove most custom styling of clone buttons
- Margin and wiki tweaks

Buttons are now all equal height, mobile layout wraps gracefully.

Fixes: #13671
Replaces: #20375

* Restore history button and hide add button when unable to add (#20718)

Fix two regressions from #20602:

- Restore the 'History' button that was previously unable to render
  because it's show condition was never hit
- Hide the 'Add File' button when there would be no items in the
  dropdown.

Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
@lunny lunny removed this from the 1.18.0 milestone Dec 20, 2022
@go-gitea go-gitea locked and limited conversation to collaborators May 3, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
lgtm/need 1 This PR needs approval from one additional maintainer to be merged. topic/ui Change the appearance of the Gitea UI
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants