- Query tab: SQL editor with results table (existing) - Storage tab: list objects, register datasets pointing at storage keys - AI tab: embed (nomic-embed-text), generate (qwen2.5), rerank with scored results - Status tab: health checks for all 5 services + functional tests (embed, generate, SQL) - nginx: added /lakehouse/ and API proxy paths to devop.live config - Loaded 3 sample datasets: employees, events, products - Fixed Rust 2024 reserved keyword `gen` Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
384 lines
7.8 KiB
CSS
384 lines
7.8 KiB
CSS
:root {
|
|
--bg: #0a0a0f;
|
|
--surface: #12121a;
|
|
--border: #2a2a3a;
|
|
--text: #e0e0e8;
|
|
--text-dim: #888898;
|
|
--accent: #6c5ce7;
|
|
--accent-dim: #4a3db8;
|
|
--success: #00d2a0;
|
|
--error: #ff6b6b;
|
|
--mono: 'JetBrains Mono', 'Fira Code', 'Cascadia Code', monospace;
|
|
}
|
|
|
|
* { margin: 0; padding: 0; box-sizing: border-box; }
|
|
|
|
body {
|
|
font-family: var(--mono);
|
|
background: var(--bg);
|
|
color: var(--text);
|
|
font-size: 13px;
|
|
line-height: 1.5;
|
|
}
|
|
|
|
.app {
|
|
display: grid;
|
|
grid-template-rows: 48px 1fr;
|
|
height: 100vh;
|
|
overflow: hidden;
|
|
}
|
|
|
|
/* Header */
|
|
.header {
|
|
display: flex;
|
|
align-items: center;
|
|
padding: 0 20px;
|
|
background: var(--surface);
|
|
border-bottom: 1px solid var(--border);
|
|
gap: 24px;
|
|
}
|
|
|
|
.header h1 {
|
|
font-size: 15px;
|
|
font-weight: 600;
|
|
letter-spacing: 0.05em;
|
|
color: var(--accent);
|
|
}
|
|
|
|
/* Tabs */
|
|
.tabs { display: flex; gap: 2px; }
|
|
|
|
.tab {
|
|
background: none;
|
|
border: none;
|
|
color: var(--text-dim);
|
|
font-family: var(--mono);
|
|
font-size: 12px;
|
|
padding: 6px 14px;
|
|
cursor: pointer;
|
|
border-bottom: 2px solid transparent;
|
|
transition: all 0.15s;
|
|
}
|
|
|
|
.tab:hover { color: var(--text); }
|
|
.tab.active {
|
|
color: var(--accent);
|
|
border-bottom-color: var(--accent);
|
|
}
|
|
|
|
/* Main layout */
|
|
.main {
|
|
display: grid;
|
|
grid-template-columns: 240px 1fr;
|
|
overflow: hidden;
|
|
}
|
|
|
|
/* Sidebar */
|
|
.sidebar {
|
|
background: var(--surface);
|
|
border-right: 1px solid var(--border);
|
|
display: flex;
|
|
flex-direction: column;
|
|
overflow: hidden;
|
|
}
|
|
|
|
.sidebar-header {
|
|
padding: 12px 16px;
|
|
font-size: 11px;
|
|
text-transform: uppercase;
|
|
letter-spacing: 0.1em;
|
|
color: var(--text-dim);
|
|
border-bottom: 1px solid var(--border);
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
}
|
|
|
|
.sidebar-list { overflow-y: auto; flex: 1; }
|
|
|
|
.dataset-item {
|
|
padding: 10px 16px;
|
|
cursor: pointer;
|
|
border-bottom: 1px solid var(--border);
|
|
transition: background 0.1s;
|
|
}
|
|
|
|
.dataset-item:hover { background: rgba(108, 92, 231, 0.1); }
|
|
|
|
.dataset-item.active {
|
|
background: rgba(108, 92, 231, 0.15);
|
|
border-left: 2px solid var(--accent);
|
|
}
|
|
|
|
.dataset-item .name { font-weight: 600; font-size: 13px; }
|
|
.dataset-item .meta { font-size: 11px; color: var(--text-dim); margin-top: 2px; }
|
|
|
|
/* Content area */
|
|
.content {
|
|
display: flex;
|
|
flex-direction: column;
|
|
overflow: hidden;
|
|
}
|
|
|
|
/* Query editor */
|
|
.query-editor {
|
|
padding: 16px;
|
|
border-bottom: 1px solid var(--border);
|
|
display: flex;
|
|
gap: 8px;
|
|
}
|
|
|
|
.query-editor textarea {
|
|
flex: 1;
|
|
background: var(--surface);
|
|
border: 1px solid var(--border);
|
|
color: var(--text);
|
|
font-family: var(--mono);
|
|
font-size: 13px;
|
|
padding: 10px;
|
|
border-radius: 4px;
|
|
resize: none;
|
|
min-height: 60px;
|
|
outline: none;
|
|
}
|
|
|
|
.query-editor textarea:focus { border-color: var(--accent); }
|
|
|
|
/* Buttons */
|
|
.btn {
|
|
background: var(--accent);
|
|
color: white;
|
|
border: none;
|
|
padding: 8px 16px;
|
|
border-radius: 4px;
|
|
font-family: var(--mono);
|
|
font-size: 12px;
|
|
cursor: pointer;
|
|
font-weight: 600;
|
|
white-space: nowrap;
|
|
transition: background 0.1s;
|
|
}
|
|
|
|
.btn:hover { background: var(--accent-dim); }
|
|
.btn:disabled { opacity: 0.5; cursor: not-allowed; }
|
|
.btn-sm { padding: 4px 10px; font-size: 11px; }
|
|
|
|
.refresh-btn {
|
|
background: none;
|
|
border: 1px solid var(--border);
|
|
color: var(--text-dim);
|
|
padding: 2px 8px;
|
|
border-radius: 3px;
|
|
font-family: var(--mono);
|
|
font-size: 10px;
|
|
cursor: pointer;
|
|
}
|
|
|
|
.refresh-btn:hover { border-color: var(--accent); color: var(--accent); }
|
|
|
|
/* Results */
|
|
.results { flex: 1; overflow: auto; padding: 16px; }
|
|
.results-info { font-size: 11px; color: var(--text-dim); margin-bottom: 8px; }
|
|
|
|
table { width: 100%; border-collapse: collapse; font-size: 12px; }
|
|
|
|
th {
|
|
text-align: left;
|
|
padding: 8px 12px;
|
|
background: var(--surface);
|
|
border-bottom: 2px solid var(--accent);
|
|
font-weight: 600;
|
|
font-size: 11px;
|
|
text-transform: uppercase;
|
|
letter-spacing: 0.05em;
|
|
color: var(--accent);
|
|
position: sticky;
|
|
top: 0;
|
|
}
|
|
|
|
td { padding: 6px 12px; border-bottom: 1px solid var(--border); }
|
|
tr:hover td { background: rgba(108, 92, 231, 0.05); }
|
|
|
|
/* States */
|
|
.loading { color: var(--accent); padding: 20px; text-align: center; }
|
|
|
|
.error {
|
|
color: var(--error);
|
|
background: rgba(255, 107, 107, 0.1);
|
|
border: 1px solid rgba(255, 107, 107, 0.3);
|
|
padding: 12px 16px;
|
|
border-radius: 4px;
|
|
font-size: 12px;
|
|
}
|
|
|
|
.success {
|
|
color: var(--success);
|
|
background: rgba(0, 210, 160, 0.1);
|
|
border: 1px solid rgba(0, 210, 160, 0.3);
|
|
padding: 12px 16px;
|
|
border-radius: 4px;
|
|
font-size: 12px;
|
|
margin-top: 8px;
|
|
}
|
|
|
|
.empty { color: var(--text-dim); padding: 40px 20px; text-align: center; font-size: 12px; }
|
|
|
|
/* Panels */
|
|
.panel {
|
|
padding: 20px;
|
|
overflow-y: auto;
|
|
flex: 1;
|
|
}
|
|
|
|
.panel-section {
|
|
margin-bottom: 28px;
|
|
padding-bottom: 20px;
|
|
border-bottom: 1px solid var(--border);
|
|
}
|
|
|
|
.panel-section:last-child { border-bottom: none; }
|
|
|
|
.panel-section h3 {
|
|
font-size: 14px;
|
|
font-weight: 600;
|
|
color: var(--accent);
|
|
margin-bottom: 6px;
|
|
}
|
|
|
|
.hint {
|
|
font-size: 11px;
|
|
color: var(--text-dim);
|
|
margin-bottom: 12px;
|
|
}
|
|
|
|
/* Forms */
|
|
.form-row {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 8px;
|
|
margin-bottom: 8px;
|
|
}
|
|
|
|
.form-row label {
|
|
font-size: 11px;
|
|
color: var(--text-dim);
|
|
min-width: 80px;
|
|
}
|
|
|
|
.form-row input, input {
|
|
background: var(--surface);
|
|
border: 1px solid var(--border);
|
|
color: var(--text);
|
|
font-family: var(--mono);
|
|
font-size: 12px;
|
|
padding: 6px 10px;
|
|
border-radius: 4px;
|
|
flex: 1;
|
|
outline: none;
|
|
}
|
|
|
|
.form-row input:focus, input:focus { border-color: var(--accent); }
|
|
|
|
.row { display: flex; gap: 8px; margin-bottom: 8px; }
|
|
|
|
/* Object list */
|
|
.object-list { margin-top: 8px; }
|
|
|
|
.object-item {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
padding: 6px 10px;
|
|
border-bottom: 1px solid var(--border);
|
|
font-size: 12px;
|
|
}
|
|
|
|
.mono { font-family: var(--mono); }
|
|
|
|
/* AI panel */
|
|
.ai-panel { max-width: 800px; }
|
|
|
|
.input-area {
|
|
width: 100%;
|
|
background: var(--surface);
|
|
border: 1px solid var(--border);
|
|
color: var(--text);
|
|
font-family: var(--mono);
|
|
font-size: 12px;
|
|
padding: 10px;
|
|
border-radius: 4px;
|
|
resize: vertical;
|
|
min-height: 60px;
|
|
outline: none;
|
|
margin-bottom: 8px;
|
|
}
|
|
|
|
.input-area:focus { border-color: var(--accent); }
|
|
|
|
.result-box {
|
|
background: var(--surface);
|
|
border: 1px solid var(--border);
|
|
border-radius: 4px;
|
|
padding: 12px;
|
|
margin-top: 10px;
|
|
}
|
|
|
|
.result-meta {
|
|
font-size: 11px;
|
|
color: var(--text-dim);
|
|
margin-bottom: 8px;
|
|
}
|
|
|
|
.embed-row {
|
|
font-size: 11px;
|
|
color: var(--text);
|
|
padding: 2px 0;
|
|
}
|
|
|
|
.gen-text {
|
|
font-size: 13px;
|
|
line-height: 1.6;
|
|
white-space: pre-wrap;
|
|
}
|
|
|
|
.rerank-row {
|
|
display: flex;
|
|
gap: 12px;
|
|
padding: 6px 0;
|
|
border-bottom: 1px solid var(--border);
|
|
font-size: 12px;
|
|
}
|
|
|
|
.rerank-row:last-child { border-bottom: none; }
|
|
|
|
.score {
|
|
background: var(--accent);
|
|
color: white;
|
|
padding: 2px 8px;
|
|
border-radius: 3px;
|
|
font-weight: 600;
|
|
font-size: 11px;
|
|
min-width: 32px;
|
|
text-align: center;
|
|
}
|
|
|
|
/* Status checks */
|
|
.check-results { margin-top: 16px; }
|
|
|
|
.check-row {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
padding: 10px 14px;
|
|
border-bottom: 1px solid var(--border);
|
|
font-size: 12px;
|
|
border-left: 3px solid transparent;
|
|
}
|
|
|
|
.check-row.check-pass { border-left-color: var(--success); }
|
|
.check-row.check-fail { border-left-color: var(--error); }
|
|
|
|
.check-name { font-weight: 600; }
|
|
.check-result { color: var(--text-dim); text-align: right; max-width: 60%; }
|
|
.check-pass .check-result { color: var(--success); }
|
|
.check-fail .check-result { color: var(--error); }
|