From 4322dfbe543de02f65049f7611e5eff436c48527 Mon Sep 17 00:00:00 2001 From: Docker Config Backup Date: Wed, 30 Jul 2025 07:54:37 +0200 Subject: [PATCH] Save before creating restore point: Periodic backup MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Auto-saved at 2025-07-30 07:54:37 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude --- components/timeshift-spreadsheet.tsx | 26 ++++++++++++++++++++------ logs/auto-commit.log | 3 +++ logs/auto-commit.out.log | 3 +++ 3 files changed, 26 insertions(+), 6 deletions(-) diff --git a/components/timeshift-spreadsheet.tsx b/components/timeshift-spreadsheet.tsx index 375d4b2..565c05f 100644 --- a/components/timeshift-spreadsheet.tsx +++ b/components/timeshift-spreadsheet.tsx @@ -80,11 +80,14 @@ export function TimeshiftSpreadsheet({ teamId, teamName }: TimeshiftSpreadsheetP console.log("Generated", dayCount, "days of data") - // Complete employee data from Excel file + // Complete employee data from Excel file - exact order from source xlsx const employees = [ + "", // Empty row after header (row 8 in xlsx) "Pauzer Libor (all in one)", "Vörös Pavel (NN)", "Janouš Petr (VN)", + "", // Empty row (row 12 in xlsx) + "", // Empty row (row 13 in xlsx) "Dvořák Václav (VN)", "Vondrák Pavel (NN)", "Čeleda Olda (NN)", @@ -99,7 +102,14 @@ export function TimeshiftSpreadsheet({ teamId, teamName }: TimeshiftSpreadsheetP "Žemlička Miroslav (NN)", "Teslík Hynek (NN)", "X BEZ zkušeností s VN", - "Pohotovost IT" + "kontrolní řádek", + "", // Empty row (row 29 in xlsx) + "Pohotovost IT", // Header - will be made bold + "", // Empty row (row 31 in xlsx) + "Vörös Pavel", + "Janouš Petr", + "Glaser Ondřej", + "Robert Štefan" ] // Add one more column to the right @@ -119,7 +129,7 @@ export function TimeshiftSpreadsheet({ teamId, teamName }: TimeshiftSpreadsheetP return row }) - const result = [titleRow, dayNameRow, yearRow, monthRow, dateRow, shiftRow, [""], ...employeeRows] + const result = [titleRow, dayNameRow, yearRow, monthRow, dateRow, shiftRow, ...employeeRows] console.log("Generated", result.length, "rows with", result[0]?.length, "columns") console.log("Title row:", titleRow.slice(0, 10)) console.log("Day row:", dayNameRow.slice(0, 10)) @@ -296,12 +306,16 @@ export function TimeshiftSpreadsheet({ teamId, teamName }: TimeshiftSpreadsheetP styles["BZ6"] = "" // Override any formatting for BZ6 styles["CA6"] = "" // Override any formatting for CA6 - // Add right border to BY column from row 2 to the last employee row + // Add left border to BZ column from row 2 to the last employee row const totalRows = data.length - const employeeStartRow = 8 // Row 8 is first employee (0-indexed: rows 1-6 are headers, row 7 is empty) + const employeeStartRow = 7 // Row 7 is first employee (0-indexed: rows 1-6 are headers, no empty row) for (let row = 2; row <= totalRows; row++) { - styles[`BY${row}`] = (styles[`BY${row}`] || "") + " border-right: 1px solid #000000;" + styles[`BZ${row}`] = (styles[`BZ${row}`] || "") + " border-left: 1px solid #000000;" } + + // Make header rows bold + styles["A27"] = "font-weight: bold;" // "kontrolní řádek" + styles["A29"] = "font-weight: bold;" // "Pohotovost IT" } console.log("Initializing jspreadsheet with config:", { diff --git a/logs/auto-commit.log b/logs/auto-commit.log index d272d78..b5a4c1b 100644 --- a/logs/auto-commit.log +++ b/logs/auto-commit.log @@ -143,3 +143,6 @@ 2025-07-30 06:54:37 +02:00: 🔖 Creating restore point... 2025-07-30 06:54:42 +02:00: ✅ Restore point created 2025-07-30 07:24:37 +02:00: 🔖 Creating restore point... +2025-07-30 07:24:44 +02:00: ✅ Restore point created +2025-07-30 07:54:37 +02:00: 🔄 Hourly reset: Commit counter reset to 0 +2025-07-30 07:54:37 +02:00: 🔖 Creating restore point... diff --git a/logs/auto-commit.out.log b/logs/auto-commit.out.log index c300469..67e1244 100644 --- a/logs/auto-commit.out.log +++ b/logs/auto-commit.out.log @@ -139,3 +139,6 @@ 2025-07-30 06:54:37 +02:00: 🔖 Creating restore point... 2025-07-30 06:54:42 +02:00: ✅ Restore point created 2025-07-30 07:24:37 +02:00: 🔖 Creating restore point... +2025-07-30 07:24:44 +02:00: ✅ Restore point created +2025-07-30 07:54:37 +02:00: 🔄 Hourly reset: Commit counter reset to 0 +2025-07-30 07:54:37 +02:00: 🔖 Creating restore point...