Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
62 changes: 31 additions & 31 deletions dashboards/components/BuildTimesDashboard.css
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
.build-times-dashboard {
.build-times-dashboard, .pipeline-dashboard {
max-width: 1400px;
margin: 0 auto;
padding: 20px;
Expand Down Expand Up @@ -136,7 +136,7 @@
}

/* Controls - Search and Filters */
.controls-container {
.controls-container, .toolbar {
background: white;
border: 1px solid #e2e8f0;
border-radius: 8px;
Expand All @@ -149,7 +149,7 @@
box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.search-box {
.search-box, .toolbar-search {
flex: 1;
min-width: 250px;
}
Expand Down Expand Up @@ -273,7 +273,7 @@
}

/* Builds Table */
.builds-table-container {
.builds-table-container, .history-panel {
background: white;
border: 1px solid #e2e8f0;
border-radius: 8px;
Expand Down Expand Up @@ -301,17 +301,17 @@
font-weight: 500;
}

.builds-table {
.builds-table, .history-table {
width: 100%;
border-collapse: collapse;
}

.builds-table thead {
.builds-table thead, .history-table thead {
background-color: #f7fafc;
border-bottom: 2px solid #e2e8f0;
}

.builds-table th {
.builds-table th, .history-table th {
padding: 12px 16px;
text-align: left;
font-weight: 600;
Expand All @@ -331,27 +331,27 @@
color: #4a5568;
}

.builds-table tbody tr {
.builds-table tbody tr, .history-table tbody tr {
border-bottom: 1px solid #e2e8f0;
transition: background-color 0.2s ease;
}

.builds-table tbody tr:hover {
.builds-table tbody tr:hover, .history-table tbody tr:hover {
background-color: #f7fafc;
}

.builds-table tbody tr.expanded-row {
.builds-table tbody tr.expanded-row, .history-table tbody tr.expanded-row {
background-color: #edf2f7;
}

.builds-table td {
.builds-table td, .history-table td {
padding: 14px 16px;
color: #2d3748;
font-size: 14px;
}

/* Custom Button Styles */
.btn {
.btn, .action-btn {
display: inline-flex;
align-items: center;
justify-content: center;
Expand All @@ -367,7 +367,7 @@
user-select: none;
}

.btn-icon {
.btn-icon, .action-btn-icon {
width: 28px;
height: 28px;
padding: 0;
Expand All @@ -383,59 +383,59 @@
user-select: none;
}

.btn-ghost {
.btn-ghost, .action-btn-ghost {
background: transparent;
border-color: transparent;
color: #718096;
}

.btn-ghost:hover {
.btn-ghost:hover, .action-btn-ghost:hover {
background: #f7fafc;
border-color: #e2e8f0;
color: #2d3748;
}

.btn-ghost:active {
.btn-ghost:active, .action-btn-ghost:active {
background: #edf2f7;
}

.btn-primary {
.btn-primary, .action-btn-primary {
background: #4a5568;
border-color: #4a5568;
color: white;
}

.btn-primary:hover {
.btn-primary:hover, .action-btn-primary:hover {
background: #2d3748;
border-color: #2d3748;
}

.btn-primary:active {
.btn-primary:active, .action-btn-primary:active {
background: #1a202c;
}

.btn-secondary {
.btn-secondary, .action-btn-secondary {
background: #f7fafc;
border-color: #cbd5e0;
color: #4a5568;
}

.btn-secondary:hover {
.btn-secondary:hover, .action-btn-secondary:hover {
background: #edf2f7;
border-color: #a0aec0;
color: #2d3748;
}

.btn-secondary:active {
.btn-secondary:active, .action-btn-secondary:active {
background: #e2e8f0;
}

.btn-sm {
.btn-sm, .action-btn-sm {
padding: 6px 12px;
font-size: 12px;
}

.expand-button {
.expand-button, .row-toggle {
background: transparent;
border: 1px solid transparent;
color: #718096;
Expand All @@ -452,13 +452,13 @@
user-select: none;
}

.expand-button:hover {
.expand-button:hover, .row-toggle:hover {
background: #f7fafc;
border-color: #e2e8f0;
color: #2d3748;
}

.expand-button:active {
.expand-button:active, .row-toggle:active {
background: #edf2f7;
}

Expand Down Expand Up @@ -659,7 +659,7 @@
}

/* Build Actions */
.build-actions {
.build-actions, .action-bar {
display: flex;
gap: 8px;
flex-wrap: wrap;
Expand All @@ -684,11 +684,11 @@

/* Responsive Design */
@media (max-width: 768px) {
.builds-table-container {
.builds-table-container, .history-panel {
overflow-x: auto;
}

.builds-table {
.builds-table, .history-table {
min-width: 900px;
}

Expand All @@ -700,11 +700,11 @@
font-size: 24px;
}

.controls-container {
.controls-container, .toolbar {
flex-direction: column;
}

.search-box {
.search-box, .toolbar-search {
width: 100%;
}

Expand Down
35 changes: 22 additions & 13 deletions dashboards/components/BuildTimesDashboard.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -253,37 +253,37 @@
};

return (
<div className="build-times-dashboard">
<div className="pipeline-dashboard">
<header className="dashboard-header">
<h1>CI Pipeline Build Times</h1>
<p className="dashboard-subtitle">Monitor and track your continuous integration builds</p>

Check warning on line 259 in dashboards/components/BuildTimesDashboard.jsx

View workflow job for this annotation

GitHub Actions / audit-dev

distinguishable/color-contrast

Insufficient color contrast ratio of 3.74:1 (required 4.5:1).
</header>

<div className="stats-container">
<div className="stat-card">
<img className="stat-icon" src="data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='32'%3E%3Ctext y='28' font-size='28'%3E📊%3C/text%3E%3C/svg%3E" />

Check warning on line 264 in dashboards/components/BuildTimesDashboard.jsx

View workflow job for this annotation

GitHub Actions / audit-dev

text-alternatives/img-alt

Image element missing alt attribute.
<div className="stat-content">
<div className="stat-value">{stats.totalBuilds}</div>
<div className="stat-label">Total Builds</div>

Check warning on line 267 in dashboards/components/BuildTimesDashboard.jsx

View workflow job for this annotation

GitHub Actions / audit-dev

distinguishable/color-contrast

Insufficient color contrast ratio of 4.02:1 (required 4.5:1).
</div>
</div>
<div className="stat-card">
<div className="stat-icon">⏱️</div>
<div className="stat-content">
<div className="stat-value">{formatDuration(stats.averageBuildTime)}</div>
<div className="stat-label">Average Build Time</div>

Check warning on line 274 in dashboards/components/BuildTimesDashboard.jsx

View workflow job for this annotation

GitHub Actions / audit-dev

distinguishable/color-contrast

Insufficient color contrast ratio of 4.02:1 (required 4.5:1).
</div>
</div>
<div className="stat-card">
<div className="stat-content">
<div className="stat-value">{stats.successRate}%</div>
<div className="stat-label">Success Rate</div>

Check warning on line 280 in dashboards/components/BuildTimesDashboard.jsx

View workflow job for this annotation

GitHub Actions / audit-dev

distinguishable/color-contrast

Insufficient color contrast ratio of 4.02:1 (required 4.5:1).
</div>
</div>
<div className="stat-card">
<div className="stat-content">
<div className="stat-value">{stats.failedBuilds}</div>
<div className="stat-label">Failed Builds</div>

Check warning on line 286 in dashboards/components/BuildTimesDashboard.jsx

View workflow job for this annotation

GitHub Actions / audit-dev

distinguishable/color-contrast

Insufficient color contrast ratio of 4.02:1 (required 4.5:1).
</div>
</div>
</div>
Expand All @@ -310,9 +310,9 @@
</div>

{/* Filters and Search */}
<div className="controls-container">
<div className="search-box">
<div className="toolbar">
<div className="toolbar-search">
<input

Check warning on line 315 in dashboards/components/BuildTimesDashboard.jsx

View workflow job for this annotation

GitHub Actions / audit-dev

labels-and-names/label-placeholder-only

Form element uses placeholder as only label. Use <label>, aria-label, or aria-labelledby instead.
type="text"
placeholder="Search builds..."
value={searchTerm}
Expand All @@ -322,7 +322,14 @@
</div>

<div className="filters">
<select className="search-input" style={{ maxWidth: 180 }}>

Check warning on line 325 in dashboards/components/BuildTimesDashboard.jsx

View workflow job for this annotation

GitHub Actions / audit-dev

labels-and-names/form-label

Form element has no accessible label.
<option>Environment</option>
<option>Production</option>
<option>Staging</option>
<option>Development</option>
</select>

<select className="search-input" style={{ maxWidth: 180 }}>

Check warning on line 332 in dashboards/components/BuildTimesDashboard.jsx

View workflow job for this annotation

GitHub Actions / audit-dev

labels-and-names/form-label

Form element has no accessible label.
<option>Priority</option>
<option>High</option>
<option>Low</option>
Expand Down Expand Up @@ -368,13 +375,14 @@
</div>

{/* Builds Table */}
<div className="builds-table-container">
<div className="history-panel">
<div className="table-header">
<h2>Build History</h2>
<h2>Recent builds</h2>
<div className="results-count">{sortedBuilds.length} results</div>

Check warning on line 381 in dashboards/components/BuildTimesDashboard.jsx

View workflow job for this annotation

GitHub Actions / audit-dev

distinguishable/color-contrast

Insufficient color contrast ratio of 4.02:1 (required 4.5:1).
</div>

<table className="builds-table">
<div className="table-scroll">
<table className="history-table">
<thead>
<tr>
<th></th>
Expand Down Expand Up @@ -404,9 +412,9 @@
<td>
<div
onClick={() => toggleBuildExpansion(build.id)}
className="expand-button"
className="row-toggle"
>
{expandedBuild === build.id ? '' : ''}
{expandedBuild === build.id ? '' : '+'}
</div>
</td>
<td className="build-id">{build.id}</td>
Expand Down Expand Up @@ -459,11 +467,11 @@
</div>

<div className="detail-section">
<div className="build-actions">
<div className="btn btn-primary btn-sm">View Logs</div>
<div className="btn btn-secondary btn-sm">Retry Build</div>
<div className="btn btn-secondary btn-sm">Download Artifacts</div>
<div className="btn btn-ghost btn-sm">Cancel</div>
<div className="action-bar">
<div className="action-btn action-btn-primary action-btn-sm">Open logs</div>
<div className="action-btn action-btn-secondary action-btn-sm">Re-run build</div>
<div className="action-btn action-btn-secondary action-btn-sm">Artifacts</div>
<div className="action-btn action-btn-ghost action-btn-sm">Cancel</div>
</div>
</div>
</div>
Expand All @@ -474,6 +482,7 @@
))}
</tbody>
</table>
</div>
</div>
</div>
);
Expand Down
Loading