feat: add company holiday preference feature with UI and logic for holiday selection
All checks were successful
Build and Push Docker Image / build (push) Successful in 29s

This commit is contained in:
Felix Schlusche
2025-10-30 16:14:03 +01:00
parent 4bdd9310ea
commit 282aaac8ae
4 changed files with 145 additions and 402 deletions

View File

@@ -22,6 +22,9 @@ let currentEntryId = null; // ID of today's entry being timed
let displayYear = new Date().getFullYear();
let displayMonth = new Date().getMonth(); // 0-11
// Settings state
let companyHolidayPreference = 'christmas'; // 'christmas' (24.12) or 'newyearseve' (31.12)
// Bulk edit state
let bulkEditMode = false;
let selectedEntries = new Set();
@@ -44,6 +47,8 @@ function setCurrentEntryId(id) { currentEntryId = id; }
function setDisplayYear(year) { displayYear = year; }
function setDisplayMonth(month) { displayMonth = month; }
function setCompanyHolidayPreference(preference) { companyHolidayPreference = preference; }
function setBulkEditMode(mode) { bulkEditMode = mode; }
function clearSelectedEntries() { selectedEntries.clear(); }
function addSelectedEntry(id) { selectedEntries.add(id); }