feat: add static frontend with SPA routing

- Sessions list with filters (time, framework, host)
- Session detail with runs table
- Run detail with expandable spans
- Dark theme GitHub-style UI
- API proxy to query-api via /api

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
William Valentin
2026-01-17 01:59:16 -08:00
parent d71b6ae537
commit 1927ec6622
4 changed files with 460 additions and 22 deletions
+128
View File
@@ -0,0 +1,128 @@
* { box-sizing: border-box; margin: 0; padding: 0; }
body {
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
background: #0d1117;
color: #c9d1d9;
line-height: 1.5;
}
header {
background: #161b22;
padding: 1rem 2rem;
border-bottom: 1px solid #30363d;
}
header h1 a {
color: #58a6ff;
text-decoration: none;
}
main {
max-width: 1200px;
margin: 0 auto;
padding: 2rem;
}
.back-link {
display: inline-block;
margin-bottom: 1rem;
color: #58a6ff;
text-decoration: none;
}
.back-link:hover { text-decoration: underline; }
.page-header {
margin-bottom: 1.5rem;
}
.page-header h2 {
font-size: 1.5rem;
margin-bottom: 0.5rem;
}
.meta { color: #8b949e; font-size: 0.9rem; }
.filters {
display: flex;
gap: 1rem;
margin-bottom: 1.5rem;
flex-wrap: wrap;
}
.filters label {
display: flex;
flex-direction: column;
gap: 0.25rem;
font-size: 0.85rem;
color: #8b949e;
}
.filters input, .filters select {
background: #21262d;
border: 1px solid #30363d;
color: #c9d1d9;
padding: 0.5rem;
border-radius: 4px;
}
table {
width: 100%;
border-collapse: collapse;
}
th, td {
text-align: left;
padding: 0.75rem 1rem;
border-bottom: 1px solid #21262d;
}
th {
background: #161b22;
font-weight: 600;
font-size: 0.85rem;
text-transform: uppercase;
color: #8b949e;
}
tr:hover { background: #161b22; }
tr.clickable { cursor: pointer; }
.status-success { color: #3fb950; }
.status-error { color: #f85149; }
.status-unknown { color: #d29922; }
.load-more {
display: block;
width: 100%;
margin-top: 1rem;
padding: 0.75rem;
background: #21262d;
border: 1px solid #30363d;
color: #c9d1d9;
cursor: pointer;
border-radius: 4px;
}
.load-more:hover { background: #30363d; }
.expandable { cursor: pointer; }
.expand-icon { margin-right: 0.5rem; }
.span-details {
background: #161b22;
padding: 1rem;
margin: 0.5rem 0;
border-radius: 4px;
font-family: monospace;
font-size: 0.85rem;
white-space: pre-wrap;
word-break: break-all;
}
.empty-state {
text-align: center;
padding: 3rem;
color: #8b949e;
}