1. 09 Oct, 2025 23 commits
  2. 08 Oct, 2025 17 commits
    • Stefy Lanza (nextime / spora )'s avatar
      Refine jobs page layout and display · 7619c1ba
      Stefy Lanza (nextime / spora ) authored
      - Move job progress to appear after job status column
      - Display tokens with 'Tokens: X' format for clarity
      - Add text truncation to job_id to prevent overflow (max-width: 80px, ellipsis)
      - Update real-time token updates to include 'Tokens:' prefix
      - Improve visual hierarchy and information clarity
      7619c1ba
    • Stefy Lanza (nextime / spora )'s avatar
      Fix jobs page layout and remove redundant columns · 6d76f18b
      Stefy Lanza (nextime / spora ) authored
      - Swap Queue ID and Job ID column order (Queue ID first)
      - Remove bold formatting from job type for consistency
      - Improve cell delineation with better padding and borders
      - Reduce wasted space with tighter grid gaps and padding
      - Fix Worker Details vs Job Progress redundancy:
        * Worker Details: Shows assignment status (Assigned to worker, Local processing, etc.)
        * Job Progress: Shows actual processing status (appears below worker details during processing)
      - Update real-time updates to maintain separation of concerns
      6d76f18b
    • Stefy Lanza (nextime / spora )'s avatar
      Set minimum width for jobs page to ensure content visibility · 2e265398
      Stefy Lanza (nextime / spora ) authored
      - Add min-width: 1400px to container
      - Ensures all 9 columns are fully visible
      - Horizontal scrollbar appears on smaller screens
      - Maintains 90vw max-width for large displays
      2e265398
    • Stefy Lanza (nextime / spora )'s avatar
      Enhance jobs page layout with job IDs, worker details, and improved actions · 94065d82
      Stefy Lanza (nextime / spora ) authored
      - Add Job ID and Queue ID columns for better job tracking
      - Separate worker assignment details from action buttons
      - Reorganize action buttons side by side (restart + delete)
      - Add confirmation dialog for delete actions
      - Update CSS grid layout to accommodate new columns
      - Real-time updates for worker details column
      94065d82
    • Stefy Lanza (nextime / spora )'s avatar
      Add input field for user selection when >10 users · e04521ef
      Stefy Lanza (nextime / spora ) authored
      - Show dropdown for ≤10 users, input field for >10 users
      - Backend accepts username parameter and resolves to user ID
      - JavaScript handles both dropdown and input field submission
      - Enter key support for input field
      - Maintains all existing functionality
      e04521ef
    • Stefy Lanza (nextime / spora )'s avatar
      Fix template variable access for user role check · d04fb9c1
      Stefy Lanza (nextime / spora ) authored
      - Change current_user.role to current_user.get('role') to match template conventions
      - User object is passed as dictionary, not object with attributes
      d04fb9c1
    • Stefy Lanza (nextime / spora )'s avatar
      Add admin user selector to jobs page · 76bd3f23
      Stefy Lanza (nextime / spora ) authored
      - Add user dropdown for admins to view jobs of any user
      - Update backend routes to accept user_id parameter
      - Modify API to support user selection for admins
      - Update JavaScript to handle user changes and API calls
      76bd3f23
    • Stefy Lanza (nextime / spora )'s avatar
      Simplify job status updates API · f6208190
      Stefy Lanza (nextime / spora ) authored
      - Return all active jobs on every poll instead of timestamp-based filtering
      - Ensures status changes are always reflected in the UI
      - Works with or without updated_at column in database
      f6208190
    • Stefy Lanza (nextime / spora )'s avatar
      Fix SQLite ALTER TABLE for updated_at column · be9f88d7
      Stefy Lanza (nextime / spora ) authored
      - Remove DEFAULT CURRENT_TIMESTAMP from SQLite CREATE TABLE for updated_at
      - Modify ALTER TABLE to add column without default and update existing rows
      - Ensure compatibility with SQLite's ALTER TABLE restrictions
      be9f88d7
    • Stefy Lanza (nextime / spora )'s avatar
      Fix database migration for updated_at column · 7f83290e
      Stefy Lanza (nextime / spora ) authored
      - Add proper column existence check before ALTER TABLE
      - Make update_queue_status work with or without updated_at column
      - Update API to handle jobs without updated_at field
      - Ensure backward compatibility with existing databases
      7f83290e
    • Stefy Lanza (nextime / spora )'s avatar
      Add rate limiting to job action buttons · bcab8d79
      Stefy Lanza (nextime / spora ) authored
      - Prevent multiple clicks on same job action buttons
      - Disable button and show 'Processing...' while request is pending
      - Re-enable button after response or 10-second timeout
      - Track pending actions to prevent duplicate requests
      bcab8d79
    • Stefy Lanza (nextime / spora )'s avatar
      Fix real-time job status updates · ff667b1c
      Stefy Lanza (nextime / spora ) authored
      - Add updated_at column to processing_queue table for tracking status changes
      - Update update_queue_status to set updated_at timestamp on changes
      - Modify job_status_updates API to use updated_at instead of created_at
      - Add random parameter to API requests to prevent browser caching
      ff667b1c
    • Stefy Lanza (nextime / spora )'s avatar
      Fix AJAX job actions error handling · 6ae5b0bc
      Stefy Lanza (nextime / spora ) authored
      - Correct AJAX request detection by checking X-Requested-With header only
      - Prevent fetch from following redirects with redirect: 'manual'
      - Add robust response handling for redirects and JSON responses
      - Ensure AJAX requests return JSON instead of HTML redirects
      6ae5b0bc
    • Stefy Lanza (nextime / spora )'s avatar
      Implement AJAX job actions for Jobs page · 2150cc62
      Stefy Lanza (nextime / spora ) authored
      - Replace form submissions with AJAX calls for cancel/restart/delete
      - Remove confirm alerts and page redirects
      - Add success/error notifications for actions
      - Initialize job actions on page load
      - Update backend routes to handle AJAX requests with JSON responses
      - Maintain real-time status updates via polling
      2150cc62
    • Stefy Lanza (nextime / spora )'s avatar
      Add Jobs page for active job management · b05ab8f9
      Stefy Lanza (nextime / spora ) authored
      - Create /jobs route showing queued, processing, and recently cancelled jobs
      - Modify /history to exclude active jobs, show only completed/failed/old cancelled
      - Add Jobs link to navbar between Analyze and History
      - Jobs page has real-time status updates like history page
      - Proper job filtering by status and time for each page
      b05ab8f9
    • Stefy Lanza (nextime / spora )'s avatar
      Ensure queue_id is int for proper comparison · 5014c7f8
      Stefy Lanza (nextime / spora ) authored
      - Convert queue_id to int in assign_job_to_worker and cancel_job
      - Fixes type mismatch issues between str and int comparisons
      - Ensures active_jobs lookup works correctly
      5014c7f8
    • Stefy Lanza (nextime / spora )'s avatar
      Fix cluster master access · acfaf858
      Stefy Lanza (nextime / spora ) authored
      - Update global cluster_master instance for cross-module access
      - Allows queue manager to access active jobs for cancellation
      - Enables proper job_id logging in cancellation messages
      acfaf858