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: Fix remaining tooltip class violations in metrics.html

LearningCircuitf3e4c35d1cb1
diff --git a/src/local_deep_research/web/templates/components/log_panel.html b/src/local_deep_research/web/templates/components/log_panel.html
index c66b8faef6..87ed14efe0 100644
--- a/src/local_deep_research/web/templates/components/log_panel.html
+++ b/src/local_deep_research/web/templates/components/log_panel.html
@@ -8,7 +8,7 @@
<div class="ldr-log-controls">
<div class="ldr-log-filter">
<div class="ldr-filter-buttons">
- <button class="ldr-small-btn selected" onclick="window.filterLogsByType('all')">All</button>
+ <button class="ldr-small-btn ldr-selected" onclick="window.filterLogsByType('all')">All</button>
<button class="ldr-small-btn" onclick="window.filterLogsByType('milestone')">Milestones</button>
<button class="ldr-small-btn" onclick="window.filterLogsByType('info')">Info</button>
<button class="ldr-small-btn" onclick="window.filterLogsByType('warning')">Warning</button>
@@ -19,7 +19,7 @@
<button class="ldr-small-btn" id="log-download-button">
<i class="fas fa-download"></i> Download Logs
</button>
- <button class="ldr-small-btn selected"
+ <button class="ldr-small-btn ldr-selected"
id="log-autoscroll-button"
title="Toggle automatic scrolling of logs">
<i class="fas fa-arrows-alt-v"></i>
diff --git a/src/local_deep_research/web/templates/components/settings_form.html b/src/local_deep_research/web/templates/components/settings_form.html
index 232b6de081..89286298b9 100644
--- a/src/local_deep_research/web/templates/components/settings_form.html
+++ b/src/local_deep_research/web/templates/components/settings_form.html
@@ -287,8 +287,8 @@
{{ render_settings_section(category, category|lower|replace(' ', '-'), settings, form_id) }}
{% endfor %}
- <div class="form-actions">
- <button type="reset" class="btn btn-outline">
+ <div class="ldr-form-actions">
+ <button type="reset" class="btn ldr-btn-outline">
<i class="fas fa-undo"></i> Reset Changes
</button>
<button type="submit" class="btn btn-primary">
diff --git a/src/local_deep_research/web/templates/pages/metrics.html b/src/local_deep_research/web/templates/pages/metrics.html
index bf5c933d5e..dc689fee9b 100644
--- a/src/local_deep_research/web/templates/pages/metrics.html
+++ b/src/local_deep_research/web/templates/pages/metrics.html
@@ -6,7 +6,6 @@
{% block extra_head %}
<style>
- .metrics-grid,
.ldr-metrics-grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
@@ -14,7 +13,6 @@
margin-bottom: 2rem;
}
- .metric-card,
.ldr-metric-card {
padding: 1.5rem;
background: var(--card-bg);
@@ -23,12 +21,10 @@
transition: transform 0.2s;
}
- .metric-card:hover,
.ldr-metric-card:hover {
transform: translateY(-2px);
}
- .metric-value,
.ldr-metric-value {
font-size: 2rem;
font-weight: bold;
@@ -36,7 +32,6 @@
margin: 0.5rem 0;
}
- .metric-label,
.ldr-metric-label {
color: var(--text-secondary);
font-size: 0.875rem;
@@ -45,7 +40,6 @@
opacity: 1 !important;
}
- .metric-icon,
.ldr-metric-icon {
width: 40px;
height: 40px;
@@ -58,18 +52,16 @@
margin-bottom: 1rem;
}
- .expandable-card,
.ldr-expandable-card {
overflow: hidden;
}
- .metric-main {
+ .ldr-metric-main {
position: relative;
cursor: pointer;
user-select: none;
}
- .expand-icon,
.ldr-expand-icon {
position: absolute;
top: 1rem;
@@ -78,12 +70,10 @@
transition: transform 0.3s ease;
}
- .expand-icon.expanded,
.ldr-expand-icon.expanded {
transform: rotate(180deg);
}
- .metric-details,
.ldr-metric-details {
border-top: 1px solid var(--border-color);
margin-top: 1rem;
@@ -102,14 +92,12 @@
}
}
- .token-breakdown,
.ldr-token-breakdown {
display: grid;
grid-template-columns: 1fr 1fr;
gap: 1rem;
}
- .breakdown-section h4,
.ldr-breakdown-section h4 {
margin: 0 0 0.75rem 0;
color: var(--text-primary);
@@ -119,14 +107,12 @@
letter-spacing: 0.05em;
}
- .breakdown-grid,
.ldr-breakdown-grid {
display: flex;
flex-direction: column;
gap: 0.5rem;
}
- .breakdown-item,
.ldr-breakdown-item {
display: flex;
justify-content: space-between;
@@ -134,45 +120,40 @@
padding: 0.5rem 0;
}
- .breakdown-item.total,
.ldr-breakdown-item.ldr-total {
border-top: 1px solid var(--border-color);
font-weight: 600;
color: var(--primary-color);
}
- .breakdown-label,
.ldr-breakdown-label {
font-size: 0.875rem;
color: var(--text-muted); /* Changed to more visible grey */
opacity: 1 !important;
}
- .breakdown-value,
.ldr-breakdown-value {
font-size: 0.875rem;
font-weight: 500;
color: var(--text-primary);
}
- .breakdown-item.total .breakdown-value,
.ldr-breakdown-item.ldr-total .ldr-breakdown-value {
color: var(--primary-color);
font-weight: 600;
}
- .chart-container,
.ldr-chart-container {
position: relative;
height: 300px;
margin-top: 2rem;
}
- .model-usage-list {
+ .ldr-model-usage-list {
margin-top: 1rem;
}
- .model-usage-item {
+ .ldr-model-usage-item {
display: flex;
justify-content: space-between;
align-items: center;
@@ -183,42 +164,36 @@
border-radius: 0.375rem;
}
- .model-info,
.ldr-model-info {
flex: 1;
}
- .model-name,
.ldr-model-name {
font-weight: 600;
color: var(--text-primary);
}
- .model-provider,
.ldr-model-provider {
font-size: 0.875rem;
color: var(--text-muted); /* Changed to more visible grey */
}
- .model-stats,
.ldr-model-stats {
text-align: right;
}
- .token-count,
.ldr-token-count {
font-size: 1.125rem;
font-weight: 600;
color: var(--primary-color);
}
- .call-count,
.ldr-call-count {
font-size: 0.875rem;
color: var(--text-muted); /* Changed to more visible grey */
}
- .recent-research-item {
+ .ldr-recent-research-item {
display: flex;
justify-content: space-between;
align-items: center;
@@ -230,11 +205,10 @@
transition: background-color 0.2s;
}
- .recent-research-item:hover {
+ .ldr-recent-research-item:hover {
background-color: var(--border-color);
}
- .research-query,
.ldr-research-query {
flex: 1;
margin-right: 1rem;
@@ -243,19 +217,16 @@
white-space: nowrap;
}
- .research-tokens,
.ldr-research-tokens {
font-weight: 600;
color: var(--primary-color);
}
- .loading-spinner,
.ldr-loading-spinner {
text-align: center;
padding: 3rem;
}
- .error-message,
.ldr-error-message {
text-align: center;
padding: 2rem;
@@ -293,7 +264,6 @@
}
/* Time range selector */
- .time-range-selector,
.ldr-time-range-selector {
display: flex;
gap: 0.5rem;
@@ -301,7 +271,6 @@
margin-left: auto;
}
- .time-range-btn,
.ldr-time-range-btn {
padding: 0.5rem 1rem;
border: 1px solid var(--border-color);
@@ -314,13 +283,11 @@
font-weight: 500;
}
- .time-range-btn:hover,
.ldr-time-range-btn:hover {
background: var(--bg-color);
color: var(--text-primary);
}
- .time-range-btn.active,
.ldr-time-range-btn.active {
background: var(--primary-color);
color: white;
@@ -328,12 +295,12 @@
}
/* Tooltip styles */
- .tooltip {
+ .ldr-tooltip {
position: relative;
cursor: help;
}
- .tooltip::after {
+ .ldr-tooltip::after {
content: attr(data-tooltip);
position: absolute;
bottom: 150%;
@@ -360,18 +327,18 @@
}
/* Smart positioning for edge detection */
- .tooltip.tooltip-left::after {
+ .ldr-tooltip.ldr-tooltip-left::after {
left: 0;
transform: translateX(0);
}
- .tooltip.tooltip-right::after {
+ .ldr-tooltip.ldr-tooltip-right::after {
left: auto;
right: 0;
transform: translateX(0);
}
- .tooltip::before {
+ .ldr-tooltip::before {
content: '';
position: absolute;
bottom: 135%;
@@ -386,25 +353,25 @@
}
/* Arrow positioning for edge tooltips */
- .tooltip.tooltip-left::before {
+ .ldr-tooltip.ldr-tooltip-left::before {
left: 1rem;
transform: translateX(0);
}
- .tooltip.tooltip-right::before {
+ .ldr-tooltip.ldr-tooltip-right::before {
left: auto;
right: 1rem;
transform: translateX(0);
}
- .tooltip:hover::after,
- .tooltip:hover::before {
+ .ldr-tooltip:hover::after,
+ .ldr-tooltip:hover::before {
opacity: 1;
transform: translateX(-50%) translateY(-2px);
}
/* Info icon for additional help */
- .info-icon {
+ .ldr-info-icon {
color: var(--text-secondary);
margin-left: 0.25rem;
font-size: 0.875rem;
@@ -413,7 +380,7 @@
display: inline-block;
}
- .info-icon:hover {
+ .ldr-info-icon:hover {
color: var(--primary-color);
}
</style>
@@ -481,7 +448,7 @@
<div class="ldr-metric-icon">
<i class="fas fa-coins"></i>
</div>
- <div class="ldr-metric-label tooltip" data-tooltip="Total input + output tokens consumed by all LLM calls in the selected time period">
+ <div class="ldr-metric-label ldr-tooltip" data-tooltip="Total input + output tokens consumed by all LLM calls in the selected time period">
Total Tokens Used
<i class="fas fa-info-circle ldr-info-icon"></i>
</div>
@@ -493,7 +460,7 @@
<div class="ldr-metric-details" id="token-details" style="display: none;">
<div class="ldr-token-breakdown">
<div class="ldr-breakdown-section">
- <h4 class="tooltip" data-tooltip="Average tokens consumed per research session">Average</h4>
+ <h4 class="ldr-tooltip" data-tooltip="Average tokens consumed per research session">Average</h4>
<div class="ldr-breakdown-grid">
<div class="ldr-breakdown-item">
<span class="ldr-breakdown-label">Input:</span>
@@ -510,7 +477,7 @@
</div>
</div>
<div class="ldr-breakdown-section">
- <h4 class="tooltip" data-tooltip="Total tokens consumed across all research sessions">Total Usage</h4>
+ <h4 class="ldr-tooltip" data-tooltip="Total tokens consumed across all research sessions">Total Usage</h4>
<div class="ldr-breakdown-grid">
<div class="ldr-breakdown-item">
<span class="ldr-breakdown-label">Input:</span>
@@ -534,7 +501,7 @@
<div class="ldr-metric-icon">
<i class="fas fa-search"></i>
</div>
- <div class="ldr-metric-label tooltip" data-tooltip="Number of research sessions that used LLM tokens in the selected time period">
+ <div class="ldr-metric-label ldr-tooltip" data-tooltip="Number of research sessions that used LLM tokens in the selected time period">
Total Researches
<i class="fas fa-info-circle ldr-info-icon"></i>
</div>
@@ -545,7 +512,7 @@
<div class="ldr-metric-icon">
<i class="fas fa-tachometer-alt"></i>
</div>
- <div class="ldr-metric-label tooltip" data-tooltip="Average time for LLM calls to complete, measured from request to response">
+ <div class="ldr-metric-label ldr-tooltip" data-tooltip="Average time for LLM calls to complete, measured from request to response">
Avg Response Time (All)
<i class="fas fa-info-circle ldr-info-icon"></i>
</div>
@@ -556,7 +523,7 @@
<div class="ldr-metric-icon">
<i class="fas fa-check-circle"></i>
</div>
- <div class="ldr-metric-label tooltip" data-tooltip="Percentage of LLM calls that completed successfully without errors">
+ <div class="ldr-metric-label ldr-tooltip" data-tooltip="Percentage of LLM calls that completed successfully without errors">
Success Rate
<i class="fas fa-info-circle ldr-info-icon"></i>
</div>
@@ -567,7 +534,7 @@
<div class="ldr-metric-icon">
<i class="fas fa-ldr-star"></i>
</div>
- <div class="ldr-metric-label tooltip" data-tooltip="Average user satisfaction rating (1-5 stars) for research sessions. All rating data is stored locally on your device only and never shared.">
+ <div class="ldr-metric-label ldr-tooltip" data-tooltip="Average user satisfaction rating (1-5 stars) for research sessions. All rating data is stored locally on your device only and never shared.">
User Satisfaction
<i class="fas fa-info-circle ldr-info-icon"></i>
</div>
@@ -579,7 +546,7 @@
<i class="fas fa-dollar-sign"></i>
</div>
<div class="ldr-metric-header">
- <div class="ldr-metric-label tooltip" data-tooltip="Estimated cost based on token usage and current model pricing. Costs are calculated using static pricing data for major LLM providers.">
+ <div class="ldr-metric-label ldr-tooltip" data-tooltip="Estimated cost based on token usage and current model pricing. Costs are calculated using static pricing data for major LLM providers.">
Estimated Cost
<i class="fas fa-info-circle ldr-info-icon"></i>
</div>
@@ -591,7 +558,7 @@
<div class="ldr-metric-details" id="cost-details" style="display: none;">
<div class="ldr-cost-breakdown">
<div class="ldr-breakdown-section">
- <h4 class="tooltip" data-tooltip="Average cost per research session">Average Cost</h4>
+ <h4 class="ldr-tooltip" data-tooltip="Average cost per research session">Average Cost</h4>
<div class="ldr-breakdown-grid">
<div class="ldr-breakdown-item">
<span class="ldr-breakdown-label">Per Research:</span>
@@ -604,7 +571,7 @@
</div>
</div>
<div class="ldr-breakdown-section">
- <h4 class="tooltip" data-tooltip="Cost breakdown by token type">Cost Breakdown</h4>
+ <h4 class="ldr-tooltip" data-tooltip="Cost breakdown by token type">Cost Breakdown</h4>
<div class="ldr-breakdown-grid">
<div class="ldr-breakdown-item">
<span class="ldr-breakdown-label">Input Tokens:</span>
@@ -692,7 +659,7 @@
<!-- Strategy Usage -->
<div>
- <h4 class="tooltip" data-tooltip="Shows which research strategies were used most frequently. Strategies determine how the system approaches and structures research queries.">
+ <h4 class="ldr-tooltip" data-tooltip="Shows which research strategies were used most frequently. Strategies determine how the system approaches and structures research queries.">
<i class="fas fa-chess"></i> Research Strategies
<i class="fas fa-info-circle ldr-info-icon"></i>
</h4>
@@ -711,7 +678,7 @@
<!-- User Satisfaction -->
<div>
- <h4 class="tooltip" data-tooltip="Your personal research satisfaction ratings. All data stays private on your local device.">
+ <h4 class="ldr-tooltip" data-tooltip="Your personal research satisfaction ratings. All data stays private on your local device.">
<i class="fas fa-ldr-star"></i> User Satisfaction
<i class="fas fa-info-circle ldr-info-icon"></i>
</h4>
@@ -736,7 +703,7 @@
<div class="ldr-metric-icon">
<i class="fas fa-stopwatch"></i>
</div>
- <div class="ldr-metric-label tooltip" data-tooltip="Percentage of retry attempts that succeeded after rate limiting">
+ <div class="ldr-metric-label ldr-tooltip" data-tooltip="Percentage of retry attempts that succeeded after rate limiting">
Rate Limit Success Rate
<i class="fas fa-info-circle ldr-info-icon"></i>
</div>
@@ -747,7 +714,7 @@
<div class="ldr-metric-icon">
<i class="fas fa-exclamation-triangle"></i>
</div>
- <div class="ldr-metric-label tooltip" data-tooltip="Number of times search engines were rate limited">
+ <div class="ldr-metric-label ldr-tooltip" data-tooltip="Number of times search engines were rate limited">
Rate Limit Events
<i class="fas fa-info-circle ldr-info-icon"></i>
</div>
@@ -758,7 +725,7 @@
<div class="ldr-metric-icon">
<i class="fas fa-hourglass-ldr-half"></i>
</div>
- <div class="ldr-metric-label tooltip" data-tooltip="Average time waited before retrying after rate limits">
+ <div class="ldr-metric-label ldr-tooltip" data-tooltip="Average time waited before retrying after rate limits">
Avg Wait Time
<i class="fas fa-info-circle ldr-info-icon"></i>
</div>
@@ -769,7 +736,7 @@
<div class="ldr-metric-icon">
<i class="fas fa-server"></i>
</div>
- <div class="ldr-metric-label tooltip" data-tooltip="Number of search engines being tracked for rate limiting">
+ <div class="ldr-metric-label ldr-tooltip" data-tooltip="Number of search engines being tracked for rate limiting">
Engines Tracked
<i class="fas fa-info-circle ldr-info-icon"></i>
</div>
diff --git a/src/local_deep_research/web/templates/pages/research.html b/src/local_deep_research/web/templates/pages/research.html
index 667ce01bde..5864a84f8f 100644
--- a/src/local_deep_research/web/templates/pages/research.html
+++ b/src/local_deep_research/web/templates/pages/research.html
@@ -159,13 +159,13 @@
</div>
<!-- Start Research Button -->
- <div class="form-actions">
+ <div class="ldr-form-actions">
<button type="submit" class="btn btn-primary" id="start-research-btn"><i class="fas fa-rocket"></i> Start Research</button>
</div>
<!-- Audio Notifications -->
- <div class="form-options">
- <div class="form-option">
+ <div class="ldr-form-options">
+ <div class="ldr-form-option">
<label for="notification-toggle" class="ldr-checkbox-label">
<input type="checkbox" id="notification-toggle" checked>
<span class="ldr-checkbox-text">Sound notifications when complete</span>