feat: Add embedding status hint in clustering UI

- Add embedding status check API endpoints (embed-status, embed)
- Display embedding hint in cluster list view:
  - Warning when vector model not installed
  - Progress indicator when embeddings pending
  - Generate button for quick embedding
- Add i18n translations (EN/ZH)
- Add CSS styles for embedding hint components

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
catlog22
2025-12-20 13:15:25 +08:00
parent 31cc060837
commit 6b62b5b5a9
4 changed files with 211 additions and 1 deletions

View File

@@ -1645,3 +1645,56 @@
background: rgba(15, 23, 42, 0.5);
border-color: #334155;
}
/* Embedding Hint Styles */
.embedding-hint {
display: flex;
align-items: center;
gap: 8px;
padding: 10px 12px;
margin-bottom: 12px;
border-radius: 8px;
font-size: 12px;
line-height: 1.4;
}
.embedding-hint i {
flex-shrink: 0;
width: 16px;
height: 16px;
}
.embedding-hint.warning {
background: rgba(245, 158, 11, 0.1);
border: 1px solid rgba(245, 158, 11, 0.3);
color: #d97706;
}
.embedding-hint.info {
background: rgba(59, 130, 246, 0.1);
border: 1px solid rgba(59, 130, 246, 0.3);
color: #3b82f6;
}
.embedding-hint .hint-link {
margin-left: auto;
color: inherit;
text-decoration: underline;
white-space: nowrap;
}
.embedding-hint .btn-xs {
margin-left: auto;
padding: 4px 8px;
font-size: 11px;
}
[data-theme="dark"] .embedding-hint.warning {
background: rgba(245, 158, 11, 0.15);
color: #fbbf24;
}
[data-theme="dark"] .embedding-hint.info {
background: rgba(59, 130, 246, 0.15);
color: #60a5fa;
}