diff --git a/components/timeshift-spreadsheet.tsx b/components/timeshift-spreadsheet.tsx index 2ba017e..524a929 100644 --- a/components/timeshift-spreadsheet.tsx +++ b/components/timeshift-spreadsheet.tsx @@ -319,6 +319,13 @@ export function TimeshiftSpreadsheet({ teamId, teamName }: TimeshiftSpreadsheetP } } + // Add top border to year row (row 3) from A3 to end of table (excluding last column) + for (let col = 0; col < (data[0]?.length || 0) - 1; col++) { + const colLetter = getExcelColumnName(col) + const existingStyle = styles[`${colLetter}3`] || "" + styles[`${colLetter}3`] = existingStyle + " border-top: 1px solid #000000;" + } + // Style header rows for (let col = 1; col < (data[0]?.length || 0); col++) { const colLetter = getExcelColumnName(col) @@ -336,11 +343,11 @@ export function TimeshiftSpreadsheet({ teamId, teamName }: TimeshiftSpreadsheetP const colLetter = getExcelColumnName(col) const nextColLetter = getExcelColumnName(col + 1) - // Weekend day name row (row 2) - merged cells with conditional top border - const hasBorder1 = colLetter !== 'BZ' && colLetter !== 'CA' ? " border-top: 1px solid #000000;" : "" - const hasBorder2 = nextColLetter !== 'BZ' && nextColLetter !== 'CA' ? " border-top: 1px solid #000000;" : "" - styles[`${colLetter}2`] = `background-color: #ffd966; height: 50px;${hasBorder1}` // Weekend day name with conditional border - styles[`${nextColLetter}2`] = `background-color: #ffd966; height: 50px;${hasBorder2}` + // Weekend day name row (row 2) - merged cells with conditional borders + const hasBorders1 = colLetter !== 'BZ' && colLetter !== 'CA' ? " border-top: 1px solid #000000; border-left: 1px solid #000000;" : "" + const hasBorders2 = nextColLetter !== 'BZ' && nextColLetter !== 'CA' ? " border-top: 1px solid #000000; border-left: 1px solid #000000;" : "" + styles[`${colLetter}2`] = `background-color: #ffd966; height: 50px;${hasBorders1}` // Weekend day name with conditional borders + styles[`${nextColLetter}2`] = `background-color: #ffd966; height: 50px;${hasBorders2}` // Weekend date columns (rows 3, 4, 5 - year, month, day) for (let row = 3; row <= 5; row++) { diff --git a/logs/auto-commit.log b/logs/auto-commit.log index b706496..43f50a4 100644 --- a/logs/auto-commit.log +++ b/logs/auto-commit.log @@ -273,3 +273,6 @@ 2025-07-31 07:54:37 +02:00: 🔖 Creating restore point... 2025-07-31 07:56:09 +02:00: ✅ Restore point created 2025-07-31 08:24:37 +02:00: 🔖 Creating restore point... +2025-07-31 08:26:09 +02:00: ✅ Restore point created +2025-07-31 08:54:37 +02:00: 🔄 Hourly reset: Commit counter reset to 0 +2025-07-31 08:54:37 +02:00: 🔖 Creating restore point... diff --git a/logs/auto-commit.out.log b/logs/auto-commit.out.log index 3a10b48..36afdf4 100644 --- a/logs/auto-commit.out.log +++ b/logs/auto-commit.out.log @@ -269,3 +269,6 @@ 2025-07-31 07:54:37 +02:00: 🔖 Creating restore point... 2025-07-31 07:56:09 +02:00: ✅ Restore point created 2025-07-31 08:24:37 +02:00: 🔖 Creating restore point... +2025-07-31 08:26:09 +02:00: ✅ Restore point created +2025-07-31 08:54:37 +02:00: 🔄 Hourly reset: Commit counter reset to 0 +2025-07-31 08:54:37 +02:00: 🔖 Creating restore point...