feat: update application status tracking and rename pipeline metrics in dashboard UI
This commit is contained in:
+11
-5
@@ -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")
|
||||
|
||||
Reference in New Issue
Block a user