Add carried-over jobs section to Daily Board and fix tip visibility

Non-terminal jobs scheduled for past dates now appear in a red 'Carried
Over' section at the top of today's board so they can't silently disappear.
Also added alert-permanent to the board tip so the layout doesn't auto-dismiss it.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
2026-05-09 15:34:39 -04:00
parent bc9de38da3
commit 61866e1d1e
4 changed files with 168 additions and 1 deletions
@@ -187,4 +187,22 @@ public class JobRepository : Repository<Job>, IJobRepository
.ThenInclude(i => i.PrepServices.Where(p => !p.IsDeleted))
.FirstOrDefaultAsync();
}
/// <inheritdoc/>
public async Task<List<Job>> GetOverdueScheduledJobsAsync()
{
var today = DateTime.Today;
return await _context.Jobs
.Include(j => j.Customer)
.Include(j => j.JobStatus)
.Include(j => j.JobPriority)
.Include(j => j.AssignedUser)
.Where(j => j.ScheduledDate.HasValue
&& j.ScheduledDate.Value.Date < today
&& !j.IsDeleted
&& !j.JobStatus.IsTerminalStatus)
.OrderBy(j => j.ScheduledDate)
.ThenBy(j => j.JobNumber)
.ToListAsync();
}
}