Add read-only web dashboard MVP

Adds a disabled-by-default loopback web dashboard MVP with read-only control-plane views, prompt preview redaction, Vite React UI, and validation coverage.
This commit is contained in:
Eyejoker
2026-04-26 17:05:50 +09:00
committed by GitHub
parent d52556fd28
commit 5ba607644f
20 changed files with 1857 additions and 10 deletions

View File

@@ -0,0 +1,506 @@
:root {
color-scheme: light;
--bg: #f3efe4;
--bg-ink: #1c211c;
--panel: rgba(255, 252, 242, 0.9);
--panel-solid: #fffaf0;
--panel-border: rgba(43, 55, 38, 0.16);
--muted: #6d735f;
--accent: #bf5f2c;
--accent-strong: #8f351b;
--green: #3f7f51;
--yellow: #b58a22;
--red: #b74734;
--shadow: 0 24px 70px rgba(44, 39, 25, 0.18);
font-family:
'Avenir Next', 'Segoe UI Variable', 'Noto Sans KR', ui-sans-serif,
sans-serif;
background: var(--bg);
color: var(--bg-ink);
}
* {
box-sizing: border-box;
}
body {
min-width: 320px;
min-height: 100vh;
margin: 0;
background:
radial-gradient(
circle at 18% 12%,
rgba(214, 127, 58, 0.22),
transparent 28rem
),
radial-gradient(
circle at 88% 8%,
rgba(74, 123, 87, 0.18),
transparent 24rem
),
linear-gradient(135deg, #f4ead5 0%, #edf1df 46%, #f5f0e5 100%);
}
button,
input,
table {
font: inherit;
}
.shell {
width: min(1480px, calc(100% - 40px));
margin: 0 auto;
padding: 34px 0 56px;
}
.shell::before {
position: fixed;
inset: 0;
z-index: -1;
pointer-events: none;
content: '';
background-image:
linear-gradient(rgba(28, 33, 28, 0.055) 1px, transparent 1px),
linear-gradient(90deg, rgba(28, 33, 28, 0.045) 1px, transparent 1px);
background-size: 44px 44px;
mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.75), transparent 82%);
}
.loading {
display: grid;
min-height: 100vh;
place-items: center;
font-size: clamp(24px, 5vw, 54px);
font-weight: 900;
letter-spacing: -0.05em;
}
.hero {
display: grid;
grid-template-columns: 1fr auto;
gap: 28px;
align-items: end;
padding: clamp(28px, 4vw, 54px);
overflow: hidden;
border: 1px solid var(--panel-border);
border-radius: 34px;
background:
linear-gradient(
128deg,
rgba(255, 250, 240, 0.96),
rgba(255, 250, 240, 0.76)
),
linear-gradient(45deg, rgba(191, 95, 44, 0.12), rgba(63, 127, 81, 0.1));
box-shadow: var(--shadow);
}
.hero h1 {
max-width: 880px;
margin: 10px 0 12px;
font-family: 'Georgia', 'Noto Serif KR', serif;
font-size: clamp(42px, 8vw, 108px);
line-height: 0.92;
letter-spacing: -0.08em;
}
.hero p {
max-width: 720px;
margin: 0;
color: var(--muted);
font-size: clamp(16px, 2vw, 22px);
line-height: 1.55;
}
.eyebrow {
color: var(--accent-strong);
font-size: 12px;
font-weight: 850;
letter-spacing: 0.16em;
text-transform: uppercase;
}
button {
min-height: 48px;
padding: 0 22px;
border: 0;
border-radius: 999px;
color: #fffaf0;
background: linear-gradient(135deg, var(--accent), var(--accent-strong));
box-shadow: 0 14px 30px rgba(143, 53, 27, 0.24);
cursor: pointer;
}
button:disabled {
cursor: wait;
opacity: 0.62;
}
.error-card,
.card,
.panel {
border: 1px solid var(--panel-border);
background: var(--panel);
box-shadow: 0 12px 44px rgba(44, 39, 25, 0.09);
backdrop-filter: blur(14px);
}
.error-card {
margin-top: 18px;
padding: 18px 20px;
border-color: rgba(183, 71, 52, 0.35);
border-radius: 22px;
color: #7c2518;
background: rgba(255, 235, 225, 0.82);
font-weight: 800;
}
.metrics-grid {
display: grid;
grid-template-columns: repeat(4, minmax(0, 1fr));
gap: 16px;
margin: 22px 0;
}
.control-rail {
display: grid;
grid-template-columns: repeat(4, minmax(0, 1fr));
gap: 1px;
margin: 18px 0 22px;
overflow: hidden;
border: 1px solid var(--panel-border);
border-radius: 28px;
background: rgba(43, 55, 38, 0.12);
box-shadow: 0 18px 50px rgba(44, 39, 25, 0.08);
}
.control-rail div {
display: grid;
gap: 8px;
min-height: 116px;
padding: 20px;
background:
linear-gradient(
145deg,
rgba(255, 250, 240, 0.9),
rgba(255, 250, 240, 0.68)
),
radial-gradient(
circle at 18% 18%,
rgba(191, 95, 44, 0.1),
transparent 16rem
);
}
.control-rail strong {
font-size: clamp(22px, 3vw, 38px);
line-height: 1;
letter-spacing: -0.05em;
}
.control-rail small {
color: var(--muted);
line-height: 1.35;
}
.metric-card {
display: grid;
gap: 8px;
min-height: 142px;
padding: 22px;
border-radius: 26px;
}
.metric-card span,
.metric-card small,
td span,
td small,
dd,
.panel-title span,
.usage-title span,
.bar-line small {
color: var(--muted);
}
.metric-card span {
font-weight: 850;
letter-spacing: 0.08em;
text-transform: uppercase;
}
.metric-card strong {
font-size: clamp(36px, 5vw, 66px);
line-height: 0.9;
letter-spacing: -0.07em;
}
.panel {
margin-top: 18px;
padding: 24px;
border-radius: 30px;
}
.split-panel {
display: grid;
grid-template-columns: minmax(340px, 0.82fr) minmax(0, 1.18fr);
gap: 22px;
}
.panel-title {
display: flex;
gap: 16px;
align-items: baseline;
justify-content: space-between;
margin-bottom: 18px;
}
.panel-title h2 {
margin: 0;
font-family: 'Georgia', 'Noto Serif KR', serif;
font-size: clamp(26px, 3vw, 40px);
letter-spacing: -0.05em;
}
.service-grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
gap: 14px;
}
.service-card {
display: grid;
gap: 18px;
padding: 20px;
border-radius: 24px;
background: rgba(255, 250, 240, 0.72);
}
.service-card h3 {
margin: 6px 0 0;
font-size: 26px;
letter-spacing: -0.04em;
}
.heartbeat-line {
display: flex;
gap: 10px;
align-items: center;
color: var(--muted);
}
.heartbeat-line span {
width: 10px;
height: 10px;
border-radius: 999px;
background: var(--green);
box-shadow: 0 0 0 7px rgba(63, 127, 81, 0.13);
}
dl {
display: grid;
gap: 10px;
margin: 0;
}
dl div {
display: flex;
gap: 12px;
justify-content: space-between;
}
dt {
color: var(--muted);
font-weight: 750;
}
dd {
margin: 0;
text-align: right;
}
.table-wrap {
overflow: auto;
border: 1px solid rgba(43, 55, 38, 0.1);
border-radius: 22px;
background: rgba(255, 250, 240, 0.56);
}
table {
width: 100%;
border-collapse: collapse;
min-width: 720px;
}
th,
td {
padding: 16px;
border-bottom: 1px solid rgba(43, 55, 38, 0.1);
text-align: left;
vertical-align: top;
}
th {
color: var(--muted);
font-size: 12px;
letter-spacing: 0.1em;
text-transform: uppercase;
background: rgba(255, 250, 240, 0.7);
}
tr:last-child td {
border-bottom: 0;
}
td strong,
td span,
td small {
display: block;
}
td strong {
margin-bottom: 4px;
}
td small {
margin-top: 4px;
max-width: 480px;
overflow-wrap: anywhere;
}
.pill {
display: inline-flex;
width: fit-content;
align-items: center;
padding: 5px 10px;
border-radius: 999px;
font-size: 12px;
font-weight: 850;
}
.pill-processing,
.pill-active {
color: #173e23;
background: rgba(63, 127, 81, 0.18);
}
.pill-waiting,
.pill-paused {
color: #6e4a05;
background: rgba(181, 138, 34, 0.2);
}
.pill-inactive,
.pill-completed {
color: #625d52;
background: rgba(109, 115, 95, 0.16);
}
.usage-list {
display: grid;
gap: 14px;
}
.usage-row {
padding: 18px;
border: 1px solid rgba(43, 55, 38, 0.1);
border-radius: 22px;
background: rgba(255, 250, 240, 0.62);
}
.usage-title {
display: flex;
gap: 10px;
justify-content: space-between;
margin-bottom: 14px;
}
.bar-line {
display: grid;
grid-template-columns: 34px 1fr 54px minmax(60px, auto);
gap: 10px;
align-items: center;
margin-top: 9px;
}
progress {
width: 100%;
height: 12px;
overflow: hidden;
border: 0;
border-radius: 999px;
background: rgba(43, 55, 38, 0.1);
}
progress::-webkit-progress-bar {
background: rgba(43, 55, 38, 0.1);
}
progress::-webkit-progress-value {
border-radius: 999px;
background: linear-gradient(90deg, var(--green), var(--accent));
}
progress::-moz-progress-bar {
border-radius: 999px;
background: linear-gradient(90deg, var(--green), var(--accent));
}
.empty-state {
padding: 24px;
border: 1px dashed rgba(43, 55, 38, 0.2);
border-radius: 22px;
color: var(--muted);
background: rgba(255, 250, 240, 0.45);
}
@media (max-width: 980px) {
.hero,
.split-panel {
grid-template-columns: 1fr;
}
.hero {
align-items: start;
}
.metrics-grid {
grid-template-columns: repeat(2, minmax(0, 1fr));
}
.control-rail {
grid-template-columns: repeat(2, minmax(0, 1fr));
}
}
@media (max-width: 640px) {
.shell {
width: min(100% - 24px, 1480px);
padding: 18px 0 34px;
}
.hero,
.panel {
border-radius: 22px;
padding: 20px;
}
.metrics-grid {
grid-template-columns: 1fr;
}
.control-rail {
grid-template-columns: 1fr;
}
.panel-title,
.usage-title {
display: grid;
}
.bar-line {
grid-template-columns: 28px 1fr 44px;
}
.bar-line small {
grid-column: 2 / -1;
}
}