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 ldr- prefix to remaining CSS and JavaScript classes

LearningCircuitcfafd9fcba37
diff --git a/src/local_deep_research/web/static/css/news-enhanced.css b/src/local_deep_research/web/static/css/news-enhanced.css
index eb47116e3b..cf14fccff8 100644
--- a/src/local_deep_research/web/static/css/news-enhanced.css
+++ b/src/local_deep_research/web/static/css/news-enhanced.css
@@ -56,7 +56,7 @@
}
/* Enhanced Headlines */
-.news-headline {
+.ldr-news-headline {
font-size: 1.4rem;
font-weight: 700;
margin-bottom: 1rem;
@@ -68,7 +68,7 @@
transition: all 0.3s ease;
}
-.ldr-news-item:hover .news-headline {
+.ldr-news-item:hover .ldr-news-headline {
background: var(--news-gradient-1);
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
@@ -97,7 +97,7 @@
box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}
-.news-impact {
+.ldr-news-impact {
display: flex;
align-items: center;
gap: 0.5rem;
@@ -105,7 +105,7 @@
color: var(--text-secondary);
}
-.impact-bar {
+.ldr-impact-bar {
width: 60px;
height: 6px;
background: rgba(255, 255, 255, 0.1);
@@ -114,7 +114,7 @@
position: relative;
}
-.impact-fill {
+.ldr-impact-fill {
height: 100%;
background: var(--news-gradient-2);
border-radius: 3px;
@@ -130,7 +130,7 @@
border: 1px solid rgba(255, 255, 255, 0.05);
}
-.news-table {
+.ldr-news-table {
width: 100%;
border-collapse: separate;
border-spacing: 0;
@@ -138,7 +138,7 @@
border-radius: 8px;
}
-.news-table th {
+.ldr-news-table th {
background: linear-gradient(135deg, rgba(100, 108, 255, 0.1) 0%, rgba(100, 108, 255, 0.05) 100%);
padding: 0.75rem 1rem;
text-align: left;
@@ -147,17 +147,17 @@
border-bottom: 2px solid rgba(100, 108, 255, 0.2);
}
-.news-table td {
+.ldr-news-table td {
padding: 0.75rem 1rem;
border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}
-.news-table tr:hover td {
+.ldr-news-table tr:hover td {
background: rgba(100, 108, 255, 0.05);
}
/* Enhanced Source Links */
-.news-sources {
+.ldr-news-sources {
background: rgba(100, 108, 255, 0.05);
border-radius: 12px;
padding: 1rem;
@@ -165,7 +165,7 @@
border: 1px solid rgba(100, 108, 255, 0.1);
}
-.news-sources h6 {
+.ldr-news-sources h6 {
color: var(--accent-primary);
font-weight: 600;
margin-bottom: 0.5rem;
@@ -174,7 +174,7 @@
letter-spacing: 0.5px;
}
-.source-link {
+.ldr-source-link {
display: flex;
align-items: center;
gap: 0.5rem;
@@ -184,12 +184,12 @@
transition: all 0.3s ease;
}
-.source-link:hover {
+.ldr-source-link:hover {
color: var(--accent-primary);
transform: translateX(4px);
}
-.source-link i {
+.ldr-source-link i {
font-size: 0.85rem;
opacity: 0.7;
}
@@ -204,12 +204,12 @@
border-top: 1px solid rgba(255, 255, 255, 0.1);
}
-.vote-buttons {
+.ldr-vote-buttons {
display: flex;
gap: 1rem;
}
-.vote-btn {
+.ldr-vote-btn {
background: rgba(255, 255, 255, 0.05);
border: 1px solid rgba(255, 255, 255, 0.1);
color: var(--text-secondary);
@@ -223,20 +223,20 @@
font-size: 0.9rem;
}
-.vote-btn:hover {
+.ldr-vote-btn:hover {
background: rgba(100, 108, 255, 0.1);
border-color: rgba(100, 108, 255, 0.3);
color: var(--accent-primary);
transform: translateY(-2px);
}
-.vote-btn.active {
+.ldr-vote-btn.active {
background: var(--accent-primary);
color: white;
border-color: var(--accent-primary);
}
-.vote-count {
+.ldr-vote-count {
font-weight: 600;
margin-left: 0.25rem;
}
@@ -319,7 +319,7 @@
}
/* Enhanced Topic Pills */
-.topic-pill {
+.ldr-topic-pill {
background: linear-gradient(135deg, rgba(100, 108, 255, 0.1) 0%, rgba(100, 108, 255, 0.05) 100%);
color: var(--accent-primary);
padding: 0.4rem 1rem;
@@ -332,7 +332,7 @@
white-space: nowrap;
}
-.topic-pill:hover {
+.ldr-topic-pill:hover {
background: var(--accent-primary);
color: white;
transform: scale(1.05);
@@ -340,7 +340,7 @@
}
/* Enhanced Loading States */
-.skeleton-loader {
+.ldr-skeleton-loader {
background: linear-gradient(90deg,
rgba(255, 255, 255, 0.05) 0%,
rgba(255, 255, 255, 0.1) 50%,
@@ -359,12 +359,12 @@
}
/* Enhanced Priority Indicators */
-.ldr-news-item.priority-high {
+.ldr-news-item.ldr-priority-high {
border-left: 4px solid transparent;
background: linear-gradient(90deg, rgba(250, 112, 154, 0.1) 0%, var(--bg-secondary) 10%);
}
-.ldr-news-item.priority-high::after {
+.ldr-news-item.ldr-priority-high::after {
content: '⚡';
position: absolute;
top: 1rem;
@@ -373,12 +373,12 @@
opacity: 0.8;
}
-.ldr-news-item.priority-medium {
+.ldr-news-item.ldr-priority-medium {
border-left: 4px solid transparent;
background: linear-gradient(90deg, rgba(254, 225, 64, 0.1) 0%, var(--bg-secondary) 10%);
}
-.ldr-news-item.priority-low {
+.ldr-news-item.ldr-priority-low {
border-left: 4px solid transparent;
background: linear-gradient(90deg, rgba(0, 242, 254, 0.1) 0%, var(--bg-secondary) 10%);
}
@@ -413,7 +413,7 @@
margin-bottom: 1rem;
}
- .news-headline {
+ .ldr-news-headline {
font-size: 1.2rem;
}
@@ -427,7 +427,7 @@
gap: 1rem;
}
- .vote-buttons {
+ .ldr-vote-buttons {
width: 100%;
justify-content: space-around;
}
diff --git a/src/local_deep_research/web/static/js/components/research.js b/src/local_deep_research/web/static/js/components/research.js
index 33cf5052bf..ed4d084c1f 100644
--- a/src/local_deep_research/web/static/js/components/research.js
+++ b/src/local_deep_research/web/static/js/components/research.js
@@ -2031,7 +2031,7 @@
// Show loading overlay for better feedback
const loadingOverlay = document.createElement('div');
- loadingOverlay.className = 'loading-overlay';
+ loadingOverlay.className = 'ldr-loading-overlay';
loadingOverlay.innerHTML = `
<div class="loading-content" style="text-align: center;">
<i class="fas fa-spinner fa-spin fa-3x" style="margin-bottom: 20px;"></i>
@@ -2092,7 +2092,7 @@
startBtn.innerHTML = '<i class="fas fa-rocket"></i> Start Research';
// Remove loading overlay
- const overlay = document.querySelector('.loading-overlay');
+ const overlay = document.querySelector('.ldr-loading-overlay');
if (overlay) overlay.remove();
return;
@@ -2144,7 +2144,7 @@
startBtn.innerHTML = '<i class="fas fa-rocket"></i> Start Research';
// Remove loading overlay
- const overlay = document.querySelector('.loading-overlay');
+ const overlay = document.querySelector('.ldr-loading-overlay');
if (overlay) overlay.remove();
}
})
@@ -2159,7 +2159,7 @@
startBtn.innerHTML = '<i class="fas fa-rocket"></i> Start Research';
// Remove loading overlay
- const overlay = document.querySelector('.loading-overlay');
+ const overlay = document.querySelector('.ldr-loading-overlay');
if (overlay) overlay.remove();
});
}
diff --git a/src/local_deep_research/web/static/js/news-enhancements.js b/src/local_deep_research/web/static/js/news-enhancements.js
index f503a66030..516e25fb07 100644
--- a/src/local_deep_research/web/static/js/news-enhancements.js
+++ b/src/local_deep_research/web/static/js/news-enhancements.js
@@ -18,7 +18,7 @@ document.addEventListener('DOMContentLoaded', function() {
});
// Enhance vote buttons with ripple effect
- const voteButtons = document.querySelectorAll('.vote-btn');
+ const voteButtons = document.querySelectorAll('.ldr-vote-btn');
voteButtons.forEach(btn => {
btn.addEventListener('click', function(e) {
// Create ripple effect
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 c497820ac3..11fe4c8ac8 100644
--- a/src/local_deep_research/web/static/js/pages/news.js
+++ b/src/local_deep_research/web/static/js/pages/news.js
@@ -251,7 +251,7 @@ function setupEventListeners() {
// Event delegation for topic tags in news items
document.addEventListener('click', (e) => {
- if (e.target.classList.contains('topic-tag')) {
+ if (e.target.classList.contains('ldr-topic-tag')) {
const topic = e.target.getAttribute('data-topic');
if (topic) {
filterByTopic(topic);
@@ -795,7 +795,7 @@ function renderNewsItems(searchQuery = null) {
}
// Preserve any existing filter bar
- const existingFilterBar = container.querySelector('.active-filter-bar');
+ const existingFilterBar = container.querySelector('.ldr-active-filter-bar');
// Debug logging removed - was causing console spam
@@ -1108,14 +1108,14 @@ async function loadVotesForNewsItems() {
// Show user's existing vote
if (voteInfo.user_vote === 'up') {
- upBtn.classList.add('voted');
- downBtn.classList.remove('voted');
+ upBtn.classList.add('ldr-voted');
+ downBtn.classList.remove('ldr-voted');
} else if (voteInfo.user_vote === 'down') {
- downBtn.classList.add('voted');
- upBtn.classList.remove('voted');
+ downBtn.classList.add('ldr-voted');
+ upBtn.classList.remove('ldr-voted');
} else {
- upBtn.classList.remove('voted');
- downBtn.classList.remove('voted');
+ upBtn.classList.remove('ldr-voted');
+ downBtn.classList.remove('ldr-voted');
}
}
}
@@ -1152,11 +1152,11 @@ async function vote(newsId, voteType) {
downBtn.innerHTML = `<i class="fas fa-thumbs-down"></i> ${data.downvotes}`;
if (voteType === 'up') {
- upBtn.classList.add('voted');
- downBtn.classList.remove('voted');
+ upBtn.classList.add('ldr-voted');
+ downBtn.classList.remove('ldr-voted');
} else {
- downBtn.classList.add('voted');
- upBtn.classList.remove('voted');
+ downBtn.classList.add('ldr-voted');
+ upBtn.classList.remove('ldr-voted');
}
}
}
@@ -1297,7 +1297,7 @@ function toggleExpanded(newsId) {
newsItem.classList.toggle('is-expanded');
// Update button text and icon
- const toggleBtn = newsItem.querySelector('.expand-toggle-btn');
+ const toggleBtn = newsItem.querySelector('.ldr-expand-toggle-btn');
if (toggleBtn) {
const isExpanded = expandedNewsIds.has(newsId);
toggleBtn.innerHTML = `
@@ -1308,7 +1308,7 @@ function toggleExpanded(newsId) {
}
// Update findings display
- const findings = newsItem.querySelector('.news-findings');
+ const findings = newsItem.querySelector('.ldr-news-findings');
if (findings) {
if (expandedNewsIds.has(newsId)) {
findings.style.maxHeight = 'none';
@@ -1347,7 +1347,7 @@ function toggleTableView(showTable) {
function createTableViewHTML() {
const tableContainer = document.createElement('div');
tableContainer.id = 'news-table-view';
- tableContainer.className = 'news-table-container';
+ tableContainer.className = 'ldr-news-table-container';
tableContainer.style.display = 'none';
tableContainer.innerHTML = `
<table class="news-table">
@@ -1513,7 +1513,7 @@ function filterByTopic(topic) {
// Update UI to show active topic filter
function updateActiveTopicUI() {
// Update all topic tags to show active state
- document.querySelectorAll('.topic-tag').forEach(tag => {
+ document.querySelectorAll('.ldr-topic-tag').forEach(tag => {
const tagTopic = tag.getAttribute('data-topic');
if (tagTopic === activeTopicFilter) {
tag.classList.add('active');
@@ -1524,12 +1524,12 @@ function updateActiveTopicUI() {
// Show/hide clear filter button
const container = document.getElementById('news-feed-content');
- const existingFilter = container.querySelector('.active-filter-bar');
+ const existingFilter = container.querySelector('.ldr-active-filter-bar');
if (activeTopicFilter) {
if (!existingFilter) {
const filterBar = document.createElement('div');
- filterBar.className = 'active-filter-bar';
+ filterBar.className = 'ldr-active-filter-bar';
filterBar.innerHTML = `
<div class="filter-info">
<i class="bi bi-funnel-fill"></i>
@@ -1562,7 +1562,7 @@ function updateBulkActionsBar() {
if (!feedContent) return;
// Remove existing bulk actions bar
- const existingBar = feedContent.querySelector('.bulk-actions-bar');
+ const existingBar = feedContent.querySelector('.ldr-bulk-actions-bar');
if (existingBar) existingBar.remove();
// Only show if there are items
@@ -1572,7 +1572,7 @@ function updateBulkActionsBar() {
const totalCount = newsItems.length;
const bulkBar = document.createElement('div');
- bulkBar.className = 'bulk-actions-bar';
+ bulkBar.className = 'ldr-bulk-actions-bar';
bulkBar.innerHTML = `
<div class="bulk-actions-content">
<div class="news-stats">
@@ -1607,7 +1607,7 @@ function updateFilterStatusBar() {
if (!feedHeader) return;
// Remove existing filter status bar
- const existingBar = feedHeader.querySelector('.filter-status-bar');
+ const existingBar = feedHeader.querySelector('.ldr-filter-status-bar');
if (existingBar) existingBar.remove();
// Check if any filters are active
@@ -1636,7 +1636,7 @@ function updateFilterStatusBar() {
// Only create and show the bar if we have actual filter badges
if (filterBadges.length > 0) {
const filterBar = document.createElement('div');
- filterBar.className = 'filter-status-bar';
+ filterBar.className = 'ldr-filter-status-bar';
let filterHtml = '<div class="active-filters"><span>Active filters:</span>';
filterHtml += filterBadges.join('');
@@ -1689,7 +1689,7 @@ function clearAllFilters() {
const impactSlider = document.getElementById('impact-filter');
if (impactSlider) {
impactSlider.value = 0;
- document.querySelector('.slider-value').textContent = '0';
+ document.querySelector('.ldr-slider-value').textContent = '0';
}
// Re-render
diff --git a/src/local_deep_research/web/templates/pages/benchmark_results.html b/src/local_deep_research/web/templates/pages/benchmark_results.html
index ca26d74017..df4b16eba1 100644
--- a/src/local_deep_research/web/templates/pages/benchmark_results.html
+++ b/src/local_deep_research/web/templates/pages/benchmark_results.html
@@ -742,7 +742,7 @@ function createRunCard(run) {
<div class="ldr-summary-label">Progress (${progress}%)</div>
</div>
<div class="ldr-summary-item">
- <div class="ldr-summary-value ${status === 'completed' && accuracy > 0 ? accuracyClass + ' accuracy-indicator' : ''}">${status === 'completed' && accuracy > 0 ? accuracy.toFixed(1) + '%' : 'N/A'}</div>
+ <div class="ldr-summary-value ${status === 'completed' && accuracy > 0 ? accuracyClass + ' ldr-accuracy-indicator' : ''}">${status === 'completed' && accuracy > 0 ? accuracy.toFixed(1) + '%' : 'N/A'}</div>
<div class="ldr-summary-label">Accuracy</div>
</div>
<div class="ldr-summary-item">