merge: reconcile perf/wave1-perf with main (Wave 0 features)
Resolve conflicts from main's Wave 0 (PR #1) landing after this branch was cut: - useViewResource.ts: main'se352aaealready fixes the render loop the same way (load in a ref, dropped from deps) — took main's canonical version. My independent fix is superseded (my branch predatede352aae, which is why the loop reproduced live). - JobApplicationsController.cs: keep BOTH main's IJobCvMatchService and my AnalyticsService (ctor gets both optional params). GetAnalyticsOverview stays delegated to AnalyticsService. - Fold main's H3 additions into the extracted AnalyticsService: pipeline-driven funnel (JobPipeline.Normalize/Stages) + time-in-stage (StageAnalytics) and add StageDurationDto + TimeInStage to Models/AnalyticsDtos.cs, preserving the API contract the frontend expects. Build clean; backend suite 135/135 green.
This commit is contained in:
@@ -19,12 +19,15 @@ namespace JobTrackerApi.Models
|
||||
|
||||
public sealed record CompanyActivityPoint(int CompanyId, string Company, int Count, int Responses, double ResponseRate);
|
||||
|
||||
public sealed record StageDurationDto(string Stage, double MedianDays, int Count);
|
||||
|
||||
public sealed record AnalyticsOverviewDto(
|
||||
List<FunnelStagePoint> Funnel,
|
||||
List<ResponseRatePoint> ResponseRateBySource,
|
||||
List<CompanyActivityPoint> TopCompanies,
|
||||
double? MedianDaysToFirstResponse,
|
||||
int TotalResponses,
|
||||
int TotalActive
|
||||
int TotalActive,
|
||||
List<StageDurationDto> TimeInStage
|
||||
);
|
||||
}
|
||||
|
||||
@@ -13,6 +13,12 @@ public class JobApplication
|
||||
public DateTime DateApplied { get; set; } = DateTime.UtcNow;
|
||||
public string? Location { get; set; }
|
||||
public string? Salary { get; set; }
|
||||
|
||||
// Structured salary; the free-text Salary field is kept for display/back-compat.
|
||||
public decimal? SalaryMin { get; set; }
|
||||
public decimal? SalaryMax { get; set; }
|
||||
public string? SalaryCurrency { get; set; } // e.g. "NOK", "GBP", "EUR"
|
||||
public string? SalaryPeriod { get; set; } // "year" | "month" | "hour"
|
||||
public string? NextAction { get; set; }
|
||||
public DateTime? FollowUpAt { get; set; }
|
||||
public DateTime? FeedbackRequestedAt { get; set; }
|
||||
|
||||
Reference in New Issue
Block a user