Skip to content

~95% on SimpleQA (e.g. Qwen3.6-27B on a 3090). Supports all local and cloud LLMs (llama.cpp, Ollama, Google, ...). 10+ search engines - arXiv, PubMed, your private documents. Everything Local & Encrypted.

feat: Complete CSS class prefix standardization to ldr-

LearningCircuiteb160a7033c9
diff --git a/src/local_deep_research/web/static/css/news.css b/src/local_deep_research/web/static/css/news.css
index 61666867f3..56019ab4f2 100644
--- a/src/local_deep_research/web/static/css/news.css
+++ b/src/local_deep_research/web/static/css/news.css
@@ -38,16 +38,16 @@
color: var(--text-primary) !important;
}
-.dropdown-menu {
+.ldr-dropdown-menu {
background-color: var(--bg-secondary) !important;
border-color: var(--border-color) !important;
}
-.dropdown-item {
+.ldr-dropdown-item {
color: var(--text-primary) !important;
}
-.dropdown-item:hover {
+.ldr-dropdown-item:hover {
background-color: var(--bg-tertiary) !important;
}
@@ -349,7 +349,7 @@
background: var(--accent-secondary);
}
-.search-type-select {
+.ldr-search-type-select {
width: auto;
min-width: 150px;
background: var(--bg-tertiary);
@@ -357,13 +357,13 @@
color: var(--text-primary);
}
-.feed-controls {
+.ldr-feed-controls {
display: flex;
gap: 0.5rem;
}
/* Horizontal Filters Bar */
-.filters-bar {
+.ldr-filters-bar {
background: var(--bg-tertiary);
border-radius: 8px;
padding: 1rem;
@@ -379,7 +379,7 @@
flex-wrap: wrap;
}
-.subscriptions-section {
+.ldr-subscriptions-section {
flex: 1;
}
@@ -445,7 +445,7 @@
}
/* Query template integrated */
-.query-template-integrated {
+.ldr-query-template-integrated {
margin-top: 1rem;
padding: 1rem;
background: var(--bg-tertiary);
@@ -478,19 +478,19 @@
}
/* News Items */
-.news-items-card {
+.ldr-news-items-card {
flex: 1;
overflow: hidden;
display: flex;
flex-direction: column;
}
-.news-items-card .ldr-card-content {
+.ldr-news-items-card .ldr-card-content {
flex: 1;
overflow-y: auto;
}
-.news-items {
+.ldr-news-items {
display: flex;
flex-direction: column;
gap: 1rem;
@@ -538,7 +538,7 @@
transition: width 0.5s ease;
}
-.spinning {
+.ldr-spinning {
animation: spin 2s linear infinite;
}
@@ -568,7 +568,7 @@
opacity: 0.85;
}
-.ldr-news-item.is-read .news-headline {
+.ldr-news-item.is-read .ldr-news-headline {
color: var(--text-secondary);
}
@@ -590,14 +590,14 @@
position: relative;
}
-.ldr-news-actions-menu .dropdown-menu {
+.ldr-news-actions-menu .ldr-dropdown-menu {
background: var(--bg-secondary);
border: 1px solid var(--border-color);
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
min-width: 180px;
}
-.ldr-news-actions-menu .dropdown-item {
+.ldr-news-actions-menu .ldr-dropdown-item {
color: var(--text-primary);
padding: 0.5rem 1rem;
display: flex;
@@ -606,12 +606,12 @@
transition: all 0.2s;
}
-.ldr-news-actions-menu .dropdown-item:hover {
+.ldr-news-actions-menu .ldr-dropdown-item:hover {
background: var(--bg-tertiary);
color: var(--text-primary);
}
-.ldr-news-actions-menu .dropdown-item i {
+.ldr-news-actions-menu .ldr-dropdown-item i {
width: 1.2rem;
text-align: center;
}
@@ -637,11 +637,11 @@
}
/* Saved items indicator */
-.save-btn i.bi-bookmark-fill {
+.ldr-save-btn i.ldr-bi-bookmark-fill {
color: var(--warning-color);
}
-.ldr-subscription-item .subscription-type {
+.ldr-subscription-item .ldr-subscription-type {
font-size: 0.75rem;
font-weight: 600;
letter-spacing: 0.5px;
@@ -677,7 +677,7 @@
animation: newItemPulse 2s ease-in-out infinite;
}
-.ldr-news-item.is-new .new-indicator {
+.ldr-news-item.is-new .ldr-new-indicator {
position: absolute;
top: 1rem;
right: 1rem;
@@ -692,7 +692,7 @@
gap: 0.25rem;
}
-.ldr-news-item.is-new .new-indicator::before {
+.ldr-news-item.is-new .ldr-new-indicator::before {
content: '•';
font-size: 1.2rem;
animation: pulseDot 1.5s ease-in-out infinite;
@@ -721,7 +721,7 @@
}
/* Subtle animation when new items appear */
-.ldr-news-item.fade-in-new {
+.ldr-news-item.ldr-fade-in-new {
animation: fadeInNew 0.6s ease-out forwards;
}
@@ -736,19 +736,19 @@
}
}
-.ldr-news-item.priority-high {
+.ldr-news-item.ldr-priority-high {
border-left: 4px solid var(--error-color);
}
-.ldr-news-item.priority-medium {
+.ldr-news-item.ldr-priority-medium {
border-left: 4px solid var(--warning-color);
}
-.ldr-news-item.priority-low {
+.ldr-news-item.ldr-priority-low {
border-left: 4px solid var(--success-color);
}
-.news-headline {
+.ldr-news-headline {
font-size: 1.6rem;
font-weight: 600;
margin-bottom: 1rem;
@@ -765,7 +765,7 @@
}
/* News content styles */
-.news-findings {
+.ldr-news-findings {
color: var(--text-primary);
line-height: 1.8;
margin: 1.5rem 0;
@@ -776,7 +776,7 @@
}
/* News card styles for JavaScript-generated content */
-.news-card {
+.ldr-news-card {
background: var(--bg-secondary);
color: var(--text-primary);
border: 1px solid var(--border-color);
@@ -795,14 +795,14 @@
line-height: 1.5;
}
-.news-summary {
+.ldr-news-summary {
color: var(--text-primary);
line-height: 1.7;
margin: 1rem 0;
font-size: 0.95rem;
}
-.news-summary p {
+.ldr-news-summary p {
color: var(--text-primary);
margin: 0;
}
@@ -813,13 +813,13 @@
color: var(--text-primary);
}
-.news-card * {
+.ldr-news-card * {
color: inherit;
}
/* Expand/Collapse button - Commented out as news items are now always expanded */
/*
-.expand-toggle-btn {
+.ldr-expand-toggle-btn {
position: absolute;
bottom: 1.5rem;
right: 1.5rem;
@@ -837,41 +837,41 @@
z-index: 10;
}
-.expand-toggle-btn:hover {
+.ldr-expand-toggle-btn:hover {
background: var(--accent-primary);
color: white;
border-color: var(--accent-primary);
transform: translateY(-2px);
}
-.expand-toggle-btn i {
+.ldr-expand-toggle-btn i {
transition: transform 0.3s;
}
-.ldr-news-item.is-expanded .expand-toggle-btn i,
-.news-card.is-expanded .expand-toggle-btn i {
+.ldr-news-item.is-expanded .ldr-expand-toggle-btn i,
+.ldr-news-card.is-expanded .ldr-expand-toggle-btn i {
transform: rotate(180deg);
}
*/
/* Expanded state styles */
.ldr-news-item.is-expanded,
-.news-card.is-expanded {
+.ldr-news-card.is-expanded {
min-height: auto;
}
-.ldr-news-item.is-expanded .news-findings,
-.news-card.is-expanded .news-findings,
-.ldr-news-item.is-expanded .news-summary,
-.news-card.is-expanded .news-summary {
+.ldr-news-item.is-expanded .ldr-news-findings,
+.ldr-news-card.is-expanded .ldr-news-findings,
+.ldr-news-item.is-expanded .ldr-news-summary,
+.ldr-news-card.is-expanded .ldr-news-summary {
max-height: none;
overflow: visible;
}
-.ldr-news-item.is-expanded .news-findings::after,
-.news-card.is-expanded .news-findings::after,
-.ldr-news-item.is-expanded .news-summary::after,
-.news-card.is-expanded .news-summary::after {
+.ldr-news-item.is-expanded .ldr-news-findings::after,
+.ldr-news-card.is-expanded .ldr-news-findings::after,
+.ldr-news-item.is-expanded .ldr-news-summary::after,
+.ldr-news-card.is-expanded .ldr-news-summary::after {
display: none;
}
@@ -932,17 +932,17 @@
box-shadow: 0 2px 8px rgba(110, 79, 246, 0.1);
}
-.subscription-actions {
+.ldr-subscription-actions {
display: flex;
gap: 0.5rem;
}
-.subscription-actions .btn {
+.ldr-subscription-actions .btn {
padding: 0.25rem 0.5rem;
font-size: 0.875rem;
}
-#folderTabs .nav-link {
+#folderTabs .ldr-nav-link {
color: var(--text-secondary);
border: 1px solid transparent;
background: transparent;
@@ -950,12 +950,12 @@
border-radius: 8px 8px 0 0;
}
-#folderTabs .nav-link:hover {
+#folderTabs .ldr-nav-link:hover {
color: var(--text-primary);
background: var(--bg-tertiary);
}
-#folderTabs .nav-link.active {
+#folderTabs .ldr-nav-link.active {
color: var(--accent-primary);
background: var(--bg-secondary);
border-color: var(--border-color);
@@ -969,7 +969,7 @@
/* Fade-out effect - commented out as items are always expanded */
/*
-.news-findings::after {
+.ldr-news-findings::after {
content: '';
position: absolute;
bottom: 0;
@@ -983,29 +983,29 @@
*/
/* Expanded state */
-.ldr-news-item.is-expanded .news-findings {
+.ldr-news-item.is-expanded .ldr-news-findings {
max-height: none;
}
-.ldr-news-item.is-expanded .news-findings::after {
+.ldr-news-item.is-expanded .ldr-news-findings::after {
opacity: 0;
}
-.news-findings p {
+.ldr-news-findings p {
margin: 0.5rem 0;
}
-.news-findings ul, .news-findings ol {
+.ldr-news-findings ul, .ldr-news-findings ol {
margin: 0.5rem 0;
padding-left: 1.5rem;
}
-.news-findings strong {
+.ldr-news-findings strong {
font-weight: 600;
color: var(--text-primary);
}
-.news-summary {
+.ldr-news-summary {
color: var(--text-secondary);
line-height: 1.8;
margin: 1.25rem 0;
@@ -1016,7 +1016,7 @@
/* Fade-out effect - commented out as items are always expanded */
/*
-.news-summary::after {
+.ldr-news-summary::after {
content: '';
position: absolute;
bottom: 0;
@@ -1035,13 +1035,13 @@
font-weight: 500;
}
-.impact-indicator {
+.ldr-impact-indicator {
display: flex;
align-items: center;
gap: 0.25rem;
}
-.impact-bar {
+.ldr-impact-bar {
width: 60px;
height: 4px;
background: var(--bg-secondary);
@@ -1049,12 +1049,12 @@
overflow: hidden;
}
-.impact-fill {
+.ldr-impact-fill {
height: 100%;
background: linear-gradient(to right, var(--success-color), var(--warning-color), var(--error-color));
}
-.news-summary {
+.ldr-news-summary {
color: var(--text-secondary);
line-height: 1.5;
margin-bottom: 1rem;
@@ -1069,12 +1069,12 @@
border-top: 1px solid var(--border-color);
}
-.vote-buttons {
+.ldr-vote-buttons {
display: flex;
gap: 0.5rem;
}
-.vote-btn {
+.ldr-vote-btn {
padding: 0.4rem 1rem;
background: var(--bg-secondary) !important;
border: 1px solid var(--border-color);
@@ -1089,12 +1089,12 @@
z-index: 2;
}
-.vote-btn:hover {
+.ldr-vote-btn:hover {
background: var(--bg-tertiary);
color: var(--text-primary);
}
-.vote-btn.voted {
+.ldr-vote-btn.ldr-voted {
background: var(--accent-primary);
color: white;
border-color: var(--accent-primary);
@@ -1113,7 +1113,7 @@
}
/* Search History */
-.recent-search-item {
+.ldr-recent-search-item {
display: flex;
align-items: center;
gap: 0.75rem;
@@ -1126,28 +1126,28 @@
border: 1px solid transparent;
}
-.recent-search-item:hover {
+.ldr-recent-search-item:hover {
background: var(--bg-tertiary);
border-color: var(--accent-primary);
transform: translateX(4px);
}
-.recent-search-item i:first-child {
+.ldr-recent-search-item i:first-child {
color: var(--accent-primary);
font-size: 1.1rem;
}
-.recent-search-item i:last-child {
+.ldr-recent-search-item i:last-child {
color: var(--text-secondary);
opacity: 0;
transition: opacity 0.2s;
}
-.recent-search-item:hover i:last-child {
+.ldr-recent-search-item:hover i:last-child {
opacity: 1;
}
-.recent-search-item .search-query {
+.ldr-recent-search-item .ldr-search-query {
font-weight: 500;
color: var(--text-primary);
margin-bottom: 0.25rem;
@@ -1156,22 +1156,22 @@
white-space: nowrap;
}
-.recent-search-item .search-meta {
+.ldr-recent-search-item .ldr-search-meta {
font-size: 0.75rem;
color: var(--text-secondary);
}
/* Table View */
-.news-table-container {
+.ldr-news-table-container {
overflow-x: auto;
}
-.news-table {
+.ldr-news-table {
width: 100%;
border-collapse: collapse;
}
-.news-table th {
+.ldr-news-table th {
background: var(--bg-tertiary);
padding: 1rem;
text-align: left;
@@ -1183,18 +1183,18 @@
z-index: 10;
}
-.news-table td {
+.ldr-news-table td {
padding: 1rem;
border-bottom: 1px solid var(--border-color);
color: var(--text-secondary);
vertical-align: top;
}
-.news-table tr:hover td {
+.ldr-news-table tr:hover td {
background: var(--bg-tertiary);
}
-.impact-badge {
+.ldr-impact-badge {
display: inline-block;
padding: 0.25rem 0.5rem;
border-radius: 4px;
@@ -1202,17 +1202,17 @@
font-weight: 600;
}
-.impact-high {
+.ldr-impact-high {
background: var(--error-color);
color: white;
}
-.impact-medium {
+.ldr-impact-medium {
background: var(--warning-color);
color: #000; /* Black text on warning background */
}
-.impact-low {
+.ldr-impact-low {
background: var(--success-color);
color: white;
}
@@ -1224,7 +1224,7 @@
overflow-y: auto;
}
-.subscriptions-list {
+.ldr-subscriptions-list {
margin-bottom: 1rem;
max-height: 300px;
overflow-y: auto;
@@ -1240,7 +1240,7 @@
border: 1px solid transparent;
}
-.subscription-header {
+.ldr-subscription-header {
display: flex;
justify-content: space-between;
align-items: center;
@@ -1255,24 +1255,24 @@
color: white;
}
-.subscription-type {
+.ldr-subscription-type {
font-size: 0.75rem;
opacity: 0.7;
text-transform: uppercase;
}
-.subscription-query {
+.ldr-subscription-query {
font-weight: 500;
margin: 0.25rem 0;
}
-.subscription-meta {
+.ldr-subscription-meta {
font-size: 0.8rem;
opacity: 0.7;
}
/* News Topics */
-.news-topics {
+.ldr-news-topics {
margin: 0.5rem 0;
display: flex;
flex-wrap: wrap;
@@ -1284,7 +1284,7 @@
margin-bottom: 1.5rem;
}
-.filter-label {
+.ldr-filter-label {
font-size: 0.85rem;
color: var(--text-secondary);
margin-bottom: 0.5rem;
@@ -1320,7 +1320,7 @@
}
/* Filter status bar */
-.filter-status-bar {
+.ldr-filter-status-bar {
background: var(--bg-secondary);
border-radius: 8px;
padding: 0.75rem;
@@ -1328,20 +1328,20 @@
border: 1px solid var(--border-color);
}
-.active-filters {
+.ldr-active-filters {
display: flex;
align-items: center;
gap: 0.5rem;
flex-wrap: wrap;
}
-.active-filters > span:first-child {
+.ldr-active-filters > span:first-child {
font-size: 0.85rem;
color: var(--text-secondary);
margin-right: 0.5rem;
}
-.filter-badge {
+.ldr-filter-badge {
padding: 0.25rem 0.75rem;
background: var(--bg-tertiary);
border-radius: 20px;
@@ -1350,19 +1350,19 @@
border: 1px solid var(--accent-primary);
}
-.filter-status-bar .btn-link {
+.ldr-filter-status-bar .btn-link {
margin-left: auto;
color: var(--accent-primary);
text-decoration: none;
padding: 0.25rem 0.5rem;
}
-.filter-status-bar .btn-link:hover {
+.ldr-filter-status-bar .btn-link:hover {
color: var(--accent-secondary);
}
/* Bulk actions bar */
-.bulk-actions-bar {
+.ldr-bulk-actions-bar {
background: var(--bg-secondary);
border-radius: 8px;
padding: 1rem;
@@ -1370,7 +1370,7 @@
border: 1px solid var(--border-color);
}
-.bulk-actions-content {
+.ldr-bulk-actions-content {
display: flex;
justify-content: space-between;
align-items: center;
@@ -1378,7 +1378,7 @@
gap: 1rem;
}
-.news-stats {
+.ldr-news-stats {
display: flex;
gap: 1.5rem;
}
@@ -1395,13 +1395,13 @@
color: var(--accent-primary);
}
-.bulk-actions {
+.ldr-bulk-actions {
display: flex;
gap: 0.5rem;
flex-wrap: wrap;
}
-.bulk-actions .btn {
+.ldr-bulk-actions .btn {
font-size: 0.85rem;
}
@@ -1435,13 +1435,13 @@ button[onclick="refreshFeed()"]:hover i {
}
/* Trending Topics */
-.trending-section {
+.ldr-trending-section {
margin-top: 2rem;
padding-top: 2rem;
border-top: 1px solid var(--border-color);
}
-.trending-section h3 {
+.ldr-trending-section h3 {
font-size: 0.9rem;
margin-bottom: 1rem;
color: var(--text-secondary);
@@ -1454,7 +1454,7 @@ button[onclick="refreshFeed()"]:hover i {
margin-bottom: 1rem;
}
-#trending-topics .topic-tag {
+#trending-topics .ldr-topic-tag {
font-size: 0.8rem;
padding: 0.3rem 0.7rem;
}
@@ -1465,7 +1465,7 @@ button[onclick="refreshFeed()"]:hover i {
gap: 0.5rem;
}
-.topic-tag {
+.ldr-topic-tag {
padding: 0.25rem 0.75rem;
background: var(--bg-tertiary) !important;
border: 1px solid var(--border-color);
@@ -1479,20 +1479,20 @@ button[onclick="refreshFeed()"]:hover i {
display: inline-block;
}
-.topic-tag:hover {
+.ldr-topic-tag:hover {
background: var(--accent-primary);
color: white;
border-color: var(--accent-primary);
}
-.topic-tag.active {
+.ldr-topic-tag.active {
background: var(--accent-primary) !important;
color: white !important;
border-color: var(--accent-primary) !important;
}
/* Topic count badge */
-.topic-count {
+.ldr-topic-count {
background: rgba(255, 255, 255, 0.2);
color: var(--text-primary);
padding: 0.1rem 0.4rem;
@@ -1505,18 +1505,18 @@ button[onclick="refreshFeed()"]:hover i {
text-align: center;
}
-.topic-tag:hover .topic-count {
+.ldr-topic-tag:hover .ldr-topic-count {
background: rgba(255, 255, 255, 0.3);
color: white;
}
-.topic-tag.active .topic-count {
+.ldr-topic-tag.active .ldr-topic-count {
background: rgba(255, 255, 255, 0.3);
color: white;
}
/* Source links */
-.news-sources {
+.ldr-news-sources {
margin: 1rem 0;
padding: 0.75rem;
background: var(--bg-secondary);
@@ -1524,7 +1524,7 @@ button[onclick="refreshFeed()"]:hover i {
border: 1px solid var(--border-color);
}
-.sources-label {
+.ldr-sources-label {
font-size: 0.85rem;
font-weight: 600;
color: var(--text-secondary);
@@ -1538,7 +1538,7 @@ button[onclick="refreshFeed()"]:hover i {
margin-top: 0.5rem;
}
-.source-link {
+.ldr-source-link {
color: var(--accent-primary) !important;
text-decoration: none;
font-size: 0.8rem;
@@ -1555,20 +1555,20 @@ button[onclick="refreshFeed()"]:hover i {
text-overflow: ellipsis;
}
-.source-link:hover {
+.ldr-source-link:hover {
background: var(--accent-primary);
color: white !important;
border-color: var(--accent-primary);
transform: translateY(-1px);
}
-.source-link i {
+.ldr-source-link i {
font-size: 0.9rem;
opacity: 0.7;
}
/* Make the entire sources section more compact */
-.news-sources {
+.ldr-news-sources {
margin-top: 0.8rem;
padding: 0.8rem;
background: var(--bg-tertiary);
@@ -1577,7 +1577,7 @@ button[onclick="refreshFeed()"]:hover i {
}
/* Active filter bar */
-.active-filter-bar {
+.ldr-active-filter-bar {
background: var(--bg-tertiary);
border: 1px solid var(--accent-primary);
border-radius: 8px;
@@ -1585,24 +1585,24 @@ button[onclick="refreshFeed()"]:hover i {
margin-bottom: 1rem;
}
-.filter-info {
+.ldr-filter-info {
display: flex;
align-items: center;
gap: 0.5rem;
color: var(--text-primary);
}
-.filter-info strong {
+.ldr-filter-info strong {
color: var(--accent-primary);
}
-.filter-info button {
+.ldr-filter-info button {
margin-left: auto;
color: var(--text-secondary);
text-decoration: none;
}
-.filter-info button:hover {
+.ldr-filter-info button:hover {
color: var(--accent-primary);
}
@@ -1707,14 +1707,14 @@ button[onclick="refreshFeed()"]:hover i {
border: 1px solid var(--border-color);
}
-.history-header {
+.ldr-history-header {
display: flex;
justify-content: space-between;
align-items: center;
margin-bottom: 0.5rem;
}
-.history-status {
+.ldr-history-status {
padding: 0.25rem 0.5rem;
border-radius: 4px;
font-size: 0.75rem;
@@ -1722,41 +1722,41 @@ button[onclick="refreshFeed()"]:hover i {
text-transform: uppercase;
}
-.history-status.ldr-status-completed {
+.ldr-history-status.ldr-status-completed {
background: var(--success-color);
color: white;
}
-.history-status.status-in_progress {
+.ldr-history-status.ldr-status-in_progress {
background: var(--warning-color);
color: #000;
}
-.history-status.ldr-status-failed,
-.history-status.status-error {
+.ldr-history-status.ldr-status-failed,
+.ldr-history-status.ldr-status-error {
background: var(--error-color);
color: white;
}
-.history-time {
+.ldr-history-time {
font-size: 0.85rem;
color: var(--text-muted);
}
-.history-query {
+.ldr-history-query {
margin: 0.5rem 0;
font-weight: 500;
color: var(--text-primary);
}
-.history-actions {
+.ldr-history-actions {
display: flex;
align-items: center;
gap: 1rem;
margin-top: 0.5rem;
}
-.history-actions .duration {
+.ldr-history-actions .ldr-duration {
font-size: 0.85rem;
color: var(--text-secondary);
}
@@ -1814,17 +1814,17 @@ button[onclick="refreshFeed()"]:hover i {
}
/* Progress card specific styles */
-.news-card.ldr-active-research-card .ldr-news-title i {
+.ldr-news-card.ldr-active-research-card .ldr-news-title i {
color: var(--accent-primary);
margin-right: 0.5rem;
}
-.news-card.ldr-active-research-card .btn-outline-primary {
+.ldr-news-card.ldr-active-research-card .btn-outline-primary {
border-color: var(--accent-primary);
color: var(--accent-primary);
}
-.news-card.ldr-active-research-card .btn-outline-primary:hover {
+.ldr-news-card.ldr-active-research-card .btn-outline-primary:hover {
background: var(--accent-primary);
color: white;
border-color: var(--accent-primary);
diff --git a/src/local_deep_research/web/static/css/settings.css b/src/local_deep_research/web/static/css/settings.css
index 521a65d712..f80af2fdcb 100644
--- a/src/local_deep_research/web/static/css/settings.css
+++ b/src/local_deep_research/web/static/css/settings.css
@@ -81,7 +81,7 @@
}
/* Cards */
-.settings-cards {
+.ldr-settings-cards {
display: grid;
grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
gap: 1rem;
@@ -102,7 +102,7 @@
border-color: rgba(255, 255, 255, 0.2);
}
-.settings-card-icon {
+.ldr-settings-card-icon {
width: 48px;
height: 48px;
border-radius: 50%;
@@ -127,7 +127,7 @@
margin-bottom: 1rem;
}
-.settings-card-footer {
+.ldr-settings-card-footer {
margin-top: auto;
display: flex;
justify-content: flex-end;
@@ -176,12 +176,12 @@
opacity: 0.8;
}
-.settings-toggle-icon {
+.ldr-settings-toggle-icon {
transition: transform 0.3s;
color: var(--accent-primary);
}
-.ldr-settings-section-header.collapsed .settings-toggle-icon {
+.ldr-settings-section-header.collapsed .ldr-settings-toggle-icon {
transform: rotate(-90deg);
}
@@ -190,11 +190,11 @@
border-top: none;
}
-.settings-group {
+.ldr-settings-group {
margin-bottom: 1.5rem;
}
-.settings-group-title {
+.ldr-settings-group-title {
font-size: 1rem;
font-weight: 500;
margin-bottom: 1rem;
@@ -203,37 +203,37 @@
align-items: center;
}
-.settings-group-title i {
+.ldr-settings-group-title i {
margin-right: 8px;
}
-.settings-row {
+.ldr-settings-row {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
gap: 1rem;
margin-bottom: 1rem;
}
-.settings-item {
+.ldr-settings-item {
margin-bottom: 1.25rem;
padding-bottom: 1.25rem;
border-bottom: 1px solid var(--border-color);
}
-.settings-item:last-child {
+.ldr-settings-item:last-child {
margin-bottom: 0;
padding-bottom: 0;
border-bottom: none;
}
-.settings-item-header {
+.ldr-settings-item-header {
display: flex;
align-items: flex-start;
margin-bottom: 0.75rem;
min-height: 28px;
}
-.settings-item-header label {
+.ldr-settings-item-header label {
font-weight: 600;
margin-right: 0.5rem;
color: var(--text-primary);
@@ -243,22 +243,22 @@
text-overflow: ellipsis;
}
-.settings-item-header label[title] {
+.ldr-settings-item-header label[title] {
cursor: help;
}
-.settings-item label {
+.ldr-settings-item label {
font-weight: 600;
margin-right: 0.5rem;
color: var(--text-primary);
}
-.settings-tooltip {
+.ldr-settings-tooltip {
color: var(--text-secondary);
cursor: help;
}
-.settings-tooltip:hover::after {
+.ldr-settings-tooltip:hover::after {
content: attr(title);
position: absolute;
top: 100%;
@@ -274,7 +274,7 @@
margin-top: 5px;
}
-.settings-tooltip:hover::before {
+.ldr-settings-tooltip:hover::before {
content: '';
position: absolute;
top: 100%;
@@ -286,9 +286,9 @@
}
/* Inputs */
-.settings-input,
-.settings-textarea,
-.settings-select {
+.ldr-settings-input,
+.ldr-settings-textarea,
+.ldr-settings-select {
width: 100%;
padding: 0.75rem;
font-size: 0.9rem;
@@ -299,25 +299,25 @@
transition: border-color 0.2s, box-shadow 0.2s;
}
-.settings-textarea {
+.ldr-settings-textarea {
min-height: 120px;
font-family: monospace;
white-space: pre;
}
-.settings-textarea.json-content {
+.ldr-settings-textarea.ldr-json-content {
font-family: 'Courier New', Courier, monospace;
}
-.settings-input:focus,
-.settings-textarea:focus,
-.settings-select:focus {
+.ldr-settings-input:focus,
+.ldr-settings-textarea:focus,
+.ldr-settings-select:focus {
outline: none;
border-color: var(--accent-primary);
box-shadow: 0 0 0 2px rgba(110, 79, 246, 0.3);
}
-.settings-select {
+.ldr-settings-select {
appearance: none;
background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%236b7280' viewBox='0 0 16 16'%3E%3Cpath d='M8 11l-6-6 1.5-1.5L8 8l4.5-4.5L14 5l-6 6z'/%3E%3C/svg%3E");
background-repeat: no-repeat;
@@ -326,38 +326,38 @@
padding-right: 2.5rem;
}
-.settings-checkbox-container {
+.ldr-settings-checkbox-container {
margin: 0.5rem 0;
}
-.settings-checkbox-container .ldr-checkbox-label {
+.ldr-settings-checkbox-container .ldr-checkbox-label {
margin-bottom: 0.25rem;
}
-.json-property-item .ldr-checkbox-label {
+.ldr-json-property-item .ldr-checkbox-label {
display: flex;
align-items: center;
margin: 0;
padding: 0;
}
-.settings-checkbox {
+.ldr-settings-checkbox {
width: 18px;
height: 18px;
background-color: rgba(20, 25, 35, 0.7);
border: 1px solid rgba(255, 255, 255, 0.2);
}
-.settings-range {
+.ldr-settings-range {
flex: 1;
}
-.settings-range-container {
+.ldr-settings-range-container {
display: flex;
align-items: center;
}
-.settings-range-value {
+.ldr-settings-range-value {
min-width: 40px;
margin-left: 1rem;
padding: 0.25rem 0.5rem;
@@ -368,18 +368,18 @@
font-size: 0.85rem;
}
-.settings-help {
+.ldr-settings-help {
margin-top: 0.5rem;
font-size: 0.85rem;
color: var(--text-secondary);
padding-left: 24px;
}
-.settings-error {
+.ldr-settings-error {
border-color: var(--error-color) !important;
}
-.settings-error-message {
+.ldr-settings-error-message {
color: var(--error-color);
font-size: 0.85rem;
margin-top: 0.5rem;
@@ -395,18 +395,18 @@
border-top: 1px solid rgba(255, 255, 255, 0.05);
}
-.settings-actions {
+.ldr-settings-actions {
margin-top: 20px;
display: flex;
justify-content: flex-end;
gap: 1.5rem;
}
-.settings-modified {
+.ldr-settings-modified {
position: relative;
}
-.json-content {
+.ldr-json-content {
font-family: monospace;
white-space: pre-wrap;
overflow-x: auto;
@@ -414,13 +414,13 @@
background-color: rgba(20, 25, 35, 0.7);
}
-.settings-json-editor {
+.ldr-settings-json-editor {
position: relative;
display: flex;
flex-direction: column;
}
-.settings-json-toolbar {
+.ldr-settings-json-toolbar {
display: flex;
justify-content: flex-end;
gap: 5px;
@@ -430,7 +430,7 @@
border-radius: 4px;
}
-.json-toolbar-btn {
+.ldr-json-toolbar-btn {
background-color: rgba(30, 35, 45, 0.7);
border: none;
color: var(--text-primary);
@@ -440,16 +440,16 @@
font-size: 0.8rem;
}
-.json-toolbar-btn:hover {
+.ldr-json-toolbar-btn:hover {
background-color: rgba(50, 55, 65, 0.9);
}
-.json-format-btn {
+.ldr-json-format-btn {
display: flex;
align-items: center;
}
-.json-copy-btn {
+.ldr-json-copy-btn {
display: flex;
align-items: center;
}
@@ -574,26 +574,26 @@
line-height: 1.3;
}
-.checkbox-group {
+.ldr-checkbox-group {
display: flex;
align-items: center;
gap: 0.5rem;
}
-.checkbox-group input {
+.ldr-checkbox-group input {
margin: 0;
}
-.checkbox-group label {
+.ldr-checkbox-group label {
margin: 0;
}
-.range-value {
+.ldr-range-value {
display: inline-block;
margin-left: 0.5rem;
}
-.config-raw {
+.ldr-config-raw {
margin-top: 2rem;
background-color: var(--bg-quaternary);
padding: 1rem;
@@ -627,7 +627,7 @@
background-color: rgba(74, 108, 247, 0.2);
}
-.config-raw-editor {
+.ldr-config-raw-editor {
background-color: var(--bg-quaternary);
color: var(--text-primary);
font-family: monospace;
@@ -641,7 +641,7 @@
display: block !important;
}
-.editor-header {
+.ldr-editor-header {
background-color: var(--bg-tertiary);
padding: 0.75rem 1rem;
border-bottom: 1px solid var(--border-color);
@@ -650,13 +650,13 @@
align-items: center;
}
-.editor-header h3 {
+.ldr-editor-header h3 {
margin: 0;
font-size: 1rem;
color: var(--text-primary);
}
-.editor-lang {
+.ldr-editor-lang {
background-color: var(--accent-primary);
font-size: 0.8rem;
padding: 0.25rem 0.5rem;
@@ -686,10 +686,10 @@
}
/* Settings-specific colorful info boxes */
-.provider-info,
-.search-info,
-.report-info,
-.app-info {
+.ldr-provider-info,
+.ldr-search-info,
+.ldr-report-info,
+.ldr-app-info {
margin-bottom: 1.5rem;
padding: 1rem;
border-radius: 0.375rem;
@@ -697,70 +697,70 @@
border-left-style: solid;
}
-.provider-info {
+.ldr-provider-info {
background-color: rgba(110, 79, 246, 0.1);
border-left-color: var(--accent-primary);
}
-.provider-info h3 {
+.ldr-provider-info h3 {
color: var(--accent-primary);
}
-.search-info {
+.ldr-search-info {
background-color: rgba(249, 188, 11, 0.1);
border-left-color: var(--warning-color);
}
-.search-info h3 {
+.ldr-search-info h3 {
color: var(--warning-color);
}
-.report-info {
+.ldr-report-info {
background-color: rgba(10, 207, 151, 0.1);
border-left-color: var(--success-color);
}
-.report-info h3 {
+.ldr-report-info h3 {
color: var(--success-color);
}
-.app-info {
+.ldr-app-info {
background-color: rgba(110, 79, 246, 0.15);
border-left-color: var(--accent-secondary);
}
-.app-info h3 {
+.ldr-app-info h3 {
color: var(--accent-secondary);
}
-.provider-info h3,
-.search-info h3,
-.report-info h3,
-.app-info h3 {
+.ldr-provider-info h3,
+.ldr-search-info h3,
+.ldr-report-info h3,
+.ldr-app-info h3 {
margin-bottom: 0.5rem;
font-size: 1.1rem;
}
-.provider-info p,
-.search-info p,
-.report-info p,
-.app-info p {
+.ldr-provider-info p,
+.ldr-search-info p,
+.ldr-report-info p,
+.ldr-app-info p {
margin-bottom: 0.5rem;
font-size: 0.9rem;
}
-.provider-info ul,
-.search-info ul,
-.report-info ul,
-.app-info ul {
+.ldr-provider-info ul,
+.ldr-search-info ul,
+.ldr-report-info ul,
+.ldr-app-info ul {
margin-bottom: 0;
padding-left: 1.5rem;
}
-.provider-info li,
-.search-info li,
-.report-info li,
-.app-info li {
+.ldr-provider-info li,
+.ldr-search-info li,
+.ldr-report-info li,
+.ldr-app-info li {
font-size: 0.9rem;
margin-bottom: 0.25rem;
}
@@ -897,7 +897,7 @@
}
/* JSON Expanded Controls */
-.json-expanded-controls {
+.ldr-json-expanded-controls {
background-color: rgba(30, 35, 45, 0.5);
border-radius: 8px;
padding: 1rem;
@@ -905,13 +905,13 @@
border: 1px solid var(--border-color);
}
-.json-property-controls {
+.ldr-json-property-controls {
display: grid;
grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
gap: 1rem;
}
-.json-property-item {
+.ldr-json-property-item {
margin-bottom: 0.5rem;
padding: 1rem;
background-color: rgba(25, 30, 40, 0.8);
@@ -920,14 +920,14 @@
transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}
-.json-property-item:hover {
+.ldr-json-property-item:hover {
transform: translateY(-2px);
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
border-color: rgba(110, 79, 246, 0.4);
}
/* Property label with ellipsis for long text */
-.json-property-item .property-label {
+.ldr-json-property-item .ldr-property-label {
display: block;
margin-bottom: 0.75rem;
font-weight: 500;
@@ -941,12 +941,12 @@
}
/* Add explicit title for hover tooltip on long labels */
-.json-property-item .property-label:hover {
+.ldr-json-property-item .ldr-property-label:hover {
color: var(--accent-primary);
}
/* Checkbox wrapper for clickable area */
-.checkbox-wrapper {
+.ldr-checkbox-wrapper {
cursor: pointer;
padding: 0.5rem;
margin: -0.5rem;
@@ -954,11 +954,11 @@
transition: background-color 0.2s;
}
-.checkbox-wrapper:hover {
+.ldr-checkbox-wrapper:hover {
background-color: rgba(110, 79, 246, 0.1);
}
-.json-property-item .ldr-checkbox-label {
+.ldr-json-property-item .ldr-checkbox-label {
display: flex;
align-items: center;
gap: 0.75rem;
@@ -966,14 +966,14 @@
cursor: pointer;
}
-.json-property-item .checkbox-text {
+.ldr-json-property-item .ldr-checkbox-text {
font-size: 0.9rem;
color: var(--text-primary);
cursor: pointer;
}
-.json-property-item .settings-input,
-.json-property-item .settings-select {
+.ldr-json-property-item .ldr-settings-input,
+.ldr-json-property-item .ldr-settings-select {
width: 100%;
padding: 0.7rem;
font-size: 0.9rem;
@@ -983,14 +983,14 @@
border-radius: 4px;
}
-.json-property-item .settings-input:focus,
-.json-property-item .settings-select:focus {
+.ldr-json-property-item .ldr-settings-input:focus,
+.ldr-json-property-item .ldr-settings-select:focus {
outline: none;
border-color: var(--accent-primary);
box-shadow: 0 0 0 2px rgba(110, 79, 246, 0.3);
}
-.json-property-item .settings-help {
+.ldr-json-property-item .ldr-settings-help {
color: var(--text-secondary);
font-size: 0.8rem;
margin-top: 0.5rem;
@@ -998,7 +998,7 @@
}
/* Animations for expanded controls */
-.json-expanded-controls {
+.ldr-json-expanded-controls {
animation: fadeIn 0.3s ease-in-out;
}
@@ -1054,14 +1054,14 @@
box-shadow: 0 0 0 2px rgba(110, 79, 246, 0.3);
}
-.checkbox-text {
+.ldr-checkbox-text {
margin-left: 0;
color: var(--text-primary);
font-size: 14px;
vertical-align: middle;
}
-.settings-item .ldr-checkbox-label {
+.ldr-settings-item .ldr-checkbox-label {
margin-top: 0;
padding-left: 0;
display: flex;
@@ -1069,25 +1069,25 @@
}
/* Boolean property items */
-.json-property-item.boolean-property {
+.ldr-json-property-item.ldr-boolean-property {
cursor: pointer;
transition: background-color 0.2s, transform 0.2s, box-shadow 0.2s, border-color 0.2s;
position: relative;
}
-.json-property-item.boolean-property:hover {
+.ldr-json-property-item.ldr-boolean-property:hover {
background-color: rgba(25, 35, 55, 0.9);
border-color: var(--accent-primary);
transform: translateY(-2px);
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.25);
}
-.json-property-item.boolean-property:active {
+.ldr-json-property-item.ldr-boolean-property:active {
transform: translateY(0px);
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.25);
}
-.json-property-item.boolean-property:after {
+.ldr-json-property-item.ldr-boolean-property:after {
content: '';
position: absolute;
top: 0;
@@ -1098,8 +1098,8 @@
cursor: pointer;
}
-.json-property-item.boolean-property .checkbox-wrapper,
-.json-property-item.boolean-property .ldr-checkbox-label {
+.ldr-json-property-item.ldr-boolean-property .ldr-checkbox-wrapper,
+.ldr-json-property-item.ldr-boolean-property .ldr-checkbox-label {
background-color: transparent;
cursor: pointer;
padding: 0;
@@ -1108,23 +1108,23 @@
z-index: 2;
}
-.json-property-item.boolean-property .checkbox-wrapper:hover {
+.ldr-json-property-item.ldr-boolean-property .ldr-checkbox-wrapper:hover {
background-color: transparent;
}
-.json-property-item.boolean-property .checkbox-text {
+.ldr-json-property-item.ldr-boolean-property .ldr-checkbox-text {
cursor: pointer;
position: relative;
z-index: 2;
}
-.json-property-item.boolean-property .property-label {
+.ldr-json-property-item.ldr-boolean-property .ldr-property-label {
cursor: pointer;
position: relative;
z-index: 2;
}
-.json-property-item.boolean-property input[type="checkbox"] {
+.ldr-json-property-item.ldr-boolean-property input[type="checkbox"] {
cursor: pointer;
margin-right: 8px;
position: relative;
@@ -1155,17 +1155,17 @@
background-color: #2980b9;
}
-.settings-item .ldr-checkbox-label {
+.ldr-settings-item .ldr-checkbox-label {
margin-top: 8px;
padding-left: 0;
}
/* Saving indicator styles */
-.saving {
+.ldr-saving {
position: relative;
}
-.saving:before {
+.ldr-saving:before {
content: '';
position: absolute;
left: -20px;
@@ -1180,16 +1180,16 @@
z-index: 10;
}
-.ldr-checkbox-label.saving:before {
+.ldr-checkbox-label.ldr-saving:before {
left: -20px;
top: 50%;
}
-.settings-item.saving:before {
+.ldr-settings-item.ldr-saving:before {
left: -20px;
}
-.form-group.saving:before {
+.form-group.ldr-saving:before {
left: -20px;
}
@@ -1223,7 +1223,7 @@
}
/* Data Location Section Styles */
-.data-location-section {
+.ldr-data-location-section {
background-color: var(--bg-secondary) !important;
border-radius: 0.5rem;
margin-bottom: 1.5rem;
@@ -1231,15 +1231,15 @@
}
/* Ensure all child elements don't have white backgrounds */
-.data-location-section * {
+.ldr-data-location-section * {
background-color: transparent;
}
-.data-location-section > div {
+.ldr-data-location-section > div {
background-color: transparent !important;
}
-.data-location-section .alert-warning {
+.ldr-data-location-section .alert-warning {
background: linear-gradient(135deg, rgba(110, 79, 246, 0.15) 0%, rgba(145, 121, 240, 0.15) 100%) !important;
background-color: transparent !important;
border-left: 4px solid var(--accent-primary);
@@ -1249,29 +1249,29 @@
}
/* Override any default alert styles */
-.data-location-section .alert {
+.ldr-data-location-section .alert {
background-color: transparent !important;
}
-.data-location-section .alert-warning strong {
+.ldr-data-location-section .alert-warning strong {
color: var(--accent-secondary);
}
-.data-location-section .alert-warning i {
+.ldr-data-location-section .alert-warning i {
color: var(--accent-primary);
}
-.data-location-section .alert-warning small {
+.ldr-data-location-section .alert-warning small {
color: var(--text-secondary);
display: block;
margin-top: 0.25rem;
}
-.data-location-details {
+.ldr-data-location-details {
padding: 1rem;
}
-.data-location-details .settings-item {
+.ldr-data-location-details .ldr-settings-item {
padding: 0.75rem 1rem;
margin-bottom: 0.75rem;
background-color: var(--bg-tertiary) !important;
@@ -1280,13 +1280,13 @@
}
/* Override any card or container styles within data location */
-.data-location-section .ldr-card,
-.data-location-section .card-body,
-.data-location-section .ldr-card-content {
+.ldr-data-location-section .ldr-card,
+.ldr-data-location-section .card-body,
+.ldr-data-location-section .ldr-card-content {
background-color: transparent !important;
}
-.data-location-details .settings-label {
+.ldr-data-location-details .ldr-settings-label {
color: var(--accent-secondary);
font-weight: 600;
margin-bottom: 0.5rem;
@@ -1295,11 +1295,11 @@
gap: 0.5rem;
}
-.data-location-details .settings-label i {
+.ldr-data-location-details .ldr-settings-label i {
color: var(--accent-primary);
}
-.data-location-details .settings-value code {
+.ldr-data-location-details .ldr-settings-value code {
background-color: rgba(0, 0, 0, 0.5);
color: var(--accent-tertiary);
padding: 0.25rem 0.5rem;
@@ -1307,23 +1307,23 @@
font-size: 0.875rem;
}
-.data-location-details .platform-defaults {
+.ldr-data-location-details .ldr-platform-defaults {
list-style: none;
padding: 0;
margin-top: 0.5rem;
}
-.data-location-details .platform-defaults li {
+.ldr-data-location-details .ldr-platform-defaults li {
padding: 0.375rem 0;
color: var(--text-secondary);
}
-.data-location-details .platform-defaults strong {
+.ldr-data-location-details .ldr-platform-defaults strong {
color: var(--text-primary);
margin-right: 0.5rem;
}
-.data-location-details .badge-info {
+.ldr-data-location-details .ldr-badge-info {
background-color: var(--accent-primary);
color: white;
padding: 0.25rem 0.75rem;
@@ -1332,11 +1332,11 @@
font-weight: 600;
}
-.data-location-details .text-success {
+.ldr-data-location-details .text-success {
color: var(--success-color);
}
-.data-location-details .text-muted {
+.ldr-data-location-details .text-muted {
color: var(--text-muted);
font-style: italic;
}
diff --git a/src/local_deep_research/web/static/js/components/details.js b/src/local_deep_research/web/static/js/components/details.js
index e5dbcf4b60..9f2691c6d9 100644
--- a/src/local_deep_research/web/static/js/components/details.js
+++ b/src/local_deep_research/web/static/js/components/details.js
@@ -507,11 +507,11 @@
Object.entries(timelineData.phase_stats).forEach(([phaseName, stats]) => {
const item = document.createElement('div');
- item.className = 'phase-stat-item';
+ item.className = 'ldr-phase-stat-item';
item.innerHTML = `
- <div class="phase-name">${phaseName}</div>
- <div class="phase-tokens">${formatNumber(stats.tokens)} tokens</div>
- <div class="phase-calls">${formatNumber(stats.count)} calls</div>
+ <div class="ldr-phase-name">${phaseName}</div>
+ <div class="ldr-phase-tokens">${formatNumber(stats.tokens)} tokens</div>
+ <div class="ldr-phase-calls">${formatNumber(stats.count)} calls</div>
`;
container.appendChild(item);
});
@@ -541,15 +541,15 @@
searchData.search_calls.forEach(call => {
const item = document.createElement('div');
- item.className = 'search-engine-item';
+ item.className = 'ldr-search-engine-item';
item.innerHTML = `
- <div class="search-engine-info">
- <div class="search-engine-name">${call.engine || 'Unknown'}</div>
- <div class="search-engine-query">${call.query || 'No query'}</div>
+ <div class="ldr-search-engine-info">
+ <div class="ldr-search-engine-name">${call.engine || 'Unknown'}</div>
+ <div class="ldr-search-engine-query">${call.query || 'No query'}</div>
</div>
- <div class="search-engine-stats">
- <div class="search-results">${formatNumber(call.results_count || 0)} results</div>
- <div class="search-time">${((call.response_time_ms || 0) / 1000).toFixed(1)}s</div>
+ <div class="ldr-search-engine-stats">
+ <div class="ldr-search-results">${formatNumber(call.results_count || 0)} results</div>
+ <div class="ldr-search-time">${((call.response_time_ms || 0) / 1000).toFixed(1)}s</div>
</div>
`;
container.appendChild(item);
@@ -986,7 +986,7 @@
}
let html = '<div style="overflow-x: auto; background: var(--card-bg); border-radius: 0.5rem; padding: 0.5rem;">';
- html += '<table class="data-table">';
+ html += '<table class="ldr-data-table">';
html += '<thead><tr>';
html += '<th>Phase</th>';
html += '<th style="text-align: right;">Requests</th>';
@@ -999,8 +999,8 @@
for (const [phase, stats] of Object.entries(phaseStats)) {
const truncatedBadge = stats.truncated_count > 0
- ? `<span class="badge badge-danger">${stats.truncated_count}</span>`
- : '<span class="badge badge-success">0</span>';
+ ? `<span class="ldr-badge ldr-badge-danger">${stats.truncated_count}</span>`
+ : '<span class="ldr-badge ldr-badge-success">0</span>';
html += `
<tr>
@@ -1031,8 +1031,8 @@
requests.forEach(req => {
const timestamp = new Date(req.timestamp).toLocaleTimeString();
const truncatedBadge = req.context_truncated
- ? '<span class="badge badge-danger">Yes</span>'
- : '<span class="badge badge-success">No</span>';
+ ? '<span class="ldr-badge ldr-badge-danger">Yes</span>'
+ : '<span class="ldr-badge ldr-badge-success">No</span>';
const responseTime = req.response_time_ms ? `${req.response_time_ms}ms` : 'N/A';
html += `
diff --git a/src/local_deep_research/web/static/js/components/progress.js b/src/local_deep_research/web/static/js/components/progress.js
index d84680942a..ae4eaaf0b9 100644
--- a/src/local_deep_research/web/static/js/components/progress.js
+++ b/src/local_deep_research/web/static/js/components/progress.js
@@ -162,7 +162,7 @@
console.log('Creating fallback progress bar');
const progressBarContainer = document.createElement('div');
progressBarContainer.className = 'ldr-progress-bar';
- progressBarContainer.innerHTML = '<div id="progress-bar" class="progress-fill" style="width: 0%"></div>';
+ progressBarContainer.innerHTML = '<div id="progress-bar" class="ldr-progress-fill" style="width: 0%"></div>';
progressContainer.prepend(progressBarContainer);
progressBar = document.getElementById('progress-bar');
@@ -684,7 +684,7 @@
if (statusText) {
statusText.textContent = 'Cancelled';
document.querySelectorAll('.ldr-status-indicator').forEach(el => {
- el.className = 'status-indicator status-cancelled';
+ el.className = 'ldr-status-indicator ldr-status-cancelled';
});
}
@@ -775,18 +775,18 @@
// Create notification element
const notificationEl = document.createElement('div');
- notificationEl.className = 'alert alert-dismissible fade show';
+ notificationEl.className = 'ldr-alert ldr-alert-dismissible fade show';
// Set type-specific styling
switch(type) {
case 'error':
- notificationEl.classList.add('alert-danger');
+ notificationEl.classList.add('ldr-alert-danger');
break;
case 'warning':
- notificationEl.classList.add('alert-warning');
+ notificationEl.classList.add('ldr-alert-warning');
break;
default:
- notificationEl.classList.add('alert-info');
+ notificationEl.classList.add('ldr-alert-info');
}
// Add title and message
diff --git a/src/local_deep_research/web/static/js/components/settings.js b/src/local_deep_research/web/static/js/components/settings.js
index ca9ecb585c..16f093ff80 100644
--- a/src/local_deep_research/web/static/js/components/settings.js
+++ b/src/local_deep_research/web/static/js/components/settings.js
@@ -316,7 +316,7 @@
});
// Set up special handlers for JSON property controls
- const jsonPropertyControls = settingsForm.querySelectorAll('.json-property-control');
+ const jsonPropertyControls = settingsForm.querySelectorAll('.ldr-json-property-control');
jsonPropertyControls.forEach(control => {
// Remove existing listeners
@@ -407,7 +407,7 @@
value = input.value;
// Handle JSON.
- if (input.classList.contains('json-content')) {
+ if (input.classList.contains('ldr-json-content')) {
try {
// Validate
value = JSON.parse(input.value);
@@ -452,7 +452,7 @@
if (hasChanged) {
// Mark parent item as modified
const item = input.closest('.settings-item');
- if (item) item.classList.add('settings-modified');
+ if (item) item.classList.add('ldr-settings-modified');
// Save if needed
if (shouldSaveImmediately) {
@@ -468,7 +468,7 @@
// If blur event and no changes, remove modified indicator maybe?
if (eventType === 'blur') {
const item = input.closest('.settings-item');
- if (item) item.classList.remove('settings-modified');
+ if (item) item.classList.remove('ldr-settings-modified');
}
}
// --- MODIFICATION END ---
@@ -535,18 +535,18 @@
// Valid JSON, remove any error styling
const settingsItem = input.closest('.settings-item');
if (settingsItem) {
- settingsItem.classList.remove('settings-error');
+ settingsItem.classList.remove('ldr-settings-error');
// Remove any error message
- const errorMsg = settingsItem.querySelector('.settings-error-message');
+ const errorMsg = settingsItem.querySelector('.ldr-settings-error-message');
if (errorMsg) {
errorMsg.remove();
}
}
- input.classList.remove('settings-error');
+ input.classList.remove('ldr-settings-error');
} catch (e) {
// Invalid JSON, mark as error but don't prevent typing
- input.classList.add('settings-error');
+ input.classList.add('ldr-settings-error');
// Don't show error message while actively typing, only on blur
input.addEventListener('blur', function onBlur() {
@@ -574,25 +574,25 @@
if (!settingsItem) return;
// Clear existing error message
- const existingMsg = settingsItem.querySelector('.settings-error-message');
+ const existingMsg = settingsItem.querySelector('.ldr-settings-error-message');
if (existingMsg) {
existingMsg.remove();
}
if (errorMessage) {
// Add error class
- settingsItem.classList.add('settings-error');
- input.classList.add('settings-error');
+ settingsItem.classList.add('ldr-settings-error');
+ input.classList.add('ldr-settings-error');
// Create error message
const errorMsg = document.createElement('div');
- errorMsg.className = 'settings-error-message';
+ errorMsg.className = 'ldr-settings-error-message';
errorMsg.textContent = errorMessage;
settingsItem.appendChild(errorMsg);
} else {
// Remove error class
- settingsItem.classList.remove('settings-error');
- input.classList.remove('settings-error');
+ settingsItem.classList.remove('ldr-settings-error');
+ input.classList.remove('ldr-settings-error');
}
}
@@ -613,7 +613,7 @@
// Set loading state on the source element
if (sourceElement) {
- sourceElement.classList.add('saving');
+ sourceElement.classList.add('ldr-saving');
}
// Create a new timer for this specific key
@@ -637,7 +637,7 @@
*/
function initExpandedJsonControls() {
// Find all JSON property controls
- document.querySelectorAll('.json-property-control').forEach(control => {
+ document.querySelectorAll('.ldr-json-property-control').forEach(control => {
// When the control changes, update the hidden JSON field
control.addEventListener('change', function() {
updateJsonFromControls(this);
@@ -712,7 +712,7 @@
// Mark the parent container as modified if there's a change
const settingItem = changedControl.closest('.settings-item');
if (settingItem && hasChanged) {
- settingItem.classList.add('settings-modified');
+ settingItem.classList.add('ldr-settings-modified');
}
// Update the UI even if we're not saving to the server
@@ -822,13 +822,13 @@
// Find the closest settings-item
const settingsItem = textarea.closest('.settings-item');
if (settingsItem) {
- settingsItem.classList.add('settings-error');
+ settingsItem.classList.add('ldr-settings-error');
// Add error message if it doesn't exist
- let errorMsg = settingsItem.querySelector('.settings-error-message');
+ let errorMsg = settingsItem.querySelector('.ldr-settings-error-message');
if (!errorMsg) {
errorMsg = document.createElement('div');
- errorMsg.className = 'settings-error-message';
+ errorMsg.className = 'ldr-settings-error-message';
settingsItem.appendChild(errorMsg);
}
errorMsg.textContent = 'Invalid JSON format';
@@ -868,8 +868,8 @@
const valueDisplay = document.getElementById(`${range.id}-value`) || range.nextElementSibling;
if (valueDisplay &&
- (valueDisplay.classList.contains('settings-range-value') ||
- valueDisplay.classList.contains('range-value'))) {
+ (valueDisplay.classList.contains('ldr-settings-range-value') ||
+ valueDisplay.classList.contains('ldr-range-value'))) {
// Set initial value
valueDisplay.textContent = range.value;
@@ -891,11 +891,11 @@
if (target) {
// Set initial state - expanded
- header.classList.remove('collapsed');
+ header.classList.remove('ldr-collapsed');
target.style.display = 'block';
header.addEventListener('click', () => {
- header.classList.toggle('collapsed');
+ header.classList.toggle('ldr-collapsed');
target.style.display = header.classList.contains('collapsed') ? 'none' : 'block';
// Rotate chevron icon
@@ -951,7 +951,7 @@
});
// Convert text inputs with JSON content to textareas
- document.querySelectorAll('.settings-input').forEach(input => {
+ document.querySelectorAll('.ldr-settings-input').forEach(input => {
const value = input.value.trim();
// Skip if the value is "[object Object]" which isn't valid JSON
@@ -2167,7 +2167,7 @@
// Clear any previous errors
document.querySelectorAll('.settings-error').forEach(element => {
- element.classList.remove('settings-error');
+ element.classList.remove('ldr-settings-error');
});
document.querySelectorAll('.settings-error-message').forEach(element => {
@@ -2178,13 +2178,13 @@
const formData = {};
// Get values from inputs
- document.querySelectorAll('.settings-input, .settings-textarea, .settings-select, .settings-range').forEach(input => {
+ document.querySelectorAll('.ldr-settings-input, .ldr-settings-textarea, .ldr-settings-select, .ldr-settings-range').forEach(input => {
// Skip inputs that are part of expanded JSON controls
- if (input.classList.contains('json-property-control')) return;
+ if (input.classList.contains('ldr-json-property-control')) return;
if (input.name) {
// Check if value is a JSON object (textarea)
- if (input.tagName === 'TEXTAREA' && input.classList.contains('settings-textarea')) {
+ if (input.tagName === 'TEXTAREA' && input.classList.contains('ldr-settings-textarea')) {
try {
const jsonValue = JSON.parse(input.value);
formData[input.name] = jsonValue;
@@ -2200,9 +2200,9 @@
});
// Get values from checkboxes
- document.querySelectorAll('.settings-checkbox').forEach(checkbox => {
+ document.querySelectorAll('.ldr-settings-checkbox').forEach(checkbox => {
// Skip checkboxes that are part of expanded JSON controls
- if (checkbox.classList.contains('json-property-control')) return;
+ if (checkbox.classList.contains('ldr-json-property-control')) return;
if (checkbox.name) {
formData[checkbox.name] = checkbox.checked;
@@ -2317,7 +2317,7 @@
// Show saving state for the form
if (settingsForm) {
- settingsForm.classList.add('saving');
+ settingsForm.classList.add('ldr-saving');
}
// Submit data to API
@@ -2332,11 +2332,11 @@
if (!element) return;
// Add success class
- element.classList.add('save-success');
+ element.classList.add('ldr-save-success');
// Remove it after a short delay
setTimeout(() => {
- element.classList.remove('save-success');
+ element.classList.remove('ldr-save-success');
}, 1500);
}
@@ -2369,11 +2369,11 @@
if (sourceElement && sourceElement.tagName) {
if (sourceElement.type === 'checkbox') {
// For checkboxes, use the checkbox label
- loadingContainer = sourceElement.closest('.checkbox-label') || sourceElement;
- } else if (sourceElement.classList.contains('json-property-control')) {
+ loadingContainer = sourceElement.closest('.ldr-checkbox-label') || sourceElement;
+ } else if (sourceElement.classList.contains('ldr-json-property-control')) {
// For JSON property controls, use the property item
loadingContainer = sourceElement.closest('.json-property-item') || sourceElement;
- } else if (sourceElement.classList.contains('json-content')) {
+ } else if (sourceElement.classList.contains('ldr-json-content')) {
// For JSON content, validate it before saving.
if (!validateJsonContent(sourceElement.value)) {
return;
@@ -2388,7 +2388,7 @@
// Add the saving class to show the spinner
if (loadingContainer) {
- loadingContainer.classList.add('saving');
+ loadingContainer.classList.add('ldr-saving');
}
// Get the keys being saved for reference
@@ -2423,7 +2423,7 @@
// Remove loading state
if (loadingContainer) {
- loadingContainer.classList.remove('saving');
+ loadingContainer.classList.remove('ldr-saving');
}
// Update all settings data if it's a global change
@@ -2508,7 +2508,7 @@
// Remove loading state
if (loadingContainer) {
- loadingContainer.classList.remove('saving');
+ loadingContainer.classList.remove('ldr-saving');
}
}
})
@@ -2525,7 +2525,7 @@
// Remove loading state
if (loadingContainer) {
- loadingContainer.classList.remove('saving');
+ loadingContainer.classList.remove('ldr-saving');
}
});
}
@@ -2670,9 +2670,9 @@
*/
function handleReset() {
// Reset to original values
- document.querySelectorAll('.settings-input, .settings-textarea, .settings-select').forEach(input => {
+ document.querySelectorAll('.ldr-settings-input, .ldr-settings-textarea, .ldr-settings-select').forEach(input => {
// Skip inputs that are part of expanded JSON controls
- if (input.classList.contains('json-property-control')) return;
+ if (input.classList.contains('ldr-json-property-control')) return;
const originalValue = originalSettings[input.name];
@@ -2683,21 +2683,21 @@
}
});
- document.querySelectorAll('.settings-checkbox').forEach(checkbox => {
+ document.querySelectorAll('.ldr-settings-checkbox').forEach(checkbox => {
// Skip checkboxes that are part of expanded JSON controls
- if (checkbox.classList.contains('json-property-control')) return;
+ if (checkbox.classList.contains('ldr-json-property-control')) return;
const originalValue = originalSettings[checkbox.name];
checkbox.checked = originalValue === true || originalValue === 'true';
});
- document.querySelectorAll('.settings-range').forEach(range => {
+ document.querySelectorAll('.ldr-settings-range').forEach(range => {
const originalValue = originalSettings[range.name];
range.value = originalValue !== undefined ? originalValue : range.min;
// Update value display
const valueDisplay = range.nextElementSibling;
- if (valueDisplay && valueDisplay.classList.contains('settings-range-value')) {
+ if (valueDisplay && valueDisplay.classList.contains('ldr-settings-range-value')) {
valueDisplay.textContent = range.value;
}
});
@@ -4380,7 +4380,7 @@
const refreshBtn = document.createElement('button');
refreshBtn.type = 'button';
refreshBtn.id = inputId + '-refresh';
- refreshBtn.className = 'custom-dropdown-refresh-btn';
+ refreshBtn.className = 'ldr-custom-dropdown-refresh-btn';
refreshBtn.setAttribute('aria-label', 'Refresh options');
refreshBtn.style.display = 'flex';
refreshBtn.style.alignItems = 'center';
diff --git a/src/local_deep_research/web/templates/components/log_panel.html b/src/local_deep_research/web/templates/components/log_panel.html
index 41208346c4..c66b8faef6 100644
--- a/src/local_deep_research/web/templates/components/log_panel.html
+++ b/src/local_deep_research/web/templates/components/log_panel.html
@@ -1,4 +1,4 @@
-<div class="collapsible-ldr-log-panel">
+<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>
<span>Research Logs</span>
@@ -15,7 +15,7 @@
<button class="ldr-small-btn" onclick="window.filterLogsByType('error')">Errors</button>
</div>
</div>
- <div class="log-download">
+ <div class="ldr-log-download">
<button class="ldr-small-btn" id="log-download-button">
<i class="fas fa-download"></i> Download Logs
</button>
@@ -28,7 +28,7 @@
</div>
<div class="ldr-console-log" id="console-log-container">
<!-- Logs will be added here dynamically -->
- <div class="empty-ldr-log-message">No logs yet. Research logs will appear here as they occur.</div>
+ <div class="ldr-empty-log-message">No logs yet. Research logs will appear here as they occur.</div>
</div>
</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.html
index 8c374fb573..232b6de081 100644
--- a/src/local_deep_research/web/templates/components/settings_form.html
+++ b/src/local_deep_research/web/templates/components/settings_form.html
@@ -1,11 +1,11 @@
{% macro render_setting(setting, id_prefix="") %}
{% set setting_id = (id_prefix ~ "-" if id_prefix else "") ~ setting.key|replace(".", "-") %}
- <div class="settings-item form-group" data-key="{{ setting.key }}">
- <div class="settings-item-header">
+ <div class="ldr-settings-item form-group" data-key="{{ setting.key }}">
+ <div class="ldr-settings-item-header">
<label for="{{ setting_id }}">{{ setting.name }}</label>
{% if setting.description %}
- <span class="settings-tooltip" title="{{ setting.description }}">
+ <span class="ldr-settings-tooltip" title="{{ setting.description }}">
<i class="fas fa-info-circle"></i>
</span>
{% endif %}
@@ -14,7 +14,7 @@
{% if setting.ui_element == "textarea" %}
{# Check if this is JSON content that should be expanded into controls #}
{% if setting.value is mapping or (setting.value is string and (setting.value.startswith('{') and setting.value.endswith('}'))) %}
- <div class="json-expanded-controls">
+ <div class="ldr-json-expanded-controls">
{% if setting.value is string %}
{% set json_value = setting.value|tojson %}
{% else %}
@@ -25,9 +25,9 @@
<input type="hidden" id="{{ setting_id }}_original" name="{{ setting.key }}_original" value="{{ setting.value|tojson }}">
{# Create individual form controls for each JSON property #}
- <div class="json-property-controls">
+ <div class="ldr-json-property-controls">
{% for key, value in json_value.items() %}
- <div class="json-property-item">
+ <div class="ldr-json-property-item">
<label for="{{ setting_id }}_{{ key }}">{{ key|replace("_", " ")|title }}</label>
{% if value is boolean %}
@@ -35,18 +35,18 @@
<input type="checkbox"
id="{{ setting_id }}_{{ key }}"
name="{{ setting.key }}_{{ key }}"
- class="json-property-control"
+ class="ldr-json-property-control"
data-property="{{ key }}"
data-parent-key="{{ setting.key }}"
{% if value %}checked{% endif %}
{% if not setting.editable %}disabled{% endif %}>
- <span class="checkbox-text">{{ key|replace("_", " ")|title }}</span>
+ <span class="ldr-checkbox-text">{{ key|replace("_", " ")|title }}</span>
</div>
{% elif value is number %}
<input type="number"
id="{{ setting_id }}_{{ key }}"
name="{{ setting.key }}_{{ key }}"
- class="settings-input ldr-form-control json-property-control"
+ class="ldr-settings-input ldr-form-control ldr-json-property-control"
data-property="{{ key }}"
data-parent-key="{{ setting.key }}"
value="{{ value }}"
@@ -54,7 +54,7 @@
{% elif value is string and value in ["ITERATION", "NONE"] %}
<select id="{{ setting_id }}_{{ key }}"
name="{{ setting.key }}_{{ key }}"
- class="settings-select ldr-form-control json-property-control"
+ class="ldr-settings-select ldr-form-control ldr-json-property-control"
data-property="{{ key }}"
data-parent-key="{{ setting.key }}"
{% if not setting.editable %}disabled{% endif %}>
@@ -65,7 +65,7 @@
<input type="text"
id="{{ setting_id }}_{{ key }}"
name="{{ setting.key }}_{{ key }}"
- class="settings-input ldr-form-control json-property-control"
+ class="ldr-settings-input ldr-form-control ldr-json-property-control"
data-property="{{ key }}"
data-parent-key="{{ setting.key }}"
value="{{ value }}"
@@ -81,7 +81,7 @@
<textarea
id="{{ setting_id }}"
name="{{ setting.key }}"
- class="settings-textarea ldr-form-control"
+ class="ldr-settings-textarea ldr-form-control"
{% if not setting.editable %}disabled{% endif %}
>{{ setting.value if setting.value is not none else "" }}</textarea>
{% endif %}
@@ -103,7 +103,7 @@
<select
id="{{ setting_id }}"
name="{{ setting.key }}"
- class="settings-select ldr-form-control"
+ class="ldr-settings-select ldr-form-control"
{% if not setting.editable %}disabled{% endif %}
>
{% for option in setting.options %}
@@ -126,7 +126,7 @@
{% if setting.value == true or setting.value == "true" %}checked{% endif %}
{% if not setting.editable %}disabled{% endif %}
>
- <span class="checkbox-text">{{ setting.name }}</span>
+ <span class="ldr-checkbox-text">{{ setting.name }}</span>
</div>
{% elif setting.ui_element == "slider" or setting.ui_element == "range" %}
@@ -134,19 +134,19 @@
{% set max_value = setting.max_value if setting.max_value is not none else 100 %}
{% set step = setting.step if setting.step is not none else 1 %}
- <div class="settings-range-container">
+ <div class="ldr-settings-range-container">
<input
type="range"
id="{{ setting_id }}"
name="{{ setting.key }}"
- class="settings-range ldr-form-control"
+ class="ldr-settings-range ldr-form-control"
value="{{ setting.value if setting.value is not none else min_value }}"
min="{{ min_value }}"
max="{{ max_value }}"
step="{{ step }}"
{% if not setting.editable %}disabled{% endif %}
>
- <span class="settings-range-value" id="{{ setting_id }}-value">{{ setting.value if setting.value is not none else min_value }}</span>
+ <span class="ldr-settings-range-value" id="{{ setting_id }}-value">{{ setting.value if setting.value is not none else min_value }}</span>
</div>
{% elif setting.ui_element == "number" %}
@@ -158,7 +158,7 @@
type="number"
id="{{ setting_id }}"
name="{{ setting.key }}"
- class="settings-input ldr-form-control"
+ class="ldr-settings-input ldr-form-control"
value="{{ setting.value if setting.value is not none else '' }}"
min="{{ min_value }}"
max="{{ max_value }}"
@@ -171,7 +171,7 @@
type="password"
id="{{ setting_id }}"
name="{{ setting.key }}"
- class="settings-input ldr-form-control"
+ class="ldr-settings-input ldr-form-control"
value="{{ setting.value if setting.value is not none else '' }}"
{% if not setting.editable %}disabled{% endif %}
>
@@ -192,7 +192,7 @@
{% else %}
{% if setting.value is mapping or (setting.value is string and (setting.value.startswith('{') and setting.value.endswith('}'))) %}
- <div class="json-expanded-controls">
+ <div class="ldr-json-expanded-controls">
{% if setting.value is string %}
{% set json_value = setting.value|tojson %}
{% else %}
@@ -203,9 +203,9 @@
<input type="hidden" id="{{ setting_id }}_original" name="{{ setting.key }}_original" value="{{ setting.value|tojson }}">
{# Create individual form controls for each JSON property #}
- <div class="json-property-controls">
+ <div class="ldr-json-property-controls">
{% for key, value in json_value.items() %}
- <div class="json-property-item">
+ <div class="ldr-json-property-item">
<label for="{{ setting_id }}_{{ key }}">{{ key|replace("_", " ")|title }}</label>
{% if value is boolean %}
@@ -213,18 +213,18 @@
<input type="checkbox"
id="{{ setting_id }}_{{ key }}"
name="{{ setting.key }}_{{ key }}"
- class="json-property-control"
+ class="ldr-json-property-control"
data-property="{{ key }}"
data-parent-key="{{ setting.key }}"
{% if value %}checked{% endif %}
{% if not setting.editable %}disabled{% endif %}>
- <span class="checkbox-text">{{ key|replace("_", " ")|title }}</span>
+ <span class="ldr-checkbox-text">{{ key|replace("_", " ")|title }}</span>
</div>
{% elif value is number %}
<input type="number"
id="{{ setting_id }}_{{ key }}"
name="{{ setting.key }}_{{ key }}"
- class="settings-input ldr-form-control json-property-control"
+ class="ldr-settings-input ldr-form-control ldr-json-property-control"
data-property="{{ key }}"
data-parent-key="{{ setting.key }}"
value="{{ value }}"
@@ -233,7 +233,7 @@
<input type="text"
id="{{ setting_id }}_{{ key }}"
name="{{ setting.key }}_{{ key }}"
- class="settings-input ldr-form-control json-property-control"
+ class="ldr-settings-input ldr-form-control ldr-json-property-control"
data-property="{{ key }}"
data-parent-key="{{ setting.key }}"
value="{{ value }}"
@@ -250,7 +250,7 @@
type="text"
id="{{ setting_id }}"
name="{{ setting.key }}"
- class="settings-input ldr-form-control"
+ class="ldr-settings-input ldr-form-control"
value="{{ setting.value if setting.value is not none else '' }}"
{% if not setting.editable %}disabled{% endif %}
>
@@ -265,15 +265,15 @@
{% macro render_settings_section(section_title, section_id, settings, form_id='settings-form') %}
<div class="ldr-settings-section">
- <div class="settings-ldr-section-header" data-target="{{ section_id }}">
- <div class="settings-section-title">
+ <div class="ldr-settings-section-header" data-target="{{ section_id }}">
+ <div class="ldr-settings-section-title">
{{ section_title }}
</div>
- <div class="settings-ldr-toggle-icon">
+ <div class="ldr-settings-toggle-icon">
<i class="fas fa-chevron-down"></i>
</div>
</div>
- <div id="{{ section_id }}" class="settings-section-body">
+ <div id="{{ section_id }}" class="ldr-settings-section-body">
{% for setting in settings %}
{{ render_setting(setting, form_id) }}
{% endfor %}
diff --git a/src/local_deep_research/web/templates/pages/news.html b/src/local_deep_research/web/templates/pages/news.html
index d60f7a4c74..4c079f3119 100644
--- a/src/local_deep_research/web/templates/pages/news.html
+++ b/src/local_deep_research/web/templates/pages/news.html
@@ -225,18 +225,18 @@
<!-- Folder Tabs -->
<ul class="nav ldr-nav-tabs mb-3" id="folderTabs" role="tablist">
- <li class="nav-item" role="presentation">
- <button class="nav-link active" data-folder="all" type="button">
+ <li class="ldr-nav-item" role="presentation">
+ <button class="ldr-nav-link active" data-folder="all" type="button">
All Subscriptions
</button>
</li>
- <li class="nav-item" role="presentation">
- <button class="nav-link" data-folder="Unfiled" type="button">
+ <li class="ldr-nav-item" role="presentation">
+ <button class="ldr-nav-link" data-folder="Unfiled" type="button">
📁 Unfiled
</button>
</li>
<!-- Dynamic folder tabs will be added here -->
- <li class="nav-item ms-auto" role="presentation">
+ <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
</button>
diff --git a/src/local_deep_research/web/templates/pages/news_cleaned.html b/src/local_deep_research/web/templates/pages/news_cleaned.html
index 906e92f0ce..7010b233c6 100644
--- a/src/local_deep_research/web/templates/pages/news_cleaned.html
+++ b/src/local_deep_research/web/templates/pages/news_cleaned.html
@@ -75,10 +75,10 @@
<!-- News Cards Container -->
<div class="ldr-news-cards-container" id="news-container">
<!-- Loading skeleton -->
- <div class="loading-skeleton">
- <div class="skeleton-card"></div>
- <div class="skeleton-card"></div>
- <div class="skeleton-card"></div>
+ <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>
@@ -93,18 +93,18 @@
<!-- Right Sidebar - Recommendations -->
<div class="ldr-recommendations">
<h3><i class="bi bi-stars"></i> Recommended Topics</h3>
- <div class="recommendation-list" id="recommendations-list">
- <div class="recommendation-item">
+ <div class="ldr-recommendation-list" id="recommendations-list">
+ <div class="ldr-recommendation-item">
<i class="bi bi-lightning-charge"></i>
<span>Quantum Computing Breakthroughs</span>
<button class="btn btn-sm btn-outline-primary">Follow</button>
</div>
- <div class="recommendation-item">
+ <div class="ldr-recommendation-item">
<i class="bi bi-cpu"></i>
<span>AI Safety Research</span>
<button class="btn btn-sm btn-outline-primary">Follow</button>
</div>
- <div class="recommendation-item">
+ <div class="ldr-recommendation-item">
<i class="bi bi-graph-up"></i>
<span>Tech Market Analysis</span>
<button class="btn btn-sm btn-outline-primary">Follow</button>
@@ -128,9 +128,9 @@
<button type="button" class="btn-close" data-bs-dismiss="modal"></button>
</div>
<div class="modal-body">
- <div class="subscription-section">
+ <div class="ldr-subscription-section">
<h6>Your Subscriptions</h6>
- <div id="current-subscriptions" class="subscriptions-list">
+ <div id="current-subscriptions" class="ldr-subscriptions-list">
<!-- Will be populated dynamically -->
</div>
diff --git a/src/local_deep_research/web/templates/pages/research.html b/src/local_deep_research/web/templates/pages/research.html
index b7033b0dbd..667ce01bde 100644
--- a/src/local_deep_research/web/templates/pages/research.html
+++ b/src/local_deep_research/web/templates/pages/research.html
@@ -168,7 +168,7 @@
<div class="form-option">
<label for="notification-toggle" class="ldr-checkbox-label">
<input type="checkbox" id="notification-toggle" checked>
- <span class="checkbox-text">Sound notifications when complete</span>
+ <span class="ldr-checkbox-text">Sound notifications when complete</span>
</label>
</div>
</div>