Add focus plans and stage-aware follow-up drafting
This commit is contained in:
@@ -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",
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user