~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
a11y: add aria-hidden to all decorative icons (#3154)
LearningCircuite34209c42963
diff --git a/src/local_deep_research/web/templates/auth/change_password.html b/src/local_deep_research/web/templates/auth/change_password.htmlindex 601c0fe9ad..0fbb050027 100644--- a/src/local_deep_research/web/templates/auth/change_password.html+++ b/src/local_deep_research/web/templates/auth/change_password.html@@ -15,17 +15,96 @@{{ vite_asset('js/app.js') }}<link rel="stylesheet" href="/static/css/themes.css"><link rel="stylesheet" href="/static/css/styles.css">- <link rel="stylesheet" href="/static/css/auth.css">+ <style>+ body {+ background-color: var(--bg-primary);+ display: flex;+ align-items: center;+ justify-content: center;+ min-height: 100vh;+ margin: 0;+ }+ .ldr-change-password-container {+ background: var(--bg-secondary);+ padding: 2rem;+ border-radius: 10px;+ box-shadow: var(--card-shadow);+ width: 100%;+ max-width: 450px;+ }+ .ldr-change-password-header {+ text-align: center;+ margin-bottom: 2rem;+ }+ .ldr-change-password-header h1 {+ color: var(--text-primary);+ font-size: 1.8rem;+ margin-bottom: 0.5rem;+ }+ .ldr-change-password-header p {+ color: var(--text-muted);+ margin: 0;+ }+ .form-floating {+ margin-bottom: 1rem;+ }+ .ldr-btn-change {+ width: 100%;+ padding: 0.75rem;+ font-size: 1.1rem;+ }+ .alert {+ margin-bottom: 1rem;+ }+ .ldr-warning-box {+ background-color: rgba(var(--accent-tertiary-rgb), 0.1);+ border-left: 4px solid var(--accent-tertiary);+ padding: 1rem;+ margin-bottom: 1.5rem;+ font-size: 0.9rem;+ color: var(--text-primary);+ }+ .ldr-warning-box i {+ color: var(--accent-tertiary);+ }+ .ldr-process-info {+ background-color: var(--bg-tertiary);+ padding: 1rem;+ border-radius: 5px;+ margin-bottom: 1.5rem;+ font-size: 0.85rem;+ color: var(--text-secondary);+ }+ .ldr-process-info ul {+ margin-bottom: 0;+ padding-left: 1.5rem;+ }+ .ldr-auth-links {+ text-align: center;+ margin-top: 1.5rem;+ padding-top: 1.5rem;+ border-top: 1px solid var(--border-color);+ }+ .ldr-password-strength {+ height: 4px;+ border-radius: 2px;+ margin-top: 0.5rem;+ transition: all 0.3s ease;+ }+ .ldr-strength-weak { background-color: var(--error-color); width: 33%; }+ .ldr-strength-medium { background-color: var(--warning-color); width: 66%; }+ .ldr-strength-strong { background-color: var(--success-color); width: 100%; }+ </style></head>-<body class="ldr-change-password-page">- <main class="ldr-change-password-container">+<body>+ <div class="ldr-change-password-container"><div class="ldr-change-password-header">- <h1><i class="fas fa-key" aria-hidden="true"></i> Change Password</h1>+ <h1><i aria-hidden="true" class="fas fa-key"></i> Change Password</h1><p>Update your encryption password</p></div><div class="ldr-warning-box">- <i class="fas fa-info-circle" aria-hidden="true"></i>+ <i aria-hidden="true" class="fas fa-info-circle"></i><strong>What happens when you change your password:</strong><br>Your entire database will be re-encrypted with the new password. This process may take a few moments.</div>@@ -60,7 +139,7 @@id="current_password"name="current_password"placeholder="Current Password"- autocomplete="current-password"+ autocomplete="off"requiredautofocus><label for="current_password">Current Password</label>@@ -85,7 +164,7 @@id="new_password"name="new_password"placeholder="New Password"- autocomplete="new-password"+ autocomplete="off"requiredminlength="8"><label for="new_password">New Password</label>@@ -98,27 +177,27 @@id="confirm_password"name="confirm_password"placeholder="Confirm New Password"- autocomplete="new-password"+ autocomplete="off"requiredminlength="8"><label for="confirm_password">Confirm New Password</label></div><button type="submit" class="btn btn-primary ldr-btn-change">- <i class="fas fa-sync-alt" aria-hidden="true"></i> Change Password+ <i aria-hidden="true" class="fas fa-sync-alt"></i> Change Password</button></form><div class="ldr-auth-links"><a href="{{ url_for('index') }}">- <i class="fas fa-arrow-left" aria-hidden="true"></i> Back to Dashboard+ <i aria-hidden="true" class="fas fa-arrow-left"></i> Back to Dashboard</a><p class="text-muted small mt-3">- <i class="fas fa-shield-alt" aria-hidden="true"></i>+ <i aria-hidden="true" class="fas fa-shield-alt"></i>Your data remains encrypted during the password change</p></div>- </main>+ </div><script>const csrfToken = document.querySelector('input[name="csrf_token"]').value;diff --git a/src/local_deep_research/web/templates/auth/login.html b/src/local_deep_research/web/templates/auth/login.htmlindex d704c2d5d5..8fb74cfbc0 100644--- a/src/local_deep_research/web/templates/auth/login.html+++ b/src/local_deep_research/web/templates/auth/login.html@@ -15,20 +15,313 @@<!-- Keep local styles --><link rel="stylesheet" href="/static/css/styles.css">- <link rel="stylesheet" href="/static/css/auth.css">+ <style>+ /* Override main layout for auth pages */+ body {+ min-height: 100vh;+ background: var(--bg-primary);+ background-image:+ radial-gradient(ellipse at top left, rgba(var(--accent-primary-rgb), 0.1) 0%, transparent 50%),+ radial-gradient(ellipse at bottom right, rgba(var(--accent-tertiary-rgb), 0.1) 0%, transparent 50%);+ padding: 0;+ margin: 0;+ overflow-x: hidden;+ }++ .ldr-auth-wrapper {+ min-height: 100vh;+ width: 100%;+ display: flex;+ align-items: center;+ justify-content: center;+ padding: 2rem;+ }++ .ldr-auth-container {+ width: 100%;+ max-width: 450px;+ }++ /* Responsive - adjust for small screens */+ @media (max-width: 600px) {+ .ldr-auth-container {+ max-width: 100%;+ padding: 0 1rem;+ }++ .ldr-card-content {+ padding: 2rem 1.5rem !important;+ }+ }++ .ldr-auth-header {+ text-align: center;+ margin-bottom: 3rem;+ }++ .ldr-auth-header h1 {+ font-size: 2rem;+ font-weight: 600;+ color: var(--text-primary);+ margin-bottom: 0.5rem;+ display: flex;+ align-items: center;+ justify-content: center;+ gap: 0.75rem;+ }++ .ldr-auth-header h1 i {+ color: var(--accent-primary);+ font-size: 1.75rem;+ }++ .ldr-auth-header p {+ color: var(--text-secondary);+ font-size: 1.1rem;+ }++ .ldr-card {+ background: var(--bg-secondary);+ border: 1px solid var(--border-color);+ border-radius: 16px;+ box-shadow: var(--card-shadow);+ overflow: hidden;+ }++ .ldr-card-content {+ padding: 2rem 2.5rem;+ }++ .ldr-encryption-banner {+ background: linear-gradient(135deg, rgba(110, 79, 246, 0.1) 0%, rgba(64, 191, 255, 0.1) 100%);+ border: 1px solid rgba(110, 79, 246, 0.3);+ border-radius: 12px;+ padding: 1.5rem;+ margin-bottom: 2rem;+ display: flex;+ align-items: center;+ gap: 1.25rem;+ }++ .ldr-encryption-banner i {+ color: var(--accent-primary);+ font-size: 2rem;+ }++ .ldr-encryption-banner-content {+ flex: 1;+ }++ .ldr-encryption-banner-content strong {+ color: var(--text-primary);+ display: block;+ margin-bottom: 0.5rem;+ font-size: 1.1rem;+ }++ .ldr-encryption-banner-content span {+ color: var(--text-secondary);+ font-size: 1rem;+ line-height: 1.5;+ }++ .ldr-security-warning {+ background: rgba(249, 188, 11, 0.1);+ border: 1px solid rgba(249, 188, 11, 0.3);+ border-radius: 8px;+ padding: 1rem;+ margin-bottom: 1.5rem;+ color: var(--warning-color);+ }++ .ldr-security-warning i {+ margin-right: 0.5rem;+ }++ .alert {+ background: rgba(var(--error-color-rgb), 0.1);+ border: 1px solid rgba(var(--error-color-rgb), 0.3);+ border-radius: 8px;+ padding: 1rem;+ margin-bottom: 1rem;+ color: var(--error-color);+ position: relative;+ }++ .alert-success {+ background: rgba(var(--success-color-rgb), 0.1);+ border-color: rgba(var(--success-color-rgb), 0.3);+ color: var(--success-color);+ }++ .alert-info {+ background: rgba(var(--accent-tertiary-rgb), 0.1);+ border-color: rgba(var(--accent-tertiary-rgb), 0.3);+ color: var(--accent-tertiary);+ }++ .alert-dismissible {+ padding-right: 3rem;+ }++ .btn-close {+ position: absolute;+ top: 1rem;+ right: 1rem;+ background: none;+ border: none;+ color: inherit;+ opacity: 0.5;+ cursor: pointer;+ font-size: 1.2rem;+ line-height: 1;+ padding: 0;+ width: auto;+ height: auto;+ }++ .btn-close:hover {+ opacity: 1;+ }++ .form-group {+ margin-bottom: 1.5rem;+ }++ .form-group label {+ display: block;+ margin-bottom: 0.5rem;+ color: var(--text-primary);+ font-weight: 500;+ font-size: 0.95rem;+ }++ .ldr-form-control {+ width: 100%;+ padding: 0.75rem 1rem;+ min-height: 44px;+ background: var(--bg-tertiary);+ border: 1px solid var(--border-color);+ border-radius: 8px;+ color: var(--text-primary);+ font-size: 1rem;+ transition: all 0.2s;+ }++ .ldr-form-control:focus {+ outline: none;+ border-color: var(--accent-primary);+ box-shadow: 0 0 0 3px rgba(110, 79, 246, 0.1);+ }++ .ldr-form-control::placeholder {+ color: var(--text-muted);+ }++ .ldr-checkbox-label {+ display: flex;+ align-items: center;+ gap: 0.75rem;+ cursor: pointer;+ color: var(--text-secondary);+ margin-bottom: 1.5rem;+ font-size: 0.95rem;+ }++ .ldr-checkbox-label input[type="checkbox"] {+ width: 1.25rem;+ height: 1.25rem;+ background: var(--bg-tertiary);+ border: 1px solid var(--border-color);+ border-radius: 4px;+ cursor: pointer;+ flex-shrink: 0;+ }++ .ldr-checkbox-label input[type="checkbox"]:checked {+ background: var(--accent-primary);+ border-color: var(--accent-primary);+ }++ .btn {+ display: inline-flex;+ align-items: center;+ justify-content: center;+ gap: 0.5rem;+ padding: 0.875rem 2rem;+ background: var(--accent-primary);+ color: white;+ border: none;+ border-radius: 8px;+ font-size: 1rem;+ font-weight: 500;+ cursor: pointer;+ transition: all 0.2s;+ text-decoration: none;+ width: 100%;+ }++ .btn:hover {+ background: var(--accent-secondary);+ transform: translateY(-1px);+ box-shadow: 0 4px 12px rgba(110, 79, 246, 0.3);+ }++ .btn:active {+ transform: translateY(0);+ }++ .ldr-auth-links {+ text-align: center;+ margin-top: 1.5rem;+ padding-top: 1.5rem;+ border-top: 1px solid var(--border-color);+ }++ .ldr-auth-links p {+ color: var(--text-secondary);+ margin-bottom: 0.5rem;+ font-size: 0.95rem;+ }++ .ldr-auth-links a {+ color: var(--accent-tertiary);+ text-decoration: none;+ font-weight: 500;+ font-size: 0.95rem;+ }++ .ldr-auth-links a:hover {+ color: var(--accent-secondary);+ }++ .ldr-browser-hint {+ display: flex;+ align-items: center;+ justify-content: center;+ gap: 0.5rem;+ color: var(--text-muted);+ font-size: 0.875rem;+ margin-top: 1rem;+ }++ .ldr-browser-hint i {+ font-size: 1rem;+ }+ </style></head>-<body class="ldr-login-page">- <main class="ldr-auth-wrapper">+<body>+ <div class="ldr-auth-wrapper"><div class="ldr-auth-container"><div class="ldr-auth-header">- <h1><i class="fas fa-flask" aria-hidden="true"></i> Local Deep Research</h1>+ <h1><i aria-hidden="true" class="fas fa-flask"></i> Local Deep Research</h1><p>Secure Research Platform</p></div><div class="ldr-card"><div class="ldr-card-content"><div class="ldr-encryption-banner">- <i class="fas fa-shield-alt" aria-hidden="true"></i>+ <i aria-hidden="true" class="fas fa-shield-alt"></i><div class="ldr-encryption-banner-content"><strong>Your data is encrypted</strong><span>Each user has their own encrypted database protected by their password</span>@@ -36,8 +329,8 @@</div>{% if not has_encryption %}- <div class="ldr-security-warning" role="alert">- <i class="fas fa-exclamation-triangle" aria-hidden="true"></i>+ <div class="ldr-security-warning">+ <i aria-hidden="true" class="fas fa-exclamation-triangle"></i><strong>Security Warning:</strong>Database encryption is not available. Your data will be stored unencrypted.<br><small>Install SQLCipher for secure storage.</small>@@ -48,14 +341,14 @@{% if messages %}{% for category, message in messages %}{% if category == 'success' %}- <div class="alert alert-success alert-dismissible" role="alert">+ <div class="alert alert-success alert-dismissible">{% elif category == 'info' %}- <div class="alert alert-info alert-dismissible" role="alert">+ <div class="alert alert-info alert-dismissible">{% else %}- <div class="alert alert-warning alert-dismissible" role="alert">+ <div class="alert alert-warning alert-dismissible">{% endif %}{{ message }}- <button type="button" class="btn-close" aria-label="Dismiss alert" onclick="this.parentElement.style.display='none'">×</button>+ <button type="button" class="btn-close" onclick="this.parentElement.style.display='none'">×</button></div>{% endfor %}{% endif %}@@ -96,7 +389,7 @@</label><button type="submit" class="btn">- <i class="fas fa-sign-in-alt" aria-hidden="true"></i>+ <i aria-hidden="true" class="fas fa-sign-in-alt"></i>Login</button></form>@@ -106,14 +399,14 @@<p>Don't have an account? <a href="{{ url_for('auth.register') }}">Register here</a></p>{% endif %}<div class="ldr-browser-hint">- <i class="fas fa-info-circle" aria-hidden="true"></i>+ <i aria-hidden="true" class="fas fa-info-circle"></i><span>Your browser can save your password for easy login</span></div></div></div></div>- </main>+ </div><!-- Clear theme localStorage on logout to prevent cross-user theme bleeding --><script>diff --git a/src/local_deep_research/web/templates/auth/register.html b/src/local_deep_research/web/templates/auth/register.htmlindex 0a4fa7c399..f8a69a6642 100644--- a/src/local_deep_research/web/templates/auth/register.html+++ b/src/local_deep_research/web/templates/auth/register.html@@ -16,12 +16,374 @@<!-- Keep local styles --><link rel="stylesheet" href="/static/css/styles.css">- <link rel="stylesheet" href="/static/css/auth.css">+ <style>+ /* Override main layout for auth pages */+ body {+ display: flex;+ align-items: center;+ justify-content: center;+ min-height: 100vh;+ background: var(--bg-primary);+ background-image:+ radial-gradient(ellipse at top left, rgba(110, 79, 246, 0.1) 0%, transparent 50%),+ radial-gradient(ellipse at bottom right, rgba(64, 191, 255, 0.1) 0%, transparent 50%);+ }++ .ldr-auth-container {+ width: 100%;+ max-width: 600px;+ padding: 2rem;+ }++ .ldr-auth-header {+ text-align: center;+ margin-bottom: 4rem;+ }++ .ldr-auth-header h1 {+ font-size: 2.5rem;+ font-weight: 600;+ color: var(--text-primary);+ margin-bottom: 0.75rem;+ display: flex;+ align-items: center;+ justify-content: center;+ gap: 1rem;+ }++ .ldr-auth-header h1 i {+ color: var(--accent-primary);+ font-size: 2.25rem;+ }++ .ldr-auth-header p {+ color: var(--text-secondary);+ font-size: 1.25rem;+ }++ .ldr-card {+ background: var(--bg-secondary);+ border: 1px solid var(--border-color);+ border-radius: 16px;+ box-shadow: var(--card-shadow);+ overflow: hidden;+ }++ .ldr-card-content {+ padding: 3rem;+ }++ .ldr-warning-banner {+ background: rgba(249, 188, 11, 0.1);+ border: 1px solid rgba(249, 188, 11, 0.3);+ border-radius: 12px;+ padding: 1.5rem;+ margin-bottom: 2rem;+ display: flex;+ align-items: flex-start;+ gap: 1.25rem;+ }++ .ldr-warning-banner i {+ color: var(--warning-color);+ font-size: 2rem;+ margin-top: 0.25rem;+ }++ .ldr-warning-banner-content {+ flex: 1;+ }++ .ldr-warning-banner-content strong {+ color: var(--warning-color);+ display: block;+ margin-bottom: 0.5rem;+ font-size: 1.1rem;+ }++ .ldr-danger-alert i {+ color: var(--error-color);+ font-size: 2rem;+ margin-right: 1rem;+ }++ .ldr-warning-banner-content span {+ color: var(--text-secondary);+ font-size: 1rem;+ line-height: 1.6;+ }++ .ldr-danger-alert {+ background: rgba(250, 92, 124, 0.1);+ border: 1px solid rgba(250, 92, 124, 0.3);+ border-radius: 8px;+ padding: 1rem;+ margin-bottom: 1.5rem;+ color: var(--error-color);+ }++ .ldr-danger-alert strong {+ display: block;+ margin-bottom: 0.5rem;+ }++ .alert {+ background: rgba(250, 92, 124, 0.1);+ border: 1px solid rgba(250, 92, 124, 0.3);+ border-radius: 8px;+ padding: 1rem;+ margin-bottom: 1rem;+ color: var(--error-color);+ position: relative;+ }++ .alert-dismissible {+ padding-right: 3rem;+ }++ .btn-close {+ position: absolute;+ top: 1rem;+ right: 1rem;+ background: none;+ border: none;+ color: inherit;+ opacity: 0.5;+ cursor: pointer;+ font-size: 1.2rem;+ line-height: 1;+ padding: 0;+ width: auto;+ height: auto;+ }++ .btn-close:hover {+ opacity: 1;+ }++ .form-group {+ margin-bottom: 2rem;+ }++ .form-group label {+ display: block;+ margin-bottom: 0.75rem;+ color: var(--text-primary);+ font-weight: 500;+ font-size: 1.1rem;+ }++ .form-group small {+ display: block;+ margin-top: 0.5rem;+ color: var(--text-muted);+ font-size: 0.95rem;+ }++ .ldr-form-control {+ width: 100%;+ padding: 1rem 1.25rem;+ min-height: 44px;+ background: var(--bg-tertiary);+ border: 1px solid var(--border-color);+ border-radius: 10px;+ color: var(--text-primary);+ font-size: 1.1rem;+ transition: all 0.2s;+ }++ .ldr-form-control:focus {+ outline: none;+ border-color: var(--accent-primary);+ box-shadow: 0 0 0 3px rgba(110, 79, 246, 0.1);+ }++ .ldr-form-control::placeholder {+ color: var(--text-muted);+ }++ .ldr-password-requirements {+ background: var(--bg-tertiary);+ border: 1px solid var(--border-color);+ border-radius: 10px;+ padding: 1.5rem;+ margin-bottom: 2rem;+ }++ .form-group.ldr-password-field {+ margin-bottom: 1rem;+ }++ .ldr-password-requirements strong {+ color: var(--text-primary);+ display: block;+ margin-bottom: 0.75rem;+ font-size: 1.05rem;+ }++ .ldr-password-requirements ul {+ margin: 0;+ padding-left: 1.75rem;+ color: var(--text-secondary);+ font-size: 1rem;+ }++ .ldr-password-requirements li {+ margin-bottom: 0.5rem;+ line-height: 1.5;+ }++ .ldr-password-strength {+ height: 4px;+ border-radius: 2px;+ margin-top: 0.5rem;+ transition: all 0.3s ease;+ background: var(--bg-tertiary);+ }++ .ldr-strength-weak { background-color: var(--error-color); width: 33%; }+ .ldr-strength-medium { background-color: var(--warning-color); width: 66%; }+ .ldr-strength-strong { background-color: var(--success-color); width: 100%; }++ .ldr-acknowledge-box {+ background: rgba(250, 92, 124, 0.05);+ border: 1px solid rgba(250, 92, 124, 0.2);+ border-radius: 10px;+ padding: 1.5rem;+ margin-bottom: 2rem;+ }++ .ldr-checkbox-label {+ display: flex;+ align-items: flex-start;+ gap: 1rem;+ cursor: pointer;+ color: var(--text-secondary);+ font-size: 1.05rem;+ }++ .ldr-checkbox-label input[type="checkbox"] {+ width: 1.5rem;+ height: 1.5rem;+ background: var(--bg-tertiary);+ border: 1px solid var(--border-color);+ border-radius: 6px;+ cursor: pointer;+ flex-shrink: 0;+ margin-top: 0.125rem;+ }++ .ldr-checkbox-label input[type="checkbox"]:checked {+ background: var(--accent-primary);+ border-color: var(--accent-primary);+ }++ .ldr-checkbox-label span {+ line-height: 1.5;+ }++ .ldr-checkbox-label strong {+ color: var(--error-color);+ font-weight: 600;+ }++ .btn {+ display: inline-flex;+ align-items: center;+ justify-content: center;+ gap: 0.75rem;+ padding: 1.25rem 2.5rem;+ background: var(--accent-primary);+ color: white;+ border: none;+ border-radius: 10px;+ font-size: 1.15rem;+ font-weight: 500;+ cursor: pointer;+ transition: all 0.2s;+ text-decoration: none;+ width: 100%;+ }++ .btn:hover {+ background: var(--accent-secondary);+ transform: translateY(-1px);+ box-shadow: 0 4px 12px rgba(110, 79, 246, 0.3);+ }++ .btn:active {+ transform: translateY(0);+ }++ .ldr-auth-links {+ text-align: center;+ margin-top: 2.5rem;+ padding-top: 2.5rem;+ border-top: 1px solid var(--border-color);+ }++ .ldr-auth-links p {+ color: var(--text-secondary);+ margin-bottom: 0.75rem;+ font-size: 1.05rem;+ }++ .ldr-auth-links a {+ color: var(--accent-tertiary);+ text-decoration: none;+ font-weight: 500;+ font-size: 1.05rem;+ }++ .ldr-auth-links a:hover {+ color: var(--accent-secondary);+ }++ .ldr-browser-hint {+ display: flex;+ align-items: center;+ justify-content: center;+ gap: 0.5rem;+ color: var(--text-muted);+ font-size: 0.875rem;+ margin-top: 1rem;+ }++ .ldr-browser-hint i {+ font-size: 1rem;+ }++ /* Validation styles */+ .ldr-form-control.is-invalid {+ border-color: var(--error-color);+ box-shadow: 0 0 0 3px rgba(250, 92, 124, 0.15);+ }++ .ldr-form-control.is-valid {+ border-color: var(--success-color);+ box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.15);+ }++ .form-group .ldr-error-message {+ display: none;+ color: var(--error-color);+ font-size: 0.9rem;+ margin-top: 0.5rem;+ }++ .form-group .ldr-error-message.show {+ display: block;+ }++ .ldr-checkbox-label.is-invalid span {+ color: var(--error-color);+ }+ </style></head>-<body class="ldr-register-page">- <main class="ldr-auth-container">+<body>+ <div class="ldr-auth-container"><div class="ldr-auth-header">- <h1><i class="fas fa-user-plus" aria-hidden="true"></i> Create Account</h1>+ <h1><i aria-hidden="true" class="fas fa-user-plus"></i> Create Account</h1><p>Join Local Deep Research</p></div>@@ -30,15 +392,15 @@{% if has_encryption %}<div class="ldr-warning-banner">- <i class="fas fa-exclamation-triangle" aria-hidden="true"></i>+ <i aria-hidden="true" class="fas fa-exclamation-triangle"></i><div class="ldr-warning-banner-content"><strong>Important Security Notice</strong><span>Your database will be encrypted with your password. There is NO way to recover your data if you forget your password. Please use a password manager.</span></div></div>{% else %}- <div class="ldr-danger-alert" role="alert">- <i class="fas fa-shield-alt" aria-hidden="true"></i>+ <div class="ldr-danger-alert">+ <i aria-hidden="true" class="fas fa-shield-alt"></i><strong>Security Alert: No Encryption Available</strong>SQLCipher is not installed. Your database will be created WITHOUT encryption.Your API keys and data will be stored in plain text.@@ -52,9 +414,9 @@{% with messages = get_flashed_messages(with_categories=true) %}{% if messages %}{% for category, message in messages %}- <div class="alert alert-dismissible" role="alert">+ <div class="alert alert-dismissible">{{ message }}- <button type="button" class="btn-close" aria-label="Dismiss alert" onclick="this.parentElement.style.display='none'">×</button>+ <button type="button" class="btn-close" onclick="this.parentElement.style.display='none'">×</button></div>{% endfor %}{% endif %}@@ -80,7 +442,7 @@pattern="[a-zA-Z0-9_\-]+"aria-describedby="username-error"><small>At least 3 characters. Letters, numbers, underscores, and hyphens only.</small>- <div class="ldr-error-message" id="username-error" aria-live="polite"></div>+ <div class="ldr-error-message" id="username-error"></div></div><div class="form-group ldr-password-field">@@ -95,8 +457,7 @@minlength="8"aria-describedby="password-error"><div id="password-strength" class="ldr-password-strength" style="display: none;"></div>- <div id="password-strength-text" class="sr-only" aria-live="polite" aria-atomic="true"></div>- <div class="ldr-error-message" id="password-error" aria-live="polite"></div>+ <div class="ldr-error-message" id="password-error"></div></div><div class="ldr-password-requirements">@@ -120,7 +481,7 @@requiredminlength="8"aria-describedby="confirm-password-error">- <div class="ldr-error-message" id="confirm-password-error" aria-live="polite"></div>+ <div class="ldr-error-message" id="confirm-password-error"></div></div><div class="ldr-acknowledge-box">@@ -131,14 +492,14 @@value="true"required><span>- <i class="fas fa-lock" aria-hidden="true"></i> I understand that <strong>if I forget my password,+ <i aria-hidden="true" class="fas fa-lock"></i> I understand that <strong>if I forget my password,I will permanently lose access to all my data</strong>. There is no password recovery.</span></label></div><button type="submit" class="btn">- <i class="fas fa-shield-alt" aria-hidden="true"></i>+ <i aria-hidden="true" class="fas fa-shield-alt"></i>Create Encrypted Account</button></form>@@ -146,13 +507,13 @@<div class="ldr-auth-links"><p>Already have an account? <a href="{{ url_for('auth.login') }}">Login here</a></p><div class="ldr-browser-hint">- <i class="fas fa-info-circle" aria-hidden="true"></i>+ <i aria-hidden="true" class="fas fa-info-circle"></i><span>Your browser will offer to save your password</span></div></div></div></div>- </main>+ </div><script>// Validation helpersfunction setFieldValid(input, errorEl) {diff --git a/src/local_deep_research/web/templates/base.html b/src/local_deep_research/web/templates/base.htmlindex b157c971e4..64b1668b0d 100644--- a/src/local_deep_research/web/templates/base.html+++ b/src/local_deep_research/web/templates/base.html@@ -92,7 +92,7 @@<div class="ldr-top-bar-left"><!-- Theme dropdown selector --><div class="ldr-theme-selector">- <i class="fas fa-palette ldr-theme-icon"></i>+ <i aria-hidden="true" class="fas fa-palette ldr-theme-icon"></i><select id="theme-dropdown" class="ldr-theme-dropdown"title="Select theme" aria-label="Select color theme"><!-- Options populated by theme.js -->@@ -102,12 +102,12 @@<div class="ldr-top-bar-right"><div class="ldr-user-menu"><span class="ldr-user-info">- <i class="fas fa-user"></i> {{ session.username }}+ <i aria-hidden="true" class="fas fa-user"></i> {{ session.username }}</span><form action="{{ url_for('auth.logout') }}" method="POST" class="ldr-logout-form" id="logout-form" style="display: inline;"><input type="hidden" name="csrf_token" value="{{ csrf_token() }}"/><a href="#" class="ldr-logout-btn" onclick="event.preventDefault(); document.getElementById('logout-form').submit(); return false;">- <i class="fas fa-sign-out-alt"></i> Logout+ <i aria-hidden="true" class="fas fa-sign-out-alt"></i> Logout</a></form></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 bd2f4bd5dd..96d0933d82 100644--- a/src/local_deep_research/web/templates/components/custom_dropdown.html+++ b/src/local_deep_research/web/templates/components/custom_dropdown.html@@ -29,7 +29,7 @@class="ldr-custom-dropdown-refresh-btn"id="{{ input_id }}-refresh"aria-label="{{ refresh_aria_label }}">- <i class="fas fa-sync-alt" aria-hidden="true"></i>+ <i aria-hidden="true" class="fas fa-sync-alt" ></i></button></div>{% else %}diff --git a/src/local_deep_research/web/templates/components/delete_confirmation_modal.html b/src/local_deep_research/web/templates/components/delete_confirmation_modal.htmlindex a4a1e491e4..ee6f921448 100644--- a/src/local_deep_research/web/templates/components/delete_confirmation_modal.html+++ b/src/local_deep_research/web/templates/components/delete_confirmation_modal.html@@ -4,7 +4,7 @@<div class="modal-content"><div class="modal-header bg-danger text-white"><h5 class="modal-title" id="deleteConfirmModalLabel">- <i class="fas fa-exclamation-triangle me-2"></i>+ <i aria-hidden="true" class="fas fa-exclamation-triangle me-2"></i><span id="deleteModalTitle">Confirm Delete</span></h5><button type="button" class="btn-close ldr-btn-close-white" data-bs-dismiss="modal" aria-label="Close"></button>@@ -20,16 +20,16 @@<!-- Warning section for dangerous operations --><div id="deleteModalWarning" class="alert alert-danger" style="display: none;">- <i class="fas fa-exclamation-circle me-2"></i>+ <i aria-hidden="true" class="fas fa-exclamation-circle me-2"></i><span id="deleteWarningText">This action cannot be undone.</span></div></div><div class="modal-footer"><button type="button" class="btn btn-secondary" data-bs-dismiss="modal">- <i class="fas fa-times me-1"></i> Cancel+ <i aria-hidden="true" class="fas fa-times me-1"></i> Cancel</button><button type="button" class="btn btn-danger" id="deleteConfirmBtn">- <i class="fas fa-trash me-1"></i> <span id="deleteConfirmBtnText">Delete</span>+ <i aria-hidden="true" class="fas fa-trash me-1"></i> <span id="deleteConfirmBtnText">Delete</span></button></div></div>diff --git a/src/local_deep_research/web/templates/components/help_macros.html b/src/local_deep_research/web/templates/components/help_macros.htmlindex 7abf06b3b6..aee5d2b088 100644--- a/src/local_deep_research/web/templates/components/help_macros.html+++ b/src/local_deep_research/web/templates/components/help_macros.html@@ -65,7 +65,7 @@<i class="{{ 'fas fa-' ~ icon }}" aria-hidden="true"></i><span>{{ title }}</span></div>- <i class="fas fa-chevron-down ldr-help-panel-toggle" aria-hidden="true"></i>+ <i aria-hidden="true" class="fas fa-chevron-down ldr-help-panel-toggle" ></i></div><div class="ldr-help-panel-content" id="help-panel-content-{{ panel_id }}">{{ caller() }}@@ -112,7 +112,7 @@--------------------------------------------- #}{% macro help_tip(text, variant='info') %}<div class="ldr-help-tip{% if variant == 'warning' %} ldr-help-tip--warning{% endif %}">- <i class="fas fa-{% if variant == 'warning' %}exclamation-triangle{% else %}lightbulb{% endif %}" aria-hidden="true"></i>+ <i aria-hidden="true" class="fas fa-{% if variant == 'warning' %}exclamation-triangle{% else %}lightbulb{% endif %}" ></i><span>{{ text|safe }}</span></div>{%- endmacro %}@@ -146,7 +146,7 @@--------------------------------------------- #}{% macro privacy_note(text='All data is stored locally on your device only.') %}<div class="ldr-privacy-note">- <i class="fas fa-shield-alt" aria-hidden="true"></i>+ <i aria-hidden="true" class="fas fa-shield-alt" ></i><span>{{ text }}</span></div>{%- endmacro %}diff --git a/src/local_deep_research/web/templates/components/log_panel.html b/src/local_deep_research/web/templates/components/log_panel.htmlindex 87ed14efe0..2d5e701e7f 100644--- a/src/local_deep_research/web/templates/components/log_panel.html+++ b/src/local_deep_research/web/templates/components/log_panel.html@@ -1,6 +1,6 @@<div class="ldr-collapsible-log-panel"><div class="ldr-log-panel-header" id="log-panel-toggle">- <i class="fas fa-chevron-right ldr-toggle-icon"></i>+ <i aria-hidden="true" class="fas fa-chevron-right ldr-toggle-icon"></i><span>Research Logs</span><span class="ldr-log-indicator" id="log-indicator">0</span></div>@@ -17,12 +17,13 @@</div><div class="ldr-log-download"><button class="ldr-small-btn" id="log-download-button">- <i class="fas fa-download"></i> Download Logs+ <i aria-hidden="true" class="fas fa-download"></i> Download Logs</button><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>+ title="Toggle automatic scrolling of logs"+ aria-label="Toggle automatic scrolling of logs">+ <i aria-hidden="true" class="fas fa-arrows-alt-v"></i></button></div></div>diff --git a/src/local_deep_research/web/templates/components/settings_form.html b/src/local_deep_research/web/templates/components/settings_form.htmlindex 8e011019ab..720bce2cbf 100644--- a/src/local_deep_research/web/templates/components/settings_form.html+++ b/src/local_deep_research/web/templates/components/settings_form.html@@ -6,7 +6,7 @@<label for="{{ setting_id }}">{{ setting.name }}</label>{% if setting.description %}<span class="ldr-settings-tooltip" title="{{ setting.description }}">- <i class="fas fa-info-circle"></i>+ <i aria-hidden="true" class="fas fa-info-circle"></i></span>{% endif %}</div>@@ -305,7 +305,7 @@id="test-notification-button"class="btn btn-secondary btn-sm"{% if not setting.value or setting.value.strip() == "" %}disabled{% endif %}>- <i class="fas fa-paper-plane"></i> Test Notification+ <i aria-hidden="true" class="fas fa-paper-plane"></i> Test Notification</button><div id="test-notification-result" class="ldr-test-result" style="display: none;"></div></div>@@ -320,7 +320,7 @@{{ section_title }}</div><div class="ldr-settings-toggle-icon">- <i class="fas fa-chevron-down"></i>+ <i aria-hidden="true" class="fas fa-chevron-down"></i></div></div><div id="{{ section_id }}" class="ldr-settings-section-body">@@ -339,10 +339,10 @@<div class="ldr-form-actions"><button type="reset" class="btn ldr-btn-outline">- <i class="fas fa-undo"></i> Reset Changes+ <i aria-hidden="true" class="fas fa-undo"></i> Reset Changes</button><button type="submit" class="btn btn-primary">- <i class="fas fa-save"></i> Save Changes+ <i aria-hidden="true" class="fas fa-save"></i> Save Changes</button></div></form>diff --git a/src/local_deep_research/web/templates/components/sidebar.html b/src/local_deep_research/web/templates/components/sidebar.htmlindex 6f9f7b4ed3..58eef4e554 100644--- a/src/local_deep_research/web/templates/components/sidebar.html+++ b/src/local_deep_research/web/templates/components/sidebar.html@@ -1,6 +1,6 @@<aside class="ldr-sidebar"><div class="ldr-sidebar-header">- <h2 id="logo-link" style="cursor: pointer;"><i class="fas fa-atom"></i> Deep Research</h2>+ <h2 id="logo-link" style="cursor: pointer;"><i aria-hidden="true" class="fas fa-atom"></i> Deep Research</h2></div><nav class="ldr-sidebar-nav"><!-- Research Section -->@@ -8,14 +8,14 @@<div class="ldr-sidebar-section-label" id="sidebar-research-label" role="heading" aria-level="2">Research</div><ul><li {% if active_page == 'new-research' %}class="active"{% endif %} data-page="new-research">- <a href="/" title="New Research (Ctrl+Shift+1)">- <i class="fas fa-search"></i>+ <a href="/" title="New Research (Ctrl+Shift+1)" aria-label="New Research">+ <i aria-hidden="true" class="fas fa-search"></i><span class="ldr-nav-text">New Research</span></a></li><li {% if active_page == 'history' %}class="active"{% endif %} data-page="history">- <a href="{{ url_for('history.history_page') }}" title="History (Ctrl+Shift+2)">- <i class="fas fa-history"></i>+ <a href="{{ url_for('history.history_page') }}" title="History (Ctrl+Shift+2)" aria-label="History">+ <i aria-hidden="true" class="fas fa-history"></i><span class="ldr-nav-text">History</span></a></li>@@ -27,20 +27,20 @@<div class="ldr-sidebar-section-label" id="sidebar-kb-label" role="heading" aria-level="2">Knowledge Base</div><ul><li {% if active_page == 'library' %}class="active"{% endif %} data-page="library">- <a href="{{ url_for('library.library_page') }}" title="Library">- <i class="fas fa-book"></i>+ <a href="{{ url_for('library.library_page') }}" title="Library" aria-label="Library">+ <i aria-hidden="true" class="fas fa-book"></i><span class="ldr-nav-text">Library</span></a></li><li {% if active_page == 'collections' %}class="active ldr-sidebar-item--nested"{% else %}class="ldr-sidebar-item--nested"{% endif %} data-page="collections">- <a href="{{ url_for('rag.collections_page') }}" title="Collections">- <i class="fas fa-folder-open"></i>+ <a href="{{ url_for('rag.collections_page') }}" title="Collections" aria-label="Collections">+ <i aria-hidden="true" class="fas fa-folder-open"></i><span class="ldr-nav-text">Collections</span></a></li><li {% if active_page == 'download-manager' %}class="active ldr-sidebar-item--nested"{% else %}class="ldr-sidebar-item--nested"{% endif %} data-page="download-manager">- <a href="{{ url_for('library.download_manager_page') }}" title="Download Manager">- <i class="fas fa-download"></i>+ <a href="{{ url_for('library.download_manager_page') }}" title="Download Manager" aria-label="Downloads">+ <i aria-hidden="true" class="fas fa-download"></i><span class="ldr-nav-text">Downloads</span></a></li>@@ -52,14 +52,14 @@<div class="ldr-sidebar-section-label" id="sidebar-news-label" role="heading" aria-level="2">News</div><ul><li {% if active_page == 'news' %}class="active"{% endif %} data-page="news">- <a href="{{ url_for('news.news_page') }}" title="News">- <i class="fas fa-newspaper"></i>+ <a href="{{ url_for('news.news_page') }}" title="News" aria-label="News">+ <i aria-hidden="true" class="fas fa-newspaper"></i><span class="ldr-nav-text">News</span></a></li><li {% if active_page == 'subscriptions' %}class="active"{% endif %} data-page="subscriptions">- <a href="{{ url_for('news.subscriptions_page') }}" title="Subscriptions">- <i class="fas fa-bell"></i>+ <a href="{{ url_for('news.subscriptions_page') }}" title="Subscriptions" aria-label="Subscriptions">+ <i aria-hidden="true" class="fas fa-bell"></i><span class="ldr-nav-text">Subscriptions</span></a></li>@@ -71,20 +71,20 @@<div class="ldr-sidebar-section-label" id="sidebar-analytics-label" role="heading" aria-level="2">Analytics</div><ul><li {% if active_page == 'metrics' %}class="active"{% endif %} data-page="metrics">- <a href="{{ url_for('metrics.metrics_dashboard') }}" title="Metrics (Ctrl+Shift+3)">- <i class="fas fa-chart-bar"></i>+ <a href="{{ url_for('metrics.metrics_dashboard') }}" title="Metrics (Ctrl+Shift+3)" aria-label="Metrics">+ <i aria-hidden="true" class="fas fa-chart-bar"></i><span class="ldr-nav-text">Metrics</span></a></li><li {% if active_page == 'benchmark' %}class="active"{% endif %} data-page="benchmark">- <a href="{{ url_for('benchmark.index') }}" title="Benchmark">- <i class="fas fa-tachometer-alt"></i>+ <a href="{{ url_for('benchmark.index') }}" title="Benchmark" aria-label="Benchmark">+ <i aria-hidden="true" class="fas fa-tachometer-alt"></i><span class="ldr-nav-text">Benchmark</span></a></li><li {% if active_page == 'benchmark-results' %}class="active ldr-sidebar-item--nested"{% else %}class="ldr-sidebar-item--nested"{% endif %} data-page="benchmark-results">- <a href="{{ url_for('benchmark.results') }}" title="Benchmark Results">- <i class="fas fa-chart-line"></i>+ <a href="{{ url_for('benchmark.results') }}" title="Benchmark Results" aria-label="Results">+ <i aria-hidden="true" class="fas fa-chart-line"></i><span class="ldr-nav-text">Results</span></a></li>@@ -96,14 +96,14 @@<div class="ldr-sidebar-section-label" id="sidebar-settings-label" role="heading" aria-level="2">Settings</div><ul><li {% if active_page == 'embedding-settings' %}class="active"{% endif %} data-page="embedding-settings">- <a href="{{ url_for('rag.embedding_settings_page') }}" title="Embedding Settings">- <i class="fas fa-brain"></i>+ <a href="{{ url_for('rag.embedding_settings_page') }}" title="Embedding Settings" aria-label="Embeddings">+ <i aria-hidden="true" class="fas fa-brain"></i><span class="ldr-nav-text">Embeddings</span></a></li><li {% if active_page == 'settings' %}class="active"{% endif %} data-page="settings">- <a href="{{ url_for('settings.settings_page') }}" title="Settings (Ctrl+Shift+4)">- <i class="fas fa-cog"></i>+ <a href="{{ url_for('settings.settings_page') }}" title="Settings (Ctrl+Shift+4)" aria-label="Configuration">+ <i aria-hidden="true" class="fas fa-cog"></i><span class="ldr-nav-text">Configuration</span></a></li>@@ -114,13 +114,13 @@<p>{{ version }}</p><div class="ldr-sidebar-links"><a href="https://github.com/LearningCircuit/local-deep-research/issues" target="_blank" title="Report an issue" aria-label="Report an issue">- <i class="fas fa-bug" aria-hidden="true"></i>+ <i aria-hidden="true" class="fas fa-bug" ></i></a><a href="https://discord.gg/ttcqQeFcJ3" target="_blank" title="Join Discord" aria-label="Join Discord">- <i class="fab fa-discord" aria-hidden="true"></i>+ <i aria-hidden="true" class="fab fa-discord" ></i></a><a href="https://www.reddit.com/r/LocalDeepResearch/" target="_blank" title="Reddit community" aria-label="Reddit community">- <i class="fab fa-reddit" aria-hidden="true"></i>+ <i aria-hidden="true" class="fab fa-reddit" ></i></a></div></div>diff --git a/src/local_deep_research/web/templates/components/storage_mode_modal.html b/src/local_deep_research/web/templates/components/storage_mode_modal.htmlindex 3cf647fd52..ca48bc9435 100644--- a/src/local_deep_research/web/templates/components/storage_mode_modal.html+++ b/src/local_deep_research/web/templates/components/storage_mode_modal.html@@ -2,7 +2,7 @@<div id="storage-mode-modal" class="modal" style="display: none;"><div class="modal-content" style="max-width: 650px;"><div class="modal-header">- <h2><i class="fas fa-database"></i> PDF Storage Mode</h2>+ <h2><i aria-hidden="true" class="fas fa-database"></i> PDF Storage Mode</h2><button class="ldr-close" onclick="closeStorageModeModal()">×</button></div><div class="modal-body">@@ -13,7 +13,7 @@<input type="radio" name="storage_mode" value="database" {% if pdf_storage_mode == 'database' %}checked{% endif %}><div class="ldr-option-content"><div class="ldr-option-header">- <i class="fas fa-database ldr-icon-success"></i>+ <i aria-hidden="true" class="fas fa-database ldr-icon-success"></i><strong>Database (Encrypted)</strong><span class="ldr-badge ldr-badge-success">Recommended</span></div>@@ -25,12 +25,12 @@<input type="radio" name="storage_mode" value="filesystem" {% if pdf_storage_mode == 'filesystem' %}checked{% endif %}><div class="ldr-option-content"><div class="ldr-option-header">- <i class="fas fa-hdd ldr-icon-warning"></i>+ <i aria-hidden="true" class="fas fa-hdd ldr-icon-warning"></i><strong>Filesystem (Unencrypted)</strong></div><p class="ldr-option-description">PDFs saved to disk unencrypted. Faster for large files, compatible with external tools.</p><div class="ldr-option-warning">- <i class="fas fa-exclamation-triangle"></i> Files visible to anyone with disk access+ <i aria-hidden="true" class="fas fa-exclamation-triangle"></i> Files visible to anyone with disk access</div></div></label>@@ -39,7 +39,7 @@<input type="radio" name="storage_mode" value="none" {% if pdf_storage_mode == 'none' %}checked{% endif %}><div class="ldr-option-content"><div class="ldr-option-header">- <i class="fas fa-file-alt ldr-icon-secondary"></i>+ <i aria-hidden="true" class="fas fa-file-alt ldr-icon-secondary"></i><strong>Text Only</strong></div><p class="ldr-option-description">Only extracted text stored. Smallest footprint, re-download PDFs when needed.</p>@@ -49,7 +49,7 @@</div><div class="modal-footer"><button id="storage-mode-confirm-btn" class="btn btn-primary" onclick="confirmStorageModeChange()">- <i class="fas fa-check"></i> Save+ <i aria-hidden="true" class="fas fa-check"></i> Save</button><button class="btn btn-secondary" onclick="closeStorageModeModal()">Cancel</button></div>@@ -219,7 +219,7 @@ async function confirmStorageModeChange() {const btn = document.getElementById('storage-mode-confirm-btn');const originalContent = btn.innerHTML;- btn.innerHTML = '<i class="fas fa-spinner fa-spin"></i> Saving...';+ btn.innerHTML = '<i aria-hidden="true" class="fas fa-spinner fa-spin"></i> Saving...';btn.disabled = true;try {diff --git a/src/local_deep_research/web/templates/pages/benchmark.html b/src/local_deep_research/web/templates/pages/benchmark.htmlindex 363796edfe..e8843c560a 100644--- a/src/local_deep_research/web/templates/pages/benchmark.html+++ b/src/local_deep_research/web/templates/pages/benchmark.html@@ -19,7 +19,7 @@<p class="ldr-page-subtitle">Test and optimize your search configurations</p><div style="margin-top: 10px;"><a href="{{ url_for('benchmark.results') }}" class="btn btn-secondary">- <i class="fas fa-chart-line"></i> View Past Results+ <i aria-hidden="true" class="fas fa-chart-line"></i> View Past Results</a></div></div>@@ -30,7 +30,7 @@<p><strong>Responsible Usage:</strong> Use reasonable example counts to avoid overwhelming search engines. Default of 75 examples is good for testing.</p><p><strong>Requirements:</strong> Benchmarks require an evaluation model for grading. Configure in Evaluation Settings below. Default: OpenRouter with Claude 3.7 Sonnet.</p>- <h4 style="margin-top: 1rem; margin-bottom: 0.5rem;"><i class="fas fa-search"></i> Search Engine Recommendations</h4>+ <h4 style="margin-top: 1rem; margin-bottom: 0.5rem;"><i aria-hidden="true" class="fas fa-search"></i> Search Engine Recommendations</h4><ul style="margin: 0; padding-left: 20px;"><li><strong class="ldr-text-success">Tavily:</strong> Recommended - AI-optimized, reliable results</li><li><strong class="ldr-text-info">Brave:</strong> Independent but lower performance</li>@@ -93,7 +93,7 @@<h3>xbench-DeepSearch</h3><p>100 deep research questions requiring multi-step information seeking</p><div class="ldr-dataset-success-notice">- <i class="fas fa-info-circle"></i> <strong>New:</strong> Advanced benchmark for testing deep research capabilities+ <i aria-hidden="true" class="fas fa-info-circle"></i> <strong>New:</strong> Advanced benchmark for testing deep research capabilities</div></div><div class="ldr-dataset-toggle">@@ -118,7 +118,7 @@<h3>BrowseComp</h3><p>Complex browsing and comparison tasks</p><div class="ldr-dataset-danger-notice">- <i class="fas fa-exclamation-triangle"></i> <strong>Poor Performance Warning:</strong> We currently achieve close to 0% accuracy on BrowseComp.+ <i aria-hidden="true" class="fas fa-exclamation-triangle"></i> <strong>Poor Performance Warning:</strong> We currently achieve close to 0% accuracy on BrowseComp.<br><strong>For testing only:</strong> Limited to 20 examples max to see what this benchmark is about.</div></div>@@ -179,7 +179,7 @@</div><div style="font-size: 0.9rem; color: var(--text-muted); text-align: center;">- <i class="fas fa-info-circle"></i> To change any settings, go to <a href="/" target="_blank" style="color: var(--primary-color);">Settings Dashboard</a>+ <i aria-hidden="true" class="fas fa-info-circle"></i> To change any settings, go to <a href="/" target="_blank" style="color: var(--primary-color);">Settings Dashboard</a></div></div></fieldset>@@ -248,7 +248,7 @@</div><div class="ldr-alert ldr-alert-info" style="margin-top: 15px;">- <i class="fas fa-info-circle"></i>+ <i aria-hidden="true" class="fas fa-info-circle"></i><strong>Evaluation Model Selection:</strong>For accurate benchmark grading, use flagship models from major providers like Claude Sonnet series or GPT-4 class models.Local models and smaller cloud models may produce inconsistent evaluations, affecting benchmark accuracy scores.@@ -261,7 +261,7 @@<!-- Search Engine Warning --><div class="ldr-form-group" id="search-engine-warning" style="display: none;"><div class="ldr-alert ldr-alert-danger">- <i class="fas fa-exclamation-triangle"></i>+ <i aria-hidden="true" class="fas fa-exclamation-triangle"></i><strong>Search Engine Notice:</strong><span id="search-warning-text"></span></div>@@ -281,10 +281,10 @@<!-- Action Buttons --><div class="ldr-form-actions"><button type="button" id="validate-config-btn" class="btn btn-secondary">- <i class="fas fa-check-circle"></i> Validate Configuration+ <i aria-hidden="true" class="fas fa-check-circle"></i> Validate Configuration</button><button type="submit" id="start-benchmark-btn" class="btn btn-primary">- <i class="fas fa-play"></i> Start Benchmark+ <i aria-hidden="true" class="fas fa-play"></i> Start Benchmark</button></div></form>@@ -339,7 +339,7 @@<!-- SearXNG Rate Limiting Warning in Progress --><div id="rate-limit-warning" class="ldr-alert ldr-alert-warning" style="margin-top: 15px; margin-bottom: 15px; display: none;">- <i class="fas fa-exclamation-triangle"></i>+ <i aria-hidden="true" class="fas fa-exclamation-triangle"></i><strong>Rate Limiting Detected!</strong> SearXNG is blocking requests due to too many parallel searches.<br><small><strong>Quick fix:</strong> <code>docker restart searxng</code> or wait 5-10 minutes for limits to reset.</small><br><small><strong>Prevention:</strong> Reduce iterations/questions per iteration in Settings.</small>@@ -355,17 +355,17 @@<!-- Benchmark Control Actions --><div class="ldr-progress-actions" style="margin: 20px 0; text-align: center;"><button id="cancel-benchmark-btn" class="btn ldr-btn-outline ldr-terminate-btn">- <i class="fas fa-stop-circle"></i> Cancel Benchmark+ <i aria-hidden="true" class="fas fa-stop-circle"></i> Cancel Benchmark</button><button id="view-results-btn" class="btn btn-primary" style="display: none;">- <i class="fas fa-eye"></i> View Results+ <i aria-hidden="true" class="fas fa-eye"></i> View Results</button></div><!-- Current Question Display --><div id="current-question-section" class="ldr-benchmark-section" style="margin-top: 20px;"><h4 style="color: var(--primary-color); margin-bottom: 15px;">- <i class="fas fa-question-circle"></i> Current Question+ <i aria-hidden="true" class="fas fa-question-circle"></i> Current Question</h4><div id="current-question-card" class="ldr-question-card"><div class="ldr-question-content">@@ -376,7 +376,7 @@</div></div><div class="ldr-processing-status" id="current-processing-status">- <i class="fas fa-clock"></i> Waiting for benchmark to start...+ <i aria-hidden="true" class="fas fa-clock"></i> Waiting for benchmark to start...</div></div></div>@@ -384,7 +384,7 @@<!-- Performance Charts --><div id="performance-charts-section" class="ldr-charts-section" style="display: none;"><h4 style="color: var(--primary-color); margin-bottom: 15px;">- <i class="fas fa-chart-line"></i> Performance Analysis+ <i aria-hidden="true" class="fas fa-chart-line"></i> Performance Analysis</h4><div class="ldr-charts-grid"><div class="ldr-chart-container">@@ -405,7 +405,7 @@<div class="ldr-chart-title">Search Quality Alert</div><div id="search-quality-status" class="ldr-search-quality-status"><div id="search-status-icon" style="font-size: 2rem; margin-bottom: 10px;">- <i class="fas fa-search"></i>+ <i aria-hidden="true" class="fas fa-search"></i></div><div id="search-status-text" style="font-size: 1.1rem; margin-bottom: 10px;">Waiting for data...@@ -421,7 +421,7 @@<!-- All Results Display --><div id="recent-results-section" class="ldr-benchmark-section" style="margin-top: 20px;"><h4 style="color: var(--primary-color); margin-bottom: 15px;">- <i class="fas fa-history"></i> All Results+ <i aria-hidden="true" class="fas fa-history"></i> All Results</h4><div id="recent-results-container"><div class="ldr-no-results">No results yet...</div>@@ -936,7 +936,7 @@ function showAlert(message, type) {<div class="ldr-settings-alert alert-${window.escapeHtml(type)}"><span>${window.escapeHtml(message)}</span><button type="button" class="ldr-close-alert" onclick="this.parentElement.parentElement.style.display='none'">- <i class="fas fa-times"></i>+ <i aria-hidden="true" class="fas fa-times"></i></button></div>`;@@ -1138,7 +1138,7 @@ function updateCurrentQuestion(status) {const currentProcessingStatus = document.getElementById('current-processing-status');if (status.status === 'in_progress') {- currentProcessingStatus.innerHTML = '<i class="fas fa-spinner fa-spin"></i> Processing...';+ currentProcessingStatus.innerHTML = '<i aria-hidden="true" class="fas fa-spinner fa-spin"></i> Processing...';currentProcessingStatus.className = 'ldr-processing-status ldr-processing';// Show progress info - show what's actually completed, not what's "next"@@ -1147,13 +1147,13 @@ function updateCurrentQuestion(status) {currentDataset.textContent = status.completed_examples < status.total_examples ? 'Active' : 'Completed';currentExampleId.textContent = `${status.completed_examples}/${status.total_examples} processed`;} else if (status.status === 'completed') {- currentProcessingStatus.innerHTML = '<i class="fas fa-check-circle"></i> Benchmark completed!';+ currentProcessingStatus.innerHTML = '<i aria-hidden="true" class="fas fa-check-circle"></i> Benchmark completed!';currentProcessingStatus.className = 'ldr-processing-status ldr-completed';currentQuestionText.textContent = 'All questions processed successfully.';currentDataset.textContent = 'Completed';currentExampleId.textContent = `${status.completed_examples}/${status.total_examples}`;} else {- currentProcessingStatus.innerHTML = '<i class="fas fa-clock"></i> Waiting...';+ currentProcessingStatus.innerHTML = '<i aria-hidden="true" class="fas fa-clock"></i> Waiting...';currentProcessingStatus.className = 'ldr-processing-status';currentQuestionText.textContent = 'No question being processed...';currentDataset.textContent = '--';@@ -1213,7 +1213,7 @@ function displayRecentResults(results) {const resultsHtml = results.map((result, index) => {const statusClass = result.is_correct ? 'ldr-correct' : 'ldr-incorrect';- const statusIcon = result.is_correct ? '<i class="fas fa-check-circle"></i>' : '<i class="fas fa-times-circle"></i>';+ const statusIcon = result.is_correct ? '<i aria-hidden="true" class="fas fa-check-circle"></i>' : '<i aria-hidden="true" class="fas fa-times-circle"></i>';const statusText = result.is_correct ? 'Correct' : 'Incorrect';// Function to create expandable textdiff --git a/src/local_deep_research/web/templates/pages/benchmark_results.html b/src/local_deep_research/web/templates/pages/benchmark_results.htmlindex aab1176fe6..d61ac1cc62 100644--- a/src/local_deep_research/web/templates/pages/benchmark_results.html+++ b/src/local_deep_research/web/templates/pages/benchmark_results.html@@ -62,7 +62,7 @@<!-- Results List --><div id="results-container"><div class="ldr-loading">- <i class="fas fa-spinner fa-spin"></i> Loading benchmark results...+ <i aria-hidden="true" class="fas fa-spinner fa-spin"></i> Loading benchmark results...</div></div>@@ -267,18 +267,18 @@ function createRunCard(run) {<div style="display: flex; gap: 8px; flex-wrap: wrap; justify-content: center;">${status === 'completed' ?`<button class="btn ldr-btn-outline btn-sm ldr-download-btn" onclick="event.stopPropagation(); downloadBenchmarkYAML(${run.id}, false)" title="Summary only">- <i class="fas fa-download"></i> YAML+ <i aria-hidden="true" class="fas fa-download"></i> YAML</button><button class="btn ldr-btn-outline btn-sm ldr-download-btn" onclick="event.stopPropagation(); downloadBenchmarkYAML(${run.id}, true)" title="Summary + individual questions & answers">- <i class="fas fa-download"></i> + Examples+ <i aria-hidden="true" class="fas fa-download"></i> + Examples</button>` : ''}${status === 'in_progress' ?`<button class="btn ldr-btn-outline btn-sm ldr-delete-btn" onclick="event.stopPropagation(); cancelAndDeleteBenchmarkRun(${run.id})">- <i class="fas fa-stop"></i> Cancel & Delete+ <i aria-hidden="true" class="fas fa-stop"></i> Cancel & Delete</button>` :`<button class="btn ldr-btn-outline btn-sm ldr-delete-btn" onclick="event.stopPropagation(); deleteBenchmarkRun(${run.id})">- <i class="fas fa-trash"></i> Delete+ <i aria-hidden="true" class="fas fa-trash"></i> Delete</button>`}</div>@@ -287,7 +287,7 @@ function createRunCard(run) {</div><div class="ldr-expand-indicator">- <i class="fas fa-chevron-down"></i> Click to view detailed results and examples+ <i aria-hidden="true" class="fas fa-chevron-down"></i> Click to view detailed results and examples</div><div class="ldr-results-section" id="results-${run.id}">@@ -358,7 +358,7 @@ async function loadExamples(runId) {const statsHtml = `<div class="ldr-search-stats-section"><h4 class="ldr-section-title">- <i class="fas fa-search"></i> Search Results Statistics+ <i aria-hidden="true" class="fas fa-search"></i> Search Results Statistics</h4><div class="ldr-search-stats-grid"><div class="ldr-stat-item">@@ -389,7 +389,7 @@ async function loadExamples(runId) {<div class="ldr-results-divider"></div><div class="ldr-examples-section"><h4 class="ldr-section-title">- <i class="fas fa-list"></i> Individual Query Results (${data.results.length} shown)+ <i aria-hidden="true" class="fas fa-list"></i> Individual Query Results (${data.results.length} shown)</h4><div class="ldr-examples-grid">${examplesHtml}</div></div>@@ -455,7 +455,7 @@ function formatAvgProcessingTime(run) {function createExampleCard(result) {const statusClass = result.is_correct ? 'ldr-correct' : 'ldr-incorrect';- const statusIcon = result.is_correct ? '<i class="fas fa-check-circle"></i>' : '<i class="fas fa-times-circle"></i>';+ const statusIcon = result.is_correct ? '<i aria-hidden="true" class="fas fa-check-circle"></i>' : '<i aria-hidden="true" class="fas fa-times-circle"></i>';const statusText = result.is_correct ? 'Correct' : 'Incorrect';// Format processing time for individual resultdiff --git a/src/local_deep_research/web/templates/pages/benchmark_simple.html b/src/local_deep_research/web/templates/pages/benchmark_simple.htmlindex 836bb8dc5f..197f3b5a73 100644--- a/src/local_deep_research/web/templates/pages/benchmark_simple.html+++ b/src/local_deep_research/web/templates/pages/benchmark_simple.html@@ -171,7 +171,7 @@<!-- Start Button --><button type="button" id="start-benchmark" class="btn btn-primary ldr-start-button">- <i class="fas fa-play"></i> Start Benchmark+ <i aria-hidden="true" class="fas fa-play"></i> Start Benchmark</button><!-- Progress Section -->@@ -203,7 +203,7 @@<div style="margin-top: 20px; text-align: center;"><button type="button" id="cancel-benchmark" class="btn btn-secondary">- <i class="fas fa-stop"></i> Cancel+ <i aria-hidden="true" class="fas fa-stop"></i> Cancel</button></div></div>@@ -437,7 +437,7 @@ function showAlert(message, type) {<div class="ldr-settings-alert alert-${escapeHtml(type)}"><span>${escapeHtml(message)}</span><button type="button" class="ldr-close-alert" onclick="this.parentElement.parentElement.style.display='none'">- <i class="fas fa-times"></i>+ <i aria-hidden="true" class="fas fa-times"></i></button></div>`;diff --git a/src/local_deep_research/web/templates/pages/collection_create.html b/src/local_deep_research/web/templates/pages/collection_create.htmlindex 25012e9be9..b95cac2bd6 100644--- a/src/local_deep_research/web/templates/pages/collection_create.html+++ b/src/local_deep_research/web/templates/pages/collection_create.html@@ -12,17 +12,17 @@<div class="ldr-rag-header"><div class="ldr-flex-row"><a href="/library/collections" class="ldr-btn-collections ldr-btn-collections-secondary">- <i class="fas fa-arrow-left"></i> Back to Collections+ <i aria-hidden="true" class="fas fa-arrow-left"></i> Back to Collections</a></div>- <h1><i class="fas fa-plus-circle"></i> Create New Collection</h1>+ <h1><i aria-hidden="true" class="fas fa-plus-circle"></i> Create New Collection</h1><p class="ldr-subtitle">Set up a new collection to organize and index your documents</p></div><!-- Create Collection Form --><div class="ldr-rag-section ldr-featured-section"><div class="ldr-section-header">- <h2><i class="fas fa-plus-circle"></i> Collection Details</h2>+ <h2><i aria-hidden="true" class="fas fa-plus-circle"></i> Collection Details</h2></div><form id="create-collection-form">@@ -44,10 +44,10 @@<div class="ldr-form-actions"><button type="button" class="ldr-btn-collections ldr-btn-collections-secondary" onclick="window.location.href='/library/collections'">- <i class="fas fa-times"></i> Cancel+ <i aria-hidden="true" class="fas fa-times"></i> Cancel</button><button type="submit" class="ldr-btn-collections ldr-btn-collections-primary ldr-btn-lg ldr-btn-featured" id="create-collection-btn">- <i class="fas fa-folder-plus"></i> Create Collection+ <i aria-hidden="true" class="fas fa-folder-plus"></i> Create Collection</button></div></form>@@ -59,7 +59,7 @@<!-- Quick Info Section --><div class="ldr-rag-section"><div class="ldr-section-header">- <h2><i class="fas fa-info-circle"></i> What's Next?</h2>+ <h2><i aria-hidden="true" class="fas fa-info-circle"></i> What's Next?</h2></div><div class="ldr-content-padding">@@ -70,13 +70,13 @@<div class="ldr-quick-tips"><div class="ldr-tip-item">- <i class="fas fa-lightbulb"></i>+ <i aria-hidden="true" class="fas fa-lightbulb"></i><div><strong>Tip:</strong> Use descriptive names like "AI Research 2024" instead of generic names</div></div><div class="ldr-tip-item">- <i class="fas fa-folder"></i>+ <i aria-hidden="true" class="fas fa-folder"></i><div><strong>Tip:</strong> Group related documents together for better semantic search results</div>@@ -85,7 +85,7 @@<div class="ldr-section-footer"><a href="/library/collections" class="ldr-btn-collections ldr-btn-collections-secondary ldr-link-button">- <i class="fas fa-arrow-left"></i> Back to Collections+ <i aria-hidden="true" class="fas fa-arrow-left"></i> Back to Collections</a></div></div>diff --git a/src/local_deep_research/web/templates/pages/collection_details.html b/src/local_deep_research/web/templates/pages/collection_details.htmlindex 7b21c2dfbf..d36fee2ead 100644--- a/src/local_deep_research/web/templates/pages/collection_details.html+++ b/src/local_deep_research/web/templates/pages/collection_details.html@@ -14,31 +14,31 @@<div class="ldr-rag-header"><div style="display: flex; align-items: center; gap: 15px; margin-bottom: 10px;"><a href="/library/collections" class="ldr-btn-collections ldr-btn-collections-secondary">- <i class="fas fa-arrow-left"></i> Back to Collections+ <i aria-hidden="true" class="fas fa-arrow-left"></i> Back to Collections</a></div>- <h1 id="collection-title"><i class="fas fa-folder-open"></i> <span id="collection-name">Loading...</span></h1>+ <h1 id="collection-title"><i aria-hidden="true" class="fas fa-folder-open"></i> <span id="collection-name">Loading...</span></h1><p class="ldr-subtitle" id="collection-description"></p></div><!-- Collection Actions --><div class="ldr-rag-section"><div class="ldr-section-header">- <h2><i class="fas fa-tasks"></i> Actions</h2>+ <h2><i aria-hidden="true" class="fas fa-tasks"></i> Actions</h2></div><div class="ldr-collection-actions-grid"><a href="/library/collections/{{ collection_id }}/upload" class="ldr-btn-collections ldr-btn-collections-primary ldr-btn-lg ldr-btn-featured" title="Add PDF, TXT, MD, or HTML files to this collection">- <i class="fas fa-upload"></i> Upload Files+ <i aria-hidden="true" class="fas fa-upload"></i> Upload Files</a><button id="index-collection-btn" class="ldr-btn-collections ldr-btn-collections-success ldr-btn-lg" title="Create searchable embeddings for unindexed documents">- <i class="fas fa-sync"></i> Index All Documents+ <i aria-hidden="true" class="fas fa-sync"></i> Index All Documents</button><button id="reindex-collection-btn" class="ldr-btn-collections ldr-btn-collections-warning ldr-btn-lg" title="Re-process all documents. Use after changing embedding settings.">- <i class="fas fa-redo"></i> Re-Index All Documents+ <i aria-hidden="true" class="fas fa-redo"></i> Re-Index All Documents</button><button id="delete-collection-btn" class="ldr-btn-collections ldr-btn-collections-danger ldr-btn-lg" title="Delete this collection. Documents remain in library but embeddings are removed.">- <i class="fas fa-trash"></i> Delete Collection+ <i aria-hidden="true" class="fas fa-trash"></i> Delete Collection</button></div></div>@@ -46,7 +46,7 @@<!-- Statistics --><div class="ldr-rag-section"><div class="ldr-section-header">- <h2><i class="fas fa-chart-bar"></i> Statistics</h2>+ <h2><i aria-hidden="true" class="fas fa-chart-bar"></i> Statistics</h2></div><div class="ldr-stats-grid">@@ -83,7 +83,7 @@<!-- Embedding Settings --><div class="ldr-rag-section"><div class="ldr-section-header">- <h2><i class="fas fa-brain"></i> {{ tooltip("Embedding Settings", "Locked because changing these requires re-processing ALL documents (can take hours). Set globally in Settings → Embeddings before creating collections.") }}</h2>+ <h2><i aria-hidden="true" class="fas fa-brain"></i> {{ tooltip("Embedding Settings", "Locked because changing these requires re-processing ALL documents (can take hours). Set globally in Settings → Embeddings before creating collections.") }}</h2></div><div class="ldr-embedding-settings-card">@@ -91,15 +91,15 @@<h4>Collection's Embedding Settings</h4><div id="collection-embedding-info" class="ldr-info-box"><div class="ldr-loading-spinner">- <i class="fas fa-spinner fa-spin"></i> Loading settings...+ <i aria-hidden="true" class="fas fa-spinner fa-spin"></i> Loading settings...</div></div><p class="ldr-form-text ldr-text-muted">- <i class="fas fa-lock"></i> These settings are locked for this collection to ensure embedding consistency.+ <i aria-hidden="true" class="fas fa-lock"></i> These settings are locked for this collection to ensure embedding consistency.To use different settings, you would need to re-index the entire collection.</p><p class="ldr-form-text ldr-text-muted" style="margin-top: 10px;">- <i class="fas fa-info-circle"></i> Default embedding settings for new collections can be changed in+ <i aria-hidden="true" class="fas fa-info-circle"></i> Default embedding settings for new collections can be changed in<a href="/library/embedding-settings" style="color: var(--accent-primary);">Embedding Settings</a>.</p></div>@@ -109,9 +109,9 @@<!-- Indexing Progress --><div id="indexing-progress" class="ldr-rag-section" style="display: none;"><div class="ldr-section-header">- <h2><i class="fas fa-spinner fa-spin" id="indexing-spinner"></i> Indexing Progress</h2>+ <h2><i aria-hidden="true" class="fas fa-spinner fa-spin" id="indexing-spinner"></i> Indexing Progress</h2><button id="cancel-indexing-btn" class="ldr-btn-collections ldr-btn-collections-danger" style="display: none;">- <i class="fas fa-times"></i> Cancel Indexing+ <i aria-hidden="true" class="fas fa-times"></i> Cancel Indexing</button></div>@@ -128,14 +128,14 @@<!-- Search Collection --><div class="ldr-rag-section" id="collection-search-section" style="display: none;"><div class="ldr-section-header">- <h2><i class="fas fa-search"></i> Search Collection</h2>+ <h2><i aria-hidden="true" class="fas fa-search"></i> Search Collection</h2></div><div class="ldr-search-row" style="margin-bottom: 1rem;"><input type="text" id="collection-search-input" class="form-control"placeholder="Search this collection semantically..."aria-label="Search this collection semantically" style="flex: 1;"><button id="collection-search-btn" class="ldr-btn-collections ldr-btn-collections-primary">- <i class="fas fa-search"></i> Search+ <i aria-hidden="true" class="fas fa-search"></i> Search</button></div><div id="collection-search-results" aria-live="polite"></div>@@ -144,7 +144,7 @@<!-- Documents List --><div class="ldr-rag-section"><div class="ldr-section-header">- <h2><i class="fas fa-file"></i> Documents</h2>+ <h2><i aria-hidden="true" class="fas fa-file"></i> Documents</h2><div class="ldr-filter-controls"><button class="ldr-btn-collections ldr-btn-outline-primary ldr-active" onclick="filterDocuments('all')">All</button><button class="ldr-btn-collections ldr-btn-outline-success" onclick="filterDocuments('indexed')">Indexed</button>@@ -154,12 +154,12 @@<div id="documents-list" class="ldr-documents-list"><div class="ldr-loading-spinner">- <i class="fas fa-spinner fa-spin"></i> Loading documents...+ <i aria-hidden="true" class="fas fa-spinner fa-spin"></i> Loading documents...</div></div><div id="no-documents-message" class="ldr-empty-state" style="display: none;">- <i class="fas fa-file fa-3x"></i>+ <i aria-hidden="true" class="fas fa-file fa-3x"></i><p>No documents in this collection yet. Use the Upload Files button above to add documents.</p></div></div>diff --git a/src/local_deep_research/web/templates/pages/collection_upload.html b/src/local_deep_research/web/templates/pages/collection_upload.htmlindex ca8ce00f74..5060f543fc 100644--- a/src/local_deep_research/web/templates/pages/collection_upload.html+++ b/src/local_deep_research/web/templates/pages/collection_upload.html@@ -111,17 +111,17 @@<div class="ldr-rag-header"><div style="display: flex; align-items: center; gap: 15px; margin-bottom: 10px;"><a href="/library/collections/{{ collection_id }}" class="ldr-btn-collections ldr-btn-collections-secondary">- <i class="fas fa-arrow-left"></i> Back to Collection+ <i aria-hidden="true" class="fas fa-arrow-left"></i> Back to Collection</a></div>- <h1><i class="fas fa-cloud-upload-alt"></i> <span>Upload Files to {{ collection_name or 'Collection' }}</span></h1>+ <h1><i aria-hidden="true" class="fas fa-cloud-upload-alt"></i> <span>Upload Files to {{ collection_name or 'Collection' }}</span></h1><p class="ldr-subtitle">Add documents to your collection for indexing and search</p></div><!-- Upload Section --><div class="ldr-rag-section" style="background: linear-gradient(135deg, rgba(var(--accent-primary-rgb), 0.1) 0%, rgba(var(--accent-secondary-rgb), 0.1) 100%); border: 2px solid var(--accent-primary);"><div class="ldr-section-header">- <h2><i class="fas fa-upload"></i> 📁 Upload Documents</h2>+ <h2><i aria-hidden="true" class="fas fa-upload"></i> 📁 Upload Documents</h2></div><form id="upload-files-form" enctype="multipart/form-data">@@ -130,11 +130,11 @@<!-- Drag and drop zone --><div id="drop-zone" class="ldr-drop-zone">- <i class="fas fa-cloud-upload-alt fa-4x"></i>+ <i aria-hidden="true" class="fas fa-cloud-upload-alt fa-4x"></i><p class="ldr-drop-zone-text">🚀 Drag and drop files here</p><p class="ldr-drop-zone-subtext">or</p><button type="button" class="ldr-btn-collections ldr-btn-collections-primary" onclick="document.getElementById('files-input').click()">- <i class="fas fa-folder-open"></i> Browse Files+ <i aria-hidden="true" class="fas fa-folder-open"></i> Browse Files</button><input type="file" id="files-input" name="files" multiple style="display: none;"></div>@@ -161,7 +161,7 @@<input type="radio" name="pdf_storage" value="none" {% if upload_pdf_storage == 'none' %}checked{% endif %}><div class="ldr-option-content"><div class="ldr-option-header">- <i class="fas fa-file-alt ldr-icon-secondary"></i>+ <i aria-hidden="true" class="fas fa-file-alt ldr-icon-secondary"></i><strong>Text Only</strong>{% if upload_pdf_storage == 'none' %}<span class="ldr-badge ldr-badge-secondary">Default</span>{% endif %}</div>@@ -174,16 +174,16 @@<input type="radio" name="pdf_storage" value="database" {% if upload_pdf_storage == 'database' %}checked{% endif %}><div class="ldr-option-content"><div class="ldr-option-header">- <i class="fas fa-database ldr-icon-success"></i>+ <i aria-hidden="true" class="fas fa-database ldr-icon-success"></i><strong>Database (Encrypted)</strong>{% if upload_pdf_storage == 'database' %}<span class="ldr-badge ldr-badge-success">Default</span>{% endif %}</div><p class="ldr-option-description">PDFs stored encrypted in your database. Allows viewing/downloading later.</p><div class="ldr-option-warning">- <i class="fas fa-exclamation-triangle"></i> Increases database size significantly+ <i aria-hidden="true" class="fas fa-exclamation-triangle"></i> Increases database size significantly</div><div class="ldr-option-tip">- <i class="fas fa-lightbulb"></i> Tip: Re-upload text-only documents with this option to add the PDF+ <i aria-hidden="true" class="fas fa-lightbulb"></i> Tip: Re-upload text-only documents with this option to add the PDF</div></div></label>@@ -201,10 +201,10 @@<div class="ldr-form-actions"><button type="button" class="ldr-btn-collections ldr-btn-collections-secondary" onclick="window.location.href='/library/collections/{{ collection_id }}'">- <i class="fas fa-times"></i> Cancel+ <i aria-hidden="true" class="fas fa-times"></i> Cancel</button><button type="submit" class="ldr-btn-collections ldr-btn-collections-primary" style="font-size: 1.2rem; padding: 1rem 2rem; min-width: 200px;">- <i class="fas fa-upload"></i> 🚀 Upload Files+ <i aria-hidden="true" class="fas fa-upload"></i> 🚀 Upload Files</button></div></form>@@ -213,7 +213,7 @@<!-- Instructions Section --><div class="ldr-rag-section"><div class="ldr-section-header">- <h2><i class="fas fa-info-circle"></i> Upload Instructions</h2>+ <h2><i aria-hidden="true" class="fas fa-info-circle"></i> Upload Instructions</h2></div><div style="padding: 1rem;">diff --git a/src/local_deep_research/web/templates/pages/collections.html b/src/local_deep_research/web/templates/pages/collections.htmlindex 9e8cecc586..e2e25352d7 100644--- a/src/local_deep_research/web/templates/pages/collections.html+++ b/src/local_deep_research/web/templates/pages/collections.html@@ -8,7 +8,7 @@{% block content %}<div class="ldr-rag-manager-container"><div class="ldr-rag-header">- <h1><i class="fas fa-folder-open"></i> Document Collections</h1>+ <h1><i aria-hidden="true" class="fas fa-folder-open"></i> Document Collections</h1><p class="ldr-subtitle">Manage your document collections for {{ tooltip("RAG-enabled searches", "Upload your documents, index them, then select a collection as 'search engine' when researching. AI will search YOUR files instead of the web.") }}</p></div>@@ -26,7 +26,7 @@<!-- Collections Section --><div class="ldr-rag-section"><div class="ldr-section-header">- <h2><i class="fas fa-folder"></i> My Collections</h2>+ <h2><i aria-hidden="true" class="fas fa-folder"></i> My Collections</h2><div style="display: flex; align-items: center; gap: 20px;"><!-- Auto-Index Toggle --><label class="ldr-checkbox-label" style="display: flex; align-items: center; cursor: pointer; gap: 8px; font-size: 14px;">@@ -34,10 +34,10 @@id="auto-index-toggle"class="ldr-settings-checkbox"style="width: 16px; height: 16px;">- <span><i class="fas fa-magic"></i> {{ tooltip("Auto-index new documents", "When enabled, documents uploaded or downloaded to any collection are automatically indexed for semantic search.") }}</span>+ <span><i aria-hidden="true" class="fas fa-magic"></i> {{ tooltip("Auto-index new documents", "When enabled, documents uploaded or downloaded to any collection are automatically indexed for semantic search.") }}</span></label><a href="/library/collections/create" id="create-collection-btn" class="ldr-btn-collections ldr-btn-collections-primary">- <i class="fas fa-plus"></i> Create Collection+ <i aria-hidden="true" class="fas fa-plus"></i> Create Collection</a></div></div>@@ -47,7 +47,7 @@</div><div id="no-collections-message" class="ldr-empty-state" style="display: none;">- <i class="fas fa-folder-open fa-3x"></i>+ <i aria-hidden="true" class="fas fa-folder-open fa-3x"></i><p>No collections yet</p><p class="ldr-text-muted">Create your first collection to organize your documents</p></div>diff --git a/src/local_deep_research/web/templates/pages/context_overflow.html b/src/local_deep_research/web/templates/pages/context_overflow.htmlindex b168cfe8c9..be05e99d07 100644--- a/src/local_deep_research/web/templates/pages/context_overflow.html+++ b/src/local_deep_research/web/templates/pages/context_overflow.html@@ -39,14 +39,14 @@{% endcall %}<div id="loading" class="ldr-loading-spinner" style="text-align: center; padding: 3rem;">- <i class="fas fa-spinner fa-spin fa-2x"></i>+ <i aria-hidden="true" class="fas fa-spinner fa-spin fa-2x"></i><p>Loading token usage data...</p></div><div id="content" style="display: none;"><!-- Warning Banner if high truncation rate --><div id="warning-banner" class="ldr-warning-banner" style="display: none;">- <i class="fas fa-exclamation-triangle"></i>+ <i aria-hidden="true" class="fas fa-exclamation-triangle"></i><div><strong>High Context Truncation Detected!</strong><p style="margin: 0.25rem 0 0 0; font-size: 0.875rem;">@@ -59,13 +59,13 @@<!-- Token Summary Overview Cards (always populated) --><div class="ldr-card"><div class="card-header">- <h2><i class="fas fa-chart-line"></i> Token Usage Overview</h2>+ <h2><i aria-hidden="true" class="fas fa-chart-line"></i> Token Usage Overview</h2></div><div class="ldr-card-content"><div class="ldr-overflow-grid"><div class="ldr-overflow-card"><div class="ldr-metric-icon">- <i class="fas fa-exchange-alt"></i>+ <i aria-hidden="true" class="fas fa-exchange-alt"></i></div><div class="ldr-metric-label">Total Requests</div><div class="ldr-metric-value" id="summary-total-requests">0</div>@@ -76,7 +76,7 @@<div class="ldr-overflow-card"><div class="ldr-metric-icon">- <i class="fas fa-coins"></i>+ <i aria-hidden="true" class="fas fa-coins"></i></div><div class="ldr-metric-label">Total Tokens</div><div class="ldr-metric-value" id="summary-total-tokens">0</div>@@ -87,7 +87,7 @@<div class="ldr-overflow-card"><div class="ldr-metric-icon">- <i class="fas fa-arrow-right"></i>+ <i aria-hidden="true" class="fas fa-arrow-right"></i></div><div class="ldr-metric-label">Avg Prompt Tokens</div><div class="ldr-metric-value" id="summary-avg-prompt">0</div>@@ -98,7 +98,7 @@<div class="ldr-overflow-card"><div class="ldr-metric-icon">- <i class="fas fa-arrow-up"></i>+ <i aria-hidden="true" class="fas fa-arrow-up"></i></div><div class="ldr-metric-label">Max Prompt Tokens</div><div class="ldr-metric-value" id="summary-max-prompt">0</div>@@ -113,7 +113,7 @@<!-- Token Usage Over Time Chart (always has data) --><div class="ldr-card" style="margin-top: 2rem;"><div class="card-header">- <h2><i class="fas fa-chart-bar"></i> Token Usage Over Time</h2>+ <h2><i aria-hidden="true" class="fas fa-chart-bar"></i> Token Usage Over Time</h2></div><div class="ldr-card-content"><div class="ldr-chart-container">@@ -125,7 +125,7 @@<!-- Model Usage Breakdown (always has data) --><div class="ldr-card" style="margin-top: 2rem;"><div class="card-header">- <h2><i class="fas fa-robot"></i> Model Usage Breakdown</h2>+ <h2><i aria-hidden="true" class="fas fa-robot"></i> Model Usage Breakdown</h2></div><div class="ldr-card-content"><div id="model-token-stats">@@ -137,7 +137,7 @@<!-- Phase Breakdown Chart (always has data) --><div class="ldr-card" style="margin-top: 2rem;"><div class="card-header">- <h2><i class="fas fa-tasks"></i> Token Usage by Phase</h2>+ <h2><i aria-hidden="true" class="fas fa-tasks"></i> Token Usage by Phase</h2></div><div class="ldr-card-content"><div id="phase-breakdown-container">@@ -156,7 +156,7 @@<!-- All Requests Detailed Table --><div class="ldr-card" style="margin-top: 2rem;"><div class="card-header" style="display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 0.5rem;">- <h2><i class="fas fa-table"></i> All Requests Details</h2>+ <h2><i aria-hidden="true" class="fas fa-table"></i> All Requests Details</h2><input type="text" id="requests-search" class="ldr-table-search" placeholder="Search by model, query, phase..."></div><div class="ldr-card-content">@@ -425,7 +425,7 @@if (!stats || stats.length === 0) {container.innerHTML = `<div class="ldr-no-data-message">- <i class="fas fa-robot"></i>+ <i aria-hidden="true" class="fas fa-robot"></i><p>No model data available yet</p></div>`;@@ -483,7 +483,7 @@if (!phaseData || phaseData.length === 0) {container.innerHTML = `<div class="ldr-no-data-message">- <i class="fas fa-tasks"></i>+ <i aria-hidden="true" class="fas fa-tasks"></i><p>No phase data available yet</p></div>`;@@ -553,13 +553,13 @@<!-- Context Overflow Overview --><div class="ldr-card" style="margin-top: 2rem;"><div class="card-header">- <h2><i class="fas fa-percentage"></i> Context Overflow Overview</h2>+ <h2><i aria-hidden="true" class="fas fa-percentage"></i> Context Overflow Overview</h2></div><div class="ldr-card-content"><div class="ldr-overflow-grid"><div class="ldr-overflow-card"><div class="ldr-metric-icon" style="background: var(--warning-color);">- <i class="fas fa-percentage"></i>+ <i aria-hidden="true" class="fas fa-percentage"></i></div><div class="ldr-metric-label">Truncation Rate</div><div class="ldr-metric-value" id="truncation-rate">0%</div>@@ -569,7 +569,7 @@</div><div class="ldr-overflow-card"><div class="ldr-metric-icon" style="background: var(--error-color);">- <i class="fas fa-cut"></i>+ <i aria-hidden="true" class="fas fa-cut"></i></div><div class="ldr-metric-label">Avg Tokens Lost</div><div class="ldr-metric-value" id="avg-tokens-lost">0</div>@@ -579,7 +579,7 @@</div><div class="ldr-overflow-card"><div class="ldr-metric-icon">- <i class="fas fa-microchip"></i>+ <i aria-hidden="true" class="fas fa-microchip"></i></div><div class="ldr-metric-label">Models Tracked</div><div class="ldr-metric-value" id="models-tracked">0</div>@@ -589,7 +589,7 @@</div><div class="ldr-overflow-card"><div class="ldr-metric-icon">- <i class="fas fa-database"></i>+ <i aria-hidden="true" class="fas fa-database"></i></div><div class="ldr-metric-label">Data Coverage</div><div class="ldr-metric-value" id="data-coverage">0%</div>@@ -604,7 +604,7 @@<!-- Scatter Chart: Request Size vs Context Limit --><div class="ldr-card" style="margin-top: 2rem;"><div class="card-header">- <h2><i class="fas fa-chart-area"></i> Request Size vs Context Limits</h2>+ <h2><i aria-hidden="true" class="fas fa-chart-area"></i> Request Size vs Context Limits</h2></div><div class="ldr-card-content"><div class="ldr-chart-container">@@ -612,7 +612,7 @@</div><div style="margin-top: 1rem; padding: 1rem; background: var(--bg-tertiary); border-radius: 0.375rem;"><p style="margin: 0; color: var(--text-secondary); font-size: 0.875rem;">- <i class="fas fa-info-circle" style="color: var(--primary-color); margin-right: 0.5rem;"></i>+ <i aria-hidden="true" class="fas fa-info-circle" style="color: var(--primary-color); margin-right: 0.5rem;"></i><strong>Chart Guide:</strong> Points above the red line indicate truncated requests.The horizontal lines show different context limits configured for your models.</p>@@ -623,7 +623,7 @@<!-- Model Context Usage --><div class="ldr-card" style="margin-top: 2rem;"><div class="card-header">- <h2><i class="fas fa-robot"></i> Model Context Usage</h2>+ <h2><i aria-hidden="true" class="fas fa-robot"></i> Model Context Usage</h2></div><div class="ldr-card-content"><div id="model-stats"></div>@@ -633,7 +633,7 @@<!-- Recent Truncated Requests --><div class="ldr-card" style="margin-top: 2rem;"><div class="card-header">- <h2><i class="fas fa-exclamation-triangle"></i> Recent Truncated Requests</h2>+ <h2><i aria-hidden="true" class="fas fa-exclamation-triangle"></i> Recent Truncated Requests</h2></div><div class="ldr-card-content"><div id="truncated-list"></div>@@ -643,7 +643,7 @@<!-- Context Limit Distribution --><div class="ldr-card" style="margin-top: 2rem;"><div class="card-header">- <h2><i class="fas fa-chart-pie"></i> Context Limit Distribution</h2>+ <h2><i aria-hidden="true" class="fas fa-chart-pie"></i> Context Limit Distribution</h2></div><div class="ldr-card-content"><div style="display: grid; grid-template-columns: 1fr 2fr; gap: 2rem;">@@ -681,11 +681,11 @@section.innerHTML = `<div class="ldr-card" style="margin-top: 2rem;"><div class="card-header">- <h2><i class="fas fa-info-circle"></i> Context Overflow Analytics</h2>+ <h2><i aria-hidden="true" class="fas fa-info-circle"></i> Context Overflow Analytics</h2></div><div class="ldr-card-content"><div class="ldr-info-message">- <i class="fas fa-info-circle"></i>+ <i aria-hidden="true" class="fas fa-info-circle"></i><p>Context limits will be tracked automatically for new research sessions.</p><p style="font-size: 0.875rem; margin-top: 0.5rem;">Your local model context window is configured in <a href="/settings" style="color: var(--primary-color);">Settings</a> > LLM.@@ -808,7 +808,7 @@if (modelStats.length === 0) {container.innerHTML = `<div class="ldr-no-data-message">- <i class="fas fa-robot"></i>+ <i aria-hidden="true" class="fas fa-robot"></i><p>No model data available</p></div>`;@@ -867,7 +867,7 @@if (requests.length === 0) {container.innerHTML = `<div class="ldr-no-data-message">- <i class="fas fa-check-circle ldr-icon-success"></i>+ <i aria-hidden="true" class="fas fa-check-circle ldr-icon-success"></i><p>No truncated requests found</p><p style="font-size: 0.875rem;">All your requests are within context limits!</p></div>@@ -1118,7 +1118,7 @@<div class="ldr-card"><div class="ldr-card-content"><div class="ldr-no-data-message">- <i class="fas fa-exclamation-circle ldr-icon-error"></i>+ <i aria-hidden="true" class="fas fa-exclamation-circle ldr-icon-error"></i><p>Error loading token usage data</p><p style="font-size: 0.875rem;">Please try refreshing the page</p></div>diff --git a/src/local_deep_research/web/templates/pages/cost_analytics.html b/src/local_deep_research/web/templates/pages/cost_analytics.htmlindex 9fb45dbda2..4d1e058f98 100644--- a/src/local_deep_research/web/templates/pages/cost_analytics.html+++ b/src/local_deep_research/web/templates/pages/cost_analytics.html@@ -15,9 +15,9 @@<!-- Header --><div class="ldr-cost-header"><div class="ldr-cost-title">- <h1><i class="fas fa-dollar-sign"></i> Cost Analytics <span style="color: var(--warning-color); font-size: 0.75em; font-weight: normal;">(Experimental)</span></h1>+ <h1><i aria-hidden="true" class="fas fa-dollar-sign"></i> Cost Analytics <span style="color: var(--warning-color); font-size: 0.75em; font-weight: normal;">(Experimental)</span></h1><a href="/metrics" class="ldr-back-button">- <i class="fas fa-arrow-left"></i> Back to Metrics+ <i aria-hidden="true" class="fas fa-arrow-left"></i> Back to Metrics</a></div>@@ -43,14 +43,14 @@<!-- Loading State --><div id="loading" class="ldr-loading">- <i class="fas fa-spinner fa-spin"></i>+ <i aria-hidden="true" class="fas fa-spinner fa-spin"></i><h3>Loading Cost Analytics...</h3><p>Calculating costs and generating insights</p></div><!-- Error State --><div id="error" class="ldr-error" style="display: none;">- <i class="fas fa-exclamation-triangle"></i>+ <i aria-hidden="true" class="fas fa-exclamation-triangle"></i><h3>Error Loading Cost Data</h3><p>Unable to load cost analytics. Please try again later.</p></div>@@ -62,12 +62,12 @@<div class="ldr-cost-card"><div class="ldr-cost-card-header"><div class="ldr-cost-icon">- <i class="fas fa-coins"></i>+ <i aria-hidden="true" class="fas fa-coins"></i></div><div><h3 class="ldr-cost-card-title ldr-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>+ <i aria-hidden="true" class="fas fa-info-circle ldr-info-icon"></i></h3></div></div>@@ -78,12 +78,12 @@<div class="ldr-cost-card"><div class="ldr-cost-card-header"><div class="ldr-cost-icon">- <i class="fas fa-chart-line"></i>+ <i aria-hidden="true" class="fas fa-chart-line"></i></div><div><h3 class="ldr-cost-card-title ldr-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>+ <i aria-hidden="true" class="fas fa-info-circle ldr-info-icon"></i></h3></div></div>@@ -94,12 +94,12 @@<div class="ldr-cost-card"><div class="ldr-cost-card-header"><div class="ldr-cost-icon">- <i class="fas fa-robot"></i>+ <i aria-hidden="true" class="fas fa-robot"></i></div><div><h3 class="ldr-cost-card-title ldr-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>+ <i aria-hidden="true" class="fas fa-info-circle ldr-info-icon"></i></h3></div></div>@@ -110,12 +110,12 @@<div class="ldr-cost-card"><div class="ldr-cost-card-header"><div class="ldr-cost-icon">- <i class="fas fa-leaf"></i>+ <i aria-hidden="true" class="fas fa-leaf"></i></div><div><h3 class="ldr-cost-card-title ldr-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>+ <i aria-hidden="true" class="fas fa-info-circle ldr-info-icon"></i></h3></div></div>@@ -127,9 +127,9 @@<!-- Cost Trends Chart --><div class="ldr-chart-container"><h3 class="ldr-chart-title ldr-tooltip" data-tooltip="Shows how your research costs have changed over time. Use this to identify spending patterns and budget more effectively for future research.">- <i class="fas fa-chart-area"></i>+ <i aria-hidden="true" class="fas fa-chart-area"></i>Cost Trends Over Time- <i class="fas fa-info-circle ldr-info-icon"></i>+ <i aria-hidden="true" class="fas fa-info-circle ldr-info-icon"></i></h3><div class="ldr-chart-canvas"><canvas id="cost-trends-chart"></canvas>@@ -139,9 +139,9 @@<!-- Provider Breakdown Chart --><div class="ldr-chart-container"><h3 class="ldr-chart-title ldr-tooltip" data-tooltip="Shows usage breakdown by provider (OpenAI, Anthropic, Ollama, etc). Helps you understand which providers you rely on most and identify opportunities to use more cost-effective local models.">- <i class="fas fa-chart-pie"></i>+ <i aria-hidden="true" class="fas fa-chart-pie"></i>Usage by Provider- <i class="fas fa-info-circle ldr-info-icon"></i>+ <i aria-hidden="true" class="fas fa-info-circle ldr-info-icon"></i></h3><div class="ldr-chart-canvas"><canvas id="provider-chart"></canvas>@@ -151,9 +151,9 @@<!-- Model Cost Comparison Chart --><div class="ldr-chart-container"><h3 class="ldr-chart-title ldr-tooltip" data-tooltip="Compares the total cost spent on each LLM model with provider information. Local models (Ollama, LM Studio) show as $0.00 while commercial models show actual costs.">- <i class="fas fa-chart-bar"></i>+ <i aria-hidden="true" class="fas fa-chart-bar"></i>Cost by Model & Provider- <i class="fas fa-info-circle ldr-info-icon"></i>+ <i aria-hidden="true" class="fas fa-info-circle ldr-info-icon"></i></h3><div class="ldr-chart-canvas"><canvas id="model-cost-chart"></canvas>@@ -164,9 +164,9 @@<div class="ldr-cost-table"><div class="ldr-cost-table-header"><h3 class="ldr-cost-table-title ldr-tooltip" data-tooltip="Your most expensive individual research sessions. Click on any session to view its detailed results and understand what drove the higher costs.">- <i class="fas fa-fire"></i>+ <i aria-hidden="true" class="fas fa-fire"></i>Most Expensive Research Sessions- <i class="fas fa-info-circle ldr-info-icon"></i>+ <i aria-hidden="true" class="fas fa-info-circle ldr-info-icon"></i></h3></div><div class="ldr-cost-table-content" id="expensive-research-list">@@ -176,7 +176,7 @@<!-- Cost Optimization Tips --><div class="ldr-cost-optimization">- <h3><i class="fas fa-lightbulb"></i> Cost Optimization Insights</h3>+ <h3><i aria-hidden="true" class="fas fa-lightbulb"></i> Cost Optimization Insights</h3><ul id="optimization-tips"><!-- Populated by JavaScript --></ul>@@ -185,7 +185,7 @@<!-- No Data State --><div id="no-data" class="ldr-no-data" style="display: none;">- <i class="fas fa-chart-pie"></i>+ <i aria-hidden="true" class="fas fa-chart-pie"></i><h3>No Cost Data Available</h3><p>Start some research sessions to see cost analytics here.</p><a href="/research" style="color: var(--primary-color); text-decoration: none; font-weight: 500;">@@ -195,12 +195,12 @@<!-- Page Information Section --><div class="ldr-page-info">- <h3><i class="fas fa-info-circle"></i> Understanding Cost Analytics</h3>+ <h3><i aria-hidden="true" class="fas fa-info-circle"></i> Understanding Cost Analytics</h3><div class="ldr-info-grid"><!-- What We Track --><div class="ldr-info-section">- <h4><i class="fas fa-chart-pie"></i> What We Track</h4>+ <h4><i aria-hidden="true" class="fas fa-chart-pie"></i> What We Track</h4><ul><li><strong>Token Usage:</strong> Input and output tokens for each LLM call</li><li><strong>Provider Information:</strong> Track which provider (OpenAI, Ollama, etc.) was used</li>@@ -214,7 +214,7 @@<!-- How Costs Are Calculated --><div class="ldr-info-section">- <h4><i class="fas fa-calculator"></i> How Costs Are Calculated</h4>+ <h4><i aria-hidden="true" class="fas fa-calculator"></i> How Costs Are Calculated</h4><ul><li><strong>Input Tokens:</strong> Charged at prompt pricing rate (usually lower)</li><li><strong>Output Tokens:</strong> Charged at completion pricing rate (usually higher)</li>@@ -228,7 +228,7 @@<!-- Pricing Sources --><div class="ldr-info-section">- <h4><i class="fas fa-database"></i> Pricing Sources</h4>+ <h4><i aria-hidden="true" class="fas fa-database"></i> Pricing Sources</h4><ul><li><strong>OpenAI:</strong> GPT-4, GPT-4 Turbo, GPT-4o, GPT-3.5 Turbo pricing</li><li><strong>Anthropic:</strong> Claude-3 Opus, Sonnet, Haiku, Claude-3.5 pricing</li>@@ -240,7 +240,7 @@<!-- Cost Optimization Tips --><div class="ldr-info-section">- <h4><i class="fas fa-lightbulb"></i> Cost Optimization Strategies</h4>+ <h4><i aria-hidden="true" class="fas fa-lightbulb"></i> Cost Optimization Strategies</h4><ul><li><strong>Model Selection:</strong> Use smaller models for simple tasks</li><li><strong>Research Mode:</strong> Choose "Quick" mode for basic queries</li>@@ -252,7 +252,7 @@<!-- Understanding the Data --><div class="ldr-info-section">- <h4><i class="fas fa-chart-line"></i> Understanding the Data</h4>+ <h4><i aria-hidden="true" class="fas fa-chart-line"></i> Understanding the Data</h4><ul><li><strong>Estimates Only:</strong> Costs are estimates based on current pricing</li><li><strong>Real Usage:</strong> Data reflects your actual token consumption</li>@@ -264,7 +264,7 @@<!-- Local Model Pricing Estimates --><div class="ldr-info-section">- <h4><i class="fas fa-home"></i> Local Model Pricing Estimates</h4>+ <h4><i aria-hidden="true" class="fas fa-home"></i> Local Model Pricing Estimates</h4><ul><li><strong>Zero API Costs:</strong> Local models (Ollama, LM Studio) have no API fees</li><li><strong>Savings Calculation:</strong> Compares your usage against equivalent commercial models</li>@@ -277,7 +277,7 @@<!-- Privacy & Data --><div class="ldr-info-section">- <h4><i class="fas fa-shield-alt"></i> Privacy & Data</h4>+ <h4><i aria-hidden="true" class="fas fa-shield-alt"></i> Privacy & Data</h4><ul><li><strong>Local Storage:</strong> All cost data is stored locally on your device</li><li><strong>No Sharing:</strong> Cost information is never shared or transmitted</li>@@ -291,7 +291,7 @@<!-- Important Note --><div class="ldr-info-note"><p>- <i class="fas fa-exclamation-triangle" style="color: var(--primary-color); margin-right: 0.5rem;"></i>+ <i aria-hidden="true" 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.Actual costs may vary due to pricing changes, promotional rates, or billing adjustments.Always refer to your official provider bills for exact charges.@@ -302,7 +302,7 @@<!-- Local Model Pricing Disclaimer --><div class="ldr-info-note" style="margin-top: 1rem; border-left-color: var(--warning-color);"><p>- <i class="fas fa-home" style="color: var(--warning-color); margin-right: 0.5rem;"></i>+ <i aria-hidden="true" class="fas fa-home" style="color: var(--warning-color); 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.This estimate uses conservative baseline pricing (~$0.0015 per 1K tokens) and should be viewed as an approximation only.<br><br>diff --git a/src/local_deep_research/web/templates/pages/document_chunks.html b/src/local_deep_research/web/templates/pages/document_chunks.htmlindex 8e2684be11..7b2035686f 100644--- a/src/local_deep_research/web/templates/pages/document_chunks.html+++ b/src/local_deep_research/web/templates/pages/document_chunks.html@@ -7,11 +7,11 @@{% block content %}<div class="ldr-chunks-container"><a href="/library/document/{{ document.id }}" class="ldr-back-button">- <i class="fas fa-arrow-left"></i> Back to Document+ <i aria-hidden="true" class="fas fa-arrow-left"></i> Back to Document</a><div class="ldr-chunks-header">- <h1><i class="fas fa-puzzle-piece"></i> Document Chunks</h1>+ <h1><i aria-hidden="true" class="fas fa-puzzle-piece"></i> Document Chunks</h1><div class="ldr-chunks-stats"><strong>Document:</strong> {{ document.filename or document.title or "Untitled" }}<br><strong>Total Chunks:</strong> {{ total_chunks }} chunk{{ 's' if total_chunks != 1 else '' }} across {{ chunks_by_collection|length }} collection{{ 's' if chunks_by_collection|length != 1 else '' }}@@ -48,7 +48,7 @@<div class="ldr-chunk-text">{{ chunk.text }}</div><div class="ldr-embedding-info">- <i class="fas fa-brain"></i>+ <i aria-hidden="true" class="fas fa-brain"></i><strong>Embedding:</strong> {{ chunk.embedding_model }} ({{ chunk.embedding_model_type }}){% if chunk.embedding_dimension %}| <strong>Dimension:</strong> {{ chunk.embedding_dimension }}@@ -61,7 +61,7 @@{% endfor %}{% else %}<div class="ldr-no-chunks">- <i class="fas fa-inbox" style="font-size: 48px; margin-bottom: 20px; display: block;"></i>+ <i aria-hidden="true" class="fas fa-inbox" style="font-size: 48px; margin-bottom: 20px; display: block;"></i><p>No chunks found for this document.</p><p>The document may not be indexed yet.</p></div>diff --git a/src/local_deep_research/web/templates/pages/document_details.html b/src/local_deep_research/web/templates/pages/document_details.htmlindex 367c093d37..cb8af560a0 100644--- a/src/local_deep_research/web/templates/pages/document_details.html+++ b/src/local_deep_research/web/templates/pages/document_details.html@@ -9,11 +9,11 @@<!-- Back button and header --><div class="ldr-document-header"><a href="/library" class="ldr-btn ldr-btn-secondary">- <i class="fas fa-arrow-left"></i> Back to Library+ <i aria-hidden="true" class="fas fa-arrow-left"></i> Back to Library</a><h1 class="ldr-document-title">- <i class="fas fa-file-pdf"></i> {{ document.document_title or "Untitled Document" }}+ <i aria-hidden="true" class="fas fa-file-pdf"></i> {{ document.document_title or "Untitled Document" }}</h1>{% if document.authors %}@@ -29,25 +29,25 @@<div class="ldr-document-actions">{% if document.has_pdf %}<a href="/library/document/{{ document.id }}/pdf" target="_blank" class="ldr-btn ldr-btn-danger">- <i class="fas fa-file-pdf"></i> View PDF+ <i aria-hidden="true" class="fas fa-file-pdf"></i> View PDF</a>{% endif %}{% if document.has_text_db %}<a href="/library/document/{{ document.id }}/txt" target="_blank" class="ldr-btn ldr-btn-success">- <i class="fas fa-file-alt"></i> View Text+ <i aria-hidden="true" class="fas fa-file-alt"></i> View Text</a>{% endif %}{% if document.has_rag_indexed %}<a href="/library/document/{{ document.id }}/chunks" class="ldr-btn ldr-btn-info">- <i class="fas fa-puzzle-piece"></i> View Chunks ({{ document.rag_chunk_count }})+ <i aria-hidden="true" class="fas fa-puzzle-piece"></i> View Chunks ({{ document.rag_chunk_count }})</a>{% endif %}{% if document.original_url %}<a href="{{ document.original_url }}" target="_blank" class="ldr-btn ldr-btn-secondary">- <i class="fas fa-external-link-alt"></i> Original Source+ <i aria-hidden="true" class="fas fa-external-link-alt"></i> Original Source</a>{% endif %}</div>@@ -55,7 +55,7 @@<!-- Document Information --><div class="ldr-metadata-section">- <h2><i class="fas fa-info-circle"></i> Document Information</h2>+ <h2><i aria-hidden="true" class="fas fa-info-circle"></i> Document Information</h2><div class="ldr-metadata-grid"><div class="ldr-metadata-item"><div class="ldr-metadata-label">Document ID</div>@@ -102,7 +102,7 @@<!-- Academic Identifiers -->{% if document.doi or document.arxiv_id or document.pmid or document.pmcid or document.isbn %}<div class="ldr-metadata-section">- <h2><i class="fas fa-fingerprint"></i> Academic Identifiers</h2>+ <h2><i aria-hidden="true" class="fas fa-fingerprint"></i> Academic Identifiers</h2><div class="ldr-metadata-grid">{% if document.doi %}<div class="ldr-metadata-item">@@ -153,7 +153,7 @@<!-- Publication Information -->{% if document.published_date %}<div class="ldr-metadata-section">- <h2><i class="fas fa-calendar"></i> Publication Information</h2>+ <h2><i aria-hidden="true" class="fas fa-calendar"></i> Publication Information</h2><div class="ldr-metadata-grid"><div class="ldr-metadata-item"><div class="ldr-metadata-label">Published Date</div>@@ -166,14 +166,14 @@<!-- Collections -->{% if document.collections %}<div class="ldr-metadata-section">- <h2><i class="fas fa-folder"></i> Collections</h2>+ <h2><i aria-hidden="true" class="fas fa-folder"></i> Collections</h2><div class="ldr-metadata-value"><div style="display: flex; flex-wrap: wrap; gap: 10px;">{% for collection in document.collections %}<a href="/library/collections/{{ collection.id }}"class="ldr-btn ldr-btn-secondary"style="text-decoration: none; display: flex; align-items: center; gap: 8px;">- <i class="fas fa-folder-open"></i>+ <i aria-hidden="true" class="fas fa-folder-open"></i><span>{{ collection.name }}</span>{% if collection.indexed %}<span class="ldr-badge ldr-badge-success">@@ -193,7 +193,7 @@<!-- RAG/Indexing Status --><div class="ldr-metadata-section">- <h2><i class="fas fa-search"></i> RAG & Indexing Status</h2>+ <h2><i aria-hidden="true" class="fas fa-search"></i> RAG & Indexing Status</h2><div class="ldr-metadata-grid"><div class="ldr-metadata-item"><div class="ldr-metadata-label">RAG Indexed</div>@@ -201,13 +201,13 @@{% if document.has_rag_indexed %}<a href="/library/document/{{ document.id }}/chunks" style="text-decoration: none; color: inherit;"><div class="ldr-rag-status" style="cursor: pointer;">- <i class="fas fa-check-circle" style="color: var(--success-color);"></i>- <span>Yes ({{ document.rag_chunk_count }} chunks) <i class="fas fa-external-link-alt" style="font-size: 0.8em; margin-left: 5px;"></i></span>+ <i aria-hidden="true" class="fas fa-check-circle" style="color: var(--success-color);"></i>+ <span>Yes ({{ document.rag_chunk_count }} chunks) <i aria-hidden="true" class="fas fa-external-link-alt" style="font-size: 0.8em; margin-left: 5px;"></i></span></div></a>{% else %}<div class="ldr-rag-status">- <i class="fas fa-times-circle" style="color: var(--warning-color);"></i>+ <i aria-hidden="true" class="fas fa-times-circle" style="color: var(--warning-color);"></i><span>Not indexed</span></div>{% endif %}@@ -226,7 +226,7 @@<div class="ldr-metadata-label">Text Content</div><div class="ldr-metadata-value"><div class="ldr-rag-status">- <i class="fas fa-file-alt" style="color: var(--success-color);"></i>+ <i aria-hidden="true" class="fas fa-file-alt" style="color: var(--success-color);"></i><span>Available ({{ document.word_count or 0 }} words)</span></div></div>@@ -238,7 +238,7 @@<!-- File Path Information -->{% if document.file_path %}<div class="ldr-metadata-section">- <h2><i class="fas fa-folder-open"></i> File Location</h2>+ <h2><i aria-hidden="true" class="fas fa-folder-open"></i> File Location</h2><div class="ldr-metadata-grid"><div class="ldr-metadata-item"><div class="ldr-metadata-label">File Path</div>@@ -262,7 +262,7 @@<!-- Original URL -->{% if document.original_url %}<div class="ldr-metadata-section">- <h2><i class="fas fa-link"></i> Source URL</h2>+ <h2><i aria-hidden="true" class="fas fa-link"></i> Source URL</h2><div class="ldr-metadata-item"><div class="ldr-metadata-value"><a href="{{ document.original_url }}" target="_blank">{{ document.original_url }}</a>diff --git a/src/local_deep_research/web/templates/pages/document_text.html b/src/local_deep_research/web/templates/pages/document_text.htmlindex 0730fc191a..cdacea3406 100644--- a/src/local_deep_research/web/templates/pages/document_text.html+++ b/src/local_deep_research/web/templates/pages/document_text.html@@ -24,10 +24,10 @@<div class="ldr-text-actions"><a href="/library/document/{{ document_id }}" class="ldr-btn ldr-btn-secondary">- <i class="fas fa-arrow-left"></i> Back to Document Details+ <i aria-hidden="true" class="fas fa-arrow-left"></i> Back to Document Details</a><a href="/library" class="ldr-btn ldr-btn-secondary">- <i class="fas fa-home"></i> Back to Library+ <i aria-hidden="true" class="fas fa-home"></i> Back to Library</a></div>diff --git a/src/local_deep_research/web/templates/pages/download_manager.html b/src/local_deep_research/web/templates/pages/download_manager.htmlindex 6f04a82c66..caaff42d93 100644--- a/src/local_deep_research/web/templates/pages/download_manager.html+++ b/src/local_deep_research/web/templates/pages/download_manager.html@@ -18,16 +18,16 @@{% else %}title="Download PDF files from all your research sources and save to library"{% endif %}>- <i class="fas fa-file-pdf"></i> Get All Research PDFs+ <i aria-hidden="true" class="fas fa-file-pdf"></i> Get All Research PDFs</button><button class="btn btn-info" onclick="downloadAllAsText()"title="Extract text from all research sources without saving PDF files">- <i class="fas fa-file-alt"></i> Text Only (from PDFs)+ <i aria-hidden="true" class="fas fa-file-alt"></i> Text Only (from PDFs)</button></div><div class="ldr-collection-selector" style="margin: 0 15px;"><label for="target-collection" style="font-size: 0.9em; color: var(--text-secondary); margin-right: 8px;">- <i class="fas fa-folder"></i> Target Collection:+ <i aria-hidden="true" class="fas fa-folder"></i> Target Collection:</label><select id="target-collection" class="form-control" style="width: 200px; display: inline-block;"><option value="">Loading collections...</option>@@ -40,11 +40,11 @@{% else %}title="Download PDF files and save to library"{% endif %}>- <i class="fas fa-file-pdf"></i> Get PDFs (<span class="ldr-selected-count-pdf">0</span>)+ <i aria-hidden="true" class="fas fa-file-pdf"></i> Get PDFs (<span class="ldr-selected-count-pdf">0</span>)</button><button class="btn btn-info" id="download-text-db" disabledtitle="Extract text without saving PDF files">- <i class="fas fa-file-alt"></i> Text Only (<span class="ldr-selected-count-text-db">0</span>)+ <i aria-hidden="true" class="fas fa-file-alt"></i> Text Only (<span class="ldr-selected-count-text-db">0</span>)</button></div></div>@@ -65,44 +65,44 @@<div class="ldr-library-settings-info"><div class="ldr-info-banner"><div class="ldr-info-icon">- <i class="fas fa-info-circle"></i>+ <i aria-hidden="true" class="fas fa-info-circle"></i></div><div class="ldr-info-content"><h4>Library Storage Settings</h4>{% if pdf_storage_mode == 'database' %}<button class="ldr-storage-mode-btn ldr-info-message" onclick="showStorageModeModal()" title="Click to change storage mode">- <i class="fas fa-database"></i>+ <i aria-hidden="true" class="fas fa-database"></i><strong>PDF Storage: Encrypted Database</strong> - PDFs encrypted in your personal database. Portable, isolated per-user.- <i class="fas fa-pen" style="margin-left: 8px; opacity: 0.6; font-size: 0.85em;"></i>+ <i aria-hidden="true" class="fas fa-pen" style="margin-left: 8px; opacity: 0.6; font-size: 0.85em;"></i></button>{% elif pdf_storage_mode == 'filesystem' %}<button class="ldr-storage-mode-btn ldr-warning-message" onclick="showStorageModeModal()" title="Click to change storage mode">- <i class="fas fa-hdd"></i>+ <i aria-hidden="true" class="fas fa-hdd"></i><strong>PDF Storage: Filesystem</strong> - PDFs saved unencrypted to disk. Faster for large files.- <i class="fas fa-pen" style="margin-left: 8px; opacity: 0.6; font-size: 0.85em;"></i>+ <i aria-hidden="true" class="fas fa-pen" style="margin-left: 8px; opacity: 0.6; font-size: 0.85em;"></i></button>{% else %}<button class="ldr-storage-mode-btn ldr-warning-message" onclick="showStorageModeModal()" title="Click to change storage mode">- <i class="fas fa-file-alt"></i>+ <i aria-hidden="true" class="fas fa-file-alt"></i><strong>PDF Storage: Text Only</strong> - Only extracted text stored. Re-download PDFs when needed.- <i class="fas fa-pen" style="margin-left: 8px; opacity: 0.6; font-size: 0.85em;"></i>+ <i aria-hidden="true" class="fas fa-pen" style="margin-left: 8px; opacity: 0.6; font-size: 0.85em;"></i></button>{% endif %}<p class="ldr-info-message">- <i class="fas fa-lock"></i>+ <i aria-hidden="true" class="fas fa-lock"></i>Text content is always stored in the encrypted database.</p>{% if shared_library %}<p class="ldr-warning-message">- <i class="fas fa-users"></i>+ <i aria-hidden="true" class="fas fa-users"></i><strong>Shared Library Mode:</strong> All users share the same library directory.</p>{% endif %}<a href="/settings#research-library" class="btn btn-sm btn-outline-primary ldr-settings-link">- <i class="fas fa-cog"></i> Configure Library Settings+ <i aria-hidden="true" class="fas fa-cog"></i> Configure Library Settings</a></div></div>@@ -171,7 +171,7 @@<div class="ldr-filter-group ldr-search-group"><label>Search</label><div class="ldr-search-wrapper">- <i class="fas fa-search"></i>+ <i aria-hidden="true" class="fas fa-search"></i><input type="text" id="search-research" class="form-control"placeholder="Search titles or queries..."></div>@@ -205,22 +205,22 @@<h3>{{ research.title or research.query[:80] }}</h3><div class="ldr-research-meta"><span class="ldr-meta-item">- <i class="fas fa-calendar"></i> <span class="ldr-research-date" data-date="{{ research.created_at }}">{{ research.created_at }}</span>+ <i aria-hidden="true" class="fas fa-calendar"></i> <span class="ldr-research-date" data-date="{{ research.created_at }}">{{ research.created_at }}</span></span><span class="ldr-meta-item">- <i class="fas fa-clock"></i> <span class="ldr-research-duration" data-seconds="{{ research.duration_seconds }}">{{ research.duration_seconds }}s</span>+ <i aria-hidden="true" class="fas fa-clock"></i> <span class="ldr-research-duration" data-seconds="{{ research.duration_seconds }}">{{ research.duration_seconds }}s</span></span><span class="ldr-meta-item ldr-mode-badge {{ research.mode }}">{{ research.mode|replace('_', ' ')|title }}</span>{% if research.rating %}<span class="ldr-meta-item">- <i class="fas fa-star"></i> {{ research.rating }}/5+ <i aria-hidden="true" class="fas fa-star"></i> {{ research.rating }}/5</span>{% endif %}{% if research.total_cost %}<span class="ldr-meta-item">- <i class="fas fa-dollar-sign"></i> {{ research.total_cost|round(3) }}+ <i aria-hidden="true" class="fas fa-dollar-sign"></i> {{ research.total_cost|round(3) }}</span>{% endif %}</div>@@ -277,7 +277,7 @@<div class="ldr-source-list">{% for source in research.pdf_sources[:10] %}<div class="ldr-source-item">- <i class="fas fa-file-pdf"></i>+ <i aria-hidden="true" class="fas fa-file-pdf"></i><span class="ldr-source-title">{{ source.document_title|truncate(60) }}</span><span class="ldr-source-domain">{{ source.domain }}</span>{% if source.download_status == 'completed' %}@@ -298,7 +298,7 @@<!-- Action Buttons --><div class="ldr-research-actions"><button class="btn btn-sm" onclick="viewResearch('{{ research.id }}')">- <i class="fas fa-eye"></i> View Research+ <i aria-hidden="true" class="fas fa-eye"></i> View Research</button><button class="btn btn-sm btn-success"onclick="downloadResearch('{{ research.id }}', 'pdf')"@@ -308,16 +308,16 @@{% else %}title="Download PDFs from this research"{% endif %}>- <i class="fas fa-file-pdf"></i> PDFs+ <i aria-hidden="true" class="fas fa-file-pdf"></i> PDFs</button><button class="btn btn-sm btn-info"onclick="downloadResearch('{{ research.id }}', 'text_only')"title="Extract text from this research without saving PDF files">- <i class="fas fa-file-alt"></i> Text Only+ <i aria-hidden="true" class="fas fa-file-alt"></i> Text Only</button>{% if research.downloaded_count > 0 %}<button class="btn btn-sm" onclick="viewDownloaded('{{ research.id }}')">- <i class="fas fa-folder-open"></i> View Downloaded+ <i aria-hidden="true" class="fas fa-folder-open"></i> View Downloaded</button>{% endif %}</div>@@ -657,7 +657,7 @@ function cancelDownloads() {async function downloadAllNew() {const btn = event.target.closest('button');const originalContent = btn.innerHTML;- btn.innerHTML = '<i class="fas fa-spinner fa-spin"></i> Preparing...';+ btn.innerHTML = '<i aria-hidden="true" class="fas fa-spinner fa-spin"></i> Preparing...';btn.disabled = true;try {@@ -752,7 +752,7 @@ async function downloadAllNew() {async function downloadAllAsText() {const btn = event.target.closest('button');const originalContent = btn.innerHTML;- btn.innerHTML = '<i class="fas fa-spinner fa-spin"></i> Extracting...';+ btn.innerHTML = '<i aria-hidden="true" class="fas fa-spinner fa-spin"></i> Extracting...';btn.disabled = true;try {diff --git a/src/local_deep_research/web/templates/pages/embedding_settings.html b/src/local_deep_research/web/templates/pages/embedding_settings.htmlindex e3bdcf5423..b692662250 100644--- a/src/local_deep_research/web/templates/pages/embedding_settings.html+++ b/src/local_deep_research/web/templates/pages/embedding_settings.html@@ -26,7 +26,7 @@<!-- Important Warning --><div class="ldr-alert ldr-alert-warning" style="margin-bottom: 2rem;"><div style="display: flex; align-items: flex-start; gap: 1rem;">- <i class="fas fa-exclamation-triangle" style="font-size: 1.5rem; margin-top: 0.25rem;"></i>+ <i aria-hidden="true" class="fas fa-exclamation-triangle" style="font-size: 1.5rem; margin-top: 0.25rem;"></i><div><h4 style="margin: 0 0 0.5rem 0;">Important: Existing Collections</h4><p style="margin: 0 0 0.5rem 0;">@@ -34,7 +34,7 @@Existing collections keep their original embedding settings to ensure data integrity and search consistency.</p><p style="margin: 0;">- <i class="fas fa-lock"></i> Once a collection is indexed, its embedding settings are locked.+ <i aria-hidden="true" class="fas fa-lock"></i> Once a collection is indexed, its embedding settings are locked.To change settings for an existing collection, you must re-index the entire collection, which will delete the current index.</p></div>@@ -43,14 +43,14 @@<!-- Test Panel --><div class="ldr-rag-operations-panel">- <h2><i class="fas fa-vial"></i> Test Configuration</h2>+ <h2><i aria-hidden="true" class="fas fa-vial"></i> Test Configuration</h2><p class="ldr-text-muted" style="margin-bottom: 15px;">Test the currently selected embedding model to ensure it's working correctly.</p><div class="ldr-operations-grid"><button class="ldr-btn ldr-btn-success ldr-btn-lg" onclick="testConfiguration()" id="test-config-btn">- <i class="fas fa-play"></i> Test Embedding Model+ <i aria-hidden="true" class="fas fa-play"></i> Test Embedding Model</button></div>@@ -61,7 +61,7 @@<!-- Configuration Panel --><div class="ldr-rag-config-panel">- <h2><i class="fas fa-cog"></i> Configuration</h2>+ <h2><i aria-hidden="true" class="fas fa-cog"></i> Configuration</h2><div class="ldr-config-grid"><!-- Saved Default Settings -->@@ -69,11 +69,11 @@<h3>Saved Default Settings</h3><div id="saved-default-settings" class="ldr-info-box"><div class="ldr-loading-spinner">- <i class="fas fa-spinner fa-spin"></i> Loading...+ <i aria-hidden="true" class="fas fa-spinner fa-spin"></i> Loading...</div></div><p class="ldr-form-text ldr-text-muted">- <i class="fas fa-info-circle"></i> These are your saved defaults for new collections. Change them using the form below.+ <i aria-hidden="true" class="fas fa-info-circle"></i> These are your saved defaults for new collections. Change them using the form below.</p></div>@@ -162,7 +162,7 @@Normalize vectors (L2)</label><small class="ldr-form-text ldr-text-muted" style="display: block; margin-left: 25px;">- <i class="fas fa-info-circle"></i> Recommended: Ensures fair comparison regardless of document length+ <i aria-hidden="true" class="fas fa-info-circle"></i> Recommended: Ensures fair comparison regardless of document length</small></div>@@ -177,10 +177,10 @@</div><button type="submit" class="ldr-btn ldr-btn-primary">- <i class="fas fa-save"></i> Save Default Settings+ <i aria-hidden="true" class="fas fa-save"></i> Save Default Settings</button><small class="ldr-form-text ldr-text-muted ldr-mt-2">- <i class="fas fa-info-circle"></i> These settings will be used as defaults for new collections. Existing collections will continue using their current settings unless re-indexed with new defaults.+ <i aria-hidden="true" class="fas fa-info-circle"></i> These settings will be used as defaults for new collections. Existing collections will continue using their current settings unless re-indexed with new defaults.</small></form></div>@@ -189,10 +189,10 @@<!-- Provider Information Panel --><div class="ldr-rag-stats-panel">- <h2><i class="fas fa-info-circle"></i> Provider Information</h2>+ <h2><i aria-hidden="true" class="fas fa-info-circle"></i> Provider Information</h2><div id="provider-info" class="ldr-stats-grid"><div class="ldr-loading-spinner">- <i class="fas fa-spinner fa-spin"></i> Loading provider information...+ <i aria-hidden="true" class="fas fa-spinner fa-spin"></i> Loading provider information...</div></div></div>diff --git a/src/local_deep_research/web/templates/pages/history.html b/src/local_deep_research/web/templates/pages/history.htmlindex 512ee04e3b..c76a05db26 100644--- a/src/local_deep_research/web/templates/pages/history.html+++ b/src/local_deep_research/web/templates/pages/history.html@@ -18,8 +18,8 @@<!-- AI Search Indexing Panel --><div class="ldr-card" id="semantic-search-panel" style="margin-bottom: 1rem;"><div class="ldr-card-header ldr-semantic-panel-header" id="semantic-panel-header" role="button" tabindex="0" aria-expanded="true" aria-controls="semantic-panel-content">- <h3><i class="fas fa-brain"></i> AI Search</h3>- <i class="fas fa-chevron-down" id="semantic-panel-toggle" aria-hidden="true"></i>+ <h3><i aria-hidden="true" class="fas fa-brain"></i> AI Search</h3>+ <i aria-hidden="true" class="fas fa-chevron-down" id="semantic-panel-toggle" ></i></div><div class="ldr-card-content" id="semantic-panel-content"><p class="ldr-semantic-panel-description">@@ -30,11 +30,11 @@<div id="indexing-status" class="ldr-indexing-status"><div class="ldr-indexing-status-row"><span>- <i class="fas fa-database"></i>+ <i aria-hidden="true" class="fas fa-database"></i><span id="indexed-count">0</span> / <span id="total-count">0</span> documents indexed</span><button id="index-all-btn" class="btn btn-sm btn-primary">- <i class="fas fa-sync"></i> Index All+ <i aria-hidden="true" class="fas fa-sync"></i> Index All</button></div><!-- Progress bar (hidden by default) -->@@ -57,23 +57,23 @@<div class="dropdown d-inline-block"><button class="btn btn-sm ldr-btn-outline dropdown-toggle" type="button"id="search-mode-btn" data-bs-toggle="dropdown" aria-expanded="false">- <i class="fas fa-brain" aria-hidden="true"></i> AI Hybrid+ <i aria-hidden="true" class="fas fa-brain" ></i> AI Hybrid</button><ul class="dropdown-menu" aria-label="Search mode" id="search-mode-menu"><li><a class="dropdown-item active" href="#" data-mode="hybrid">- <i class="fas fa-brain" aria-hidden="true"></i> AI Hybrid <small class="text-muted">— titles + content</small>+ <i aria-hidden="true" class="fas fa-brain" ></i> AI Hybrid <small class="text-muted">— titles + content</small></a></li><li><a class="dropdown-item" href="#" data-mode="text">- <i class="fas fa-font" aria-hidden="true"></i> Text Only <small class="text-muted">— titles only</small>+ <i aria-hidden="true" class="fas fa-font" ></i> Text Only <small class="text-muted">— titles only</small></a></li><li><a class="dropdown-item" href="#" data-mode="semantic">- <i class="fas fa-brain" aria-hidden="true"></i> AI Only <small class="text-muted">— content search</small>+ <i aria-hidden="true" class="fas fa-brain" ></i> AI Only <small class="text-muted">— content search</small></a></li></ul></div></div><button id="clear-history-btn" class="btn btn-danger" style="display: none;">- <i class="fas fa-trash-alt"></i> Clear All+ <i aria-hidden="true" class="fas fa-trash-alt"></i> Clear All</button></div><div class="ldr-history-list" id="history-items">@@ -83,7 +83,7 @@</div></div><div id="history-empty-message" class="ldr-empty-state" style="display: none;">- <i class="fas fa-history ldr-empty-icon"></i>+ <i aria-hidden="true" class="fas fa-history ldr-empty-icon"></i><p>No research history found.</p></div></div>diff --git a/src/local_deep_research/web/templates/pages/link_analytics.html b/src/local_deep_research/web/templates/pages/link_analytics.htmlindex 4d5fe35e56..d33dd9968b 100644--- a/src/local_deep_research/web/templates/pages/link_analytics.html+++ b/src/local_deep_research/web/templates/pages/link_analytics.html@@ -32,7 +32,7 @@</div><div><button id="classify-domains-btn" class="btn" style="background: var(--accent-primary); color: white; padding: 0.5rem 1rem; border-radius: 0.375rem; border: none; cursor: pointer; font-size: 0.875rem;">- <i class="fas fa-brain"></i> Classify Domains with AI+ <i aria-hidden="true" class="fas fa-brain"></i> Classify Domains with AI</button><span id="classification-status" style="margin-left: 1rem; font-size: 0.875rem; color: var(--text-secondary);"></span></div>@@ -130,7 +130,7 @@<div class="ldr-modal-content"><span class="ldr-close-modal">×</span><div class="ldr-modal-header">- <h2><i class="fas fa-brain"></i> AI Domain Classification</h2>+ <h2><i aria-hidden="true" class="fas fa-brain"></i> AI Domain Classification</h2><p style="color: var(--text-secondary); margin-top: 0.5rem;">The AI will analyze and categorize each domain based on its content and purpose.</p>@@ -156,7 +156,7 @@</div><button id="start-classification" class="btn" style="width: 100%; background: var(--accent-primary); color: white; padding: 0.75rem; border-radius: 0.5rem; border: none; cursor: pointer; font-size: 1rem;">- <i class="fas fa-play"></i> Start Classification+ <i aria-hidden="true" class="fas fa-play"></i> Start Classification</button></div>@@ -174,18 +174,18 @@</div><button id="stop-classification" class="btn" style="width: 100%; background: var(--error-color); color: white; padding: 0.75rem; border-radius: 0.5rem; border: none; cursor: pointer; font-size: 1rem; margin-top: 1rem;">- <i class="fas fa-stop"></i> Stop Classification+ <i aria-hidden="true" class="fas fa-stop"></i> Stop Classification</button></div><div id="classification-complete" style="display: none; text-align: center;">- <i class="fas fa-check-circle" style="font-size: 3rem; color: var(--success-color); margin-bottom: 1rem;"></i>+ <i aria-hidden="true" class="fas fa-check-circle" style="font-size: 3rem; color: var(--success-color); margin-bottom: 1rem;"></i><h3>Classification Complete!</h3><p style="color: var(--text-secondary); margin: 1rem 0;">Successfully classified <span id="final-classified">0</span> domains.</p><button id="close-complete" class="btn" style="background: var(--accent-primary); color: white; padding: 0.75rem 1.5rem; border-radius: 0.5rem; border: none; cursor: pointer;">- <i class="fas fa-check"></i> Done+ <i aria-hidden="true" class="fas fa-check"></i> Done</button></div></div>diff --git a/src/local_deep_research/web/templates/pages/news-subscription-form.html b/src/local_deep_research/web/templates/pages/news-subscription-form.htmlindex ff71fde647..ef4fd34078 100644--- a/src/local_deep_research/web/templates/pages/news-subscription-form.html+++ b/src/local_deep_research/web/templates/pages/news-subscription-form.html@@ -13,7 +13,7 @@<div class="ldr-subscription-form-container"><div class="ldr-page-header"><h1>- <i class="bi bi-bell-fill"></i>+ <i aria-hidden="true" class="bi bi-bell-fill"></i>{{ 'Edit' if subscription else 'Create' }} News Subscription</h1></div>@@ -25,7 +25,7 @@<!-- Basic Information Section --><div class="ldr-form-section"><h2 class="ldr-section-title">- <i class="bi bi-info-circle"></i> Basic Information+ <i aria-hidden="true" class="bi bi-info-circle"></i> Basic Information</h2><div class="mb-3">@@ -71,7 +71,7 @@<!-- Model Configuration Section --><div class="ldr-form-section"><h2 class="ldr-section-title">- <i class="bi bi-cpu"></i> Model Configuration+ <i aria-hidden="true" class="bi bi-cpu"></i> Model Configuration</h2><div class="mb-3">@@ -143,7 +143,7 @@<!-- Status Section --><div class="ldr-form-section"><h2 class="ldr-section-title">- <i class="bi bi-toggle-on"></i> Status & Options+ <i aria-hidden="true" class="bi bi-toggle-on"></i> Status & Options</h2><div class="form-check mb-3">@@ -158,18 +158,18 @@<!-- Action Buttons --><div class="ldr-btn-group-actions"><a href="/news" class="btn btn-secondary">- <i class="bi bi-arrow-left"></i> Cancel+ <i aria-hidden="true" class="bi bi-arrow-left"></i> Cancel</a><button type="button" class="btn btn-info" id="test-subscription-btn">- <i class="bi bi-play-circle"></i> Test Run+ <i aria-hidden="true" class="bi bi-play-circle"></i> Test Run</button>{% if not subscription %}<button type="button" class="btn btn-success" id="create-and-run-btn">- <i class="bi bi-rocket-takeoff"></i> Create & Run Now+ <i aria-hidden="true" class="bi bi-rocket-takeoff"></i> Create & Run Now</button>{% endif %}<button type="submit" class="btn btn-primary">- <i class="bi bi-save"></i> {{ 'Update' if subscription else 'Create' }} Subscription+ <i aria-hidden="true" class="bi bi-save"></i> {{ 'Update' if subscription else 'Create' }} Subscription</button></div></form>@@ -927,12 +927,12 @@ async function loadJitterInfo() {let jitterText;if (maxJitter === 0) {- jitterText = `<i class="bi bi-info-circle"></i> No jitter configured. Subscriptions will run exactly at scheduled times.`;+ jitterText = `<i aria-hidden="true" class="bi bi-info-circle"></i> No jitter configured. Subscriptions will run exactly at scheduled times.`;} else {- jitterText = `<i class="bi bi-shuffle"></i> A random delay up to <strong>${formatJitter(maxJitter)}</strong> will be added to prevent all subscriptions from running simultaneously.`;+ jitterText = `<i aria-hidden="true" class="bi bi-shuffle"></i> A random delay up to <strong>${formatJitter(maxJitter)}</strong> will be added to prevent all subscriptions from running simultaneously.`;}- jitterText += ` <a href="/settings#news_scheduler" class="text-muted" style="font-size: 0.85em;"><i class="bi bi-gear"></i> Change in settings</a>`;+ jitterText += ` <a href="/settings#news_scheduler" class="text-muted" style="font-size: 0.85em;"><i aria-hidden="true" class="bi bi-gear"></i> Change in settings</a>`;const element = document.getElementById('subscription-jitter-info');if (element) {diff --git a/src/local_deep_research/web/templates/pages/news.html b/src/local_deep_research/web/templates/pages/news.htmlindex 7171188e24..d705c78473 100644--- a/src/local_deep_research/web/templates/pages/news.html+++ b/src/local_deep_research/web/templates/pages/news.html@@ -24,7 +24,7 @@<!-- Header with integrated search --><div class="ldr-feed-header-section"><div class="ldr-feed-header">- <h1><i class="bi bi-newspaper"></i> Research News Feed</h1>+ <h1><i aria-hidden="true" class="bi bi-newspaper"></i> Research News Feed</h1></div><!-- Search box below header -->@@ -33,18 +33,18 @@<div class="dropdown d-inline-block"><button class="btn btn-sm ldr-btn-outline dropdown-toggle" type="button"id="news-search-mode-btn" data-bs-toggle="dropdown" aria-expanded="false">- <i class="fas fa-brain" aria-hidden="true"></i> AI Hybrid+ <i aria-hidden="true" class="fas fa-brain" ></i> AI Hybrid</button><ul class="dropdown-menu" aria-label="Search mode" id="news-search-mode-menu"><li><a class="dropdown-item active" href="#" data-mode="hybrid">- <i class="fas fa-brain" aria-hidden="true"></i> AI Hybrid <small class="text-muted">— titles + content</small></a></li>+ <i aria-hidden="true" class="fas fa-brain" ></i> AI Hybrid <small class="text-muted">— titles + content</small></a></li><li><a class="dropdown-item" href="#" data-mode="text">- <i class="fas fa-font" aria-hidden="true"></i> Text Only <small class="text-muted">— headlines & topics</small></a></li>+ <i aria-hidden="true" class="fas fa-font" ></i> Text Only <small class="text-muted">— headlines & topics</small></a></li><li><a class="dropdown-item" href="#" data-mode="semantic">- <i class="fas fa-brain" aria-hidden="true"></i> AI Only <small class="text-muted">— content similarity</small></a></li>+ <i aria-hidden="true" class="fas fa-brain" ></i> AI Only <small class="text-muted">— content similarity</small></a></li></ul></div>- <i class="bi bi-search ldr-search-icon"></i>+ <i aria-hidden="true" class="bi bi-search ldr-search-icon"></i><input type="text" id="news-search" class="ldr-form-control" placeholder="AI Hybrid: searches headlines & content with AI..."><button id="search-btn" class="btn btn-primary">Search@@ -55,18 +55,18 @@<!-- Quick actions row --><div class="ldr-quick-actions-row"><button class="btn btn-warning" id="refresh-feed-btn">- <i class="bi bi-arrow-clockwise"></i> Refresh Feed+ <i aria-hidden="true" class="bi bi-arrow-clockwise"></i> Refresh Feed</button><button type="button" class="btn btn-outline-primary" id="create-subscription-btn">- <i class="bi bi-plus-circle"></i> Create Subscription+ <i aria-hidden="true" class="bi bi-plus-circle"></i> Create Subscription</button><a href="/news/subscriptions" class="btn btn-outline-secondary">- <i class="bi bi-bell"></i> Manage Subscriptions+ <i aria-hidden="true" class="bi bi-bell"></i> Manage Subscriptions</a><div class="form-check form-switch d-inline-block ms-3"><input class="form-check-input" type="checkbox" id="auto-refresh" checked><label class="form-check-label" for="auto-refresh">- <i class="bi bi-arrow-clockwise"></i> Auto-refresh+ <i aria-hidden="true" class="bi bi-arrow-clockwise"></i> Auto-refresh</label></div></div>@@ -74,7 +74,7 @@<!-- Priority Status Alert --><div id="priority-status" class="ldr-priority-alert" style="display: none;">- <i class="bi bi-info-circle"></i>+ <i aria-hidden="true" class="bi bi-info-circle"></i><span id="priority-message"></span></div>@@ -113,7 +113,7 @@<!-- Load More --><div class="ldr-load-more-section"><button class="btn btn-outline-primary" id="load-more-btn">- <i class="bi bi-plus-circle"></i> Load More Stories+ <i aria-hidden="true" class="bi bi-plus-circle"></i> Load More Stories</button></div></div>@@ -121,48 +121,48 @@<!-- Right Sidebar - Recommendations --><div class="ldr-recommendations"><!-- News Templates -->- <h3><i class="bi bi-table"></i> News Templates</h3>+ <h3><i aria-hidden="true" class="bi bi-table"></i> News Templates</h3><div class="ldr-news-templates"><button class="ldr-template-btn" onclick="useNewsTemplate('breaking-news')">- <i class="bi bi-newspaper"></i>+ <i aria-hidden="true" class="bi bi-newspaper"></i><span>Breaking News Table</span></button><button class="ldr-template-btn" onclick="useNewsTemplate('market-analysis')">- <i class="bi bi-graph-up-arrow"></i>+ <i aria-hidden="true" class="bi bi-graph-up-arrow"></i><span>Market Analysis</span></button><button class="ldr-template-btn" onclick="useNewsTemplate('tech-updates')">- <i class="bi bi-cpu"></i>+ <i aria-hidden="true" class="bi bi-cpu"></i><span>Tech Updates</span></button><button class="ldr-template-btn" onclick="useNewsTemplate('local-news')">- <i class="bi bi-geo-alt"></i>+ <i aria-hidden="true" class="bi bi-geo-alt"></i><span>Local News</span></button><button class="ldr-template-btn" onclick="useNewsTemplate('topic-news')">- <i class="bi bi-bookmark-ldr-star"></i>+ <i aria-hidden="true" class="bi bi-bookmark-ldr-star"></i><span>Topic News</span></button><button class="ldr-template-btn" onclick="useNewsTemplate('product-prices')">- <i class="bi bi-tag"></i>+ <i aria-hidden="true" class="bi bi-tag"></i><span>Product Prices</span></button><button class="ldr-template-btn" onclick="useNewsTemplate('custom')">- <i class="bi bi-pencil-square"></i>+ <i aria-hidden="true" class="bi bi-pencil-square"></i><span>Custom Template</span></button></div><!-- Trending Topics -->- <h3 class="mt-4"><i class="bi bi-trending-up"></i> Trending Topics</h3>+ <h3 class="mt-4"><i aria-hidden="true" class="bi bi-trending-up"></i> Trending Topics</h3><div id="trending-topics" class="ldr-topic-tags"><!-- Will be populated with trending topics --></div><h3 class="mt-4 d-flex justify-content-between align-items-center">- <span><i class="bi bi-clock-history"></i> Recent Searches</span>+ <span><i aria-hidden="true" class="bi bi-clock-history"></i> Recent Searches</span><button class="btn btn-sm btn-outline-secondary" onclick="clearSearchHistory()" title="Clear search history">- <i class="bi bi-trash"></i>+ <i aria-hidden="true" class="bi bi-trash"></i></button></h3><div class="ldr-recent-searches" id="recent-searches">@@ -231,7 +231,7 @@<!-- Dynamic folder tabs will be added here --><li class="ldr-nav-item ms-auto" role="presentation"><button class="btn btn-sm btn-outline-primary" id="create-folder-btn">- <i class="bi bi-plus"></i> New Folder+ <i aria-hidden="true" class="bi bi-plus"></i> New Folder</button></li></ul>@@ -257,7 +257,7 @@<div class="modal-dialog"><div class="modal-content"><div class="modal-header">- <h5 class="modal-title"><i class="bi bi-bell-fill"></i> Create News Subscription</h5>+ <h5 class="modal-title"><i aria-hidden="true" class="bi bi-bell-fill"></i> Create News Subscription</h5><button type="button" class="btn-close" data-bs-dismiss="modal"></button></div><form id="news-subscription-form" onsubmit="handleNewsSubscriptionSubmit(event)">diff --git a/src/local_deep_research/web/templates/pages/news_cleaned.html b/src/local_deep_research/web/templates/pages/news_cleaned.htmlnew file mode 100644index 0000000000..5fa031a9f5--- /dev/null+++ b/src/local_deep_research/web/templates/pages/news_cleaned.html@@ -0,0 +1,156 @@+{% extends "base.html" %}++{% block title %}LDR News - AI-Powered Research Feed{% endblock %}++{% block extra_head %}+<link rel="stylesheet" href="/static/css/news.css">+{% endblock %}++{% block content %}+<!-- Alert Container -->+<div id="news-alert" class="ldr-settings-alert-container" role="alert" style="display: none; position: fixed; top: 20px; right: 20px; z-index: 1000;"></div>++<div class="ldr-news-page-wrapper">+ <!-- Main Content Container with Right Sidebar -->+ <div class="ldr-news-container">+ <!-- News Feed Section -->+ <div class="ldr-news-feed">+ <!-- Header with integrated search -->+ <div class="ldr-feed-header-section">+ <div class="ldr-feed-header">+ <h1><i aria-hidden="true" class="bi bi-newspaper"></i> Research News Feed</h1>+ <div class="ldr-news-search-box">+ <input type="text" id="news-search" class="ldr-form-control" placeholder="Search news topics...">+ <button id="search-btn" class="btn btn-primary">+ <i aria-hidden="true" class="bi bi-search"></i>+ </button>+ </div>+ </div>++ <!-- Quick actions row -->+ <div class="ldr-quick-actions-row">+ <button class="btn btn-warning" id="refresh-feed-btn">+ <i aria-hidden="true" class="bi bi-arrow-clockwise"></i> Refresh Feed+ </button>+ <button class="btn btn-outline-secondary" data-bs-toggle="modal" data-bs-target="#subscriptionsModal">+ <i aria-hidden="true" class="bi bi-bell"></i> Manage Subscriptions+ </button>+ <div class="form-check form-switch d-inline-block ms-3">+ <input class="form-check-input" type="checkbox" id="auto-refresh" checked>+ <label class="form-check-label" for="auto-refresh">+ <i aria-hidden="true" class="bi bi-arrow-clockwise"></i> Auto-refresh+ </label>+ </div>+ </div>+ </div>++ <!-- Filters Bar -->+ <div class="ldr-filters-bar">+ <div class="ldr-filter-section">+ <div class="ldr-subscriptions-horizontal">+ <select id="subscription-filter" class="form-select">+ <option value="">All Topics</option>+ <option value="ai">AI & Technology</option>+ <option value="science">Science</option>+ <option value="business">Business</option>+ <option value="health">Health</option>+ <option value="climate">Climate</option>+ </select>+ </div>++ <div class="ldr-time-filter-group">+ <button class="ldr-filter-btn active" data-time="today">Today</button>+ <button class="ldr-filter-btn" data-time="week">This Week</button>+ <button class="ldr-filter-btn" data-time="month">This Month</button>+ </div>++ <div class="ldr-impact-filter-group">+ <label>Impact:</label>+ <input type="range" class="ldr-impact-slider" min="0" max="10" value="0" id="impact-filter">+ <span class="ldr-impact-value">0+</span>+ </div>+ </div>+ </div>++ <!-- News Cards Container -->+ <div class="ldr-news-cards-container" id="news-container">+ <!-- Loading skeleton -->+ <div class="ldr-loading-skeleton">+ <div class="ldr-skeleton-card"></div>+ <div class="ldr-skeleton-card"></div>+ <div class="ldr-skeleton-card"></div>+ </div>+ </div>++ <!-- Load More -->+ <div class="ldr-load-more-section">+ <button class="btn btn-outline-primary" id="load-more-btn">+ <i aria-hidden="true" class="bi bi-plus-circle"></i> Load More Stories+ </button>+ </div>+ </div>++ <!-- Right Sidebar - Recommendations -->+ <div class="ldr-recommendations">+ <h3><i aria-hidden="true" class="bi bi-stars"></i> Recommended Topics</h3>+ <div class="ldr-recommendation-list" id="recommendations-list">+ <div class="ldr-recommendation-item">+ <i aria-hidden="true" class="bi bi-lightning-charge"></i>+ <span>Quantum Computing Breakthroughs</span>+ <button class="btn btn-sm btn-outline-primary">Follow</button>+ </div>+ <div class="ldr-recommendation-item">+ <i aria-hidden="true" class="bi bi-cpu"></i>+ <span>AI Safety Research</span>+ <button class="btn btn-sm btn-outline-primary">Follow</button>+ </div>+ <div class="ldr-recommendation-item">+ <i aria-hidden="true" class="bi bi-graph-up"></i>+ <span>Tech Market Analysis</span>+ <button class="btn btn-sm btn-outline-primary">Follow</button>+ </div>+ </div>++ <h3 class="mt-4"><i aria-hidden="true" class="bi bi-clock-history"></i> Recent Searches</h3>+ <div class="ldr-recent-searches" id="recent-searches">+ <!-- Will be populated dynamically -->+ </div>+ </div>+ </div>+</div>++<!-- Subscriptions Modal -->+<div class="modal fade" id="subscriptionsModal" tabindex="-1">+ <div class="modal-dialog modal-lg">+ <div class="modal-content">+ <div class="modal-header">+ <h5 class="modal-title"><i aria-hidden="true" class="bi bi-bell"></i> Manage Subscriptions</h5>+ <button type="button" class="btn-close" data-bs-dismiss="modal"></button>+ </div>+ <div class="modal-body">+ <div class="ldr-subscription-section">+ <h6>Your Subscriptions</h6>+ <div id="current-subscriptions" class="ldr-subscriptions-list">+ <!-- Will be populated dynamically -->+ </div>++ <h6 class="mt-4">Add New Subscription</h6>+ <form id="add-subscription-form">+ <div class="input-group">+ <input type="text" class="ldr-form-control" placeholder="Enter topic or search query" id="new-subscription-input">+ <button class="btn btn-primary" type="submit">+ <i aria-hidden="true" class="bi bi-plus"></i> Subscribe+ </button>+ </div>+ </form>+ </div>+ </div>+ </div>+ </div>+</div>++<!-- Add news page JavaScript -->+<script defer src="/static/js/pages/news.js"></script>++<!-- Add Bootstrap JavaScript -->+{% endblock %}diff --git a/src/local_deep_research/web/templates/pages/progress.html b/src/local_deep_research/web/templates/pages/progress.htmlindex cf8806f6d1..3b4cb9249b 100644--- a/src/local_deep_research/web/templates/pages/progress.html+++ b/src/local_deep_research/web/templates/pages/progress.html@@ -32,7 +32,7 @@<!-- Agent Thinking Panel - Shows ReAct reasoning for MCP strategy --><div id="agent-thinking-panel" class="ldr-agent-thinking-panel" style="display: none;"><div class="ldr-agent-thinking-header">- <i class="fas fa-brain"></i> Agent Reasoning+ <i aria-hidden="true" class="fas fa-brain"></i> Agent Reasoning</div><div id="agent-thinking-content" class="ldr-agent-thinking-content"><!-- ReAct steps will be added here -->@@ -40,10 +40,10 @@</div><div class="ldr-progress-actions"><button id="cancel-research-btn" class="btn ldr-btn-outline ldr-terminate-btn">- <i class="fas fa-stop-circle"></i> Cancel Research+ <i aria-hidden="true" class="fas fa-stop-circle"></i> Cancel Research</button><a id="view-results-btn" class="btn btn-primary" style="display: none;">- <i class="fas fa-eye"></i> View Results+ <i aria-hidden="true" class="fas fa-eye"></i> View Results</a></div></div>diff --git a/src/local_deep_research/web/templates/pages/research.html b/src/local_deep_research/web/templates/pages/research.htmlindex 78bbb0b330..68eb96ce9f 100644--- a/src/local_deep_research/web/templates/pages/research.html+++ b/src/local_deep_research/web/templates/pages/research.html@@ -27,19 +27,19 @@<div class="ldr-search-hints"><div class="ldr-hint-row"><span class="ldr-hint-item">- <i class="fas fa-play ldr-hint-icon"></i>+ <i aria-hidden="true" class="fas fa-play ldr-hint-icon"></i><span class="ldr-hint-text"><kbd>Enter</kbd> to search</span></span><span class="ldr-hint-item">- <i class="fas fa-level-down-alt ldr-hint-icon"></i>+ <i aria-hidden="true" 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="ldr-hint-item">- <i class="fas fa-home ldr-hint-icon"></i>+ <i aria-hidden="true" class="fas fa-home ldr-hint-icon"></i><span class="ldr-hint-text"><kbd>Esc</kbd> returns here from anywhere</span></span><span class="ldr-hint-item">- <i class="fas fa-bars ldr-hint-icon"></i>+ <i aria-hidden="true" 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>@@ -51,7 +51,7 @@<div class="ldr-mode-selection"><input type="radio" id="mode-quick" name="research_mode" value="quick" checked class="sr-only"><label for="mode-quick" class="ldr-mode-option active" data-mode="quick" tabindex="0">- <div class="ldr-mode-icon"><i class="fas fa-bolt" aria-hidden="true"></i></div>+ <div class="ldr-mode-icon"><i aria-hidden="true" class="fas fa-bolt" ></i></div><div class="ldr-mode-info"><h2>Quick Summary</h2><p>Generated in a few minutes</p>@@ -60,7 +60,7 @@<input type="radio" id="mode-detailed" name="research_mode" value="detailed" class="sr-only"><label for="mode-detailed" class="ldr-mode-option" data-mode="detailed" tabindex="-1">- <div class="ldr-mode-icon"><i class="fas fa-microscope" aria-hidden="true"></i></div>+ <div class="ldr-mode-icon"><i aria-hidden="true" class="fas fa-microscope" ></i></div><div class="ldr-mode-info"><h2>Detailed Report <span class="ldr-mode-badge">Advanced</span></h2><p>Multi-section analysis {{ tooltip("?", "Generates comprehensive report with extensive source analysis. Duration varies by topic complexity and search settings.", position='right') }}</p>@@ -73,7 +73,7 @@<!-- Advanced Options - positioned before start for configuration --><button type="button" id="advanced-options-toggle" class="ldr-advanced-options-toggle ldr-open" aria-expanded="true" aria-controls="advanced-options-panel"><span class="ldr-toggle-text">Advanced Options</span>- <i class="fas fa-chevron-up" aria-hidden="true"></i>+ <i aria-hidden="true" class="fas fa-chevron-up" ></i><span class="sr-only">Click to collapse advanced options</span></button>@@ -248,7 +248,7 @@<!-- Start Research Button --><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>+ <button type="submit" class="btn btn-primary" id="start-research-btn"><i aria-hidden="true" class="fas fa-rocket"></i> Start Research</button></div><!-- Audio Notifications -->diff --git a/src/local_deep_research/web/templates/pages/results.html b/src/local_deep_research/web/templates/pages/results.htmlindex 7decade391..f746e42412 100644--- a/src/local_deep_research/web/templates/pages/results.html+++ b/src/local_deep_research/web/templates/pages/results.html@@ -10,26 +10,26 @@<div class="ldr-results-header"><h1 class="ldr-page-title">Research Results</h1><div class="ldr-results-actions">- <button class="btn btn-primary" id="ask-followup-btn" onclick="window.followUpResearch ? followUpResearch.showFollowUpModal() : alert('Follow-up feature loading...')" title="Ask a follow-up question using this research's sources and context"><i class="fas fa-question-circle"></i> Ask Follow-up Question</button>- <button class="btn ldr-btn-outline" id="view-metrics-btn" title="View token usage and cost metrics for this research session"><i class="fas fa-chart-bar"></i> View Metrics</button>- <button class="btn ldr-btn-outline" id="download-pdf-btn" title="Download as PDF document for sharing or printing"><i class="fas fa-file-pdf"></i> Download PDF</button>+ <button class="btn btn-primary" id="ask-followup-btn" onclick="window.followUpResearch ? followUpResearch.showFollowUpModal() : alert('Follow-up feature loading...')" title="Ask a follow-up question using this research's sources and context"><i aria-hidden="true" class="fas fa-question-circle"></i> Ask Follow-up Question</button>+ <button class="btn ldr-btn-outline" id="view-metrics-btn" title="View token usage and cost metrics for this research session"><i aria-hidden="true" class="fas fa-chart-bar"></i> View Metrics</button>+ <button class="btn ldr-btn-outline" id="download-pdf-btn" title="Download as PDF document for sharing or printing"><i aria-hidden="true" class="fas fa-file-pdf"></i> Download PDF</button><div class="dropdown d-inline-block"><button class="btn ldr-btn-outline dropdown-toggle" type="button" id="export-dropdown-btn" data-bs-toggle="dropdown" aria-expanded="false" title="Export research to various formats">- <i class="fas fa-download"></i> Export+ <i aria-hidden="true" class="fas fa-download"></i> Export</button><ul class="dropdown-menu" aria-labelledby="export-dropdown-btn">- <li><a class="dropdown-item" href="#" id="export-markdown-btn"><i class="fas fa-file-alt"></i> Markdown</a></li>+ <li><a class="dropdown-item" href="#" id="export-markdown-btn"><i aria-hidden="true" class="fas fa-file-alt"></i> Markdown</a></li><li><hr class="dropdown-divider"></li>- <li><a class="dropdown-item" href="#" id="export-latex-btn"><i class="fas fa-file-code"></i> LaTeX</a></li>- <li><a class="dropdown-item" href="#" id="export-quarto-btn"><i class="fas fa-file-code"></i> Quarto</a></li>- <li><a class="dropdown-item" href="#" id="export-odt-btn"><i class="fas fa-file-word"></i> ODT (LibreOffice)</a></li>+ <li><a class="dropdown-item" href="#" id="export-latex-btn"><i aria-hidden="true" class="fas fa-file-code"></i> LaTeX</a></li>+ <li><a class="dropdown-item" href="#" id="export-quarto-btn"><i aria-hidden="true" class="fas fa-file-code"></i> Quarto</a></li>+ <li><a class="dropdown-item" href="#" id="export-odt-btn"><i aria-hidden="true" class="fas fa-file-word"></i> ODT (LibreOffice)</a></li><li><hr class="dropdown-divider"></li>- <li><a class="dropdown-item" href="#" id="export-ris-btn"><i class="fas fa-file-export"></i> RIS (Zotero)</a></li>+ <li><a class="dropdown-item" href="#" id="export-ris-btn"><i aria-hidden="true" class="fas fa-file-export"></i> RIS (Zotero)</a></li></ul></div>- <button class="btn ldr-btn-outline" id="save-to-collection-btn" title="Save this research to a collection for future reference"><i class="fas fa-folder-plus"></i> Save to Collection</button>- <button class="btn ldr-btn-outline" id="report-issue-btn" title="Report bugs, suggest features, or get help from the community"><i class="fas fa-hands-helping"></i> Help Improve</button>- <button class="btn ldr-btn-outline" id="back-to-history"><i class="fas fa-arrow-left"></i> Back to History</button>+ <button class="btn ldr-btn-outline" id="save-to-collection-btn" title="Save this research to a collection for future reference"><i aria-hidden="true" class="fas fa-folder-plus"></i> Save to Collection</button>+ <button class="btn ldr-btn-outline" id="report-issue-btn" title="Report bugs, suggest features, or get help from the community"><i aria-hidden="true" class="fas fa-hands-helping"></i> Help Improve</button>+ <button class="btn ldr-btn-outline" id="back-to-history"><i aria-hidden="true" class="fas fa-arrow-left"></i> Back to History</button></div></div></div>@@ -61,7 +61,7 @@</div><!-- Context Overflow Warning Banner --><div id="context-overflow-warning" class="ldr-alert ldr-alert-warning" role="status" style="display: none;">- <i class="fas fa-exclamation-triangle"></i>+ <i aria-hidden="true" class="fas fa-exclamation-triangle"></i><div><strong>Context Overflow Detected</strong><span id="context-overflow-message"></span>@@ -83,14 +83,14 @@<div class="modal-dialog"><div class="modal-content"><div class="modal-header">- <h5 class="modal-title" id="reportIssueModalLabel"><i class="fas fa-hands-helping"></i> Help Improve LDR</h5>+ <h5 class="modal-title" id="reportIssueModalLabel"><i aria-hidden="true" class="fas fa-hands-helping"></i> Help Improve LDR</h5><button type="button" class="btn-close" data-bs-dismiss="modal" aria-label="Close"></button></div><div class="modal-body"><div class="ldr-feedback-options"><a href="https://github.com/LearningCircuit/local-deep-research/issues/new?labels=bug&template=bug_report.md"target="_blank" class="ldr-feedback-option">- <i class="fas fa-bug"></i>+ <i aria-hidden="true" class="fas fa-bug"></i><div><strong>Report a Bug</strong><small>Something isn't working correctly</small>@@ -99,7 +99,7 @@<a href="https://github.com/LearningCircuit/local-deep-research/issues/new?labels=enhancement&template=feature_request.md"target="_blank" class="ldr-feedback-option">- <i class="fas fa-lightbulb"></i>+ <i aria-hidden="true" class="fas fa-lightbulb"></i><div><strong>Suggest an Idea</strong><small>Feature request or improvement</small>@@ -108,7 +108,7 @@<a href="https://discord.gg/ttcqQeFcJ3"target="_blank" class="ldr-feedback-option">- <i class="fab fa-discord"></i>+ <i aria-hidden="true" class="fab fa-discord"></i><div><strong>Ask a Question</strong><small>Get help from the community</small>@@ -125,13 +125,13 @@<div class="modal-dialog"><div class="modal-content"><div class="modal-header">- <h5 class="modal-title" id="saveToCollectionModalLabel"><i class="fas fa-folder-plus"></i> Save to Collection</h5>+ <h5 class="modal-title" id="saveToCollectionModalLabel"><i aria-hidden="true" class="fas fa-folder-plus"></i> Save to Collection</h5><button type="button" class="btn-close" data-bs-dismiss="modal" aria-label="Close"></button></div><div class="modal-body"><p class="text-muted mb-3">Save this research (report and sources) to a collection for semantic search.</p><div id="collection-list-loading" class="text-center py-3">- <i class="fas fa-spinner fa-spin"></i> Loading collections...+ <i aria-hidden="true" class="fas fa-spinner fa-spin"></i> Loading collections...</div><div id="collection-list" style="display: none;"><div class="list-group" id="collection-items">diff --git a/src/local_deep_research/web/templates/pages/subscriptions.html b/src/local_deep_research/web/templates/pages/subscriptions.htmlindex 77382059e4..a8c685c1dc 100644--- a/src/local_deep_research/web/templates/pages/subscriptions.html+++ b/src/local_deep_research/web/templates/pages/subscriptions.html@@ -44,15 +44,15 @@<!-- Header Section --><div class="ldr-page-header"><div class="ldr-header-content">- <h1><i class="bi bi-bell"></i> News Subscriptions</h1>+ <h1><i aria-hidden="true" class="bi bi-bell"></i> News Subscriptions</h1><p class="ldr-subtitle">Manage your news topics and scheduled searches</p></div><div class="ldr-header-actions"><a href="/news" class="btn btn-outline-secondary">- <i class="bi bi-arrow-left"></i> Back to News Feed+ <i aria-hidden="true" class="bi bi-arrow-left"></i> Back to News Feed</a><button id="create-subscription-btn" class="btn btn-primary">- <i class="bi bi-plus-circle"></i> Create Subscription+ <i aria-hidden="true" class="bi bi-plus-circle"></i> Create Subscription</button></div></div>@@ -91,7 +91,7 @@<!-- Scheduler Status Bar --><div class="ldr-scheduler-status-bar"><div class="ldr-scheduler-info">- <i class="bi bi-clock-history"></i>+ <i aria-hidden="true" class="bi bi-clock-history"></i><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>@@ -108,17 +108,17 @@<h3>Folders</h3><div class="ldr-folder-list"><div class="ldr-folder-item active" data-folder="all">- <i class="bi bi-collection"></i> All Subscriptions+ <i aria-hidden="true" class="bi bi-collection"></i> All Subscriptions<span class="ldr-folder-count">0</span></div><div class="ldr-folder-item" data-folder="uncategorized">- <i class="bi bi-folder"></i> Uncategorized+ <i aria-hidden="true" class="bi bi-folder"></i> Uncategorized<span class="ldr-folder-count">0</span></div><!-- Dynamic folders will be added here --></div><button class="btn btn-sm btn-outline-secondary mt-3" id="add-folder-btn">- <i class="bi bi-plus"></i> New Folder+ <i aria-hidden="true" class="bi bi-plus"></i> New Folder</button></div>@@ -127,7 +127,7 @@<!-- Search and Filter Bar --><div class="ldr-filter-bar"><div class="ldr-search-box">- <i class="bi bi-search"></i>+ <i aria-hidden="true" class="bi bi-search"></i><input type="text" id="subscription-search" placeholder="Search subscriptions..."></div><div class="ldr-filter-options">diff --git a/src/local_deep_research/web/templates/settings_dashboard.html b/src/local_deep_research/web/templates/settings_dashboard.htmlindex 78b343dd96..4e1be438fb 100644--- a/src/local_deep_research/web/templates/settings_dashboard.html+++ b/src/local_deep_research/web/templates/settings_dashboard.html@@ -24,31 +24,31 @@<p class="ldr-support-note"><span class="ldr-support-label">Learn & Get Help:</span><a href="https://github.com/LearningCircuit/local-deep-research/wiki" target="_blank" title="Tips, guides, and tutorials">- <i class="fas fa-book"></i> Wiki+ <i aria-hidden="true" class="fas fa-book"></i> Wiki</a>·<a href="https://github.com/LearningCircuit/local-deep-research/tree/main/docs" target="_blank" title="Technical documentation">- <i class="fas fa-file-alt"></i> Docs+ <i aria-hidden="true" class="fas fa-file-alt"></i> Docs</a>·<a href="https://github.com/LearningCircuit/local-deep-research/blob/main/docs/CONFIGURATION.md" target="_blank" title="Complete reference of all settings, defaults, and environment variables">- <i class="fas fa-cogs"></i> Config Reference+ <i aria-hidden="true" class="fas fa-cogs"></i> Config Reference</a>·<a href="https://discord.gg/ttcqQeFcJ3" target="_blank" title="Get help from the community">- <i class="fab fa-discord"></i> Discord+ <i aria-hidden="true" class="fab fa-discord"></i> Discord</a>·<a href="https://www.reddit.com/r/LocalDeepResearch/" target="_blank" title="Discussions and showcases">- <i class="fab fa-reddit"></i> Reddit+ <i aria-hidden="true" class="fab fa-reddit"></i> Reddit</a>·<a href="https://github.com/LearningCircuit/local-deep-research/issues" target="_blank" title="Report bugs or suggest ideas">- <i class="fas fa-bug"></i> Feedback+ <i aria-hidden="true" class="fas fa-bug"></i> Feedback</a></p><p class="ldr-community-note">- <i class="fas fa-lightbulb"></i>+ <i aria-hidden="true" class="fas fa-lightbulb"></i>We're always looking for new ideas and recommendations! If you have suggestions for features, improvements, or if you encounter bugs or things that don't work optimally, please share them on<a href="https://github.com/LearningCircuit/local-deep-research/issues" target="_blank">GitHub Issues</a>. Your feedback helps make Local Deep Research better for everyone.</p>@@ -59,7 +59,7 @@{% if not has_encryption %}<div class="ldr-alert ldr-alert-warning">- <i class="fas fa-exclamation-triangle"></i> <strong>Security Warning:</strong>+ <i aria-hidden="true" class="fas fa-exclamation-triangle"></i> <strong>Security Warning:</strong>Database encryption is not available. Your API keys and data are stored unencrypted.<br><small>Install SQLCipher for secure storage. See documentation for details.</small></div>@@ -69,7 +69,7 @@{% if messages %}{% for category, message in messages %}<div class="ldr-alert ldr-alert-{{ category }}">- <i class="fas {% if category == 'success' %}fa-check-circle{% else %}fa-exclamation-circle{% endif %}"></i> {{ message }}+ <i aria-hidden="true" class="fas {% if category == 'success' %}fa-check-circle{% else %}fa-exclamation-circle{% endif %}"></i> {{ message }}</div>{% endfor %}{% endif %}@@ -104,7 +104,7 @@</div><div class="ldr-toggle-raw-config" id="toggle-raw-config">- <i class="fas fa-code"></i> <span id="toggle-text">Show JSON Configuration</span>+ <i aria-hidden="true" class="fas fa-code"></i> <span id="toggle-text">Show JSON Configuration</span></div><div id="raw-config" class="ldr-raw-config-section" style="display: none;">@@ -121,10 +121,10 @@<div class="ldr-form-actions"><button type="button" id="reset-to-defaults-button" class="btn btn-warning">- <i class="fas fa-sync-alt"></i> Reset to Defaults+ <i aria-hidden="true" class="fas fa-sync-alt"></i> Reset to Defaults</button><button type="submit" class="btn btn-primary">- <i class="fas fa-save"></i> Save All Settings+ <i aria-hidden="true" class="fas fa-save"></i> Save All Settings</button></div></form>