Skip to content

~95% on SimpleQA (e.g. Qwen3.6-27B on a 3090). Supports all local and cloud LLMs (llama.cpp, Ollama, Google, ...). 10+ search engines - arXiv, PubMed, your private documents. Everything Local & Encrypted.

fix: add missing ldr- CSS class prefixes in subscriptions and news JS (#2663)

LearningCircuit37242b640a0a
diff --git a/src/local_deep_research/web/static/js/components/news.js b/src/local_deep_research/web/static/js/components/news.js
index 46ed6a0437..bb9e9e06b4 100644
--- a/src/local_deep_research/web/static/js/components/news.js
+++ b/src/local_deep_research/web/static/js/components/news.js
@@ -56,7 +56,7 @@ const esc = window.escapeHtml || (s => String(s || '').replace(/[&<>"']/g, m =>
window.showEmptyState = function(container, message, icon = 'fas fa-newspaper') {
// bearer:disable javascript_lang_dangerous_insert_html
container.innerHTML = `
- <div class="empty-state">
+ <div class="ldr-empty-state">
<i class="${esc(icon)}"></i>
<h3>No items found</h3>
<p>${esc(message)}</p>
@@ -68,7 +68,7 @@ window.showEmptyState = function(container, message, icon = 'fas fa-newspaper')
window.showLoadingState = function(container, message = 'Loading...') {
// bearer:disable javascript_lang_dangerous_insert_html
container.innerHTML = `
- <div class="loading-placeholder">
+ <div class="ldr-loading-placeholder">
<div class="loading-spinner"></div>
<p>${esc(message)}</p>
</div>
diff --git a/src/local_deep_research/web/static/js/pages/news.js b/src/local_deep_research/web/static/js/pages/news.js
index af5faae4ac..234cb4ed64 100644
--- a/src/local_deep_research/web/static/js/pages/news.js
+++ b/src/local_deep_research/web/static/js/pages/news.js
@@ -1314,7 +1314,7 @@ function loadSavedNewsFeed() {
const container = document.getElementById('news-feed-content');
if (savedArray.length === 0) {
container.innerHTML = `
- <div class="empty-state">
+ <div class="ldr-empty-state">
<i class="bi bi-bookmark"></i>
<h3>No saved items</h3>
<p>Save news items to read them later</p>
diff --git a/src/local_deep_research/web/static/js/pages/subscriptions.js b/src/local_deep_research/web/static/js/pages/subscriptions.js
index 115b18f682..00ecde15d4 100644
--- a/src/local_deep_research/web/static/js/pages/subscriptions.js
+++ b/src/local_deep_research/web/static/js/pages/subscriptions.js
@@ -437,7 +437,7 @@ function showSubscriptionHistoryModal(subscription, historyData) {
<button type="button" class="btn-close" data-bs-dismiss="modal"></button>
</div>
<div class="modal-body">
- <div class="history-summary">
+ <div class="ldr-history-summary">
<p><strong>Total research runs:</strong> ${historyData.total_runs || 0}</p>
<p><strong>Created:</strong> ${new Date(subscription.created_at).toLocaleString()}</p>
${subscription.source_id ? `
@@ -450,7 +450,7 @@ function showSubscriptionHistoryModal(subscription, historyData) {
</div>
<h6 class="mt-4">Recent Research Runs</h6>
- <div class="history-list" style="max-height: 400px; overflow-y: auto;">
+ <div class="ldr-history-list" style="max-height: 400px; overflow-y: auto;">
${historyData.history && historyData.history.length > 0 ?
historyData.history.map(item => {
// Escape user-controlled values
@@ -459,19 +459,19 @@ function showSubscriptionHistoryModal(subscription, historyData) {
const safeStatusClass = (item.status || 'unknown').replace(/[^a-zA-Z0-9_-]/g, '');
const safeStatus = escapeHtml(item.status || 'unknown');
return `
- <div class="history-item">
- <div class="history-item-header">
+ <div class="ldr-history-item">
+ <div class="ldr-history-item-header">
<a href="/progress/${item.research_id}" target="_blank">
${safeHeadline} <i class="bi bi-box-arrow-up-right"></i>
</a>
<span class="history-date">${new Date(item.created_at).toLocaleString()}</span>
</div>
- <div class="history-item-meta">
- <span class="status-badge status-${safeStatusClass}">${safeStatus}</span>
+ <div class="ldr-history-item-meta">
+ <span class="ldr-status-badge ldr-status-${safeStatusClass}">${safeStatus}</span>
${item.duration_seconds ? `<span class="duration">${item.duration_seconds}s</span>` : ''}
${item.topics && item.topics.length > 0 ?
`<div class="topics-list">${item.topics.slice(0, 3).map(topic =>
- `<span class="topic-badge">${escapeHtml(topic)}</span>`
+ `<span class="ldr-topic-badge">${escapeHtml(topic)}</span>`
).join('')}</div>` : ''
}
</div>