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.

feat: Fix additional CSS classes with ldr- prefix

LearningCircuitbb9b87a09c3b
diff --git a/fix_final_classes.sh b/fix_final_classes.sh
new file mode 100755
index 0000000000..96ea7faf61
--- /dev/null
+++ b/fix_final_classes.sh
@@ -0,0 +1,110 @@
+#!/bin/bash
+
+# Final set of classes that need ldr- prefix
+CLASSES=(
+ # Subscriptions page
+ "stats-overview"
+ "scheduler-status-bar"
+ "scheduler-info"
+ "scheduler-label"
+ "scheduler-status"
+ "scheduler-details"
+ "scheduler-actions"
+ "folder-list"
+ "folder-item"
+ "folder-count"
+ "subscriptions-main"
+ "filter-bar"
+ "filter-options"
+ "subscriptions-grid"
+ "loading-placeholder"
+ # Cost analytics
+ "cost-card-title"
+ "cost-optimization"
+ "info-note"
+ "cost-item-info"
+ "cost-item-name"
+ "research-link"
+ "cost-item-details"
+ "cost-item-value"
+ # Metrics page
+ "model-usage-list"
+ "model-info"
+ "model-stats"
+ "token-count"
+ "call-count"
+ "research-tokens"
+ "engine-stats-grid"
+ # Details page
+ "detail-progress-bar"
+ "detail-progress-fill"
+ "metrics-section"
+ "phase-stats"
+ # Link analytics
+ "link-analytics-container"
+ "close-modal"
+ "classification-log"
+ "research-links"
+ "research-links-title"
+ "classified-badge"
+ "domain-header"
+ "domain-name"
+ "domain-stats"
+ "metric-badge"
+ "frequency"
+ "diversity"
+ # Research page
+ "research-card"
+ "search-hints"
+ "hint-row"
+ "hint-item"
+ "hint-icon"
+ "hint-text"
+)
+
+echo "Fixing final set of CSS classes..."
+
+# Fix in CSS files
+for class in "${CLASSES[@]}"; do
+ find src/local_deep_research/web/static/css -name "*.css" -exec grep -l "\\.$class\\b" {} \; 2>/dev/null | while read file; do
+ echo "Fixing .$class in $file"
+ sed -i "s/\\.${class}\\b/.ldr-${class}/g" "$file"
+ done
+done
+
+# Fix in HTML files
+for class in "${CLASSES[@]}"; do
+ find src/local_deep_research/web/templates -name "*.html" -exec grep -l "class=\"[^\"]*${class}[^\"]*\"" {} \; 2>/dev/null | while read file; do
+ echo "Fixing $class in $file"
+ # Handle as single class
+ sed -i "s/class=\"${class}\"/class=\"ldr-${class}\"/g" "$file"
+ # Handle at start of multiple classes
+ sed -i "s/class=\"${class} /class=\"ldr-${class} /g" "$file"
+ # Handle in middle of multiple classes
+ sed -i "s/\\(class=\"[^\"]*\\) ${class} /\\1 ldr-${class} /g" "$file"
+ # Handle at end of multiple classes
+ sed -i "s/\\(class=\"[^\"]*\\) ${class}\"/\\1 ldr-${class}\"/g" "$file"
+ done
+done
+
+# Fix in JavaScript files
+for class in "${CLASSES[@]}"; do
+ find src/local_deep_research/web/static/js -name "*.js" -exec grep -l "${class}" {} \; 2>/dev/null | while read file; do
+ echo "Fixing $class in $file"
+ # classList methods
+ sed -i "s/classList\\.\\([^(]*\\)(['\"]${class}['\"])/classList.\\1('ldr-${class}')/g" "$file"
+ # querySelector methods
+ sed -i "s/querySelector\\([^(]*\\)(['\"]\\.${class}['\"])/querySelector\\1('.ldr-${class}')/g" "$file"
+ # className assignments
+ sed -i "s/className[[:space:]]*=[[:space:]]*['\"]${class}['\"])/className = 'ldr-${class}')/g" "$file"
+ done
+done
+
+# Special fix for detail-ldr-progress-bar and detail-ldr-progress-fill (they already have ldr- in wrong place)
+find src/local_deep_research/web/templates -name "*.html" -exec grep -l "detail-ldr-progress" {} \; 2>/dev/null | while read file; do
+ echo "Fixing detail-ldr-progress classes in $file"
+ sed -i "s/detail-ldr-progress-bar/ldr-detail-progress-bar/g" "$file"
+ sed -i "s/detail-ldr-progress-fill/ldr-detail-progress-fill/g" "$file"
+done
+
+echo "Done!"
\ No newline at end of file
diff --git a/src/local_deep_research/web/static/css/custom_dropdown.css b/src/local_deep_research/web/static/css/custom_dropdown.css
index f1559cf99d..871e10939d 100644
--- a/src/local_deep_research/web/static/css/custom_dropdown.css
+++ b/src/local_deep_research/web/static/css/custom_dropdown.css
@@ -290,7 +290,7 @@ body.dropdown-active {
}
/* Enhanced search hints styling */
-.search-hints {
+.ldr-search-hints {
margin-top: 0.75rem;
padding: 0.75rem;
background-color: rgba(64, 191, 255, 0.05);
@@ -298,18 +298,18 @@ body.dropdown-active {
border: 1px solid rgba(64, 191, 255, 0.1);
}
-.hint-row {
+.ldr-hint-row {
display: flex;
flex-wrap: wrap;
gap: 1.5rem;
margin-bottom: 0.5rem;
}
-.hint-row:last-child {
+.ldr-hint-row:last-child {
margin-bottom: 0;
}
-.hint-item {
+.ldr-hint-item {
display: flex;
align-items: center;
gap: 0.5rem;
@@ -317,14 +317,14 @@ body.dropdown-active {
color: var(--text-secondary, #c0c0cc);
}
-.hint-icon {
+.ldr-hint-icon {
color: var(--accent-tertiary, #40bfff);
font-size: 0.8rem;
width: 12px;
text-align: center;
}
-.hint-text {
+.ldr-hint-text {
font-size: 0.85rem;
color: var(--text-secondary, #c0c0cc);
}
@@ -334,7 +334,7 @@ body.dropdown-active {
margin-top: 6px;
}
-.keyboard-hint .hint-text {
+.keyboard-hint .ldr-hint-text {
font-size: 0.8rem;
color: var(--text-secondary, #c0c0cc);
font-style: italic;
@@ -342,12 +342,12 @@ body.dropdown-active {
/* Responsive design for hints */
@media (max-width: 767px) {
- .hint-row {
+ .ldr-hint-row {
flex-direction: column;
gap: 0.5rem;
}
- .hint-item {
+ .ldr-hint-item {
font-size: 0.8rem;
}
}
@@ -413,7 +413,7 @@ legend {
animation: fadeIn 0.5s ease-in;
}
-.keyboard-shortcut-hint .hint-text {
+.keyboard-shortcut-hint .ldr-hint-text {
font-size: 0.9rem;
color: var(--text-secondary, #c0c0cc);
}
@@ -451,7 +451,7 @@ legend {
animation: fadeIn 0.5s ease-in;
}
-.results-keyboard-hint .hint-text {
+.results-keyboard-hint .ldr-hint-text {
font-size: 0.85rem;
color: var(--text-muted, #8a8aa0);
}
diff --git a/src/local_deep_research/web/static/css/news.css b/src/local_deep_research/web/static/css/news.css
index 98970e5049..61666867f3 100644
--- a/src/local_deep_research/web/static/css/news.css
+++ b/src/local_deep_research/web/static/css/news.css
@@ -1291,7 +1291,7 @@
font-weight: 500;
}
-.filter-options {
+.ldr-filter-options {
display: flex;
flex-wrap: wrap;
gap: 0.5rem;
@@ -1648,7 +1648,7 @@ button[onclick="refreshFeed()"]:hover i {
}
/* Loading States */
-.loading-placeholder {
+.ldr-loading-placeholder {
display: flex;
flex-direction: column;
align-items: center;
diff --git a/src/local_deep_research/web/static/css/subscriptions.css b/src/local_deep_research/web/static/css/subscriptions.css
index 0e818ac281..3ba949a222 100644
--- a/src/local_deep_research/web/static/css/subscriptions.css
+++ b/src/local_deep_research/web/static/css/subscriptions.css
@@ -50,7 +50,7 @@
}
/* Stats Overview */
-.stats-overview {
+.ldr-stats-overview {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
gap: 20px;
@@ -84,7 +84,7 @@
}
/* Scheduler Status Bar */
-.scheduler-status-bar {
+.ldr-scheduler-status-bar {
background: var(--bg-secondary);
border: 1px solid var(--border-color);
border-radius: 8px;
@@ -95,18 +95,18 @@
align-items: center;
}
-.scheduler-info {
+.ldr-scheduler-info {
display: flex;
align-items: center;
gap: 10px;
color: var(--text-primary);
}
-.scheduler-label {
+.ldr-scheduler-label {
font-weight: 500;
}
-.scheduler-status {
+.ldr-scheduler-status {
display: flex;
align-items: center;
gap: 8px;
@@ -140,13 +140,13 @@
100% { opacity: 1; }
}
-.scheduler-details {
+.ldr-scheduler-details {
color: var(--text-secondary);
font-size: 0.9rem;
margin-left: 10px;
}
-.scheduler-actions {
+.ldr-scheduler-actions {
display: flex;
gap: 10px;
}
@@ -173,11 +173,11 @@
color: var(--text-primary);
}
-.folder-list {
+.ldr-folder-list {
margin: 0 0 15px 0;
}
-.folder-item {
+.ldr-folder-item {
display: flex;
justify-content: space-between;
align-items: center;
@@ -188,16 +188,16 @@
transition: background-color 0.2s;
}
-.folder-item:hover {
+.ldr-folder-item:hover {
background-color: var(--bg-tertiary);
}
-.folder-item.active {
+.ldr-folder-item.active {
background-color: #e3f2fd;
color: #2c5aa0;
}
-.folder-count {
+.ldr-folder-count {
background: var(--bg-tertiary);
color: var(--text-secondary);
padding: 2px 8px;
@@ -205,18 +205,18 @@
font-size: 0.8rem;
}
-.folder-item.active .folder-count {
+.ldr-folder-item.active .ldr-folder-count {
background: #2c5aa0;
color: white;
}
/* Main Content Area */
-.subscriptions-main {
+.ldr-subscriptions-main {
flex: 1;
}
/* Filter Bar */
-.filter-bar {
+.ldr-filter-bar {
background: var(--bg-secondary);
border: 1px solid var(--border-color);
border-radius: 8px;
@@ -252,17 +252,17 @@
border-color: #2c5aa0;
}
-.filter-options {
+.ldr-filter-options {
display: flex;
gap: 10px;
}
-.filter-options select {
+.ldr-filter-options select {
min-width: 150px;
}
/* Subscriptions Grid */
-.subscriptions-grid {
+.ldr-subscriptions-grid {
display: grid;
grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
gap: 20px;
@@ -349,7 +349,7 @@
}
.ldr-status-badge,
-.frequency-badge,
+.ldr-frequency-badge,
.folder-badge {
padding: 4px 10px;
border-radius: 4px;
@@ -366,7 +366,7 @@
color: #721c24;
}
-.frequency-badge {
+.ldr-frequency-badge {
background: #e2e3e5;
color: #383d41;
}
@@ -508,7 +508,7 @@
}
/* Loading State */
-.loading-placeholder {
+.ldr-loading-placeholder {
text-align: center;
padding: 60px 20px;
color: var(--text-secondary);
@@ -531,24 +531,24 @@
margin-bottom: 20px;
}
- .stats-overview {
+ .ldr-stats-overview {
grid-template-columns: repeat(2, 1fr);
}
- .subscriptions-grid {
+ .ldr-subscriptions-grid {
grid-template-columns: 1fr;
}
- .filter-bar {
+ .ldr-filter-bar {
flex-direction: column;
}
- .filter-options {
+ .ldr-filter-options {
width: 100%;
flex-direction: column;
}
- .filter-options select {
+ .ldr-filter-options select {
width: 100%;
}
}
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 f33cdff01a..a97aef9366 100644
--- a/src/local_deep_research/web/static/js/pages/subscriptions.js
+++ b/src/local_deep_research/web/static/js/pages/subscriptions.js
@@ -536,7 +536,7 @@ function updateStats() {
// Folder management
function renderFolders() {
- const folderList = document.querySelector('.folder-list');
+ const folderList = document.querySelector('.ldr-folder-list');
// Remove existing dynamic folders first
document.querySelectorAll('.folder-item[data-folder]:not([data-folder="all"]):not([data-folder="uncategorized"])').forEach(el => el.remove());
@@ -570,7 +570,7 @@ function countSubscriptionsInFolder(folderId) {
function selectFolder(folderId) {
// Update active state
- document.querySelectorAll('.folder-item').forEach(item => {
+ document.querySelectorAll('.ldr-folder-item').forEach(item => {
item.classList.toggle('active', item.dataset.folder === folderId);
});
diff --git a/src/local_deep_research/web/templates/pages/cost_analytics.html b/src/local_deep_research/web/templates/pages/cost_analytics.html
index c4d336d2e1..0639e63e70 100644
--- a/src/local_deep_research/web/templates/pages/cost_analytics.html
+++ b/src/local_deep_research/web/templates/pages/cost_analytics.html
@@ -506,7 +506,7 @@
<i class="fas fa-coins"></i>
</div>
<div>
- <h3 class="cost-card-title tooltip" data-tooltip="Estimated total cost for all research sessions in the selected time period. Based on current model pricing and token usage.">
+ <h3 class="ldr-cost-card-title tooltip" data-tooltip="Estimated total cost for all research sessions in the selected time period. Based on current model pricing and token usage.">
Total Cost
<i class="fas fa-info-circle ldr-info-icon"></i>
</h3>
@@ -522,7 +522,7 @@
<i class="fas fa-chart-line"></i>
</div>
<div>
- <h3 class="cost-card-title tooltip" data-tooltip="Average cost per individual research session. This helps you understand the typical expense of running a research query.">
+ <h3 class="ldr-cost-card-title tooltip" data-tooltip="Average cost per individual research session. This helps you understand the typical expense of running a research query.">
Average Per Research
<i class="fas fa-info-circle ldr-info-icon"></i>
</h3>
@@ -538,7 +538,7 @@
<i class="fas fa-robot"></i>
</div>
<div>
- <h3 class="cost-card-title tooltip" data-tooltip="The LLM model that has cost you the most money in total during this time period. Consider using more cost-effective alternatives for routine tasks.">
+ <h3 class="ldr-cost-card-title tooltip" data-tooltip="The LLM model that has cost you the most money in total during this time period. Consider using more cost-effective alternatives for routine tasks.">
Most Expensive Model
<i class="fas fa-info-circle ldr-info-icon"></i>
</h3>
@@ -554,7 +554,7 @@
<i class="fas fa-leaf"></i>
</div>
<div>
- <h3 class="cost-card-title tooltip" data-tooltip="Money saved by using local models instead of commercial alternatives. Local models like Ollama, LM Studio run for free.">
+ <h3 class="ldr-cost-card-title tooltip" data-tooltip="Money saved by using local models instead of commercial alternatives. Local models like Ollama, LM Studio run for free.">
Local Models Savings
<i class="fas fa-info-circle ldr-info-icon"></i>
</h3>
@@ -616,7 +616,7 @@
</div>
<!-- Cost Optimization Tips -->
- <div class="cost-optimization">
+ <div class="ldr-cost-optimization">
<h3><i class="fas fa-lightbulb"></i> Cost Optimization Insights</h3>
<ul id="optimization-tips">
<!-- Populated by JavaScript -->
@@ -730,7 +730,7 @@
</div>
<!-- Important Note -->
- <div class="info-note">
+ <div class="ldr-info-note">
<p>
<i class="fas fa-exclamation-triangle" style="color: var(--primary-color); margin-right: 0.5rem;"></i>
<strong>Important:</strong> These cost estimates are based on current public pricing from LLM providers and your actual token usage.
@@ -741,7 +741,7 @@
</div>
<!-- Local Model Pricing Disclaimer -->
- <div class="info-note" style="margin-top: 1rem; border-left-color: #FF9800;">
+ <div class="ldr-info-note" style="margin-top: 1rem; border-left-color: #FF9800;">
<p>
<i class="fas fa-home" style="color: #FF9800; margin-right: 0.5rem;"></i>
<strong>Local Model Savings Disclaimer:</strong> The "Local Models Savings" calculation is a rough estimate comparing your local model usage to hypothetical commercial API costs.
@@ -1090,15 +1090,15 @@
const div = document.createElement('div');
div.className = 'cost-item';
div.innerHTML = `
- <div class="cost-item-info">
- <div class="cost-item-name">
- <a href="/results/${item.research_id}" class="research-link">
+ <div class="ldr-cost-item-info">
+ <div class="ldr-cost-item-name">
+ <a href="/results/${item.research_id}" class="ldr-research-link">
Research Session #${item.research_id}
</a>
</div>
- <div class="cost-item-details">Rank #${index + 1} most expensive</div>
+ <div class="ldr-cost-item-details">Rank #${index + 1} most expensive</div>
</div>
- <div class="cost-item-value">${formatCurrency(item.total_cost)}</div>
+ <div class="ldr-cost-item-value">${formatCurrency(item.total_cost)}</div>
`;
container.appendChild(div);
});
diff --git a/src/local_deep_research/web/templates/pages/details.html b/src/local_deep_research/web/templates/pages/details.html
index f4ae7db717..9f10abeb36 100644
--- a/src/local_deep_research/web/templates/pages/details.html
+++ b/src/local_deep_research/web/templates/pages/details.html
@@ -327,8 +327,8 @@
<div class="ldr-metadata-item">
<span class="ldr-metadata-label">Progress:</span>
<div class="ldr-ldr-detail-progress-container">
- <div class="detail-ldr-progress-bar">
- <div class="detail-ldr-progress-fill" id="detail-progress-fill"></div>
+ <div class="ldr-detail-progress-bar">
+ <div class="ldr-detail-progress-fill" id="detail-progress-fill"></div>
</div>
<span id="detail-progress-percentage">0%</span>
</div>
@@ -342,7 +342,7 @@
</div>
<!-- Token Metrics Section -->
- <div class="ldr-card metrics-section" id="token-metrics-section" style="display: none;">
+ <div class="ldr-card ldr-metrics-section" id="token-metrics-section" style="display: none;">
<div class="card-header">
<h2><i class="fas fa-chart-line"></i> Token Usage Timeline</h2>
</div>
@@ -397,7 +397,7 @@
<!-- Phase Breakdown -->
<div style="margin-top: 2rem;">
<h3><i class="fas fa-layer-group"></i> Breakdown by Research Phase</h3>
- <div class="phase-stats" id="phase-breakdown">
+ <div class="ldr-phase-stats" id="phase-breakdown">
<!-- Populated dynamically -->
</div>
</div>
@@ -415,7 +415,7 @@
</div>
<!-- Source Type Distribution Section (separate card for prominence) -->
- <div class="ldr-card metrics-section" id="source-distribution-section" style="display: none;">
+ <div class="ldr-card ldr-metrics-section" id="source-distribution-section" style="display: none;">
<div class="card-header">
<h2><i class="fas fa-chart-pie"></i> Source Type Distribution</h2>
</div>
@@ -427,7 +427,7 @@
</div>
<!-- Search Analytics Section -->
- <div class="ldr-card metrics-section" id="search-metrics-section" style="display: none;">
+ <div class="ldr-card ldr-metrics-section" id="search-metrics-section" style="display: none;">
<div class="card-header">
<h2><i class="fas fa-search"></i> Search Analytics</h2>
</div>
@@ -479,7 +479,7 @@
</div>
<!-- Link Analytics Section -->
- <div class="ldr-card metrics-section" id="link-analytics-section" style="display: none;">
+ <div class="ldr-card ldr-metrics-section" id="link-analytics-section" style="display: none;">
<div class="card-header">
<h2><i class="fas fa-link"></i> Link & Domain Analytics</h2>
</div>
@@ -523,7 +523,7 @@
</div>
<!-- Context Overflow Section -->
- <div class="ldr-card metrics-section" id="context-overflow-section" style="display: none; margin-top: 2rem;">
+ <div class="ldr-card ldr-metrics-section" id="context-overflow-section" style="display: none; margin-top: 2rem;">
<div class="card-header">
<h2><i class="fas fa-layer-group"></i> Context & Token Usage Analysis</h2>
</div>
diff --git a/src/local_deep_research/web/templates/pages/link_analytics.html b/src/local_deep_research/web/templates/pages/link_analytics.html
index b11ce27789..774de51e9e 100644
--- a/src/local_deep_research/web/templates/pages/link_analytics.html
+++ b/src/local_deep_research/web/templates/pages/link_analytics.html
@@ -473,7 +473,7 @@
{% endblock %}
{% block content %}
-<div class="link-analytics-container">
+<div class="ldr-link-analytics-container">
<div class="ldr-metrics-header">
<div style="display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px;">
<h1>🔗 Link Analytics Dashboard</h1>
@@ -583,7 +583,7 @@
<!-- Domain Classification Modal -->
<div id="classification-modal" class="modal">
<div class="modal-content">
- <span class="close-modal">&times;</span>
+ <span class="ldr-close-modal">&times;</span>
<div class="modal-header">
<h2><i class="fas fa-brain"></i> AI Domain Classification</h2>
<p style="color: var(--text-secondary); margin-top: 0.5rem;">
@@ -624,7 +624,7 @@
<span id="current-domain" style="color: var(--text-secondary);"></span>
</div>
- <div class="classification-log" id="classification-log">
+ <div class="ldr-classification-log" id="classification-log">
<!-- Log entries will be added here -->
</div>
@@ -999,10 +999,10 @@ function updateEnhancedDomainList(domains, domainMetrics) {
let researchLinksHtml = '';
if (domain.recent_researches && domain.recent_researches.length > 0) {
researchLinksHtml = `
- <div class="research-links">
- <div class="research-links-title">Recent Researches (${researchDiversity} total)</div>
+ <div class="ldr-research-links">
+ <div class="ldr-research-links-title">Recent Researches (${researchDiversity} total)</div>
${domain.recent_researches.map(r => `
- <a href="/research/${r.id}" class="research-link" title="${r.query}">
+ <a href="/research/${r.id}" class="ldr-research-link" title="${r.query}">
${r.query.length > 30 ? r.query.substring(0, 30) + '...' : r.query}
</a>
`).join('')}
@@ -1014,23 +1014,23 @@ function updateEnhancedDomainList(domains, domainMetrics) {
let classificationHtml = '';
if (domain.classification) {
classificationHtml = `
- <span class="classified-badge" title="${domain.classification.subcategory} (${Math.round(domain.classification.confidence * 100)}% confidence)">
+ <span class="ldr-classified-badge" title="${domain.classification.subcategory} (${Math.round(domain.classification.confidence * 100)}% confidence)">
${domain.classification.category}
</span>
`;
}
item.innerHTML = `
- <div class="domain-header">
- <span class="domain-name" style="font-size: 1rem; font-weight: 600;">
+ <div class="ldr-domain-header">
+ <span class="ldr-domain-name" style="font-size: 1rem; font-weight: 600;">
${rank ? `#${rank}` : ''} <a href="https://${domain.domain}" target="_blank" rel="noopener noreferrer" style="color: var(--accent-primary); text-decoration: none; border-bottom: 1px dotted var(--accent-primary); transition: all 0.2s ease;" onmouseover="this.style.borderBottom='2px solid var(--accent-primary)'" onmouseout="this.style.borderBottom='1px dotted var(--accent-primary)'">${domain.domain}</a>
${classificationHtml}
</span>
- <div class="domain-stats">
- <span class="metric-badge frequency">
+ <div class="ldr-domain-stats">
+ <span class="ldr-metric-badge ldr-frequency">
📊 ${usageCount} uses (${usagePercentage}%)
</span>
- <span class="metric-badge diversity">
+ <span class="ldr-metric-badge ldr-diversity">
🔍 ${researchDiversity} researches
</span>
</div>
diff --git a/src/local_deep_research/web/templates/pages/metrics.html b/src/local_deep_research/web/templates/pages/metrics.html
index ab7ce3b04c..c77f9f99ff 100644
--- a/src/local_deep_research/web/templates/pages/metrics.html
+++ b/src/local_deep_research/web/templates/pages/metrics.html
@@ -623,7 +623,7 @@
<!-- Model Usage List -->
<div>
<h3><i class="fas fa-list"></i> Model Usage</h3>
- <div class="model-usage-list" id="model-usage-list">
+ <div class="ldr-model-usage-list" id="model-usage-list">
<!-- Populated dynamically -->
</div>
</div>
@@ -1072,16 +1072,16 @@
const item = document.createElement('div');
item.className = 'model-usage-item';
item.innerHTML = `
- <div class="model-info">
+ <div class="ldr-model-info">
<div class="ldr-model-name">${model.model}</div>
<div class="ldr-model-provider">${model.provider}</div>
</div>
- <div class="model-stats">
- <div class="token-count">
+ <div class="ldr-model-stats">
+ <div class="ldr-token-count">
<span style="color: var(--primary-color);">${formatNumber(model.tokens)}</span>
<span style="color: var(--text-primary); font-size: 0.875rem; margin-left: 4px;">tokens</span>
</div>
- <div class="call-count">
+ <div class="ldr-call-count">
<span>${formatNumber(model.calls)}</span>
<span style="color: var(--text-primary); font-size: 0.875rem; margin-left: 4px;">calls</span>
</div>
@@ -1180,7 +1180,7 @@
item.className = 'recent-research-item';
item.innerHTML = `
<div class="ldr-research-query">${research.query}</div>
- <div class="research-tokens">
+ <div class="ldr-research-tokens">
<span>${formatNumber(research.tokens)}</span>
<span style="color: var(--text-primary); font-size: 0.875rem; margin-left: 4px;">tokens</span>
</div>
@@ -1208,13 +1208,13 @@
const item = document.createElement('div');
item.className = 'model-usage-item';
item.innerHTML = `
- <div class="model-info">
+ <div class="ldr-model-info">
<div class="ldr-model-name">${mode.mode || 'Unknown'} Mode</div>
<div class="ldr-model-provider">Avg Response: ${(mode.avg_response_time / 1000).toFixed(1)}s</div>
</div>
- <div class="model-stats">
- <div class="token-count">${formatNumber(mode.avg_tokens)} avg tokens</div>
- <div class="call-count">${formatNumber(mode.count)} calls</div>
+ <div class="ldr-model-stats">
+ <div class="ldr-token-count">${formatNumber(mode.avg_tokens)} avg tokens</div>
+ <div class="ldr-call-count">${formatNumber(mode.count)} calls</div>
</div>
`;
modeContainer.appendChild(item);
@@ -1238,16 +1238,16 @@
const successRate = engine.success_rate || null;
item.innerHTML = `
- <div class="model-info">
+ <div class="ldr-model-info">
<div class="ldr-model-name">${engineName}</div>
<div class="ldr-model-provider">
Avg Response: ${(avgResponseTime / 1000).toFixed(1)}s
${successRate !== null ? ` | Success: ${successRate.toFixed(1)}%` : ''}
</div>
</div>
- <div class="model-stats">
- <div class="token-count">${formatNumber(usageCount)} calls</div>
- ${engine.total_results ? `<div class="call-count">${formatNumber(engine.total_results)} results</div>` : ''}
+ <div class="ldr-model-stats">
+ <div class="ldr-token-count">${formatNumber(usageCount)} calls</div>
+ ${engine.total_results ? `<div class="ldr-call-count">${formatNumber(engine.total_results)} results</div>` : ''}
</div>
`;
searchContainer.appendChild(item);
@@ -1265,13 +1265,13 @@
const item = document.createElement('div');
item.className = 'model-usage-item';
item.innerHTML = `
- <div class="model-info">
+ <div class="ldr-model-info">
<div class="ldr-model-name">${strategy.strategy}</div>
<div class="ldr-model-provider">${strategy.percentage}% of research sessions</div>
</div>
- <div class="model-stats">
- <div class="token-count">${formatNumber(strategy.count)} uses</div>
- <div class="call-count">${strategyData.most_popular_strategy === strategy.strategy ? '👑 Most Popular' : ''}</div>
+ <div class="ldr-model-stats">
+ <div class="ldr-token-count">${formatNumber(strategy.count)} uses</div>
+ <div class="ldr-call-count">${strategyData.most_popular_strategy === strategy.strategy ? '👑 Most Popular' : ''}</div>
</div>
`;
strategyContainer.appendChild(item);
@@ -1306,13 +1306,13 @@
const item = document.createElement('div');
item.className = 'model-usage-item';
item.innerHTML = `
- <div class="model-info">
+ <div class="ldr-model-info">
<div class="ldr-model-name">${phase.phase || 'Unknown'} Phase</div>
<div class="ldr-model-provider">Avg Response: ${((phase.avg_response_time || 0) / 1000).toFixed(1)}s</div>
</div>
- <div class="model-stats">
- <div class="token-count">${formatNumber(phase.avg_tokens)} avg tokens</div>
- <div class="call-count">${formatNumber(phase.count)} calls</div>
+ <div class="ldr-model-stats">
+ <div class="ldr-token-count">${formatNumber(phase.avg_tokens)} avg tokens</div>
+ <div class="ldr-call-count">${formatNumber(phase.count)} calls</div>
</div>
`;
phaseContainer.appendChild(item);
@@ -1331,13 +1331,13 @@
const item = document.createElement('div');
item.className = 'model-usage-item';
item.innerHTML = `
- <div class="model-info">
+ <div class="ldr-model-info">
<div class="ldr-model-name">${avgRating} ${stars}</div>
<div class="ldr-model-provider">Average User Rating</div>
</div>
- <div class="model-stats">
- <div class="token-count">${totalRatings} ratings</div>
- <div class="call-count">
+ <div class="ldr-model-stats">
+ <div class="ldr-token-count">${totalRatings} ratings</div>
+ <div class="ldr-call-count">
<a href="/metrics/star-reviews" style="color: var(--accent-tertiary); text-decoration: none;">View Details →</a>
</div>
</div>
@@ -1367,7 +1367,7 @@
row.style.marginBottom = '0.5rem';
row.style.cursor = 'pointer';
row.innerHTML = `
- <div class="model-info">
+ <div class="ldr-model-info">
<div class="ldr-model-name" style="margin-bottom: 0.25rem;">${item.research_query || 'Unknown Query'}</div>
<div class="ldr-model-provider">
Mode: ${item.research_mode || 'N/A'} |
@@ -1375,9 +1375,9 @@
Engine: ${item.search_engine_selected || 'N/A'}
</div>
</div>
- <div class="model-stats">
- <div class="token-count">${((item.response_time_ms || 0) / 1000).toFixed(1)}s</div>
- <div class="call-count" style="color: ${item.success_status === 'success' ? 'green' : 'red'}">
+ <div class="ldr-model-stats">
+ <div class="ldr-token-count">${((item.response_time_ms || 0) / 1000).toFixed(1)}s</div>
+ <div class="ldr-call-count" style="color: ${item.success_status === 'success' ? 'green' : 'red'}">
${item.success_status || 'unknown'}
</div>
</div>
@@ -1830,7 +1830,7 @@
text-transform: uppercase;
">${stats.status}</span>
</div>
- <div class="engine-stats-grid" style="display: grid; grid-template-columns: 1fr 1fr; gap: 0.5rem; font-size: 0.875rem;">
+ <div class="ldr-engine-stats-grid" style="display: grid; grid-template-columns: 1fr 1fr; gap: 0.5rem; font-size: 0.875rem;">
<div>
<div style="color: var(--text-secondary);">Base Wait:</div>
<div style="font-weight: 600;">${stats.base_wait_seconds}s</div>
diff --git a/src/local_deep_research/web/templates/pages/research.html b/src/local_deep_research/web/templates/pages/research.html
index aaf65eb336..b7033b0dbd 100644
--- a/src/local_deep_research/web/templates/pages/research.html
+++ b/src/local_deep_research/web/templates/pages/research.html
@@ -17,29 +17,29 @@
</div>
<!-- Add the alert container -->
<div id="research-alert" class="ldr-settings-alert-container" style="display:none"></div>
- <div class="ldr-card research-card">
+ <div class="ldr-card ldr-research-card">
<div class="ldr-card-content">
<form id="research-form">
<div class="form-group">
<label for="query">Research Query</label>
<textarea id="query" name="query" rows="3" placeholder="Enter your research topic or question..." autofocus></textarea>
- <div class="search-hints">
- <div class="hint-row">
- <span class="hint-item">
- <i class="fas fa-play hint-icon"></i>
- <span class="hint-text"><kbd>Enter</kbd> to search</span>
+ <div class="ldr-search-hints">
+ <div class="ldr-hint-row">
+ <span class="ldr-hint-item">
+ <i class="fas fa-play ldr-hint-icon"></i>
+ <span class="ldr-hint-text"><kbd>Enter</kbd> to search</span>
</span>
- <span class="hint-item">
- <i class="fas fa-level-down-alt hint-icon"></i>
- <span class="hint-text"><kbd>Shift</kbd>+<kbd>Enter</kbd> for new line</span>
+ <span class="ldr-hint-item">
+ <i class="fas fa-level-down-alt ldr-hint-icon"></i>
+ <span class="ldr-hint-text"><kbd>Shift</kbd>+<kbd>Enter</kbd> for new line</span>
</span>
- <span class="hint-item">
- <i class="fas fa-home hint-icon"></i>
- <span class="hint-text"><kbd>Esc</kbd> returns here from anywhere</span>
+ <span class="ldr-hint-item">
+ <i class="fas fa-home ldr-hint-icon"></i>
+ <span class="ldr-hint-text"><kbd>Esc</kbd> returns here from anywhere</span>
</span>
- <span class="hint-item">
- <i class="fas fa-bars hint-icon"></i>
- <span class="hint-text"><kbd>Ctrl</kbd>+<kbd>Shift</kbd>+<kbd>1-4</kbd> to navigate menu</span>
+ <span class="ldr-hint-item">
+ <i class="fas fa-bars ldr-hint-icon"></i>
+ <span class="ldr-hint-text"><kbd>Ctrl</kbd>+<kbd>Shift</kbd>+<kbd>1-4</kbd> to navigate menu</span>
</span>
</div>
</div>
diff --git a/src/local_deep_research/web/templates/pages/subscriptions.html b/src/local_deep_research/web/templates/pages/subscriptions.html
index 3d85f49120..f4165545f9 100644
--- a/src/local_deep_research/web/templates/pages/subscriptions.html
+++ b/src/local_deep_research/web/templates/pages/subscriptions.html
@@ -64,7 +64,7 @@
</div>
<!-- Stats Overview -->
- <div class="stats-overview">
+ <div class="ldr-stats-overview">
<div class="ldr-stat-card">
<div class="ldr-stat-value" id="total-subscriptions">0</div>
<div class="ldr-stat-label">Total Subscriptions</div>
@@ -84,17 +84,17 @@
</div>
<!-- Scheduler Status Bar -->
- <div class="scheduler-status-bar">
- <div class="scheduler-info">
+ <div class="ldr-scheduler-status-bar">
+ <div class="ldr-scheduler-info">
<i class="bi bi-clock-history"></i>
- <span class="scheduler-label">Auto-Refresh Scheduler:</span>
- <span id="scheduler-status" class="scheduler-status">
+ <span class="ldr-scheduler-label">Auto-Refresh Scheduler:</span>
+ <span id="scheduler-status" class="ldr-scheduler-status">
<span class="ldr-status-indicator" id="status-indicator"></span>
<span id="status-text">Checking...</span>
</span>
- <span class="scheduler-details" id="scheduler-details"></span>
+ <span class="ldr-scheduler-details" id="scheduler-details"></span>
</div>
- <div class="scheduler-actions">
+ <div class="ldr-scheduler-actions">
<button class="btn btn-sm btn-outline-secondary" id="toggle-scheduler" style="display: none;">
<i class="bi bi-play-fill"></i> Start Scheduler
</button>
@@ -106,14 +106,14 @@
<!-- Folder/Category Sidebar -->
<div class="ldr-folders-sidebar">
<h3>Folders</h3>
- <div class="folder-list">
- <div class="folder-item active" data-folder="all">
+ <div class="ldr-folder-list">
+ <div class="ldr-folder-item active" data-folder="all">
<i class="bi bi-collection"></i> All Subscriptions
- <span class="folder-count">0</span>
+ <span class="ldr-folder-count">0</span>
</div>
- <div class="folder-item" data-folder="uncategorized">
+ <div class="ldr-folder-item" data-folder="uncategorized">
<i class="bi bi-folder"></i> Uncategorized
- <span class="folder-count">0</span>
+ <span class="ldr-folder-count">0</span>
</div>
<!-- Dynamic folders will be added here -->
</div>
@@ -123,14 +123,14 @@
</div>
<!-- Main Content Area -->
- <div class="subscriptions-main">
+ <div class="ldr-subscriptions-main">
<!-- Search and Filter Bar -->
- <div class="filter-bar">
+ <div class="ldr-filter-bar">
<div class="ldr-search-box">
<i class="bi bi-search"></i>
<input type="text" id="subscription-search" placeholder="Search subscriptions...">
</div>
- <div class="filter-options">
+ <div class="ldr-filter-options">
<select id="status-filter" class="form-select form-select-sm">
<option value="all">All Status</option>
<option value="active">Active</option>
@@ -146,9 +146,9 @@
</div>
<!-- Subscriptions Grid -->
- <div id="subscriptions-grid" class="subscriptions-grid">
+ <div id="subscriptions-grid" class="ldr-subscriptions-grid">
<!-- Subscription cards will be dynamically loaded here -->
- <div class="loading-placeholder">
+ <div class="ldr-loading-placeholder">
<div class="spinner-border text-primary" role="status">
<span class="visually-hidden">Loading...</span>
</div>