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

[dont merge] branch page some enhancements (-> PRs #7602 #7603 #7604) #7520

Closed
wants to merge 32 commits into from

Conversation

6543
Copy link
Member

@6543 6543 commented Jul 18, 2019

is part of the issue "branch view some enhancements #7454"

  • all buttons on the right side should be with border
  • find another way to layout the button correctly that does at least not rely on absolute positioning
  • move button info into buttons
  • delete table header
  • move inline css to less

maybe use a template vor all download butons in future?
@6543 6543 mentioned this pull request Jul 18, 2019
14 tasks
@6543

This comment has been minimized.

@GiteaBot GiteaBot added the lgtm/need 2 This PR needs two approvals by maintainers to be considered for merging. label Jul 18, 2019
@codecov-io
Copy link

codecov-io commented Jul 18, 2019

Codecov Report

Merging #7520 into master will decrease coverage by 0.01%.
The diff coverage is n/a.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #7520      +/-   ##
==========================================
- Coverage   41.25%   41.24%   -0.02%     
==========================================
  Files         469      469              
  Lines       63618    63608      -10     
==========================================
- Hits        26246    26234      -12     
- Misses      33948    33955       +7     
+ Partials     3424     3419       -5
Impacted Files Coverage Δ
models/unit.go 62.16% <0%> (-5.41%) ⬇️
modules/log/event.go 64.61% <0%> (-1.03%) ⬇️
models/repo_list.go 72.08% <0%> (-1.02%) ⬇️
models/ssh_key.go 46% <0%> (-0.28%) ⬇️
routers/repo/http.go 35.06% <0%> (-0.27%) ⬇️
modules/git/parse.go 58.92% <0%> (ø) ⬆️
modules/git/repo_tree.go 41.26% <0%> (ø) ⬆️
modules/git/notes.go 40% <0%> (ø) ⬆️
modules/git/tree_blob.go 82.92% <0%> (ø) ⬆️
routers/api/v1/api.go 71.36% <0%> (ø) ⬆️
... and 3 more

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update bcbc9f3...99470a8. Read the comment docs.

@lunny
Copy link
Member

lunny commented Jul 19, 2019

duplicated protect button.

@gary-kim
Copy link
Member

duplicated protect button.

That's not from this PR. I added the icon on the left so users without write access can also see if the branch is protected.
Maybe instead of the protected icon, we should just get rid of the delete branch button if the branch is protected?

@6543
Copy link
Member Author

6543 commented Jul 19, 2019

@gary-kim done ... ?

@gary-kim
Copy link
Member

It seems to have broken for me. Using Firefox 67.
Screenshot from 2019-07-19 13-58-00

@6543
Copy link
Member Author

6543 commented Jul 19, 2019

@gary-kim WIP

@6543 6543 mentioned this pull request Jul 19, 2019
@6543
Copy link
Member Author

6543 commented Jul 19, 2019

@gary-kim test it now :D

@6543

This comment has been minimized.

@6543
Copy link
Member Author

6543 commented Jul 19, 2019

duplicated protect button.

That's not from this PR. I added the icon on the left so users without write access can also see if the branch is protected.
Maybe instead of the protected icon, we should just get rid of the delete branch button if the branch is protected?

i moved the protect symbol to the delete colum, all symbols are in one row. if this is ok, we should rename the colum header (to actions?) or delete the table header because it isn't very usefull at all

@6543

This comment has been minimized.

@6543 6543 changed the title WIP: branch page (add download butons) branch page (add download butons) Jul 19, 2019
@6543 6543 changed the title branch page (some enhancements) [WIP ]branch page (some enhancements) Jul 23, 2019
@6543 6543 changed the title [WIP ]branch page (some enhancements) [WIP] branch page (some enhancements) Jul 23, 2019
@6543
Copy link
Member Author

6543 commented Jul 23, 2019

I like how the download button looks now. There still seems to be a few things to be fixed up though.

Also, in your image, it seems like the right border of the New Pull Request button is cut off. Is that an issue unique to the Blink engine? It doesn't seem to be happening in Firefox.

EDIT: Oh, turns out the border being cut off happens when the screen is smaller then 1200px. Once you pass the breakpoint, the button border on the right side gets cut off. That should get fixed.

saw this bug too, but thought this sint relatet tho this PR would put it into another one.

@6543

This comment has been minimized.

@6543 6543 changed the title [WIP] branch page (some enhancements) [WIP] branch page (Download Button + some enhancements) Jul 23, 2019
@6543 6543 changed the title [WIP] branch page (Download Button + some enhancements) branch page (Download Button + some enhancements) Jul 24, 2019
@lunny lunny removed the pr/wip This PR is not ready for review label Jul 24, 2019
@6543
Copy link
Member Author

6543 commented Jul 24, 2019

@lafriks @gary-kim is this state now ready for a merge?
@gary-kim i think your sugesstions are new issues -> PR (#7577; #7576)

EDIT: I'll remove it from the diff so it should realy handled seperatly (99470a8)

shuld be seperat handel (go-gitea#7530) was first step ... to go-gitea#7454 (duble protection symbole ...)
@@ -92,14 +91,25 @@
{{end}}
{{end}}
</td>
<td class="right alinged one wide download-column">
Copy link
Member

@silverwind silverwind Jul 24, 2019

Choose a reason for hiding this comment

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

typo alinged?

@silverwind
Copy link
Member

silverwind commented Jul 24, 2019

I think the current implementation takes away too much space from the important left-aligned column because having the buttons inside individual fixed columns introduces unnecessary spacing. I'd put all three buttons in the same td and make them look like this (remove compact class on the pull button):

Then right-align the diffstat and let the leftmost column take the remaining space.

@silverwind
Copy link
Member

Oh, and if you want to save even more space, change the pull button to a icon-only button.

@6543 6543 changed the title branch page (Download Button + some enhancements) [dont merge] branch page (Download Button + some enhancements) Jul 24, 2019
@6543
Copy link
Member Author

6543 commented Jul 24, 2019

I'll split this pull up into seperate once !

so i can focus on one thing at a time

@6543 6543 changed the title [dont merge] branch page (Download Button + some enhancements) [dont merge] branch page some enhancements (-> PRs #7602 #7603 #7604) Jul 24, 2019
@6543
Copy link
Member Author

6543 commented Jul 26, 2019

splitup is complete

@6543 6543 closed this Jul 26, 2019
@6543 6543 deleted the wip-branch-page-add-download branch July 26, 2019 03:33
@go-gitea go-gitea locked and limited conversation to collaborators Nov 24, 2020
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. type/enhancement An improvement of existing functionality
Projects
None yet
Development

Successfully merging this pull request may close these issues.

9 participants