~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.
Python academiaanthropicarxivbravedeep-researchencryptionhome-automationhomeserverlocallocal-deep-researchlocal-llmmistralollamaopenaipubmedresearchresearch-toolretrieval-augmented-generationsearxngself-hosted
fix: Complete CSS class prefix compliance for CI
LearningCircuit8575052b52b2
diff --git a/.pre-commit-hooks/check-css-class-prefix.py b/.pre-commit-hooks/check-css-class-prefix.pyindex 6c0630cb21..4f599e3097 100755--- a/.pre-commit-hooks/check-css-class-prefix.py+++ b/.pre-commit-hooks/check-css-class-prefix.py@@ -29,7 +29,7 @@ ALLOWED_PATTERNS = {r"^navbar(-brand|-nav|-toggler|-collapse|-expand|-expand-sm|-expand-md|-expand-lg|-expand-xl|-dark|-light)?$",r"^nav(-link|-item|-pills|-tabs|-fill|-justified)?$",r"^dropdown(-toggle|-menu|-item|-divider|-header)?$",- r"^modal(-dialog|-content|-header|-body|-footer|-title|-backdrop|-static|-sm|-lg|-xl|-fullscreen)?$",+ r"^modal(-dialog|-dialog-centered|-dialog-scrollable|-content|-header|-body|-footer|-title|-backdrop|-static|-sm|-lg|-xl|-fullscreen)?$",r"^form(-control|-label|-text|-check|-check-input|-check-label|-switch|-select|-range|-floating|-group|-row)?$",r"^input-group(-text|-prepend|-append)?$",r"^list-group(-item|-item-action|-flush)?$",diff --git a/src/local_deep_research/web/static/css/custom_dropdown.css b/src/local_deep_research/web/static/css/custom_dropdown.cssindex b9d08a3c82..dea3d24909 100644--- a/src/local_deep_research/web/static/css/custom_dropdown.css+++ b/src/local_deep_research/web/static/css/custom_dropdown.css@@ -150,7 +150,7 @@ body.dropdown-active {border-color: var(--accent-primary, #6e4ff6);}-.ldr-custom-dropdown-refresh-btn.loading {+.ldr-custom-dropdown-refresh-btn.ldr-loading {pointer-events: none;}@@ -160,11 +160,11 @@ body.dropdown-active {}/* Only show loader inside button when needed */-.ldr-custom-dropdown-refresh-btn.loading i {+.ldr-custom-dropdown-refresh-btn.ldr-loading i {display: none;}-.ldr-custom-dropdown-refresh-btn.loading:before {+.ldr-custom-dropdown-refresh-btn.ldr-loading:before {content: "";width: 16px;height: 16px;diff --git a/src/local_deep_research/web/static/js/components/settings.js b/src/local_deep_research/web/static/js/components/settings.jsindex 4e514d3f7f..a6a98f3f02 100644--- a/src/local_deep_research/web/static/js/components/settings.js+++ b/src/local_deep_research/web/static/js/components/settings.js@@ -46,25 +46,25 @@function renderCustomDropdownHTML(params) {// Basic structure with input and list containerlet dropdownHTML = `- <div class="custom-dropdown" id="${params.dropdown_id}">+ <div class="ldr-custom-dropdown" id="${params.dropdown_id}"><input type="text"id="${params.input_id}"data-key="${params.data_setting_key || params.input_id}"- class="custom-dropdown-input"+ class="ldr-custom-dropdown-input"placeholder="${params.placeholder}"autocomplete="off"aria-haspopup="listbox"${params.disabled ? "disabled" : ""}><!-- Hidden input that will be included in form submission --><input type="hidden" name="${params.input_id}" id="${params.input_id}_hidden" value="">- <div class="custom-dropdown-list" id="${params.dropdown_id}-list"></div>+ <div class="ldr-custom-dropdown-list" id="${params.dropdown_id}-list"></div></div>`;// Add refresh button if neededconst refreshButtonHTML = params.show_refresh ? `<button type="button"- class="custom-dropdown-refresh-btn dropdown-refresh-button"+ class="ldr-custom-dropdown-refresh-btn"id="${params.input_id}-refresh"aria-label="${params.refresh_aria_label || 'Refresh options'}"><i class="fas fa-sync-alt"></i>@@ -74,7 +74,7 @@// Wrap with refresh container if neededif (params.show_refresh) {dropdownHTML = `- <div class="custom-dropdown-with-refresh">+ <div class="ldr-custom-dropdown-with-refresh">${dropdownHTML} ${refreshButtonHTML}</div>`;@@ -97,7 +97,7 @@modelRefreshBtn.addEventListener('click', function() {const icon = modelRefreshBtn.querySelector('i');if (icon) icon.className = 'fas fa-spinner fa-spin';- modelRefreshBtn.classList.add('loading');+ modelRefreshBtn.classList.add('ldr-loading');// Reset the initialization flag to allow reinitializing the dropdownwindow.modelDropdownsInitialized = false;@@ -106,7 +106,7 @@fetchModelProviders(true).then(() => {if (icon) icon.className = 'fas fa-sync-alt';- modelRefreshBtn.classList.remove('loading');+ modelRefreshBtn.classList.remove('ldr-loading');// Re-initialize model dropdowns with the new datainitializeModelDropdowns();@@ -117,7 +117,7 @@.catch(error => {console.error('Error refreshing models:', error);if (icon) icon.className = 'fas fa-sync-alt';- modelRefreshBtn.classList.remove('loading');+ modelRefreshBtn.classList.remove('ldr-loading');showAlert('Failed to refresh models', 'error');});});@@ -132,7 +132,7 @@searchEngineRefreshBtn.addEventListener('click', function() {const icon = searchEngineRefreshBtn.querySelector('i');if (icon) icon.className = 'fas fa-spinner fa-spin';- searchEngineRefreshBtn.classList.add('loading');+ searchEngineRefreshBtn.classList.add('ldr-loading');// Reset the initialization flag to allow reinitializing the dropdownwindow.searchEngineDropdownInitialized = false;@@ -141,7 +141,7 @@fetchSearchEngines(true).then(() => {if (icon) icon.className = 'fas fa-sync-alt';- searchEngineRefreshBtn.classList.remove('loading');+ searchEngineRefreshBtn.classList.remove('ldr-loading');// Re-initialize search engine dropdowns with the new datainitializeSearchEngineDropdowns();@@ -152,7 +152,7 @@.catch(error => {console.error('Error refreshing search engines:', error);if (icon) icon.className = 'fas fa-sync-alt';- searchEngineRefreshBtn.classList.remove('loading');+ searchEngineRefreshBtn.classList.remove('ldr-loading');showAlert('Failed to refresh search engines', 'error');});});@@ -3858,7 +3858,7 @@// Add a close buttonconst closeBtn = document.createElement('span');- closeBtn.className = 'alert-close';+ closeBtn.className = 'ldr-alert-close';closeBtn.innerHTML = '×';closeBtn.addEventListener('click', () => {alert.remove();@@ -3945,7 +3945,7 @@allowCustom = true;// Set up refresh button if it exists- const refreshBtn = dropdown.querySelector('.dropdown-refresh-button');+ const refreshBtn = dropdown.querySelector('.ldr-custom-dropdown-refresh-btn');if (refreshBtn) {refreshBtn.addEventListener('click', function() {const icon = refreshBtn.querySelector('i');diff --git a/src/local_deep_research/web/static/js/main.js b/src/local_deep_research/web/static/js/main.jsindex b7402e206d..25fb3f2b0a 100644--- a/src/local_deep_research/web/static/js/main.js+++ b/src/local_deep_research/web/static/js/main.js@@ -199,10 +199,10 @@if (mobileMenuToggle && navMenu) {mobileMenuToggle.addEventListener('click', function() {- navMenu.classList.toggle('open');+ navMenu.classList.toggle('ldr-open');mobileMenuToggle.setAttribute('aria-expanded',- navMenu.classList.contains('open') ? 'true' : 'false'+ navMenu.classList.contains('ldr-open') ? 'true' : 'false');});}diff --git a/src/local_deep_research/web/templates/auth/login.html b/src/local_deep_research/web/templates/auth/login.htmlindex 40db2e4e60..3ec052e231 100644--- a/src/local_deep_research/web/templates/auth/login.html+++ b/src/local_deep_research/web/templates/auth/login.html@@ -337,7 +337,13 @@{% with messages = get_flashed_messages(with_categories=true) %}{% if messages %}{% for category, message in messages %}- <div class="alert alert-{{ 'success' if category == 'success' else 'info' if category == 'info' else '' }} alert-dismissible">+ {% if category == 'success' %}+ <div class="alert alert-success alert-dismissible">+ {% elif category == 'info' %}+ <div class="alert alert-info alert-dismissible">+ {% else %}+ <div class="alert alert-warning alert-dismissible">+ {% endif %}{{ message }}<button type="button" class="btn-close" onclick="this.parentElement.style.display='none'">×</button></div>diff --git a/src/local_deep_research/web/templates/components/custom_dropdown.html b/src/local_deep_research/web/templates/components/custom_dropdown.htmlindex 85d6a03b63..57873a027a 100644--- a/src/local_deep_research/web/templates/components/custom_dropdown.html+++ b/src/local_deep_research/web/templates/components/custom_dropdown.html@@ -20,7 +20,7 @@<div class="ldr-custom-dropdown-list" id="{{ dropdown_id }}-list"></div></div><button type="button"- class="ldr-custom-dropdown-refresh-btn dropdown-refresh-button"+ class="ldr-custom-dropdown-refresh-btn"id="{{ input_id }}-refresh"aria-label="{{ refresh_aria_label }}"><i class="fas fa-sync-alt"></i>diff --git a/src/local_deep_research/web/templates/pages/details.html b/src/local_deep_research/web/templates/pages/details.htmlindex 9f10abeb36..10c37ba802 100644--- a/src/local_deep_research/web/templates/pages/details.html+++ b/src/local_deep_research/web/templates/pages/details.html@@ -4,38 +4,38 @@{% block extra_head %}<style>- .metrics-section {+ .ldr-metrics-section {margin-top: 2rem;}- .metric-card {+ .ldr-metric-card {background: var(--bg-color);padding: 1rem;border-radius: 8px;border: 1px solid var(--border-color);}- .metric-label {+ .ldr-metric-label {font-size: 0.875rem;color: var(--text-secondary);margin-bottom: 0.5rem;opacity: 1 !important;}- .metric-value {+ .ldr-metric-value {font-size: 1.5rem;font-weight: 600;color: var(--text-primary);}- .metrics-grid {+ .ldr-metrics-grid {display: grid;grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));gap: 1rem;margin-bottom: 2rem;}- .metric-card {+ .ldr-metric-card {padding: 1rem;background: var(--card-bg);border: 1px solid var(--border-color);@@ -43,14 +43,14 @@text-align: center;}- .metric-value {+ .ldr-metric-value {font-size: 1.5rem;font-weight: bold;color: var(--primary-color);margin: 0.5rem 0;}- .metric-label {+ .ldr-metric-label {color: var(--text-secondary);font-size: 0.875rem;text-transform: uppercase;@@ -58,20 +58,20 @@opacity: 1 !important;}- .chart-container {+ .ldr-chart-container {position: relative;height: 300px;margin-top: 1rem;}- .phase-stats {+ .ldr-phase-stats {display: grid;grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));gap: 1rem;margin-top: 1rem;}- .phase-stat-item {+ .ldr-phase-stat-item {padding: 0.75rem;background: var(--card-bg);border: 1px solid var(--border-color);@@ -79,23 +79,23 @@text-align: center;}- .phase-name {+ .ldr-phase-name {font-weight: 600;color: var(--text-primary);margin-bottom: 0.25rem;}- .phase-tokens {+ .ldr-phase-tokens {color: var(--primary-color);font-weight: 500;}- .phase-calls {+ .ldr-phase-calls {color: var(--text-secondary);font-size: 0.875rem;}- .search-engine-item {+ .ldr-search-engine-item {display: flex;justify-content: space-between;align-items: center;@@ -107,27 +107,27 @@transition: background-color 0.2s;}- .search-engine-item:hover {+ .ldr-search-engine-item:hover {background-color: var(--border-color);}- .search-engine-info {+ .ldr-search-engine-info {display: flex;flex-direction: column;}- .search-engine-name {+ .ldr-search-engine-name {font-weight: 600;color: var(--text-primary);}- .search-engine-stats {+ .ldr-search-engine-stats {font-size: 0.875rem;color: var(--text-secondary);margin-top: 0.25rem;}- .search-timeline-item {+ .ldr-search-timeline-item {display: flex;justify-content: space-between;align-items: center;@@ -139,42 +139,42 @@border-left: 3px solid var(--primary-color);}- .search-timeline-query {+ .ldr-search-timeline-query {font-weight: 500;color: var(--text-primary);margin-bottom: 0.25rem;}- .search-timeline-meta {+ .ldr-search-timeline-meta {font-size: 0.875rem;color: var(--text-secondary);}- .search-timeline-results {+ .ldr-search-timeline-results {text-align: right;font-size: 0.875rem;}- .search-status-success {+ .ldr-search-status-success {color: #22c55e;}- .search-status-error {+ .ldr-search-status-error {color: #ef4444;}- .loading-spinner {+ .ldr-loading-spinner {text-align: center;padding: 3rem;}- .error-message {+ .ldr-error-message {text-align: center;padding: 2rem;color: var(--error-color, #dc3545);}- .charts-grid {+ .ldr-charts-grid {display: grid;grid-template-columns: 1fr 1fr;gap: 2rem;@@ -182,14 +182,14 @@}@media (max-width: 768px) {- .charts-grid {+ .ldr-charts-grid {grid-template-columns: 1fr;gap: 1.5rem;}}/* Data table styling for better readability */- .data-table {+ .ldr-data-table {width: 100%;border-collapse: separate;border-spacing: 0;@@ -200,11 +200,11 @@box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12);}- .data-table thead {+ .ldr-data-table thead {background: var(--bg-color);}- .data-table th {+ .ldr-data-table th {padding: 1rem 0.75rem;text-align: left;font-weight: 600;@@ -216,44 +216,44 @@letter-spacing: 0.05em;}- .data-table td {+ .ldr-data-table td {padding: 0.875rem 0.75rem;border-bottom: 1px solid var(--border-color);color: var(--text-secondary);vertical-align: middle;}- .data-table tbody tr {+ .ldr-data-table tbody tr {transition: background-color 0.2s;}- .data-table tbody tr:hover {+ .ldr-data-table tbody tr:hover {background-color: var(--bg-color);}- .data-table tbody tr:last-child td {+ .ldr-data-table tbody tr:last-child td {border-bottom: none;}/* Specific column styling */- .data-table td:first-child,- .data-table th:first-child {+ .ldr-data-table td:first-child,+ .ldr-data-table th:first-child {padding-left: 1rem;}- .data-table td:last-child,- .data-table th:last-child {+ .ldr-data-table td:last-child,+ .ldr-data-table th:last-child {padding-right: 1rem;}/* Numeric columns alignment */- .data-table td[style*="text-align: right"] {+ .ldr-data-table td[style*="text-align: right"] {font-family: 'SF Mono', Monaco, 'Cascadia Code', monospace;font-size: 0.85rem;}/* Status badges in tables */- .data-table .badge {+ .ldr-data-table .badge {display: inline-block;padding: 0.25rem 0.5rem;border-radius: 0.25rem;@@ -262,12 +262,12 @@text-transform: uppercase;}- .data-table .badge-success {+ .ldr-data-table .badge-success {background-color: rgba(34, 197, 94, 0.2);color: #22c55e;}- .data-table .badge-danger {+ .ldr-data-table .badge-danger {background-color: rgba(239, 68, 68, 0.2);color: #ef4444;}@@ -280,8 +280,8 @@<div class="ldr-results-header"><h1>Research Details</h1><div class="ldr-results-actions">- <button class="btn btn-outline" id="view-results-btn"><i class="fas fa-file-text"></i> View Results</button>- <button class="btn btn-outline" id="back-to-history"><i class="fas fa-arrow-left"></i> Back to History</button>+ <button class="btn ldr-btn-outline" id="view-results-btn"><i class="fas fa-file-text"></i> View Results</button>+ <button class="btn ldr-btn-outline" id="back-to-history"><i class="fas fa-arrow-left"></i> Back to History</button></div></div></div>diff --git a/src/local_deep_research/web/templates/pages/subscriptions.html b/src/local_deep_research/web/templates/pages/subscriptions.htmlindex 262be2d949..3f59d40764 100644--- a/src/local_deep_research/web/templates/pages/subscriptions.html+++ b/src/local_deep_research/web/templates/pages/subscriptions.html@@ -11,7 +11,7 @@background-color: #121212 !important;color: #f5f5f5 !important;}- .main-content {+ .ldr-main-content {background-color: #121212 !important;}.modal-content {