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.

fix: resolve pre-commit actionlint issues in workflow files

LearningCircuitf9f4ff37198b
diff --cc .github/workflows/check-css-classes.yml
index 0000000000,e285630be8..386fff69a2
mode 000000,100644..100644
--- a/.github/workflows/check-css-classes.yml
+++ b/.github/workflows/check-css-classes.yml
@@@ -1,0 -1,171 +1,171 @@@
+ name: Check CSS Class Naming
+
+ on:
+ push:
+ branches: [main, develop, "feat/*", "fix/*"]
+ paths:
+ - "src/local_deep_research/web/**/*.html"
+ - "src/local_deep_research/web/**/*.css"
+ - "src/local_deep_research/web/**/*.js"
+ - ".pre-commit-hooks/check-css-class-prefix.py"
+ pull_request:
+ branches: [main, develop]
+ paths:
+ - "src/local_deep_research/web/**/*.html"
+ - "src/local_deep_research/web/**/*.css"
+ - "src/local_deep_research/web/**/*.js"
+ - ".pre-commit-hooks/check-css-class-prefix.py"
+ workflow_dispatch: # Allow manual triggering
+
+ jobs:
+ check-css-classes:
+ name: Check CSS Class Prefixes
+ runs-on: ubuntu-latest
+
+ steps:
+ - name: Checkout repository
+ uses: actions/checkout@v4
+
+ - name: Set up Python
- uses: actions/setup-python@v4
++ uses: actions/setup-python@v5
+ with:
+ python-version: "3.10"
+
+ - name: Create check script
+ run: |
+ cat > check_all_css.py << 'EOF'
+ #!/usr/bin/env python3
+ import subprocess
+ import sys
+ from pathlib import Path
+
+ def main():
+ # Find all relevant files
+ web_dir = Path("src/local_deep_research/web")
+ if not web_dir.exists():
+ print(f"Warning: Web directory not found at {web_dir}")
+ return 0
+
+ files_to_check = []
+ for pattern in ["*.html", "*.css", "*.js"]:
+ files_to_check.extend(web_dir.rglob(pattern))
+
+ # Filter out test/vendor files
+ files_to_check = [
+ f for f in files_to_check
+ if not any(x in str(f) for x in ["test", "spec", "vendor", "node_modules", "dist", "build"])
+ ]
+
+ if not files_to_check:
+ print("No files to check")
+ return 0
+
+ print(f"Checking {len(files_to_check)} files for CSS class naming compliance...")
+
+ # Show first few files being checked for debugging
+ print("\nFirst 10 files being checked:")
+ for f in files_to_check[:10]:
+ print(f" - {f}")
+ if len(files_to_check) > 10:
+ print(f" ... and {len(files_to_check) - 10} more files")
+
+ # Run the check
+ cmd = [sys.executable, ".pre-commit-hooks/check-css-class-prefix.py"] + [str(f) for f in files_to_check]
+ result = subprocess.run(cmd, capture_output=True, text=True)
+
+ print(result.stdout)
+ if result.stderr:
+ print(result.stderr, file=sys.stderr)
+
+ if result.returncode != 0:
+ print("\n❌ CSS class violations found!")
+ print("All custom CSS classes must be prefixed with 'ldr-' to prevent conflicts.")
+ print("This includes CSS in <style> tags within HTML files.")
+ return 1
+
+ print("\n✅ All CSS classes are properly prefixed!")
+ return 0
+
+ if __name__ == "__main__":
+ sys.exit(main())
+ EOF
+ chmod +x check_all_css.py
+
+ - name: Run CSS class check
+ id: css_check
+ run: |
+ # Capture output to both display and save for later
+ python check_all_css.py 2>&1 | tee css_check_output.txt
+ exit_code=${PIPESTATUS[0]}
+
+ # Save the output to GitHub environment for later steps
+ {
+ echo 'CSS_CHECK_OUTPUT<<EOF'
+ cat css_check_output.txt
+ echo 'EOF'
- } >> $GITHUB_ENV
++ } >> "$GITHUB_ENV"
+
- if [ $exit_code -ne 0 ]; then
- echo "CSS_CHECK_FAILED=true" >> $GITHUB_ENV
++ if [ "$exit_code" -ne 0 ]; then
++ echo "CSS_CHECK_FAILED=true" >> "$GITHUB_ENV"
+ fi
+
- exit $exit_code
++ exit "$exit_code"
+ continue-on-error: true
+
+ - name: Show CSS check results
+ if: always()
+ run: |
+ echo "=== CSS Check Results ==="
+ echo "Step outcome: ${{ steps.css_check.outcome }}"
+ echo "Step conclusion: ${{ steps.css_check.conclusion }}"
+ echo ""
+ if [ "$CSS_CHECK_FAILED" = "true" ]; then
+ echo "❌ CSS check failed - violations were found:"
+ echo "================================================"
+ echo "$CSS_CHECK_OUTPUT"
+ echo "================================================"
+ else
+ echo "✅ CSS check passed - no violations found"
+ fi
+
+ - name: Comment on PR (if failed)
+ if: env.CSS_CHECK_FAILED == 'true' && github.event_name == 'pull_request'
+ uses: actions/github-script@v7
+ with:
+ script: |
+ const output = `
+ ⚠️ **CSS Class Naming Issues Found**
+
+ Some CSS classes are not prefixed with \`ldr-\`. This can cause conflicts when bundling.
+
+ Please run locally to see details:
+ \`\`\`bash
+ ./scripts/check-css-classes.sh
+ \`\`\`
+
+ Or check the [workflow logs](${process.env.GITHUB_SERVER_URL}/${process.env.GITHUB_REPOSITORY}/actions/runs/${process.env.GITHUB_RUN_ID}) for details.
+ `;
+
+ github.rest.issues.createComment({
+ issue_number: context.issue.number,
+ owner: context.repo.owner,
+ repo: context.repo.repo,
+ body: output
+ });
+
+ - name: Set exit code
+ if: env.CSS_CHECK_FAILED == 'true'
+ run: |
+ echo "==============================================="
+ echo "❌ WORKFLOW FAILED: CSS Class Naming Violations"
+ echo "==============================================="
+ echo ""
+ echo "The following CSS class naming violations were found:"
+ echo ""
+ echo "$CSS_CHECK_OUTPUT" | grep -E "❌|Line [0-9]+:" || echo "$CSS_CHECK_OUTPUT"
+ echo ""
+ echo "==============================================="
+ echo "To fix: Add 'ldr-' prefix to all custom CSS classes"
+ echo "Example: .custom-button → .ldr-custom-button"
+ echo "==============================================="
+ exit 1
diff --cc .github/workflows/mobile-ui-tests.yml
index 0000000000,743a3681db..921a9cea72
mode 000000,100644..100644
--- a/.github/workflows/mobile-ui-tests.yml
+++ b/.github/workflows/mobile-ui-tests.yml
@@@ -1,0 -1,123 +1,123 @@@
+ name: Mobile UI Tests
+
+ on:
+ push:
+ branches: [ main, dev, 'fix/*', 'feature/*' ]
+ paths:
+ - 'src/local_deep_research/web/static/css/**'
+ - 'src/local_deep_research/web/static/js/**'
+ - 'src/local_deep_research/web/templates/**'
+ - 'tests/ui_tests/**'
+ - '.github/workflows/mobile-ui-tests.yml'
+ pull_request:
+ branches: [ main, dev ]
+ paths:
+ - 'src/local_deep_research/web/static/css/**'
+ - 'src/local_deep_research/web/static/js/**'
+ - 'src/local_deep_research/web/templates/**'
+ - 'tests/ui_tests/**'
+ workflow_dispatch:
+
+ jobs:
+ mobile-ui-tests:
+ runs-on: ubuntu-latest
+
+ strategy:
+ matrix:
+ python-version: ['3.11', '3.12']
+
+ steps:
+ - uses: actions/checkout@v4
+
+ - name: Set up Python ${{ matrix.python-version }}
+ uses: actions/setup-python@v5
+ with:
+ python-version: ${{ matrix.python-version }}
+
+ - name: Install PDM
+ run: |
+ pip install --upgrade pip
+ pip install pdm
+
+ - name: Install Python dependencies
+ run: |
+ pdm install -d
+
+ - name: Setup Node.js
+ uses: actions/setup-node@v4
+ with:
+ node-version: '20'
+ cache: 'npm'
+ cache-dependency-path: tests/ui_tests/package.json
+
+ - name: Install Node dependencies
+ working-directory: tests/ui_tests
+ run: |
+ npm ci
+ npx puppeteer browsers install chrome
+
+ - name: Setup test directories
+ run: |
+ mkdir -p data/encrypted_databases
+ echo "Created data directories for tests"
+
+ - name: Start LDR server
+ run: |
+ export LDR_DATA_DIR=$PWD/data
+ export PYTHONPATH=$PWD/src:$PYTHONPATH
+ echo "Starting server with LDR_DATA_DIR=$LDR_DATA_DIR"
+ LDR_DATA_DIR=$PWD/data PYTHONPATH=$PWD/src:$PYTHONPATH pdm run python -m local_deep_research.web.app &
+ SERVER_PID=$!
- echo "SERVER_PID=$SERVER_PID" >> $GITHUB_ENV
++ echo "SERVER_PID=$SERVER_PID" >> "$GITHUB_ENV"
+
+ # Wait for server to be ready
+ for i in {1..30}; do
+ if curl -s http://127.0.0.1:5000 > /dev/null; then
+ echo "Server is ready"
+ break
+ fi
+ echo "Waiting for server... ($i/30)"
+ sleep 2
+ done
+
+ # Verify server is running
+ if ! curl -s http://127.0.0.1:5000 > /dev/null; then
+ echo "Server failed to start"
+ exit 1
+ fi
+
+ - name: Run Mobile Navigation Tests
+ working-directory: tests/ui_tests
+ env:
+ HEADLESS: true
+ OUTPUT_FORMAT: junit
+ SCREENSHOT_ON_FAILURE: true
+ TEST_BASE_URL: http://127.0.0.1:5000
+ run: |
+ node mobile/test_mobile_navigation_ci.js
+
+ - name: Upload test results
+ if: always()
+ uses: actions/upload-artifact@v4
+ with:
+ name: test-results-${{ matrix.python-version }}
+ path: |
+ tests/ui_tests/test-results.xml
+ tests/ui_tests/test-results.json
+ tests/ui_tests/test-failures/
+
+ - name: Publish Test Results
+ if: always() && matrix.python-version == '3.12'
+ uses: EnricoMi/publish-unit-test-result-action@v2
+ with:
+ files: tests/ui_tests/test-results.xml
+ check_name: Mobile UI Test Results
+ comment_mode: off
+
+ - name: Stop server
+ if: always()
+ run: |
- if [ ! -z "$SERVER_PID" ]; then
- kill $SERVER_PID || true
++ if [ -n "$SERVER_PID" ]; then
++ kill "$SERVER_PID" || true
+ fi
+ pkill -f "python -m local_deep_research.web.app" || true
diff --cc .github/workflows/responsive-ui-tests-enhanced.yml
index 0000000000,7185ed5ba0..9b3a569755
mode 000000,100644..100644
--- a/.github/workflows/responsive-ui-tests-enhanced.yml
+++ b/.github/workflows/responsive-ui-tests-enhanced.yml
@@@ -1,0 -1,368 +1,386 @@@
+ name: Responsive UI Tests
+
+ on:
+ pull_request:
+ branches: [ main, dev ]
+ workflow_dispatch:
+ inputs:
+ viewport_type:
+ description: 'Viewport type to test'
+ required: false
+ default: 'all'
+ type: choice
+ options:
+ - all
+ - mobile
+ - tablet
+ - desktop
+
+ jobs:
+ ui-tests:
+ runs-on: ubuntu-latest
+ timeout-minutes: 20
+
+ strategy:
+ fail-fast: false
+ matrix:
+ viewport: [mobile, desktop] # Test mobile and desktop on each PR
+
+ services:
+ postgres:
+ image: postgres:14
+ env:
+ POSTGRES_USER: postgres
+ POSTGRES_PASSWORD: postgres
+ POSTGRES_DB: ldr_test
+ ports:
+ - 5432:5432
+ options: >-
+ --health-cmd pg_isready
+ --health-interval 10s
+ --health-timeout 5s
+ --health-retries 5
+
+ steps:
+ - name: Checkout code
+ uses: actions/checkout@v4
+
+ - name: Set up Python
- uses: actions/setup-python@v4
++ uses: actions/setup-python@v5
+ with:
+ python-version: '3.11'
+ cache: 'pip'
+
+ - name: Set up Node.js
+ uses: actions/setup-node@v4
+ with:
+ node-version: '20'
+ cache: 'npm'
+ cache-dependency-path: tests/ui_tests/package-lock.json
+
+ - name: Install system dependencies
+ run: |
+ sudo apt-get update
+ sudo apt-get install -y \
+ wget \
+ gnupg \
+ ca-certificates \
+ fonts-liberation \
+ libasound2t64 \
+ libatk-bridge2.0-0 \
+ libatk1.0-0 \
+ libcups2 \
+ libdbus-1-3 \
+ libdrm2 \
+ libgbm1 \
+ libgtk-3-0 \
+ libnspr4 \
+ libnss3 \
+ libx11-xcb1 \
+ libxcomposite1 \
+ libxdamage1 \
+ libxrandr2 \
+ xdg-utils \
+ imagemagick
+
+ - name: Install Python dependencies
+ run: |
+ python -m pip install --upgrade pip
+ pip install -e .
+
+ - name: Install Node dependencies
+ working-directory: tests/ui_tests
+ run: |
+ npm ci
+ npx puppeteer browsers install chrome
+
+ - name: Set up test directories
+ run: |
+ mkdir -p src/data
+ mkdir -p tests/ui_tests/screenshots
+ echo "Created data and screenshots directories for tests"
+
+ - name: Initialize database
+ run: |
+ cat > init_db.py << 'EOF'
+ import os
+ os.environ['FLASK_ENV'] = 'testing'
+ os.environ['SECRET_KEY'] = 'test-secret-key-for-ci'
+
+ from local_deep_research.database.auth_db import init_auth_database, get_auth_db_session
+ from local_deep_research.database.models.auth import User
+ from local_deep_research.database.encrypted_db import db_manager
+
+ # Initialize auth database
+ init_auth_database()
+
+ # Create test user in auth database (no password stored)
+ session = get_auth_db_session()
+ user = User(username='test_admin')
+ session.add(user)
+ session.commit()
+ session.close()
+
+ # Create user's encrypted database with password
+ engine = db_manager.create_user_database('test_admin', 'testpass123')
+ print('Database initialized successfully')
+ EOF
+ python init_db.py
+
+ - name: Start test server
+ env:
+ FLASK_ENV: testing
+ TEST_ENV: true
+ SECRET_KEY: test-secret-key-for-ci
+ run: |
+ cd src
+ # Start server and get its PID
+ python -m local_deep_research.web.app > server.log 2>&1 &
+ SERVER_PID=$!
+ echo "Server PID: $SERVER_PID"
+
+ # Wait for server to start
+ for i in {1..30}; do
+ if curl -f http://127.0.0.1:5000 2>/dev/null; then
+ echo "Server is ready after $i seconds"
+ break
+ fi
+ # Check if process is still running
+ if ! kill -0 $SERVER_PID 2>/dev/null; then
+ echo "Server process died!"
+ echo "Server log:"
+ cat server.log
+ exit 1
+ fi
+ echo "Waiting for server... ($i/30)"
+ sleep 1
+ done
+
+ - name: Run responsive UI tests - ${{ matrix.viewport }}
+ id: run-tests
+ working-directory: tests/ui_tests
++ env:
++ VIEWPORT: ${{ matrix.viewport }}
+ run: |
+ set +e # Don't exit on test failure
+
+ # Run tests and capture output
- HEADLESS=true node test_responsive_ui_comprehensive.js ${{ matrix.viewport }} 2>&1 | tee test-output.log
++ HEADLESS=true node test_responsive_ui_comprehensive.js "$VIEWPORT" 2>&1 | tee test-output.log
+ TEST_EXIT_CODE=${PIPESTATUS[0]}
+
+ # Extract summary for PR comment
- echo "### 📱 ${{ matrix.viewport }} Test Results" > test-summary.md
++ echo "### 📱 $VIEWPORT Test Results" > test-summary.md
+ echo "" >> test-summary.md
+
+ # Extract pass/fail counts
+ PASSED=$(grep -oP '\d+(?= passed)' test-output.log | tail -1 || echo "0")
+ FAILED=$(grep -oP '\d+(?= failed)' test-output.log | tail -1 || echo "0")
+ WARNINGS=$(grep -oP '\d+(?= warnings)' test-output.log | tail -1 || echo "0")
+
+ if [ "$FAILED" -eq "0" ]; then
+ echo "✅ **All tests passed!**" >> test-summary.md
+ else
+ echo "❌ **$FAILED critical issues found**" >> test-summary.md
+ fi
+
- echo "" >> test-summary.md
- echo "- ✅ Passed: $PASSED" >> test-summary.md
- echo "- ❌ Failed: $FAILED" >> test-summary.md
- echo "- ⚠️ Warnings: $WARNINGS" >> test-summary.md
++ {
++ echo ""
++ echo "- ✅ Passed: $PASSED"
++ echo "- ❌ Failed: $FAILED"
++ echo "- ⚠️ Warnings: $WARNINGS"
++ } >> test-summary.md
+
- echo "test_exit_code=$TEST_EXIT_CODE" >> $GITHUB_OUTPUT
- echo "test_failed=$FAILED" >> $GITHUB_OUTPUT
++ {
++ echo "test_exit_code=$TEST_EXIT_CODE"
++ echo "test_failed=$FAILED"
++ } >> "$GITHUB_OUTPUT"
+
+ # Only fail if critical failures
- exit $TEST_EXIT_CODE
++ exit "$TEST_EXIT_CODE"
+
+ - name: Generate screenshot gallery
+ if: false # Disabled - screenshots not needed in CI
+ working-directory: tests/ui_tests
++ env:
++ VIEWPORT: ${{ matrix.viewport }}
++ RUN_ID: ${{ github.run_id }}
++ BRANCH_NAME: ${{ github.head_ref || github.ref_name }}
+ run: |
+ # Create an HTML gallery of screenshots
- cat > screenshot-gallery.html << 'EOF'
++ cat > screenshot-gallery.html << EOF
+ <!DOCTYPE html>
+ <html>
+ <head>
- <title>UI Test Screenshots - ${{ matrix.viewport }}</title>
++ <title>UI Test Screenshots - ${VIEWPORT}</title>
+ <style>
+ body { font-family: Arial, sans-serif; margin: 20px; background: #f5f5f5; }
+ h1 { color: #333; }
+ .gallery { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; }
+ .screenshot { background: white; border-radius: 8px; padding: 10px; box-shadow: 0 2px 4px rgba(0,0,0,0.1); }
+ .screenshot img { width: 100%; height: auto; border-radius: 4px; cursor: pointer; }
+ .screenshot h3 { margin: 10px 0 5px 0; color: #555; font-size: 14px; }
+ .modal { display: none; position: fixed; z-index: 1000; left: 0; top: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.9); }
+ .modal-content { margin: auto; display: block; max-width: 90%; max-height: 90%; margin-top: 50px; }
+ .close { position: absolute; top: 15px; right: 35px; color: #f1f1f1; font-size: 40px; cursor: pointer; }
+ .status-failed { border-left: 4px solid #e74c3c; }
+ .status-passed { border-left: 4px solid #27ae60; }
+ </style>
+ </head>
+ <body>
- <h1>📸 UI Test Screenshots - ${{ matrix.viewport }}</h1>
- <p>Test run: ${{ github.run_id }} | Branch: ${{ github.head_ref || github.ref_name }}</p>
++ <h1>📸 UI Test Screenshots - ${VIEWPORT}</h1>
++ <p>Test run: ${RUN_ID} | Branch: ${BRANCH_NAME}</p>
+ <div class="gallery">
+ EOF
+
+ # Add screenshots to gallery
+ for dir in responsive-ui-tests/*/; do
+ if [ -d "$dir" ]; then
+ for img in "$dir"*.png; do
+ if [ -f "$img" ]; then
+ filename=$(basename "$img")
+ device=$(basename "$dir")
+
+ # Create thumbnail
+ convert "$img" -resize 400x400 "thumb_$filename" 2>/dev/null || cp "$img" "thumb_$filename"
+
+ # Determine status based on test output
+ status="status-passed"
+ if grep -q "$filename" test-output.log 2>/dev/null; then
+ status="status-failed"
+ fi
+
- echo "<div class='screenshot $status'>" >> screenshot-gallery.html
- echo " <h3>$device - ${filename%.png}</h3>" >> screenshot-gallery.html
- echo " <img src='$img' onclick='openModal(this)' alt='$filename'>" >> screenshot-gallery.html
- echo "</div>" >> screenshot-gallery.html
++ {
++ echo "<div class='screenshot $status'>"
++ echo " <h3>$device - ${filename%.png}</h3>"
++ echo " <img src='$img' onclick='openModal(this)' alt='$filename'>"
++ echo "</div>"
++ } >> screenshot-gallery.html
+ fi
+ done
+ fi
+ done
+
+ cat >> screenshot-gallery.html << 'EOF'
+ </div>
+ <div id="modal" class="modal" onclick="closeModal()">
+ <span class="close">&times;</span>
+ <img class="modal-content" id="modal-img">
+ </div>
+ <script>
+ function openModal(img) {
+ document.getElementById('modal').style.display = 'block';
+ document.getElementById('modal-img').src = img.src;
+ }
+ function closeModal() {
+ document.getElementById('modal').style.display = 'none';
+ }
+ </script>
+ </body>
+ </html>
+ EOF
+
+ echo "Screenshot gallery created"
+
+ - name: Upload screenshots and gallery
+ if: false # Disabled - screenshots not needed in CI
+ uses: actions/upload-artifact@v4
+ with:
+ name: ui-test-results-${{ matrix.viewport }}
+ path: |
+ tests/ui_tests/responsive/responsive-ui-tests/
+ tests/ui_tests/responsive/screenshot-gallery.html
+ tests/ui_tests/responsive/test-output.log
+ tests/ui_tests/responsive/test-summary.md
+ retention-days: 7
+
+ - name: Upload to GitHub Pages (if available)
+ if: always() && github.event_name == 'pull_request'
+ continue-on-error: true
+ run: |
+ # This requires GitHub Pages to be enabled for the repo
+ # Create a branch for the screenshots
+ BRANCH_NAME="pr-screenshots-${{ github.event.pull_request.number }}-${{ matrix.viewport }}"
+
+ cd tests/ui_tests/responsive
+ git init
+ git config user.name "GitHub Actions"
+ git config user.email "[email protected]"
+
+ # Add all screenshots and gallery
+ git add responsive-ui-tests screenshot-gallery.html
+ git commit -m "Screenshots for PR #${{ github.event.pull_request.number }}"
+
+ # Push to a dedicated branch (requires write permissions)
+ git push --force "https://x-access-token:${{ secrets.GITHUB_TOKEN }}@github.com/${{ github.repository }}.git" HEAD:$BRANCH_NAME 2>/dev/null || true
+
+ # The URL would be: https://[owner].github.io/[repo]/pr-screenshots-[number]-[viewport]/screenshot-gallery.html
+ echo "Screenshots available at: https://${{ github.repository_owner }}.github.io/${{ github.event.repository.name }}/$BRANCH_NAME/screenshot-gallery.html" || true
+
+ - name: Stop application server
+ if: always()
+ run: |
+ if [ -f server.pid ]; then
- kill $(cat server.pid) || true
++ kill "$(cat server.pid)" || true
+ rm server.pid
+ fi
+
+ post-results:
+ needs: ui-tests
+ runs-on: ubuntu-latest
+ if: always() && github.event_name == 'pull_request'
+
+ steps:
+ - name: Checkout code
+ uses: actions/checkout@v4
+
+ - name: Download all artifacts
+ uses: actions/download-artifact@v4
+ with:
+ path: test-artifacts/
+
+ - name: Generate combined report
+ run: |
+ # Create a combined markdown report with screenshot links
- echo "# 📊 Responsive UI Test Report" > combined-report.md
- echo "" >> combined-report.md
- echo "## Test Summary" >> combined-report.md
- echo "" >> combined-report.md
++ {
++ echo "# 📊 Responsive UI Test Report"
++ echo ""
++ echo "## Test Summary"
++ echo ""
++ } > combined-report.md
+
+ # Process each viewport's results
+ for dir in test-artifacts/ui-test-results-*/; do
+ if [ -d "$dir" ]; then
+ viewport=$(basename "$dir" | sed 's/ui-test-results-//')
+ echo "### $viewport" >> combined-report.md
+
+ if [ -f "$dir/test-summary.md" ]; then
+ cat "$dir/test-summary.md" >> combined-report.md
+ fi
+
+ # Count screenshots
+ screenshot_count=$(find "$dir" -name "*.png" 2>/dev/null | wc -l)
+ if [ "$screenshot_count" -gt "0" ]; then
- echo "" >> combined-report.md
- echo "📸 **$screenshot_count screenshots captured**" >> combined-report.md
++ {
++ echo ""
++ echo "📸 **$screenshot_count screenshots captured**"
++ } >> combined-report.md
+ fi
+
+ echo "" >> combined-report.md
+ fi
+ done
+
- echo "## 📥 Download Options" >> combined-report.md
- echo "" >> combined-report.md
- echo "- [Download all test artifacts](https://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }})" >> combined-report.md
- echo "- View artifacts in the 'Artifacts' section below the workflow summary" >> combined-report.md
++ {
++ echo "## 📥 Download Options"
++ echo ""
++ echo "- [Download all test artifacts](https://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }})"
++ echo "- View artifacts in the 'Artifacts' section below the workflow summary"
++ } >> combined-report.md
+
+ - name: Upload combined report
+ uses: actions/upload-artifact@v4
+ with:
+ name: combined-test-report
+ path: combined-report.md
+ retention-days: 30
diff --cc package.json
index dc55e34d0c,9a219980a7..a80818f7a9
--- a/package.json
+++ b/package.json
@@@ -1,33 -1,33 +1,33 @@@
{
- "name": "local-deep-research-web",
- "version": "1.0.0",
- "description": "Web frontend for Local Deep Research",
- "private": true,
- "type": "module",
- "scripts": {
- "dev": "vite",
- "build": "vite build",
- "preview": "vite preview",
- "update": "npm update",
- "audit": "npm audit",
- "audit-fix": "npm audit fix"
- },
- "dependencies": {
- "@fortawesome/fontawesome-free": "^7.0.0",
- "bootstrap": "^5.3.0",
- "bootstrap-icons": "^1.11.0",
- "chart.js": "^4.4.0",
- "chartjs-adapter-date-fns": "^3.0.0",
- "chartjs-plugin-annotation": "^3.0.0",
- "date-fns": "^4.1.0",
- "highlight.js": "^11.9.0",
- "html2canvas": "^1.4.1",
- "jspdf": "^3.0.2",
- "marked": "^17.0.0",
- "socket.io-client": "^4.6.0"
- },
- "devDependencies": {
- "axe-core": "^4.8.0",
- "vite": "^7.1.3"
- }
+ "name": "local-deep-research-web",
+ "version": "1.0.0",
+ "description": "Web frontend for Local Deep Research",
+ "private": true,
+ "type": "module",
+ "scripts": {
+ "dev": "vite",
+ "build": "vite build",
+ "preview": "vite preview",
+ "update": "npm update",
+ "audit": "npm audit",
+ "audit-fix": "npm audit fix"
+ },
+ "dependencies": {
+ "@fortawesome/fontawesome-free": "^7.0.0",
+ "bootstrap": "^5.3.0",
+ "bootstrap-icons": "^1.11.0",
+ "chart.js": "^4.4.0",
+ "chartjs-adapter-date-fns": "^3.0.0",
+ "chartjs-plugin-annotation": "^3.0.0",
+ "date-fns": "^4.1.0",
+ "highlight.js": "^11.9.0",
+ "html2canvas": "^1.4.1",
+ "jspdf": "^3.0.2",
- "marked": "^16.2.1",
++ "marked": "^17.0.0",
+ "socket.io-client": "^4.6.0"
+ },
+ "devDependencies": {
+ "axe-core": "^4.8.0",
+ "vite": "^7.1.3"
+ }
}