Skip to content

Commit b4ad4d3

Browse files
authored
Merge pull request #19 from hiro1202/feat/feature-adoption
feat: refactor dashboard layout, units, and error-budget visualization
2 parents 3889365 + 7f3a1a6 commit b4ad4d3

3 files changed

Lines changed: 755 additions & 134 deletions

File tree

docs/assets/css/dashboard.css

Lines changed: 103 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -308,6 +308,26 @@ a:hover {
308308
margin-left: 8px;
309309
}
310310

311+
.kpi-row {
312+
display: flex;
313+
align-items: baseline;
314+
justify-content: space-between;
315+
gap: 12px;
316+
flex-wrap: wrap;
317+
}
318+
319+
.kpi-spark {
320+
position: relative;
321+
width: 100%;
322+
height: 56px;
323+
margin-top: 2px;
324+
}
325+
.kpi-spark canvas {
326+
width: 100% !important;
327+
height: 100% !important;
328+
display: block;
329+
}
330+
311331
.kpi-foot {
312332
display: flex;
313333
align-items: center;
@@ -366,6 +386,11 @@ a:hover {
366386
max-width: 60%;
367387
height: 36px;
368388
}
389+
.kpi-spark .spark {
390+
width: 100% !important;
391+
max-width: none !important;
392+
height: 100% !important;
393+
}
369394

370395
/* ---------- Charts / Cards ---------- */
371396
.section {
@@ -578,6 +603,84 @@ a:hover {
578603
margin-left: 2px;
579604
}
580605

606+
.error-budget-grid {
607+
display: grid;
608+
grid-template-columns: repeat(2, minmax(0, 1fr));
609+
gap: 20px;
610+
margin-top: 14px;
611+
padding-top: 12px;
612+
border-top: 1px dashed var(--border);
613+
}
614+
.error-budget-chart {
615+
display: flex;
616+
flex-direction: column;
617+
gap: 6px;
618+
}
619+
.error-budget-chart-head {
620+
display: flex;
621+
flex-direction: column;
622+
gap: 2px;
623+
}
624+
.error-budget-chart-title {
625+
font-size: 12px;
626+
font-weight: 600;
627+
color: var(--text);
628+
letter-spacing: 0.2px;
629+
}
630+
.error-budget-chart-sub {
631+
font-size: 11px;
632+
color: var(--text-mute);
633+
font-family: var(--mono);
634+
}
635+
.error-budget-chart-body {
636+
position: relative;
637+
width: 100%;
638+
height: 180px;
639+
margin-top: 4px;
640+
}
641+
.error-budget-chart-body.burn-rate-gauge {
642+
height: 220px;
643+
}
644+
.error-budget-chart-body canvas {
645+
width: 100% !important;
646+
height: 100% !important;
647+
}
648+
@media (max-width: 900px) {
649+
.error-budget-grid {
650+
grid-template-columns: 1fr;
651+
}
652+
}
653+
654+
.latency-trend {
655+
position: relative;
656+
width: 100%;
657+
height: 180px;
658+
margin-top: 14px;
659+
padding-top: 12px;
660+
border-top: 1px dashed var(--border);
661+
}
662+
.latency-trend canvas {
663+
width: 100% !important;
664+
height: 100% !important;
665+
}
666+
.latency-legend {
667+
list-style: none;
668+
margin: 8px 0 0;
669+
padding: 0;
670+
display: flex;
671+
flex-wrap: wrap;
672+
gap: 14px;
673+
color: var(--text-dim);
674+
font-size: 11px;
675+
font-family: var(--mono);
676+
}
677+
.latency-legend li {
678+
display: inline-flex;
679+
align-items: center;
680+
gap: 6px;
681+
}
682+
683+
581684
/* ---------- Table ---------- */
582685
.table-wrap {
583686
overflow-x: auto;

0 commit comments

Comments
 (0)