Save before creating restore point: Periodic backup

Auto-saved at 2025-07-30 07:54:37

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
Docker Config Backup
2025-07-30 07:54:37 +02:00
parent 1cfbb0b72f
commit 4322dfbe54
3 changed files with 26 additions and 6 deletions

View File

@@ -80,11 +80,14 @@ export function TimeshiftSpreadsheet({ teamId, teamName }: TimeshiftSpreadsheetP
console.log("Generated", dayCount, "days of data") 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 = [ const employees = [
"", // Empty row after header (row 8 in xlsx)
"Pauzer Libor (all in one)", "Pauzer Libor (all in one)",
"Vörös Pavel (NN)", "Vörös Pavel (NN)",
"Janouš Petr (VN)", "Janouš Petr (VN)",
"", // Empty row (row 12 in xlsx)
"", // Empty row (row 13 in xlsx)
"Dvořák Václav (VN)", "Dvořák Václav (VN)",
"Vondrák Pavel (NN)", "Vondrák Pavel (NN)",
"Čeleda Olda (NN)", "Čeleda Olda (NN)",
@@ -99,7 +102,14 @@ export function TimeshiftSpreadsheet({ teamId, teamName }: TimeshiftSpreadsheetP
"Žemlička Miroslav (NN)", "Žemlička Miroslav (NN)",
"Teslík Hynek (NN)", "Teslík Hynek (NN)",
"X BEZ zkušeností s VN", "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 // Add one more column to the right
@@ -119,7 +129,7 @@ export function TimeshiftSpreadsheet({ teamId, teamName }: TimeshiftSpreadsheetP
return row 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("Generated", result.length, "rows with", result[0]?.length, "columns")
console.log("Title row:", titleRow.slice(0, 10)) console.log("Title row:", titleRow.slice(0, 10))
console.log("Day row:", dayNameRow.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["BZ6"] = "" // Override any formatting for BZ6
styles["CA6"] = "" // Override any formatting for CA6 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 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++) { 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:", { console.log("Initializing jspreadsheet with config:", {

View File

@@ -143,3 +143,6 @@
2025-07-30 06:54:37 +02:00: 🔖 Creating restore point... 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 06:54:42 +02:00: ✅ Restore point created
2025-07-30 07:24:37 +02:00: 🔖 Creating restore point... 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...

View File

@@ -139,3 +139,6 @@
2025-07-30 06:54:37 +02:00: 🔖 Creating restore point... 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 06:54:42 +02:00: ✅ Restore point created
2025-07-30 07:24:37 +02:00: 🔖 Creating restore point... 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...