Skip to content

Commit a93f2cf

Browse files
committed
intermittent failure view fixes
1 parent 5dfca93 commit a93f2cf

File tree

83 files changed

+489
-369
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

83 files changed

+489
-369
lines changed

ui/css/intermittent-failures.css

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,23 @@ ul {
6161
}
6262

6363
/* ReactTable style */
64+
.ReactTable .rt-thead .rt-tr,
65+
.ReactTable .rt-tbody .rt-tr,
66+
.ReactTable .rt-td,
67+
.ReactTable .rt-th {
68+
text-align: left;
69+
}
70+
71+
/* Keep pagination controls on one row */
72+
.ReactTable .-pagination {
73+
flex-wrap: nowrap;
74+
}
75+
76+
.ReactTable .-pagination .-center {
77+
flex-wrap: nowrap;
78+
white-space: nowrap;
79+
}
80+
6481
.ReactTable .-pagination .-btn:focus {
6582
box-shadow: 0 0 0 0.2rem rgba(130, 138, 145, 0.5);
6683
}

ui/css/perf.css

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -799,3 +799,15 @@ li.pagination-active.active > button {
799799
font-size: 14px !important;
800800
color: white !important;
801801
}
802+
803+
/* Consistent checkbox sizing for alerts table */
804+
.compare-table .form-check-input {
805+
width: 1.25em;
806+
height: 1.25em;
807+
margin-top: 0.125em;
808+
cursor: pointer;
809+
}
810+
811+
.compare-table .form-check-input:disabled {
812+
cursor: not-allowed;
813+
}

ui/css/treeherder-custom-styles.css

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,25 @@
1010
* when adding new styles.
1111
*/
1212

13+
/* Set base font size to match pre-Bootstrap 5 styling */
14+
html {
15+
font-size: 14px;
16+
}
17+
18+
/* Ensure Bootstrap components inherit the base font size */
19+
.btn:not(.job-btn):not(.runnable-job-btn):not(.btn-push):not(.btn-view-nav):not(.btn-view-nav-closed):not(.group-btn):not(.group-symbol):not(.group-select-all-runnable),
20+
.dropdown-toggle,
21+
.dropdown-item,
22+
.dropdown-menu,
23+
.form-control,
24+
.form-select,
25+
.input-group-text,
26+
.alert,
27+
.nav-link,
28+
a {
29+
font-size: 1rem;
30+
}
31+
1332
/* Bootstrap 4 will not show <a> as a link style if it has no href.
1433
This adds that style back. */
1534
.link-style {
@@ -315,6 +334,12 @@
315334
color: #0d7d8f;
316335
}
317336

