feat: update application status tracking and rename pipeline metrics in dashboard UI

This commit is contained in:
2026-08-15 00:07:11 -07:00
parent 286278c1ec
commit 86a092ecd3
4 changed files with 22 additions and 15 deletions
+11 -5
View File
@@ -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")