chunker ui redo

This commit is contained in:
2026-03-15 16:03:53 -03:00
parent d5a3372d6b
commit b40bd68411
62 changed files with 5460 additions and 1493 deletions

View File

@@ -1,16 +1,4 @@
* {
box-sizing: border-box;
margin: 0;
padding: 0;
}
body {
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
"Fira Code", monospace, sans-serif;
background: #0f0f0f;
color: #e0e0e0;
font-size: 14px;
}
@import "../../common/styles/theme.css";
/* ---- Layout ---- */
@@ -25,8 +13,8 @@ body {
justify-content: space-between;
align-items: center;
padding: 0.75rem 1.25rem;
background: #1a1a1a;
border-bottom: 1px solid #2a2a2a;
background: var(--bg-panel);
border-bottom: 1px solid var(--border);
}
.header h1 {
@@ -40,19 +28,19 @@ body {
align-items: center;
gap: 0.5rem;
font-size: 0.8rem;
color: #666;
color: var(--text-muted);
}
.dot {
width: 8px;
height: 8px;
border-radius: 50%;
background: #555;
background: var(--text-muted);
}
.dot.connected {
background: #10b981;
box-shadow: 0 0 6px #10b981;
background: var(--success);
box-shadow: 0 0 6px var(--success);
}
.error-banner {
@@ -70,8 +58,8 @@ body {
.sidebar {
width: 300px;
background: #141414;
border-right: 1px solid #2a2a2a;
background: var(--bg-surface);
border-right: 1px solid var(--border);
overflow-y: auto;
}
@@ -97,163 +85,20 @@ body {
gap: 1rem;
}
/* ---- Panel shared ---- */
.panel-header {
display: flex;
justify-content: space-between;
align-items: center;
margin-bottom: 0.75rem;
}
.panel-header h2 {
font-size: 0.85rem;
text-transform: uppercase;
letter-spacing: 0.05em;
color: #888;
}
.badge-row {
display: flex;
gap: 0.25rem;
}
/* ---- Topic Badge ---- */
.topic-badge {
display: inline-flex;
align-items: center;
gap: 0.25rem;
padding: 0.15rem 0.5rem;
font-size: 0.65rem;
background: #1e293b;
border: 1px solid #334155;
border-radius: 12px;
cursor: pointer;
transition: all 0.2s;
flex-shrink: 0;
}
.topic-badge:hover {
border-color: #3b82f6;
}
.topic-badge.expanded {
flex-direction: column;
align-items: flex-start;
border-radius: 8px;
padding: 0.5rem;
position: relative;
z-index: 10;
background: #1e293b;
}
.topic-number {
color: #3b82f6;
font-weight: 700;
}
.topic-title {
color: #94a3b8;
}
.topic-detail {
margin-top: 0.25rem;
font-size: 0.7rem;
line-height: 1.4;
}
.topic-detail p {
color: #cbd5e1;
margin-bottom: 0.25rem;
}
.topic-detail code {
color: #10b981;
font-size: 0.65rem;
}
/* ---- Asset List ---- */
.scan-button {
padding: 0.25rem 0.5rem;
font-size: 0.7rem;
background: #1e293b;
color: #94a3b8;
border: 1px solid #334155;
border-radius: 4px;
cursor: pointer;
transition: all 0.2s;
}
.scan-button:hover:not(:disabled) {
background: #334155;
color: #e0e0e0;
}
.scan-button:disabled {
opacity: 0.5;
cursor: not-allowed;
}
.asset-list {
list-style: none;
max-height: 200px;
overflow-y: auto;
margin-bottom: 0.75rem;
}
.asset-item {
padding: 0.4rem 0.5rem;
cursor: pointer;
border-left: 2px solid transparent;
transition: all 0.15s;
display: flex;
flex-direction: column;
gap: 0.1rem;
}
.asset-item:hover {
background: #1a1a1a;
}
.asset-item.selected {
background: #1e293b;
border-left-color: #3b82f6;
}
.asset-filename {
font-size: 0.8rem;
color: #e0e0e0;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}
.asset-meta {
font-size: 0.65rem;
color: #555;
}
.asset-empty {
font-size: 0.8rem;
color: #444;
padding: 0.75rem 0.5rem;
text-align: center;
}
/* ---- Selected Asset Info ---- */
.selected-asset-info {
padding: 0.5rem;
background: #1e293b;
border: 1px solid #334155;
border-radius: 4px;
border-radius: var(--radius);
margin-bottom: 0.75rem;
}
.asset-detail {
display: block;
font-size: 0.8rem;
color: #e0e0e0;
color: var(--text-primary);
font-weight: 500;
}
@@ -277,12 +122,12 @@ body {
.config-field label {
display: block;
font-size: 0.75rem;
color: #888;
color: var(--text-secondary);
margin-bottom: 0.25rem;
}
.config-field .default {
color: #555;
color: var(--text-muted);
font-style: italic;
}
@@ -291,26 +136,26 @@ body {
width: 100%;
padding: 0.4rem 0.5rem;
font-size: 0.8rem;
background: #222;
color: #e0e0e0;
border: 1px solid #333;
border-radius: 4px;
background: var(--bg-input);
color: var(--text-primary);
border: 1px solid var(--border);
border-radius: var(--radius);
}
.config-field input:focus,
.config-field select:focus {
outline: none;
border-color: #3b82f6;
border-color: var(--accent);
}
.start-button {
width: 100%;
padding: 0.5rem;
font-size: 0.85rem;
background: #10b981;
background: var(--success);
color: #000;
border: none;
border-radius: 4px;
border-radius: var(--radius);
cursor: pointer;
font-weight: 600;
margin-top: 0.5rem;
@@ -322,116 +167,86 @@ body {
}
.start-button:disabled {
background: #333;
color: #666;
background: var(--bg-input);
color: var(--text-muted);
cursor: not-allowed;
}
/* ---- Pipeline Diagram ---- */
.pipeline-diagram {
background: #141414;
border: 1px solid #2a2a2a;
border-radius: 8px;
padding: 1rem;
}
.stage-flow {
display: flex;
align-items: center;
gap: 0;
overflow-x: auto;
}
.stage-wrapper {
display: flex;
align-items: center;
}
.stage {
padding: 0.5rem 0.75rem;
background: #1a1a1a;
border: 1px solid #333;
border-radius: 6px;
text-align: center;
min-width: 120px;
transition: all 0.3s;
}
.stage.active {
border-color: #3b82f6;
background: #1e293b;
box-shadow: 0 0 12px rgba(59, 130, 246, 0.2);
}
.stage-label {
font-size: 0.8rem;
.stop-button {
width: 100%;
padding: 0.5rem;
font-size: 0.85rem;
background: var(--error);
color: #fff;
border: none;
border-radius: var(--radius);
cursor: pointer;
font-weight: 600;
color: #e0e0e0;
margin-top: 0.5rem;
transition: background 0.2s;
}
.stage-sub {
font-size: 0.65rem;
color: #666;
margin-top: 0.15rem;
.stop-button:hover {
background: #dc2626;
}
.stage-arrow {
width: 24px;
height: 2px;
background: #444;
position: relative;
}
.stage-arrow::after {
content: "";
position: absolute;
right: 0;
top: -3px;
border: 4px solid transparent;
border-left: 6px solid #444;
}
.processor-hierarchy {
margin-top: 0.75rem;
padding-top: 0.75rem;
border-top: 1px solid #222;
}
.hierarchy-title {
font-size: 0.7rem;
color: #666;
margin-bottom: 0.35rem;
font-style: italic;
}
.hierarchy-children {
display: flex;
gap: 0.5rem;
flex-wrap: wrap;
}
.hierarchy-node {
font-size: 0.7rem;
padding: 0.15rem 0.5rem;
background: #1a1a1a;
border: 1px solid #333;
border-radius: 4px;
.reset-button {
width: 100%;
padding: 0.5rem;
font-size: 0.85rem;
background: #1e293b;
color: #94a3b8;
border: 1px solid #334155;
border-radius: var(--radius);
cursor: pointer;
font-weight: 600;
margin-top: 0.5rem;
transition: all 0.2s;
}
.reset-button:hover {
background: #334155;
color: var(--text-primary);
}
.range-row {
display: flex;
align-items: center;
gap: 0.5rem;
}
.range-row input {
flex: 1;
padding: 0.4rem 0.5rem;
font-size: 0.8rem;
background: var(--bg-input);
color: var(--text-primary);
border: 1px solid var(--border);
border-radius: var(--radius);
}
.range-row input:focus {
outline: none;
border-color: var(--accent);
}
.range-sep {
font-size: 0.75rem;
color: var(--text-muted);
}
/* ---- Chunk Grid ---- */
.chunk-grid-panel {
background: #141414;
border: 1px solid #2a2a2a;
background: var(--bg-surface);
border: 1px solid var(--border);
border-radius: 8px;
padding: 1rem;
}
.chunk-count {
font-size: 0.7rem;
color: #555;
color: var(--text-muted);
font-weight: 400;
}
@@ -466,7 +281,7 @@ body {
align-items: center;
gap: 0.25rem;
font-size: 0.65rem;
color: #888;
color: var(--text-secondary);
}
.legend-dot {
@@ -478,8 +293,8 @@ body {
/* ---- Worker Panel ---- */
.worker-panel {
background: #141414;
border: 1px solid #2a2a2a;
background: var(--bg-surface);
border: 1px solid var(--border);
border-radius: 8px;
padding: 1rem;
}
@@ -492,8 +307,8 @@ body {
.worker-card {
padding: 0.5rem 0.75rem;
background: #1a1a1a;
border: 1px solid #2a2a2a;
background: var(--bg-panel);
border: 1px solid var(--border);
border-radius: 6px;
}
@@ -516,7 +331,7 @@ body {
.worker-chunk {
font-size: 0.7rem;
color: #555;
color: var(--text-muted);
margin-top: 0.15rem;
}
@@ -524,13 +339,13 @@ body {
display: flex;
gap: 0.75rem;
font-size: 0.65rem;
color: #555;
color: var(--text-muted);
margin-top: 0.25rem;
}
.worker-empty {
font-size: 0.8rem;
color: #444;
color: var(--text-muted);
text-align: center;
padding: 1rem;
}
@@ -538,8 +353,8 @@ body {
/* ---- Queue Gauge ---- */
.queue-gauge {
background: #141414;
border: 1px solid #2a2a2a;
background: var(--bg-surface);
border: 1px solid var(--border);
border-radius: 8px;
padding: 1rem;
}
@@ -550,38 +365,38 @@ body {
.gauge-label {
font-size: 0.75rem;
color: #888;
color: var(--text-secondary);
margin-bottom: 0.25rem;
}
.gauge-value {
color: #e0e0e0;
color: var(--text-primary);
font-weight: 600;
}
.gauge-bar {
height: 8px;
background: #222;
border-radius: 4px;
background: var(--bg-input);
border-radius: var(--radius);
overflow: hidden;
}
.gauge-fill {
height: 100%;
border-radius: 4px;
border-radius: var(--radius);
transition: width 0.3s, background 0.3s;
}
.gauge-note {
font-size: 0.65rem;
color: #555;
color: var(--text-muted);
}
/* ---- Stats Panel ---- */
.stats-panel {
background: #141414;
border: 1px solid #2a2a2a;
background: var(--bg-surface);
border: 1px solid var(--border);
border-radius: 8px;
padding: 1rem;
}
@@ -595,52 +410,29 @@ body {
.stat {
text-align: center;
padding: 0.5rem;
background: #1a1a1a;
background: var(--bg-panel);
border-radius: 6px;
}
.stat-value {
font-size: 1.1rem;
font-weight: 700;
color: #e0e0e0;
color: var(--text-primary);
}
.stat-label {
font-size: 0.6rem;
color: #666;
color: var(--text-muted);
text-transform: uppercase;
letter-spacing: 0.05em;
margin-top: 0.15rem;
}
.test-info {
margin-top: 0.75rem;
padding-top: 0.5rem;
border-top: 1px solid #222;
display: flex;
align-items: center;
gap: 0.5rem;
}
.test-badge {
font-size: 0.65rem;
padding: 0.15rem 0.4rem;
background: #10b981;
color: #000;
border-radius: 3px;
font-weight: 600;
}
.test-note {
font-size: 0.65rem;
color: #555;
}
/* ---- Error Log ---- */
.error-log {
background: #141414;
border: 1px solid #2a2a2a;
background: var(--bg-surface);
border: 1px solid var(--border);
border-radius: 8px;
padding: 1rem;
}
@@ -654,41 +446,6 @@ body {
font-weight: 400;
}
.exception-tree {
margin-bottom: 0.75rem;
padding: 0.5rem;
background: #1a1a1a;
border-radius: 6px;
font-size: 0.7rem;
font-family: "Fira Code", monospace;
}
.tree-node {
color: #94a3b8;
padding: 0.1rem 0;
}
.tree-node.root {
color: #f59e0b;
font-weight: 600;
}
.tree-node.leaf {
color: #64748b;
}
.tree-children {
padding-left: 1rem;
border-left: 1px solid #333;
margin-left: 0.5rem;
}
.tree-grandchildren {
padding-left: 1rem;
border-left: 1px solid #333;
margin-left: 0.5rem;
}
.error-entries {
max-height: 150px;
overflow-y: auto;
@@ -696,7 +453,7 @@ body {
.error-empty {
font-size: 0.8rem;
color: #444;
color: var(--text-muted);
text-align: center;
padding: 0.5rem;
}
@@ -706,26 +463,26 @@ body {
gap: 0.5rem;
align-items: center;
padding: 0.35rem 0;
border-bottom: 1px solid #1a1a1a;
border-bottom: 1px solid var(--bg-panel);
font-size: 0.7rem;
flex-wrap: wrap;
}
.error-type {
color: #ef4444;
color: var(--error);
font-weight: 500;
}
.error-seq {
color: #f59e0b;
color: var(--warning);
}
.error-worker {
color: #3b82f6;
color: var(--accent);
}
.error-msg {
color: #888;
color: var(--text-secondary);
flex: 1;
}
@@ -733,3 +490,15 @@ body {
color: #f97316;
font-size: 0.65rem;
}
/* ---- Output download link ---- */
.fm-download-link {
font-size: 0.7rem;
color: var(--accent);
text-decoration: none;
}
.fm-download-link:hover {
text-decoration: underline;
}