337+
.alert-info {
338+
color: #0c5460;
339+
background-color: #d1ecf1;
340+
border-color: #bee5eb;
341+
}
342+
318343
.alert-darker-info,
319344
.badge-darker-info {
320345
background: #0d7d8f;

ui/css/treeherder-navbar.css

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -73,14 +73,14 @@ label.dropdown-item.active,
7373

7474
.navbar-right {
7575
display: flex;
76-
justify-content: flex-end;
76+
align-items: center;
7777
}
7878

7979
.nav-menu-btn {
8080
margin-right: -4px;
8181
padding-left: 14px;
8282
padding-right: 14px;
83-
font-size: 13px;
83+
font-size: 14px;
8484
}
8585

8686
.nav-menu-btn.dropdown-toggle {
@@ -127,6 +127,7 @@ secondary-nav-bar {
127127
width: 100%;
128128
display: flex;
129129
background-color: #354048;
130+
min-height: 33px;
130131
}
131132

132133
.tree-closed {
@@ -257,7 +258,8 @@ secondary-nav-bar {
257258

258259
.btn-unclassified-failures {
259260
margin-top: 1px;
260-
padding: 3px 10px;
261+
padding: 2px 8px;
262+
font-size: 13px;
261263
background-color: rgba(78, 93, 21, 0.56);
262264
border-color: #9fa01d;
263265
color: lightgray;
@@ -303,13 +305,14 @@ fieldset[disabled] .btn-unclassified-failures.active {
303305
border-bottom: 0;
304306
border-top: 0;
305307
border-right: 0;
308+
font-size: 0.875rem;
306309
}
307310

308311
.btn-view-nav:hover,
309312
.btn-view-nav:focus,
310313
.btn-view-nav:active,
311314
.btn-view-nav.active {
312-
background-color: #2c3133 !important;
315+
background-color: #404446 !important;
313316
border-color: #1a1d20 !important;
314317
color: white;
315318
}
@@ -478,3 +481,8 @@ fieldset[disabled] .btn-view-nav-closed.active {
478481
.btn-watched-repo {
479482
padding: 0.375rem 0.5rem;
480483
}
484+
485+
/* Remove caret from repository dropdown toggle */
486+
.no-caret::after {
487+
display: none !important;
488+
}

ui/css/treeherder-pushes.css

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
.push-bar {
66
border-top: 1px solid black;
7-
padding: 2px 0 1px 34px;
7+
padding: 2px 0 1px 12px;
88
white-space: nowrap;
99
display: flex;
1010
flex-flow: row nowrap;
@@ -72,6 +72,7 @@
7272
padding-left: 9px;
7373
padding-right: 10px;
7474
border: 0;
75+
font-size: 12px;
7576
}
7677

7778
.btn-push:hover {
@@ -154,6 +155,7 @@ fieldset[disabled] .btn-push:hover {
154155
min-width: 14.5em;
155156
overflow: hidden;
156157
vertical-align: top;
158+
text-align: left;
157159
}
158160

159161
.job-row {
@@ -162,6 +164,7 @@ fieldset[disabled] .btn-push:hover {
162164
white-space: normal;
163165
word-break: normal;
164166
padding-top: 0;
167+
text-align: left;
165168
padding-bottom: 0;
166169
}
167170

ui/intermittent-failures/DateOptions.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ export default class DateOptions extends React.Component {
4747

4848
return (
4949
<div className="d-inline-block">
50-
<DropdownButton className="mr-3" title="date range">
50+
<DropdownButton className="me-3" title="date range">
5151
<DropdownMenuItems
5252
options={dateOptions}
5353
updateData={this.updateDateRange}

ui/intermittent-failures/DateRangePicker.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ export default class DateRangePicker extends React.Component {
9191
isOutsideRange={(day) => moment().diff(day) < 0}
9292
phrases={defaultPhrases}
9393
/>
94-
<Button variant="secondary" className="ml-3" onClick={this.updateData}>
94+
<Button variant="secondary" className="ms-3" onClick={this.updateData}>
9595
update
9696
</Button>
9797
</div>

ui/intermittent-failures/GraphsContainer.jsx

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -43,15 +43,14 @@ export default class GraphsContainer extends React.Component {
4343
)}
4444
</Row>
4545
<Row>
46-
<Col xs="12" className="mx-auto pb-5">
47-
<Button onClick={this.toggleAltViewGraph} className="mr-3">
46+
<Col
47+
xs="12"
48+
className="mx-auto pb-5 d-flex gap-2 justify-content-center"
49+
>
50+
<Button variant="secondary" onClick={this.toggleAltViewGraph}>
4851
{showAlternateView ? 'Show graph view' : 'Show table view'}
4952
</Button>
50-
<Button
51-
variant="secondary"
52-
onClick={this.toggleGraph}
53-
className="d-inline-block mr-3"
54-
>
53+
<Button variant="secondary" onClick={this.toggleGraph}>
5554
{`${showGraphTwo ? 'less' : 'more'} ${
5655
showAlternateView ? 'tables' : 'graphs'
5756
}`}

ui/intermittent-failures/MainView.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ const MainView = (props) => {
111111
Cell: (props) => (
112112
<div>
113113
<a
114-
className="ml-1"
114+
className="ms-1"
115115
target="_blank"
116116
rel="noopener noreferrer"
117117
href={`${getBugUrl(props.original.id)}`}

ui/intermittent-failures/Navigation.jsx

Lines changed: 25 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -22,12 +22,25 @@ export default class Navigation extends React.Component {
2222
render() {
2323
const { updateState, tree, user, setUser, notify } = this.props;
2424
return (
25-
<Navbar expand={false} fixed="top" className="top-navbar">
26-
<LogoMenu
27-
menuText="Intermittent Failures View"
28-
colorClass="lightorange"
29-
/>
30-
<Nav className="me-auto">
25+
<Navbar
26+
expand={false}
27+
fixed="top"
28+
className="top-navbar d-flex justify-content-between"
29+
style={{
30+
width: '100%',
31+
maxWidth: '100vw',
32+
paddingLeft: '0.5rem',
33+
paddingRight: '0.5rem',
34+
}}
35+
>
36+
<div
37+
className="d-flex align-items-center gap-2"
38+
style={{ flex: '1 1 auto', minWidth: 0 }}
39+
>
40+
<LogoMenu
41+
menuText="Intermittent Failures View"
42+
colorClass="lightorange"
43+
/>
3144
<Dropdown>
3245
<Dropdown.Toggle className="btn-navbar navbar-link" variant="dark">
3346
Tree
@@ -40,11 +53,14 @@ export default class Navigation extends React.Component {
4053
/>
4154
</Dropdown.Menu>
4255
</Dropdown>
43-
</Nav>
44-
<Nav className="ms-auto">
56+
</div>
57+
<div
58+
className="d-flex align-items-center gap-2"
59+
style={{ flex: '0 0 auto' }}
60+
>
4561
<HelpMenu />
4662
<Login user={user} setUser={setUser} notify={notify} />
47-
</Nav>
63+
</div>
4864
</Navbar>
4965
);
5066
}

0 commit comments

Comments
 (0)