Add focus plans and stage-aware follow-up drafting

This commit is contained in:
cesnimda
2026-03-23 22:04:39 +01:00
parent 19b0424ef3
commit 8db620e45b
8 changed files with 345 additions and 25 deletions
@@ -86,7 +86,8 @@ public sealed class FollowUpReminderHostedService : BackgroundService
if (owner is null || !owner.EmailConfirmed || string.IsNullOrWhiteSpace(owner.Email)) continue;
var reason = BuildReminderReason(job, decision.Reason, upcoming);
var detailsUrl = $"{baseUrl}/jobs?open={job.Id}&tab=4";
var followMode = SuggestFollowUpMode(job.Status);
var detailsUrl = $"{baseUrl}/jobs?open={job.Id}&tab=4&followMode={Uri.EscapeDataString(followMode)}";
var companyName = job.Company?.Name ?? "Unknown company";
var appliedOn = job.DateApplied.ToString("MMMM d, yyyy");
var subject = $"Follow up reminder: {job.JobTitle} at {companyName}";
@@ -124,4 +125,17 @@ public sealed class FollowUpReminderHostedService : BackgroundService
_ => "the application may need attention"
};
}
private static string SuggestFollowUpMode(string? status)
{
return (status ?? string.Empty).Trim() switch
{
"Waiting" => "waiting-update",
"Interview" => "post-interview",
"Interviewing" => "post-interview",
"Offer" => "offer-checkin",
"Rejected" => "feedback-request",
_ => "post-apply",
};
}
}