mirror of
https://github.com/tiennm99/ccs.git
synced 2026-07-16 10:16:49 +00:00
199 lines
4.5 KiB
HTML
199 lines
4.5 KiB
HTML
<!doctype html>
|
|
<html lang="en">
|
|
<head>
|
|
<meta charset="utf-8" />
|
|
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
|
<title>Issue 900 UI Evidence</title>
|
|
<style>
|
|
:root {
|
|
color-scheme: light;
|
|
--bg: #f5efe7;
|
|
--panel: #fffaf5;
|
|
--ink: #231f1c;
|
|
--muted: #655c55;
|
|
--line: #ddcfc0;
|
|
--before: #ff3b30;
|
|
--after: #00b894;
|
|
}
|
|
|
|
* {
|
|
box-sizing: border-box;
|
|
}
|
|
|
|
body {
|
|
margin: 0;
|
|
padding: 32px;
|
|
font-family:
|
|
"IBM Plex Sans",
|
|
"Avenir Next",
|
|
system-ui,
|
|
sans-serif;
|
|
background: linear-gradient(180deg, #f7f0e7 0%, #efe7dc 100%);
|
|
color: var(--ink);
|
|
}
|
|
|
|
main {
|
|
max-width: 1300px;
|
|
margin: 0 auto;
|
|
display: grid;
|
|
gap: 24px;
|
|
}
|
|
|
|
.hero,
|
|
.section {
|
|
background: rgba(255, 250, 245, 0.92);
|
|
border: 1px solid var(--line);
|
|
border-radius: 24px;
|
|
padding: 24px;
|
|
box-shadow: 0 18px 40px rgba(35, 31, 28, 0.08);
|
|
}
|
|
|
|
h1,
|
|
h2,
|
|
p {
|
|
margin: 0;
|
|
}
|
|
|
|
.hero {
|
|
display: grid;
|
|
gap: 12px;
|
|
}
|
|
|
|
.eyebrow {
|
|
font-size: 12px;
|
|
font-weight: 700;
|
|
letter-spacing: 0.16em;
|
|
text-transform: uppercase;
|
|
color: var(--muted);
|
|
}
|
|
|
|
.hero p,
|
|
.section p {
|
|
color: var(--muted);
|
|
line-height: 1.5;
|
|
}
|
|
|
|
.comparison {
|
|
display: grid;
|
|
grid-template-columns: repeat(2, minmax(0, 1fr));
|
|
gap: 20px;
|
|
margin-top: 20px;
|
|
}
|
|
|
|
.card {
|
|
border: 1px solid var(--line);
|
|
border-radius: 18px;
|
|
overflow: hidden;
|
|
background: #fff;
|
|
}
|
|
|
|
.card-header {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 10px;
|
|
padding: 14px 16px;
|
|
border-bottom: 1px solid var(--line);
|
|
font-weight: 700;
|
|
}
|
|
|
|
.swatch {
|
|
width: 12px;
|
|
height: 12px;
|
|
border-radius: 999px;
|
|
flex: 0 0 auto;
|
|
}
|
|
|
|
.swatch.before {
|
|
background: var(--before);
|
|
}
|
|
|
|
.swatch.after {
|
|
background: var(--after);
|
|
}
|
|
|
|
img {
|
|
display: block;
|
|
width: 100%;
|
|
height: auto;
|
|
}
|
|
|
|
.notes {
|
|
display: grid;
|
|
gap: 8px;
|
|
margin-top: 16px;
|
|
font-size: 15px;
|
|
}
|
|
|
|
code {
|
|
font-family:
|
|
"IBM Plex Mono",
|
|
ui-monospace,
|
|
monospace;
|
|
font-size: 13px;
|
|
background: rgba(35, 31, 28, 0.06);
|
|
padding: 2px 6px;
|
|
border-radius: 8px;
|
|
}
|
|
|
|
@media (max-width: 900px) {
|
|
body {
|
|
padding: 20px;
|
|
}
|
|
|
|
.comparison {
|
|
grid-template-columns: 1fr;
|
|
}
|
|
}
|
|
</style>
|
|
</head>
|
|
<body>
|
|
<main>
|
|
<section class="hero">
|
|
<p class="eyebrow">Issue 900</p>
|
|
<h1>CLIProxy Control Panel Embed Fix</h1>
|
|
<p>
|
|
Before the fix, the embedded upstream management center landed on
|
|
<code>#/login</code> and asked for credentials again. After the fix, the same surface
|
|
boots straight into the authenticated dashboard and starts reading
|
|
<code>/api/cliproxy-local/v0/management/*</code>.
|
|
</p>
|
|
</section>
|
|
|
|
<section class="section">
|
|
<h2>Embedded Control Panel</h2>
|
|
<p>
|
|
Captures use the same route and light theme. The colored callout box marks the iframe
|
|
review area.
|
|
</p>
|
|
|
|
<div class="comparison">
|
|
<article class="card">
|
|
<div class="card-header">
|
|
<span class="swatch before"></span>
|
|
Before: iframe falls back to login
|
|
</div>
|
|
<img src="./control-panel-before-annotated.png" alt="Before fix screenshot" />
|
|
</article>
|
|
|
|
<article class="card">
|
|
<div class="card-header">
|
|
<span class="swatch after"></span>
|
|
After: iframe opens management dashboard
|
|
</div>
|
|
<img src="./control-panel-after-annotated.png" alt="After fix screenshot" />
|
|
</article>
|
|
</div>
|
|
|
|
<div class="notes">
|
|
<p>Broken state: iframe URL ended at <code>/management.html#/login</code>.</p>
|
|
<p>Fixed state: iframe URL ends at <code>/management.html#/</code>.</p>
|
|
<p>
|
|
Fixed build verified live against the patched worktree dashboard on
|
|
<code>localhost:3001</code>.
|
|
</p>
|
|
</div>
|
|
</section>
|
|
</main>
|
|
</body>
|
|
</html>
|