Build your personal knowledge base with Trilium Notes
TypeScript electronelectron-appknowledge-baseknowledge-graphknowledge-managementknowledge-management-graphlocal-firstnote-managmentnote-takernote-takingnotebooknotesnotes-apppersonal-knowledge-basepersonal-wikiscriptableself-hostedself-hostingwiki
yes, now the failed embeddings section at least looks passable
perf3ctd4cfc65b277b
diff --git a/src/public/app/widgets/type_widgets/options/ai_settings.ts b/src/public/app/widgets/type_widgets/options/ai_settings.tsindex a97e95a0e7..3af92168af 100644--- a/src/public/app/widgets/type_widgets/options/ai_settings.ts+++ b/src/public/app/widgets/type_widgets/options/ai_settings.ts@@ -877,32 +877,35 @@ export default class AiSettingsWidget extends OptionsWidget {}}- // Use the application's note-list-item styling+ // Use the application's native note-list-item styling without custom font stylesconst $item = $(`<div class="note-list-item"><div class="note-book-card p-2">- <div class="d-flex w-100 justify-content-between">- <div>- <div class="d-flex align-items-center">- <h6 class="mb-1">${note.title || note.noteId}</h6>- <span class="badge ${badgeClass} ml-2">${badgeText}</span>- </div>- <p class="text-muted mb-1 small">- ${isPermanentlyFailed ?- `<strong>Status:</strong> Permanently failed` :- `<strong>Attempts:</strong> ${note.attempts}`}- <br>- <strong>Last attempt:</strong> ${note.lastAttempt.substring(0, 19)}- <br>- <strong>Error:</strong> ${(note.error || 'Unknown error').substring(0, 100)}${(note.error && note.error.length > 100) ? '...' : ''}- </p>+ <div class="note-book-content">+ <div class="note-book-title">+ <span class="note-title">${note.title || note.noteId}</span>+ <span class="badge ${badgeClass} ml-2">${badgeText}</span></div>- <div class="ml-2 align-self-center">- <button class="btn btn-sm btn-outline-secondary retry-btn" data-note-id="${note.noteId}">- <i class="fas fa-redo-alt"></i> Retry- </button>+ <div class="note-book-excerpt">+ <div class="note-detail-field">+ <span class="note-detail-label">${isPermanentlyFailed ? 'Status:' : 'Attempts:'}</span>+ <span class="note-detail-value">${isPermanentlyFailed ? 'Permanently failed' : note.attempts}</span>+ </div>+ <div class="note-detail-field">+ <span class="note-detail-label">Last attempt:</span>+ <span class="note-detail-value">${note.lastAttempt.substring(0, 19)}</span>+ </div>+ <div class="note-detail-field">+ <span class="note-detail-label">Error:</span>+ <span class="note-detail-value">${(note.error || 'Unknown error').substring(0, 100)}${(note.error && note.error.length > 100) ? '...' : ''}</span>+ </div></div></div>+ <div class="note-book-actions">+ <button class="btn btn-sm btn-outline-secondary retry-btn" data-note-id="${note.noteId}">+ <i class="fas fa-redo-alt"></i> Retry+ </button>+ </div></div></div>`);