feat: Add explicit FileProcessingStep table for status tracking

Co-authored-by: christianlouis <361235+christianlouis@users.noreply.github.com>
This commit is contained in:
copilot-swe-agent[bot]
2026-02-11 19:45:09 +00:00
parent 52b65868a4
commit ad74bc852d
5 changed files with 404 additions and 24 deletions
+8 -2
View File
@@ -175,8 +175,14 @@ def file_detail_page(request: Request, file_id: int, db: Session = Depends(get_d
# Compute processing flow for visualization
flow_data = _compute_processing_flow(logs)
# Compute step-aligned summary
step_summary = _compute_step_summary(logs)
# Compute step-aligned summary from status table (preferred) or fallback to logs
try:
from app.utils.step_manager import get_step_summary as get_step_summary_from_table
step_summary = get_step_summary_from_table(db, file_id)
except Exception:
# Fallback to log-based computation if status table not available
step_summary = _compute_step_summary(logs)
return templates.TemplateResponse(
"file_detail.html",