INNER CODE UNIT · Go
func
career-ops-hq/career-ops · dashboard/main.go:42
func (m *appModel) reloadPipelineData() {
apps := data.ParseApplications(m.careerOpsPath)
metrics := data.ComputeMetrics(apps)
m.progressMetrics = data.ComputeProgressMetrics(apps)
m.pipeline = m.pipeline.WithReloadedData(apps, metrics)
enrichArchetypes(m.careerOpsPath, apps, &m.pipeline)
m.statsMetrics = data.ComputeStatsMetrics(apps)
// Count only apps with a score so the header reflects evaluated offers.
m.evaluatedCount = 0
for _, a := range apps {
if a.Score > 0 {
m.evaluatedCount++
}
}
}
// enrichArchetypes lazy-loads each app's report-derived archetype (used by
// the stats screen's breakdown table) and, as a side effect, primes the