Skip to content

Commit 656c7b5

Browse files
author
Ilya Radchenko
authored
Dashboard & Build UI refresh (#988)
* Partial progress on dashboard redesign * New dashboard * Remove useless media query * Support running tasks * Change shade of red * Convert dashboard project list to ul+li from tables. Public view is untested at the moment. * Bring back the build history * Update state colors * Fix dash responsiveness * Fix hover colors for projects and change errored color * Inverse colors and remove border around * Change buttons and use strider-colors * Make config wrench a button too * Text decoration on buttons removed * Actually fix text decoration * Cleaned up styles for build page * Clean up styles * More CSS cleanup * More build history cleanup * Style history items, add hover and remove icon * Update state-text colors * Increase history item's progress margin * Fix waiting and running text * Fix border and spacing on metadata/console * Fix metadata radius * Fix metadata padding * Phase margin tweak * Build history cleanup * Build history tweaks * Fix missing closing tag * Better indicator for pending tasks * Build latest * Add seperator between dates and flatten config button
1 parent 7b001bd commit 656c7b5

15 files changed

+83384
-1456
lines changed

client/styles/build.less

+328-156
Large diffs are not rendered by default.

client/styles/button.less

+530
Large diffs are not rendered by default.

client/styles/dashboard.less

+202-20
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,15 @@
1+
@import "strider-colors";
2+
@import "button";
13

24
.no-projects {
35
margin-top: 20px;
46
margin-bottom: 25px;
57
}
68

9+
.project-list {
10+
margin: 0;
11+
}
12+
713
.finished-at time {
814
line-height: 27px;
915
}
@@ -12,45 +18,221 @@
1218
line-height: 29px;
1319
}
1420

21+
.icon.no-text {
22+
margin-left: 0 !important;
23+
}
24+
1525
#dashboard .finished-at .cancel-job {
1626
font-size: 18px;
1727
line-height: 36px;
1828
}
1929

20-
#dashboard table tr {
21-
.progress-meter {
22-
margin-top: 10px;
23-
}
24-
}
25-
2630
#dashboard {
27-
a, .clickable {
31+
a.clickable {
2832
cursor: pointer;
2933
&:hover {
3034
text-decoration: none;
3135
color: #999;
3236
}
3337
}
34-
.btn:hover {
35-
color: white;
36-
}
37-
}
3838

39-
#dashboard {
4039
a.add-repo {
4140
color: #fff;
4241
}
42+
4343
.history {
44-
width:70px;
44+
width: 70px;
4545
}
46-
.last-builds {
47-
tr td {
48-
width:10px;
49-
height:10px;
50-
padding:0;
51-
overflow:hidden;
52-
border-top:none;
46+
47+
#job-list-yours,
48+
#job-list-public {
49+
// We add a border on the left of each row, indicating the state of the last build.
50+
li, td ~ td {
51+
background-color: #fff;
52+
transition: .3s;
53+
margin-bottom: 10px;
54+
border-left: 6px solid #BBB;
55+
}
56+
57+
.running {
58+
border-left-width: 6px;
59+
border-color: @strider-bg-running;
60+
background-color: lighten(@strider-bg-running, 25%);
61+
62+
&:hover {
63+
background-color: lighten(@strider-bg-running, 35%);
64+
}
5365
}
66+
67+
.passed {
68+
border-left-width: 6px;
69+
border-color: @strider-bg-passed;
70+
background-color: lighten(@strider-bg-passed, 25%);
71+
72+
&:hover {
73+
background-color: lighten(@strider-bg-passed, 35%);
74+
}
75+
}
76+
77+
.failed {
78+
border-left-width: 6px;
79+
border-color: @strider-bg-failed;
80+
background-color: lighten(@strider-bg-failed, 25%);
81+
82+
&:hover {
83+
background-color: lighten(@strider-bg-failed, 35%);
84+
}
85+
}
86+
87+
.errored {
88+
border-left-width: 6px;
89+
border-color: @strider-bg-errored;
90+
background-color: lighten(@strider-bg-errored, 25%);
91+
92+
&:hover {
93+
background-color: lighten(@strider-bg-errored, 35%);
94+
}
95+
}
96+
}
97+
}
98+
99+
.dashboard-row,
100+
#dashboard ul li {
101+
padding: 10px;
102+
position: relative;
103+
overflow: hidden;
104+
105+
.inline-block {
106+
display: inline-block;
107+
}
108+
109+
.job-id {
110+
font-family: monospace;
54111
}
55112

113+
.btn-link {
114+
color: #333;
115+
}
116+
117+
& > a,
118+
& > span {
119+
display: inline-block;
120+
padding: 5px 10px;
121+
}
122+
123+
span.clickable,
124+
a:not(.button) {
125+
color: black;
126+
cursor: pointer;
127+
}
128+
129+
.github-link {
130+
margin-left: 5px;
131+
}
132+
133+
&:hover {
134+
.action-buttons {
135+
& > div {
136+
visibility: visible;
137+
}
138+
}
139+
}
140+
141+
.small-text {
142+
display: inline-block;
143+
}
144+
145+
.action-buttons {
146+
width: 100px;
147+
text-align: center;
148+
.btn-group {
149+
padding-top: 4px;
150+
}
151+
}
152+
153+
.progress-meter {
154+
.progress {
155+
margin-bottom: 0;
156+
}
157+
}
158+
159+
.committer {
160+
a {
161+
padding: 0;
162+
}
163+
img {
164+
width: 35px;
165+
height: 35px;
166+
max-width: inherit;
167+
margin: 10px 10px 10px 0;
168+
}
169+
}
170+
171+
.project-name {
172+
a {
173+
font-size: 18px;
174+
line-height: 27px;
175+
width: 100%;
176+
}
177+
}
178+
179+
.run-time {
180+
text-align: center;
181+
}
182+
}
183+
184+
@media (max-width: 980px) {
185+
#dashboard {
186+
.triggered-by-header,
187+
.commit-url,
188+
.committer,
189+
.job-link a span {
190+
display: none;
191+
}
192+
}
193+
}
194+
195+
@media (max-width: 767px) {
196+
#dashboard {
197+
.finished-at {
198+
display: none;
199+
}
200+
}
201+
202+
#build-page .job-title h3 {
203+
margin-bottom: 0.5em;
204+
}
205+
206+
.navbar-fixed-top {
207+
margin-bottom: 0;
208+
}
209+
}
210+
211+
@media (max-width: 650px) {
212+
#dashboard {
213+
overflow: auto;
214+
215+
.deploy,
216+
.deploy-header,
217+
.refresh,
218+
.refresh-header,
219+
.configure,
220+
.configure-header,
221+
.committer,
222+
.committer-header,
223+
.github-header,
224+
.github-link {
225+
display: none;
226+
}
227+
}
228+
}
229+
230+
@media (max-width: 450px) {
231+
#dashboard {
232+
ul li .project-name a {
233+
font-size: 14px;
234+
font-weight: normal;
235+
line-height: 25px;
236+
}
237+
}
56238
}

client/styles/strider-colors.less

+4-4
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11

22
// background status
3-
@strider-bg-failed: #FFD2D0;
4-
@strider-bg-errored: #DDD;
5-
@strider-bg-passed: #CFFFD2;
6-
@strider-bg-running: #D7F3FF;
3+
@strider-bg-failed: #e84135;
4+
@strider-bg-errored: #fbda41;
5+
@strider-bg-passed: #7bbf51;
6+
@strider-bg-running: #5eaaad;

0 commit comments

Comments
 (0)