feat: Tier-1 Model Manager with Hot-Swapping, HF Download Engine, bug fixes, and test repairs
- Phase 4: Hugging Face Download Engine — streaming GGUF downloads with progress, cancellation, and managed-model storage - Phase 5: Model Source Validation — source-mode compatibility, path/file validation, inline error UI with recovery guidance - Hot-swap: stop runtime → update model_path → restart atomic command - Model library: folder open, delete model file, local model management - SettingsPage unified hub: local models list + HF search with 3-state action buttons - Bug fixes: send button text restored (4 failing tests), reasoning-toggle aria-label, Rust warnings - All 89 tests passing, cargo check clean
This commit is contained in:
1 parent
01b629cb4a
commit
9a093dca15
23 files changed
+1798
-344
No files matched your search
@@ -421,234 +421,6 @@
|
||||
animation: sp-pulse 1.2s ease-in-out infinite;
|
||||
}
|
||||
|
||||
/* ── HuggingFace search ── */
|
||||
.sp-hf-search-header {
|
||||
margin-bottom: 4px;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
}
|
||||
|
||||
/* Tooltip container — isolated positioning context */
|
||||
.tooltip-container {
|
||||
position: relative;
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
margin-left: 8px;
|
||||
flex-shrink: 0;
|
||||
}
|
||||
|
||||
.sp-hf-info-icon {
|
||||
color: var(--text3);
|
||||
cursor: pointer;
|
||||
transition: color 0.15s;
|
||||
}
|
||||
|
||||
.tooltip-container:hover .sp-hf-info-icon {
|
||||
color: var(--text);
|
||||
}
|
||||
|
||||
/* Tooltip glass — absolute float, maximum z-index */
|
||||
.sp-tooltip-content {
|
||||
position: absolute;
|
||||
top: 100%;
|
||||
left: 0;
|
||||
width: 340px;
|
||||
margin-top: 8px;
|
||||
padding: 16px;
|
||||
background: rgba(15, 23, 42, 0.95);
|
||||
backdrop-filter: blur(16px);
|
||||
-webkit-backdrop-filter: blur(16px);
|
||||
border: 1px solid rgba(255, 255, 255, 0.1);
|
||||
border-radius: 12px;
|
||||
box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
|
||||
z-index: 9999;
|
||||
display: none;
|
||||
white-space: normal;
|
||||
}
|
||||
|
||||
.tooltip-container:hover .sp-tooltip-content {
|
||||
display: block;
|
||||
}
|
||||
|
||||
.sp-hf-tooltip-title {
|
||||
font-size: 12px;
|
||||
font-weight: 700;
|
||||
color: var(--text);
|
||||
margin-bottom: 6px;
|
||||
}
|
||||
|
||||
.sp-hf-tooltip-body {
|
||||
font-size: 11px;
|
||||
color: var(--text2);
|
||||
line-height: 1.5;
|
||||
margin: 0 0 8px;
|
||||
}
|
||||
|
||||
.sp-hf-tooltip-levels {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 5px;
|
||||
font-size: 11px;
|
||||
color: var(--text2);
|
||||
line-height: 1.45;
|
||||
}
|
||||
|
||||
.sp-hf-dot {
|
||||
display: inline-block;
|
||||
width: 6px;
|
||||
height: 6px;
|
||||
border-radius: 50%;
|
||||
vertical-align: middle;
|
||||
margin-right: 4px;
|
||||
}
|
||||
|
||||
.sp-hf-dot--green { background: #34d399; box-shadow: 0 0 4px rgba(52, 211, 153, 0.5); }
|
||||
.sp-hf-dot--blue { background: #60a5fa; box-shadow: 0 0 4px rgba(96, 165, 250, 0.5); }
|
||||
.sp-hf-dot--yellow { background: #fbbf24; box-shadow: 0 0 4px rgba(251, 191, 36, 0.5); }
|
||||
|
||||
.sp-hf-search-bar {
|
||||
display: flex;
|
||||
gap: 8px;
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
.sp-hf-input {
|
||||
flex: 1;
|
||||
}
|
||||
|
||||
.sp-hf-results {
|
||||
margin-top: 12px;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
align-items: stretch;
|
||||
gap: 8px;
|
||||
width: 100%;
|
||||
max-width: 100%;
|
||||
max-height: 340px;
|
||||
overflow-y: auto;
|
||||
overflow-x: hidden;
|
||||
padding-right: 4px;
|
||||
box-sizing: border-box;
|
||||
}
|
||||
|
||||
.sp-hf-card {
|
||||
background: var(--bg3);
|
||||
border: 1px solid rgba(255, 255, 255, 0.05);
|
||||
border-radius: 12px;
|
||||
overflow: hidden;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
width: 100%;
|
||||
max-width: 100%;
|
||||
transition: border-color 0.15s;
|
||||
box-sizing: border-box;
|
||||
}
|
||||
|
||||
.sp-hf-card:hover { border-color: var(--border2); }
|
||||
|
||||
.sp-hf-card-header {
|
||||
padding: 12px 16px;
|
||||
border-bottom: 1px solid rgba(255, 255, 255, 0.05);
|
||||
background: rgba(255, 255, 255, 0.02);
|
||||
}
|
||||
|
||||
.sp-hf-repo {
|
||||
font-size: 13px;
|
||||
font-weight: 600;
|
||||
color: var(--accent);
|
||||
margin-bottom: 2px;
|
||||
}
|
||||
|
||||
.sp-hf-author {
|
||||
font-size: 11px;
|
||||
color: var(--text3);
|
||||
}
|
||||
|
||||
.sp-hf-files {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
max-height: 250px;
|
||||
overflow-y: auto;
|
||||
overflow-x: hidden;
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
.sp-hf-file {
|
||||
width: 100%;
|
||||
display: grid;
|
||||
grid-template-columns: 1fr auto auto auto;
|
||||
align-items: center;
|
||||
gap: 12px;
|
||||
padding: 8px 16px;
|
||||
border-bottom: 1px solid rgba(255, 255, 255, 0.03);
|
||||
transition: background 0.2s;
|
||||
min-width: 0;
|
||||
}
|
||||
|
||||
.sp-hf-file:last-child {
|
||||
border-bottom: none;
|
||||
}
|
||||
|
||||
.sp-hf-file:hover {
|
||||
background: rgba(255, 255, 255, 0.04);
|
||||
}
|
||||
|
||||
.sp-hf-name {
|
||||
flex: 1;
|
||||
min-width: 0; /* CRÍTICO: permite truncate dentro de flex-item */
|
||||
overflow: hidden;
|
||||
text-overflow: ellipsis;
|
||||
white-space: nowrap;
|
||||
font-size: 12px;
|
||||
color: var(--text2);
|
||||
}
|
||||
|
||||
.sp-hf-size {
|
||||
font-size: 11px;
|
||||
font-family: "Cascadia Code", "JetBrains Mono", monospace;
|
||||
color: var(--text3);
|
||||
flex-shrink: 0;
|
||||
white-space: nowrap; /* protege de ser esmagado pelo nome longo */
|
||||
min-width: 52px;
|
||||
text-align: right;
|
||||
}
|
||||
|
||||
.sp-hf-quant-badge {
|
||||
background: rgba(255, 255, 255, 0.08);
|
||||
padding: 2px 6px;
|
||||
border-radius: 4px;
|
||||
font-size: 10px;
|
||||
font-family: "Cascadia Code", "JetBrains Mono", monospace;
|
||||
color: var(--text2);
|
||||
flex-shrink: 0;
|
||||
white-space: nowrap; /* protege de ser esmagado pelo nome longo */
|
||||
}
|
||||
|
||||
.sp-hf-download-btn {
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
background: none;
|
||||
border: none;
|
||||
color: var(--text3);
|
||||
opacity: 0.3;
|
||||
cursor: pointer;
|
||||
padding: 4px;
|
||||
border-radius: 4px;
|
||||
transition: opacity 0.2s, color 0.2s;
|
||||
flex-shrink: 0;
|
||||
}
|
||||
|
||||
.sp-hf-file:hover .sp-hf-download-btn {
|
||||
opacity: 1;
|
||||
color: var(--accent);
|
||||
}
|
||||
|
||||
.sp-hf-download-btn:hover {
|
||||
background: rgba(255, 255, 255, 0.06);
|
||||
}
|
||||
|
||||
/* ── Radio controls ── */
|
||||
.sp-radio {
|
||||
display: inline-block;
|
||||
|
||||
Reference in new issue
Block a user