qshub / api

Commit History

  1. feat: add customer reviews with admin approval and inquiry support system

    51a8001

  1. feat: visitor tracking analytics, landing page & dashboard copy updates, audit purge

    47433e1

  1. Add ARCH debug logging to auto_classify

    d0d7322
  2. Fix all pages classified as unknown: re-extract full text from cached PDFs on disk for accurate keyword matching instead of using truncated 250-char DB previews

    0102eee
  3. Fix 502 Gateway Timeout in Auto Classify. Removed synchronous PDF fallback which blocked HTTP. Added DB error checking to Upload. Truncated texts to 250 chars to prevent MySQL packet size limit errors.

    fe109c8
  4. Fix 502 Gateway Timeout on Saving Classifications by moving AI memory recording to BackgroundTasks

    16455b0
  5. Fix 502 Proxy Timeout by moving PDF image rendering to BackgroundTasks. This makes uploads 10x faster and prevents Cloudflare/Nginx from dropping connections.

    b314a54
  6. Fix OOM crashes on Render proxy by parsing PDFs using mmap from disk instead of massive byte duplication in memory

    e73778d
  7. Fix global exception status codes and enable origin regex CORS for cross-domain iframes

    beb2442
  8. Fix 502 upload root cause: single FormData POST + top-level try-except error handling + dual-table project ownership check

    66b6eeb
  9. Fix 502 upload crash: add proactive garbage collection (gc.collect) to keep RAM under 80MB on cloud containers (Render)

    c9f5391
  10. Fix 502 upload root cause: fix zero-byte file limit cap for free/trial users (PLANS[0]) + add exception handling to upload pipeline

    ccccd51
  11. Optimize render speed to 1200px (0.02s/page) + remove redundant PDF text re-extraction in auto_classify to permanently fix 502 gateway timeouts

    cd9f6b4
  12. Fix classification syntax bug + preserve 4000 char page text + enrich UAE drawing keywords + fall back to PDF text re-extraction

    0f3ab13
  13. Centralize all state_data writes into upsert_active_state() with auto-trim and size guards - prevents all future save failures

    cc1ec7a
  14. Fix all SQL dialect errors + truncate state_data + add error logging to save_classification

    8e18bfe
  15. Replace dialect SQL queries with universal SELECT -> INSERT/UPDATE logic to prevent database engine syntax errors

    5df9c92
  16. Fix MySQL ON DUPLICATE KEY UPDATE syntax in active projects query

    d4c530e
  17. Ensure save_file is best-effort to prevent upload failures

    f32140b
  18. Make auto-classify instant (<0.1s) by bypassing remote vision calls to eliminate 502 proxy timeouts

    d150fae
  19. Use UPSERT in save_classification to guarantee saving project state without 400 No active project errors

    a9270d5
  20. Expose detailed error message on classification save failure

    a19ab2b
  21. Bypass AI vision calls on known pages to eliminate proxy 502/504 timeouts during classification

    ddca60d
  22. Fix upload state preservation so both structural and architectural files are retained

    43d0969
  23. Truncate text arrays in upload.py to prevent MySQL payload overflow and HTTP 502 error

    2778875
  24. Split drawing uploads sequentially to eliminate HTTP payload timeouts and 502 Bad Gateway

    3595e00
  25. Eliminate RAM overhead during classification to fix HTTP 502 Bad Gateway OOM

    8a25d8e

  1. Remove iframe proxy hack and serve React SPA natively

    244b900
  2. Fix iframe URL to use official Hugging Face Space URL

    4d0bf1c
  3. Ensure qto_active_projects table exists on startup

    5f5f4f4

  1. fix: use custom routes instead of StaticFiles to avoid HF proxy crashing

    a255a2f
  2. chore: revert logging injection

    4600797
  3. chore: inject Uvicorn logging

    e041e7d
  4. chore: add /api/logs to debug HF proxy crash

    353b13f
  5. chore: revert to static files for assets

    332e83c
  6. fix: use manual Response instead of FileResponse to avoid HF proxy 500 errors on missing mimetypes or file stat headers

    240b72c
  7. fix: replace StaticFiles with FileResponse to bypass HF Space proxy 500 errors on static assets

    5718798
  8. fix: bypass HF proxy parsing by dynamically loading Vite assets

    92849be
  9. fix: serve index via HTMLResponse

    1dc8b94
  10. chore: cleanup test endpoints

    ea47a5c
  11. chore: test script variations

    3b260df
  12. chore: add test endpoints for HF proxy crash

    e753ff5
  13. chore: add test-index-html endpoint

    64e81a4
  14. chore: explicit FileResponse for root

    28e1248
  15. chore: print to see if HTML endpoint is hit

    ba2244d
  16. chore: fix HTMLResponse import

    8ff2b30
  17. chore: add test-html and test.html

    3219688
  18. chore: add test-health endpoint

    58b433f
  19. chore: remove rate limit middleware

    7c4bccf
  20. chore: return 200 on exceptions

    fea83e5