• Stefy Lanza (nextime / spora )'s avatar
    Modify analyze page to show job progress in sidebar instead of redirecting · 4d03625c
    Stefy Lanza (nextime / spora ) authored
    - Changed analyze route to stay on page after job submission instead of redirecting to history
    - Added submitted_job parameter to template to track current job
    - Modified sidebar to show for all users (not just admins)
    - Added job progress section in sidebar that displays:
      - Job ID and status (queued/processing/completed/failed)
      - Tokens used
      - Result preview
    - Added /api/job_status/<job_id> endpoint for real-time job status
    - Added JavaScript polling for job status updates every 2 seconds
    - Job progress updates automatically without page refresh
    - Users can see their analysis job progress in real-time in the sidebar
    
    The analyze page now provides immediate feedback and progress tracking instead of requiring navigation to the history page.
    4d03625c
analyze.html 17.6 KB