-
-
Notifications
You must be signed in to change notification settings - Fork 5.6k
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
Multiple GitGraph improvements: Exclude PR heads, Add branch/PR links, Show only certain branches, #12766
Multiple GitGraph improvements: Exclude PR heads, Add branch/PR links, Show only certain branches, #12766
Conversation
Add backend support for excluding PRs, selecting branches and files. Fix go-gitea#10327 Signed-off-by: Andrew Thornton <[email protected]>
Issues:
|
Codecov Report
@@ Coverage Diff @@
## master #12766 +/- ##
========================================
Coverage 42.61% 42.62%
========================================
Files 671 671
Lines 73635 73740 +105
========================================
+ Hits 31379 31429 +50
- Misses 37183 37227 +44
- Partials 5073 5084 +11
Continue to review full report at Codecov.
|
@zeripath Hovering mouse over commit entry in the graph which had branch/PR label cause commit message text half-highlighted: Perhaps try highlighting over |
you need to reload your css |
Header and buttons are not properly vertically centered, Maybe needs some flexbox. Also, the buttons/dropdown look too big. Maybe try Branch tags also have a centering issue, maybe I'll play with those later. |
Also, I think using small avatars (20px) might be nice in that list, e.g.
|
Signed-off-by: Andrew Thornton <[email protected]>
Signed-off-by: Andrew Thornton <[email protected]>
Signed-off-by: Andrew Thornton <[email protected]>
Signed-off-by: Andrew Thornton <[email protected]>
Signed-off-by: Andrew Thornton <[email protected]>
Done
I can't seem to easily change that.
I've tried making these
This does make the whole thing less responsive however |
How about making it: li.highlight,
li.hover {
background-image: linear-gradient(90deg, rgba(0, 0, 0, .05), transparent 50%);
}
li.highlight.hover {
background-image: linear-gradient(90deg, rgba(0, 0, 0, .1), transparent 50%);
} |
Some tweaks in silverwind@c2ce5dc. I made the highlight row-only, I think it's sufficient and not as distracting. Also noticed the page is missing a title, which should be fixable by adding |
Some more stuff in silverwind@f633478. |
Fix 10327 commit graph options
Signed-off-by: Andrew Thornton <[email protected]>
You needed to prefix the |
BTW I think the divider between the hide-pr-requests was better - but I'm not going fight over it. |
Ah, good to know. I wouldn't have thought of that because the translation key does not have
I think it looked slightly odd odd with non-equal spaced dropdown children. Oh and one more fix in silverwind@a44ac28ef which fixes some odd z-index issue with the loading indicator and positions it a bit down so it does not stick to the top of the container. |
fix loading indicator z-index and position
🚀 |
This PR adds multiple improvements to GitGraphs:
Also adds backend support for graphs on certain files.
Fix #10327
Signed-off-by: Andrew Thornton [email protected]
Screenshots
Basic View
Exclude PRs
(as you can see #8 has disappeared)
Select a few Branches
Select a few Branches (exclude PRs)
Select a few Branches+PRs (Exclude the other PRs)