feat: enhance timesheet summary with today highlighting and improved CSS styles
All checks were successful
Publish Container / publish (push) Successful in 5m43s

Co-authored-by: Copilot <copilot@github.com>
This commit is contained in:
Marco 2026-04-23 00:11:00 +02:00
commit 0d5b48b891
3 changed files with 36 additions and 3 deletions

View file

@ -294,12 +294,24 @@ else if (viewMode == SummaryViewMode.Timesheet && timesheet is not null)
private static string GetDayColumnClass(global::WorkTracker.Domain.MonthlyTimesheetDayModel day)
{
if (day.IsWeekend || day.IsHoliday)
var classes = new List<string>();
if (day.Date == DateOnly.FromDateTime(DateTime.Today))
{
return "timesheet-summary-day-danger";
classes.Add("timesheet-summary-day-today");
}
return day.IsClosure ? "timesheet-summary-day-closure" : string.Empty;
if (day.IsWeekend || day.IsHoliday)
{
classes.Add("timesheet-summary-day-danger");
}
if (day.IsClosure)
{
classes.Add("timesheet-summary-day-closure");
}
return string.Join(" ", classes);
}
private static string GetDayPopupClass(int index, int totalDays)