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 metrics page System Overview CSS display issue

LearningCircuit1ac9a6cf6b2d
diff --git a/src/local_deep_research/web/templates/pages/metrics.html b/src/local_deep_research/web/templates/pages/metrics.html
index 13aecbd198..940ee6f152 100644
--- a/src/local_deep_research/web/templates/pages/metrics.html
+++ b/src/local_deep_research/web/templates/pages/metrics.html
@@ -25,14 +25,16 @@
transform: translateY(-2px);
}
- .metric-value {
+ .metric-value,
+ .ldr-metric-value {
font-size: 2rem;
font-weight: bold;
color: var(--primary-color);
margin: 0.5rem 0;
}
- .metric-label {
+ .metric-label,
+ .ldr-metric-label {
color: var(--text-secondary);
font-size: 0.875rem;
text-transform: uppercase;
diff --git a/tests/ui_tests/test_metrics_fix.js b/tests/ui_tests/test_metrics_fix.js
new file mode 100644
index 0000000000..c5edaa3bad
--- /dev/null
+++ b/tests/ui_tests/test_metrics_fix.js
@@ -0,0 +1,45 @@
+const puppeteer = require('puppeteer');
+const AuthHelper = require('./auth_helper');
+
+async function testMetricsFix() {
+ const browser = await puppeteer.launch({
+ headless: false,
+ args: ['--no-sandbox', '--disable-setuid-sandbox']
+ });
+
+ try {
+ const page = await browser.newPage();
+ await page.setViewport({ width: 1280, height: 720 });
+
+ const auth = new AuthHelper(page);
+ await auth.ensureAuthenticated();
+
+ console.log('Navigating to metrics...');
+ page.goto('http://127.0.0.1:5000/metrics/').catch(() => {});
+ await new Promise(resolve => setTimeout(resolve, 5000));
+
+ await page.screenshot({ path: './metrics-fixed.png' });
+ console.log('Screenshot saved: ./metrics-fixed.png');
+
+ // Check the metric values
+ const metricValues = await page.evaluate(() => {
+ const values = {};
+ const elements = document.querySelectorAll('.ldr-metric-value');
+ elements.forEach(el => {
+ values[el.id] = {
+ text: el.textContent,
+ fontSize: window.getComputedStyle(el).fontSize,
+ color: window.getComputedStyle(el).color
+ };
+ });
+ return values;
+ });
+
+ console.log('Metric values:', JSON.stringify(metricValues, null, 2));
+
+ } finally {
+ await browser.close();
+ }
+}
+
+testMetricsFix().catch(console.error);