diff --git a/internal/ui/handlers.go b/internal/ui/handlers.go index 6d15d2d..ef242eb 100644 --- a/internal/ui/handlers.go +++ b/internal/ui/handlers.go @@ -68,10 +68,16 @@ func (s *Server) handleIndex(w http.ResponseWriter, r *http.Request) { return } - qualifiedCount := 0 + toReviewCount := 0 + inPipelineCount := 0 + for _, j := range jobs { - if j.Analysis != nil && j.Analysis.IsQualified { - qualifiedCount++ + if j.App != nil && j.App.Status != "OPTED_OUT" { + inPipelineCount++ + } else if j.App == nil || j.App.Status != "OPTED_OUT" { + if j.Analysis != nil && (j.Analysis.IsQualified || j.Analysis.Status == "PENDING") { + toReviewCount++ + } } } @@ -81,9 +87,9 @@ func (s *Server) handleIndex(w http.ResponseWriter, r *http.Request) { Applications: apps, ActiveTab: "triage", LLMProvider: s.cfg.LLMProvider, - QualifiedJobsCount: qualifiedCount, + ToReviewCount: toReviewCount, TotalIngestedCount: len(jobs), - ActiveApplications: len(apps), + InPipelineCount: inPipelineCount, } w.Header().Set("Content-Type", "text/html; charset=utf-8") diff --git a/internal/ui/template_apply.go b/internal/ui/template_apply.go index 49da52b..b71862b 100644 --- a/internal/ui/template_apply.go +++ b/internal/ui/template_apply.go @@ -113,6 +113,7 @@ const applyTableHTML = `{{ define "applyTable" }}