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: Add login page screenshots and improve UI simplicity

LearningCircuit5bd0e8585ea6
diff --git a/.gitignore b/.gitignore
index 1e1c85a1a2..949a7571b6 100644
--- a/.gitignore
+++ b/.gitignore
@@ -229,6 +229,10 @@ backup/
# Allow MD files only in specific directories
!docs/**/*.md
-!tests/**/*.md
!examples/**/*.md
!cookiecutter-docker/**/*.md
+
+# Block MD files in tests directories by default
+tests/**/*.md
+# To whitelist specific test MD files, add them explicitly like:
+# !tests/specific-file-to-include.md
diff --git a/src/local_deep_research/web/templates/auth/login.html b/src/local_deep_research/web/templates/auth/login.html
index 3d6e5c55f9..358e029138 100644
--- a/src/local_deep_research/web/templates/auth/login.html
+++ b/src/local_deep_research/web/templates/auth/login.html
@@ -30,219 +30,13 @@
min-height: 100vh;
width: 100%;
display: flex !important;
- flex-direction: row !important;
align-items: center;
justify-content: center;
- gap: 4rem;
padding: 2rem;
}
- .auth-visual {
- flex: 1 0 400px;
- display: flex;
- flex-direction: column;
- align-items: center;
- justify-content: center;
- gap: 3rem;
- opacity: 0.8;
- }
-
- .ldr-visual-container {
- position: relative;
- width: 300px;
- height: 300px;
- }
-
- /* DNA Helix Animation */
- .ldr-dna-helix {
- position: absolute;
- width: 100%;
- height: 100%;
- transform: rotateX(60deg) rotateZ(45deg);
- }
-
- .ldr-helix-line {
- position: absolute;
- width: 2px;
- height: 100%;
- background: linear-gradient(to bottom,
- transparent 0%,
- var(--accent-primary) 20%,
- var(--accent-secondary) 50%,
- var(--accent-tertiary) 80%,
- transparent 100%);
- left: 50%;
- transform: translateX(-50%);
- }
-
- .ldr-helix-1 {
- animation: rotate-helix 8s linear infinite;
- }
-
- .ldr-helix-2 {
- animation: rotate-helix 8s linear infinite;
- animation-delay: -4s;
- }
-
- .ldr-helix-dot {
- position: absolute;
- width: 8px;
- height: 8px;
- background: var(--accent-primary);
- border-radius: 50%;
- left: 50%;
- transform: translateX(-50%);
- box-shadow: 0 0 20px var(--accent-primary);
- }
-
- .ldr-dot-1 { top: 10%; animation: helix-dots 8s linear infinite; }
- .ldr-dot-2 { top: 30%; animation: helix-dots 8s linear infinite 1.3s; }
- .ldr-dot-3 { top: 50%; animation: helix-dots 8s linear infinite 2.6s; }
- .ldr-dot-4 { top: 70%; animation: helix-dots 8s linear infinite 3.9s; }
- .ldr-dot-5 { top: 90%; animation: helix-dots 8s linear infinite 5.2s; }
- .ldr-dot-6 { top: 50%; animation: helix-dots 8s linear infinite 6.5s; }
-
- @keyframes rotate-helix {
- 0% { transform: translateX(-50%) rotateY(0deg); }
- 100% { transform: translateX(-50%) rotateY(360deg); }
- }
-
- @keyframes helix-dots {
- 0%, 100% {
- transform: translateX(-50%) translateZ(30px) scale(1);
- background: var(--accent-primary);
- }
- 33% {
- transform: translateX(-50%) translateZ(-30px) scale(0.8);
- background: var(--accent-secondary);
- }
- 66% {
- transform: translateX(-50%) translateZ(30px) scale(1.2);
- background: var(--accent-tertiary);
- }
- }
-
- /* Neural Network */
- .ldr-neural-network {
- position: absolute;
- width: 100%;
- height: 100%;
- opacity: 0.6;
- }
-
- .ldr-network-svg {
- width: 100%;
- height: 100%;
- }
-
- .ldr-node {
- animation: pulse-node 3s ease-in-out infinite;
- }
-
- .ldr-node:nth-child(odd) {
- animation-delay: 0.5s;
- }
-
- @keyframes pulse-node {
- 0%, 100% { transform: scale(1); opacity: 0.8; }
- 50% { transform: scale(1.5); opacity: 1; }
- }
-
- /* Floating Symbols */
- .ldr-floating-symbols {
- position: absolute;
- width: 100%;
- height: 100%;
- pointer-events: none;
- }
-
- .ldr-symbol {
- position: absolute;
- font-size: 1.5rem;
- font-weight: 600;
- color: var(--accent-secondary);
- opacity: 0.3;
- font-family: 'Courier New', monospace;
- }
-
- .ldr-symbol-1 {
- top: 10%;
- left: 10%;
- animation: float-symbol 6s ease-in-out infinite;
- }
- .ldr-symbol-2 {
- top: 20%;
- right: 15%;
- animation: float-symbol 8s ease-in-out infinite 1s;
- }
- .ldr-symbol-3 {
- bottom: 30%;
- left: 20%;
- animation: float-symbol 7s ease-in-out infinite 2s;
- }
- .ldr-symbol-4 {
- bottom: 20%;
- right: 10%;
- animation: float-symbol 9s ease-in-out infinite 1.5s;
- }
- .ldr-symbol-5 {
- top: 50%;
- left: 5%;
- animation: float-symbol 8s ease-in-out infinite 3s;
- }
- .ldr-symbol-6 {
- top: 40%;
- right: 5%;
- animation: float-symbol 7s ease-in-out infinite 2.5s;
- }
-
- @keyframes float-symbol {
- 0%, 100% {
- transform: translateY(0) rotate(0deg);
- opacity: 0.3;
- }
- 25% {
- transform: translateY(-20px) rotate(90deg);
- opacity: 0.6;
- }
- 50% {
- transform: translateY(10px) rotate(180deg);
- opacity: 0.4;
- }
- 75% {
- transform: translateY(-10px) rotate(270deg);
- opacity: 0.5;
- }
- }
-
- .visual-text {
- text-align: center;
- }
-
- .text-line {
- font-size: 1.25rem;
- color: var(--text-secondary);
- margin-bottom: 0.5rem;
- letter-spacing: 2px;
- text-transform: uppercase;
- opacity: 0.7;
- }
-
- .text-line:last-child {
- font-size: 1rem;
- letter-spacing: 1px;
- }
-
- /* Responsive - stack on very small screens */
+ /* Responsive - adjust for small screens */
@media (max-width: 900px) {
- .auth-wrapper {
- flex-direction: column !important;
- }
-
- .auth-visual {
- display: none;
- }
-
.auth-container {
max-width: 550px;
margin: 0 auto;
@@ -250,7 +44,6 @@
}
.auth-container {
- flex: 0 0 550px;
width: 550px;
max-width: 90%;
}
@@ -600,61 +393,6 @@
</div>
</div>
- <div class="ldr-auth-visual">
- <div class="ldr-visual-container">
- <div class="ldr-dna-helix">
- <div class="ldr-helix-line ldr-helix-1"></div>
- <div class="ldr-helix-line ldr-helix-2"></div>
- <div class="ldr-helix-dot ldr-dot-1"></div>
- <div class="ldr-helix-dot ldr-dot-2"></div>
- <div class="ldr-helix-dot ldr-dot-3"></div>
- <div class="ldr-helix-dot ldr-dot-4"></div>
- <div class="ldr-helix-dot ldr-dot-5"></div>
- <div class="ldr-helix-dot ldr-dot-6"></div>
- </div>
- <div class="ldr-neural-network">
- <svg viewBox="0 0 200 200" class="ldr-network-svg">
- <defs>
- <linearGradient id="gradient1" x1="0%" y1="0%" x2="100%" y2="100%">
- <stop offset="0%" style="stop-color:var(--accent-primary);stop-opacity:0.6" />
- <stop offset="100%" style="stop-color:var(--accent-tertiary);stop-opacity:0.6" />
- </linearGradient>
- </defs>
- <!-- Network connections -->
- <line x1="50" y1="50" x2="100" y2="30" stroke="url(#gradient1)" stroke-width="1" opacity="0.5" />
- <line x1="50" y1="50" x2="100" y2="100" stroke="url(#gradient1)" stroke-width="1" opacity="0.5" />
- <line x1="50" y1="150" x2="100" y2="100" stroke="url(#gradient1)" stroke-width="1" opacity="0.5" />
- <line x1="50" y1="150" x2="100" y2="170" stroke="url(#gradient1)" stroke-width="1" opacity="0.5" />
- <line x1="100" y1="30" x2="150" y2="75" stroke="url(#gradient1)" stroke-width="1" opacity="0.5" />
- <line x1="100" y1="100" x2="150" y2="75" stroke="url(#gradient1)" stroke-width="1" opacity="0.5" />
- <line x1="100" y1="100" x2="150" y2="125" stroke="url(#gradient1)" stroke-width="1" opacity="0.5" />
- <line x1="100" y1="170" x2="150" y2="125" stroke="url(#gradient1)" stroke-width="1" opacity="0.5" />
-
- <!-- Network nodes -->
- <circle cx="50" cy="50" r="4" fill="var(--accent-primary)" class="ldr-node" />
- <circle cx="50" cy="150" r="4" fill="var(--accent-primary)" class="ldr-node" />
- <circle cx="100" cy="30" r="4" fill="var(--accent-secondary)" class="ldr-node" />
- <circle cx="100" cy="100" r="4" fill="var(--accent-secondary)" class="ldr-node" />
- <circle cx="100" cy="170" r="4" fill="var(--accent-secondary)" class="ldr-node" />
- <circle cx="150" cy="75" r="4" fill="var(--accent-tertiary)" class="ldr-node" />
- <circle cx="150" cy="125" r="4" fill="var(--accent-tertiary)" class="ldr-node" />
- </svg>
- </div>
- <div class="ldr-floating-symbols">
- <div class="ldr-symbol ldr-symbol-1">{ }</div>
- <div class="ldr-symbol ldr-symbol-2">&lt;/&gt;</div>
- <div class="ldr-symbol ldr-symbol-3">∞</div>
- <div class="ldr-symbol ldr-symbol-4">λ</div>
- <div class="ldr-symbol ldr-symbol-5">∇</div>
- <div class="ldr-symbol ldr-symbol-6">Σ</div>
- </div>
- </div>
- <div class="ldr-visual-text">
- <div class="text-line">Local Deep Research</div>
- <div class="text-line">LDR Engine</div>
- <div class="text-line">Encrypted • Secure • Private</div>
- </div>
- </div>
</div>
</body>
</html>
diff --git a/tests/ui_tests/test_responsive_ui_comprehensive.js b/tests/ui_tests/test_responsive_ui_comprehensive.js
index 8fb8e24638..d133ef7012 100644
--- a/tests/ui_tests/test_responsive_ui_comprehensive.js
+++ b/tests/ui_tests/test_responsive_ui_comprehensive.js
@@ -71,6 +71,9 @@ class ResponsiveUITester {
this.page = await this.browser.newPage();
await this.page.setViewport(VIEWPORTS[this.viewport]);
+ // First, capture login page screenshots before authentication
+ await this.captureLoginPageScreenshots();
+
// Authenticate with timeout protection
console.log('Authenticating...');
const auth = new AuthHelper(this.page, this.baseUrl);
@@ -105,6 +108,111 @@ class ResponsiveUITester {
}
}
+ async captureLoginPageScreenshots() {
+ console.log(`📸 Capturing login page screenshots for ${this.viewport} viewport...`);
+
+ try {
+ // Navigate to login page
+ const loginUrl = `${this.baseUrl}/auth/login`;
+ await this.page.goto(loginUrl, {
+ waitUntil: 'networkidle2',
+ timeout: 30000
+ });
+
+ // Wait for login form to be visible
+ await this.page.waitForSelector('input[name="username"]', { timeout: 5000 });
+
+ // Take screenshot of the login page
+ if (!process.env.CI) {
+ const screenshotPath = path.join(this.screenshotsDir, `login-page-${this.viewport}.png`);
+ await this.page.screenshot({
+ path: screenshotPath,
+ fullPage: true
+ });
+ console.log(` ✅ Login page screenshot saved: ${screenshotPath}`);
+ }
+
+ // Check for responsive issues on login page
+ const hasHorizontalOverflow = await this.page.evaluate(() => {
+ return document.body.scrollWidth > window.innerWidth;
+ });
+
+ if (hasHorizontalOverflow) {
+ console.log(` ⚠️ Login page has horizontal overflow at ${this.viewport}`);
+ if (!process.env.CI) {
+ const overflowScreenshotPath = path.join(this.screenshotsDir, `login-page-overflow-${this.viewport}.png`);
+ await this.page.screenshot({
+ path: overflowScreenshotPath,
+ fullPage: true
+ });
+ console.log(` 📸 Overflow screenshot saved: ${overflowScreenshotPath}`);
+ }
+ }
+
+ // Check touch target sizes for mobile
+ if (this.viewport === 'mobile') {
+ const hasSmallTouchTargets = await this.page.evaluate(() => {
+ const clickables = document.querySelectorAll('button, input, a');
+ for (const el of clickables) {
+ const rect = el.getBoundingClientRect();
+ if (rect.width > 0 && rect.height > 0 && (rect.width < 44 || rect.height < 44)) {
+ return true;
+ }
+ }
+ return false;
+ });
+
+ if (hasSmallTouchTargets) {
+ console.log(` ⚠️ Login page has small touch targets for mobile`);
+ if (!process.env.CI) {
+ // Highlight small touch targets
+ await this.page.evaluate(() => {
+ const clickables = document.querySelectorAll('button, input, a');
+ clickables.forEach(el => {
+ const rect = el.getBoundingClientRect();
+ if (rect.width > 0 && rect.height > 0 && (rect.width < 44 || rect.height < 44)) {
+ el.style.outline = '2px dashed red';
+ el.style.outlineOffset = '2px';
+ }
+ });
+ });
+
+ const touchTargetScreenshotPath = path.join(this.screenshotsDir, `login-page-touch-targets-${this.viewport}.png`);
+ await this.page.screenshot({
+ path: touchTargetScreenshotPath,
+ fullPage: true
+ });
+ console.log(` 📸 Touch target screenshot saved: ${touchTargetScreenshotPath}`);
+ }
+ }
+ }
+
+ // Also capture registration page screenshot
+ const registerUrl = `${this.baseUrl}/auth/register`;
+ await this.page.goto(registerUrl, {
+ waitUntil: 'networkidle2',
+ timeout: 30000
+ });
+
+ // Wait for registration form to be visible
+ await this.page.waitForSelector('input[name="username"]', { timeout: 5000 });
+
+ if (!process.env.CI) {
+ const registerScreenshotPath = path.join(this.screenshotsDir, `register-page-${this.viewport}.png`);
+ await this.page.screenshot({
+ path: registerScreenshotPath,
+ fullPage: true
+ });
+ console.log(` ✅ Registration page screenshot saved: ${registerScreenshotPath}`);
+ }
+
+ console.log(`✅ Login/register page screenshots captured for ${this.viewport}`);
+ } catch (error) {
+ console.error(`❌ Error capturing login page screenshots: ${error.message}`);
+ // Don't throw - this is not critical for the test to continue
+ }
+ }
+
async testPage(pageInfo) {
const url = `${this.baseUrl}${pageInfo.path}`;
console.log(`Testing ${pageInfo.name} at ${this.viewport} viewport...`);