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.

Attempt on improving the menu

LearningCircuit889f2906b5ce
diff --git a/src/local_deep_research/web/static/css/styles.css b/src/local_deep_research/web/static/css/styles.css
index 7f37ca8ca5..a01f3853a5 100644
--- a/src/local_deep_research/web/static/css/styles.css
+++ b/src/local_deep_research/web/static/css/styles.css
@@ -199,6 +199,35 @@ a:hover {
border: 1px solid var(--border-color);
}
+/* Sidebar Sections */
+.ldr-sidebar-section {
+ margin-bottom: 1.5rem;
+}
+
+.ldr-sidebar-section-label {
+ padding: 0.5rem 1.5rem 0.5rem 1.5rem;
+ font-size: 0.75rem;
+ font-weight: 700;
+ text-transform: uppercase;
+ letter-spacing: 0.05em;
+ color: var(--text-muted);
+ opacity: 0.7;
+}
+
+.ldr-sidebar-section ul {
+ margin-top: 0.25rem;
+}
+
+/* Nested sidebar items */
+.ldr-sidebar-item--nested a {
+ padding-left: 2.75rem;
+}
+
+/* Navigation text wrapper */
+.ldr-nav-text {
+ flex: 1;
+}
+
/* Main Content */
.ldr-main-content {
flex: 1;
@@ -1182,6 +1211,21 @@ textarea:focus, input[type="text"]:focus {
display: none;
}
+ /* Hide section labels in icon-only mode */
+ .ldr-sidebar-section-label {
+ display: none;
+ }
+
+ /* Reduce section spacing in icon-only mode */
+ .ldr-sidebar-section {
+ margin-bottom: 0.5rem;
+ }
+
+ /* Hide nav text in icon-only mode */
+ .ldr-nav-text {
+ display: none;
+ }
+
/* Active state fix for icon view */
.ldr-sidebar-nav li.active {
border-left-width: 3px;
@@ -1285,6 +1329,16 @@ textarea:focus, input[type="text"]:focus {
font-size: 1.25rem;
}
+ /* Show section labels when sidebar is active on mobile */
+ .ldr-sidebar.active .ldr-sidebar-section-label {
+ display: block;
+ }
+
+ /* Show nav text when sidebar is active on mobile */
+ .ldr-sidebar.active .ldr-nav-text {
+ display: block;
+ }
+
/* Restore text in nav items when sidebar is active on mobile */
.ldr-sidebar.active .ldr-sidebar-nav li {
text-indent: 0;
diff --git a/src/local_deep_research/web/static/js/mobile-navigation.js b/src/local_deep_research/web/static/js/mobile-navigation.js
index 437a4f844e..ed12992dd7 100644
--- a/src/local_deep_research/web/static/js/mobile-navigation.js
+++ b/src/local_deep_research/web/static/js/mobile-navigation.js
@@ -135,59 +135,73 @@
<div class="ldr-mobile-sheet-handle" aria-label="Drag to dismiss"></div>
<div class="ldr-mobile-sheet-content">
- <!-- User Section -->
+ <!-- Knowledge Base Section -->
<div class="ldr-mobile-sheet-section">
- <h3 class="ldr-mobile-sheet-title">Account</h3>
+ <h3 class="ldr-mobile-sheet-title">Knowledge Base</h3>
<div class="ldr-mobile-sheet-items">
- <button class="ldr-mobile-sheet-item" data-item-id="user" data-action="#">
- <i class="fas fa-user"></i>
- <span class="ldr-mobile-sheet-label">${username}</span>
- </button>
- <button class="ldr-mobile-sheet-item" data-item-id="settings" data-action="/settings/">
- <i class="fas fa-cog"></i>
- <span class="ldr-mobile-sheet-label">Settings</span>
- </button>
- <button class="ldr-mobile-sheet-item" data-item-id="logout" data-action="#logout">
- <i class="fas fa-sign-out-alt"></i>
- <span class="ldr-mobile-sheet-label">Logout</span>
+ <button class="ldr-mobile-sheet-item" data-item-id="collections" data-action="/rag/collections/">
+ <i class="fas fa-folder-open"></i>
+ <span class="ldr-mobile-sheet-label">Collections</span>
</button>
</div>
</div>
- <!-- Features Section -->
+ <!-- News Section -->
<div class="ldr-mobile-sheet-section">
- <h3 class="ldr-mobile-sheet-title">Features</h3>
+ <h3 class="ldr-mobile-sheet-title">News</h3>
<div class="ldr-mobile-sheet-items">
- <button class="ldr-mobile-sheet-item" data-item-id="library" data-action="/library/">
- <i class="fas fa-book"></i>
- <span class="ldr-mobile-sheet-label">Library</span>
- </button>
- <button class="ldr-mobile-sheet-item" data-item-id="subscriptions" data-action="/subscriptions/">
+ <button class="ldr-mobile-sheet-item" data-item-id="subscriptions" data-action="/news/subscriptions/">
<i class="fas fa-bell"></i>
<span class="ldr-mobile-sheet-label">Subscriptions</span>
</button>
+ </div>
+ </div>
+
+ <!-- Analytics Section -->
+ <div class="ldr-mobile-sheet-section">
+ <h3 class="ldr-mobile-sheet-title">Analytics</h3>
+ <div class="ldr-mobile-sheet-items">
+ <button class="ldr-mobile-sheet-item" data-item-id="metrics" data-action="/metrics/">
+ <i class="fas fa-chart-bar"></i>
+ <span class="ldr-mobile-sheet-label">Metrics</span>
+ </button>
<button class="ldr-mobile-sheet-item" data-item-id="benchmark" data-action="/benchmark/">
<i class="fas fa-tachometer-alt"></i>
<span class="ldr-mobile-sheet-label">Benchmark</span>
</button>
<button class="ldr-mobile-sheet-item" data-item-id="benchmark-results" data-action="/benchmark/results/">
<i class="fas fa-chart-line"></i>
- <span class="ldr-mobile-sheet-label">Benchmark Results</span>
+ <span class="ldr-mobile-sheet-label">Results</span>
</button>
</div>
</div>
- <!-- Help Section -->
+ <!-- Settings Section -->
<div class="ldr-mobile-sheet-section">
- <h3 class="ldr-mobile-sheet-title">Help & Info</h3>
+ <h3 class="ldr-mobile-sheet-title">Settings</h3>
<div class="ldr-mobile-sheet-items">
- <button class="ldr-mobile-sheet-item" data-item-id="help" data-action="#help">
- <i class="fas fa-question-circle"></i>
- <span class="ldr-mobile-sheet-label">Help</span>
+ <button class="ldr-mobile-sheet-item" data-item-id="embedding-settings" data-action="/rag/embedding_settings/">
+ <i class="fas fa-brain"></i>
+ <span class="ldr-mobile-sheet-label">Embeddings</span>
</button>
- <button class="ldr-mobile-sheet-item" data-item-id="about" data-action="#about">
- <i class="fas fa-info-circle"></i>
- <span class="ldr-mobile-sheet-label">About</span>
+ <button class="ldr-mobile-sheet-item" data-item-id="settings" data-action="/settings/">
+ <i class="fas fa-cog"></i>
+ <span class="ldr-mobile-sheet-label">Configuration</span>
+ </button>
+ </div>
+ </div>
+
+ <!-- Account Section -->
+ <div class="ldr-mobile-sheet-section">
+ <h3 class="ldr-mobile-sheet-title">Account</h3>
+ <div class="ldr-mobile-sheet-items">
+ <button class="ldr-mobile-sheet-item" data-item-id="user" data-action="#">
+ <i class="fas fa-user"></i>
+ <span class="ldr-mobile-sheet-label">${username}</span>
+ </button>
+ <button class="ldr-mobile-sheet-item" data-item-id="logout" data-action="#logout">
+ <i class="fas fa-sign-out-alt"></i>
+ <span class="ldr-mobile-sheet-label">Logout</span>
</button>
</div>
</div>
diff --git a/src/local_deep_research/web/templates/components/sidebar.html b/src/local_deep_research/web/templates/components/sidebar.html
index 397b3d5a52..fe195fb5a4 100644
--- a/src/local_deep_research/web/templates/components/sidebar.html
+++ b/src/local_deep_research/web/templates/components/sidebar.html
@@ -3,41 +3,104 @@
<h2 id="logo-link" style="cursor: pointer;"><i class="fas fa-atom"></i> Deep Research</h2>
</div>
<nav class="ldr-sidebar-nav">
- <ul>
- <li {% if active_page == 'new-research' %}class="active"{% endif %} data-page="new-research">
- <a href="/"><i class="fas fa-search"></i> New Research</a>
- </li>
- <li {% if active_page == 'history' %}class="active"{% endif %} data-page="history">
- <a href="{{ url_for('history.history_page') }}"><i class="fas fa-history"></i> History</a>
- </li>
- <li {% if active_page == 'library' %}class="active"{% endif %} data-page="library">
- <a href="{{ url_for('library.library_page') }}"><i class="fas fa-book"></i> Library</a>
- </li>
- <li {% if active_page == 'collections' %}class="active"{% endif %} data-page="collections">
- <a href="{{ url_for('rag.collections_page') }}"><i class="fas fa-folder-open"></i> Collections</a>
- </li>
- <li {% if active_page == 'news' %}class="active"{% endif %} data-page="news">
- <a href="{{ url_for('news.news_page') }}"><i class="fas fa-newspaper"></i> News</a>
- </li>
- <li {% if active_page == 'subscriptions' %}class="active"{% endif %} data-page="subscriptions">
- <a href="{{ url_for('news.subscriptions_page') }}"><i class="fas fa-bell"></i> Subscriptions</a>
- </li>
- <li {% if active_page == 'benchmark' %}class="active"{% endif %} data-page="benchmark">
- <a href="{{ url_for('benchmark.index') }}"><i class="fas fa-tachometer-alt"></i> Benchmark</a>
- </li>
- <li {% if active_page == 'benchmark-results' %}class="active"{% endif %} data-page="benchmark-results">
- <a href="{{ url_for('benchmark.results') }}"><i class="fas fa-chart-line"></i> Benchmark Results</a>
- </li>
- <li {% if active_page == 'metrics' %}class="active"{% endif %} data-page="metrics">
- <a href="{{ url_for('metrics.metrics_dashboard') }}"><i class="fas fa-chart-bar"></i> Metrics</a>
- </li>
- <li {% if active_page == 'embedding-settings' %}class="active"{% endif %} data-page="embedding-settings">
- <a href="{{ url_for('rag.embedding_settings_page') }}"><i class="fas fa-brain"></i> Embedding Settings</a>
- </li>
- <li {% if active_page == 'settings' %}class="active"{% endif %} data-page="settings">
- <a href="{{ url_for('settings.settings_page') }}"><i class="fas fa-cog"></i> Settings</a>
- </li>
- </ul>
+ <!-- Research Section -->
+ <div class="ldr-sidebar-section">
+ <div class="ldr-sidebar-section-label">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>
+ <span class="ldr-nav-text">New Research</span>
+ <span class="ldr-nav-shortcut">⌃⇧1</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>
+ <span class="ldr-nav-text">History</span>
+ <span class="ldr-nav-shortcut">⌃⇧2</span>
+ </a>
+ </li>
+ </ul>
+ </div>
+
+ <!-- Knowledge Base Section -->
+ <div class="ldr-sidebar-section">
+ <div class="ldr-sidebar-section-label">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>
+ <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>
+ <span class="ldr-nav-text">Collections</span>
+ </a>
+ </li>
+ </ul>
+ </div>
+
+ <!-- News Section -->
+ <div class="ldr-sidebar-section">
+ <div class="ldr-sidebar-section-label">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>
+ <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>
+ <span class="ldr-nav-text">Subscriptions</span>
+ </a>
+ </li>
+ </ul>
+ </div>
+
+ <!-- Analytics Section -->
+ <div class="ldr-sidebar-section">
+ <div class="ldr-sidebar-section-label">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>
+ <span class="ldr-nav-text">Metrics</span>
+ <span class="ldr-nav-shortcut">⌃⇧3</span>
+ </a>
+ </li>
+ <li {% if active_page == 'benchmark' or active_page == 'benchmark-results' %}class="active"{% endif %} data-page="benchmark">
+ <a href="{{ url_for('benchmark.index') }}" title="Benchmark">
+ <i class="fas fa-tachometer-alt"></i>
+ <span class="ldr-nav-text">Benchmark</span>
+ </a>
+ </li>
+ </ul>
+ </div>
+
+ <!-- Settings Section -->
+ <div class="ldr-sidebar-section">
+ <div class="ldr-sidebar-section-label">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>
+ <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>
+ <span class="ldr-nav-text">Configuration</span>
+ <span class="ldr-nav-shortcut">⌃⇧4</span>
+ </a>
+ </li>
+ </ul>
+ </div>
</nav>
<div class="ldr-sidebar-footer">
<p>{{ version }} | <i class="fas fa-brain"></i></p>