-
-
Notifications
You must be signed in to change notification settings - Fork 5.3k
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
Show dropdown with all statuses for commit #13977
Conversation
CirnoT
commented
Dec 14, 2020
•
edited
Loading
edited
- Fetch all statuses for commit
- Create element with list of statuses for commit
- Style the dropdown element
- Abstract dropdown element to template
- Use dropdown element in all places where commit status icon is shown
Codecov Report
@@ Coverage Diff @@
## master #13977 +/- ##
==========================================
- Coverage 42.32% 42.32% -0.01%
==========================================
Files 726 726
Lines 77679 77689 +10
==========================================
+ Hits 32876 32879 +3
- Misses 39405 39410 +5
- Partials 5398 5400 +2
Continue to review full report at Codecov.
|
this looks good to me |
Not strictly required but I think this would be a good opportunity to switch the font-awesome circle for https://primer.style/octicons/dot-fill-16. |
Maybe don't use a segment but a (divided) list: https://fomantic-ui.com/elements/list.html#list I guess some manual styling will be inevitable thought, as always. |
@silverwind Check now |
Please add this for the divider border: diff --git a/web_src/less/_base.less b/web_src/less/_base.less
index 8847a5e3f..369a9543c 100644
--- a/web_src/less/_base.less
+++ b/web_src/less/_base.less
@@ -528,8 +528,12 @@ a.ui.card:hover,
.ui.card .avatar img {
border-radius: var(--border-radius);
}
+.ui.divided.list > .item {
+ border-color: var(--color-secondary);
+}
.dont-break-out {
overflow-wrap: break-word;
word-wrap: break-word;
word-break: break-all; |
The purpose here is to show statuses for specific commit, in case of PR you should always open PR page anyway and check the latest statuses from there. I don't see much point in presenting that information outside of PR page really. |
Maybe just make that icon a link to the PR, possibly with a tooltip like GH has? |
# Conflicts: # services/pull/pull.go
Made icon be part of a link and fixed hardcoded translation string that I've missed. |
Unrelated but I think we really need to make |