Commit graph

73 commits

Author SHA1 Message Date
Kenearos
2cd001dce0
Merge pull request #33 from Kenearos/claude/non-admin-app-setup-01P7njby7mZNPBHKwxAXF76Q
Claude/non admin app setup 01 p7njby7m znpbh kwx axf76 q
2025-12-25 10:42:13 +01:00
Kenearos
e9253df736
Merge branch 'main' into claude/non-admin-app-setup-01P7njby7mZNPBHKwxAXF76Q
Signed-off-by: Kenearos <86194771+Kenearos@users.noreply.github.com>
2025-12-25 10:41:59 +01:00
Kenearos
4785d8fa4d
Merge pull request #32 from Kenearos/claude/add-error-handling-mj4bwwjxsl9e6v2p-012Tu2j8p5uKv8cmtGRDkpdJ
Add comprehensive error handling to Python and JavaScript files
2025-12-25 10:40:17 +01:00
Kenearos
38c7a96a2e
Merge pull request #31 from Kenearos/claude/update-claude-md-CwAqk
Create or update CLAUDE.MD file
2025-12-25 10:39:43 +01:00
Claude
37796da8f4
Update CLAUDE.MD with recent improvements and clarifications
- Add Quick Start guide for all three implementations
- Update NRW holidays list to include Heiligabend and Silvester
- Document recent export functionality improvements (v3.1)
- Add "Recent Changes" section for December 2025 updates
- Document known differences between Web-App and Python/Android versions
- Add detailed Export function documentation
- Update version history to reflect v3.1 release
2025-12-25 09:27:06 +00:00
Claude
b9d8e7094b
Add comprehensive error handling to Python and JavaScript files
This commit enhances error handling across the codebase with clear, user-friendly error messages:

Python Files:
- main.py: Added error handling for directory creation and file operations
- read_excel.py: Added error handling for file loading, JSON parsing, and data output
- fill_plan_dates.py: Added input validation and error handling for file operations and date calculations
- calculate.py: Improved error handling in load_holidays() and process_file() with detailed warnings for invalid data
- build_template.py: Added error handling for directory creation, workbook creation, and file saving

JavaScript Files:
- storage.js: Added comprehensive error handling for:
  - JSON parsing in getEmployees() and getAllDuties()
  - Type validation in save operations
  - Date conversion in getDutiesForMonth()
  - Data validation in saveDutiesForMonth()
  - Export/import operations

Benefits:
- Clear error messages in German for better user experience
- Graceful degradation when data is corrupted
- Type checking to prevent invalid data from being stored
- Row-level error reporting for Excel processing
- Invalid data filtering to prevent application crashes
2025-12-13 13:31:18 +00:00
Kenearos
8821bee816
Merge pull request #30 from Kenearos/copilot/improve-export-functionality
Improve bonus report export: mark deducted days visually, hide euro values for non-contributing days
2025-12-12 21:39:24 +01:00
copilot-swe-agent[bot]
e28178e286 Remove unused isPartiallyDeducted variable
Co-authored-by: Kenearos <86194771+Kenearos@users.noreply.github.com>
2025-12-12 20:12:29 +00:00
copilot-swe-agent[bot]
8b1c182fd8 Improve export to mark deducted days differently and hide euro values for deducted days
Co-authored-by: Kenearos <86194771+Kenearos@users.noreply.github.com>
2025-12-12 20:10:34 +00:00
copilot-swe-agent[bot]
278ded3570 Initial plan 2025-12-12 20:02:56 +00:00
Kenearos
d186718c2c
Merge pull request #28 from Kenearos/copilot/fix-holiday-date-issues
Add Heiligabend (Dec 24) as holiday for NRW
2025-12-12 21:01:26 +01:00
copilot-swe-agent[bot]
b1d0827fc9 Add Silvester (Dec 31) as holiday for NRW 2025 and 2026
This also makes December 30 a Vortag (pre-holiday day).

Co-authored-by: Kenearos <86194771+Kenearos@users.noreply.github.com>
2025-12-12 20:00:39 +00:00
copilot-swe-agent[bot]
1ee73105dd Add Heiligabend (Dec 24) as holiday for NRW 2025 and 2026
This fixes the issue where:
- December 24 was not recognized as a special day
- December 23 was not marked as Vortag (pre-holiday day)

By adding Heiligabend to the holiday list:
- Dec 24 is now Ist_FEIERTAG=TRUE (treated as WE-Tag)
- Dec 23 is now Ist_VORTAG=TRUE (day before holiday, also WE-Tag)

Co-authored-by: Kenearos <86194771+Kenearos@users.noreply.github.com>
2025-12-12 19:41:15 +00:00
copilot-swe-agent[bot]
5a72140240 Initial plan 2025-12-12 19:36:33 +00:00
Kenearos
96eab8bfad
Merge pull request #26 from Kenearos/copilot/fix-calculations-and-report
Fix deduction value inconsistency (2.0→1.0) and improve bonus report format
2025-12-12 20:07:10 +01:00
copilot-swe-agent[bot]
af4473f4b9 Fix remaining 1.0 deduction references to 2.0 based on code review feedback
Co-authored-by: Kenearos <86194771+Kenearos@users.noreply.github.com>
2025-12-12 19:03:54 +00:00
copilot-swe-agent[bot]
db6e95f45c Revert deduction value to 2.0 across all files as per user feedback
Co-authored-by: Kenearos <86194771+Kenearos@users.noreply.github.com>
2025-12-12 12:26:34 +00:00
copilot-swe-agent[bot]
6ecfd895e1 Update claude.md documentation to reflect correct 1.0 deduction value
Co-authored-by: Kenearos <86194771+Kenearos@users.noreply.github.com>
2025-12-12 12:12:49 +00:00
copilot-swe-agent[bot]
feb9c9f712 Address code review feedback: use constants for deduction values
Co-authored-by: Kenearos <86194771+Kenearos@users.noreply.github.com>
2025-12-12 12:11:07 +00:00
copilot-swe-agent[bot]
f5d300bfed Improve bonus report text format for cleaner output
Co-authored-by: Kenearos <86194771+Kenearos@users.noreply.github.com>
2025-12-12 12:06:28 +00:00
copilot-swe-agent[bot]
a2cc8340ee Fix deduction value from 2.0 to 1.0 across all files for consistency
Co-authored-by: Kenearos <86194771+Kenearos@users.noreply.github.com>
2025-12-12 12:04:38 +00:00
copilot-swe-agent[bot]
89862e918c Initial plan 2025-12-12 11:57:27 +00:00
Kenearos
460bb6d9e2
Merge pull request #23 from Kenearos/copilot/fix-weekend-deduction-error
Fix weekend deduction: change from 1.0 to 2.0 WE units
2025-12-12 12:47:05 +01:00
Kenearos
da4d5752d0
Merge pull request #24 from Kenearos/copilot/fix-weekend-calculation-bug
[WIP] Fix calculation error for weekend bonus
2025-12-12 12:46:38 +01:00
copilot-swe-agent[bot]
57335915f5 Remove temporary test file 2025-12-12 11:40:01 +00:00
copilot-swe-agent[bot]
09ef077b67 Update test expectations for 2.0 deduction
Co-authored-by: Kenearos <86194771+Kenearos@users.noreply.github.com>
2025-12-12 11:39:47 +00:00
copilot-swe-agent[bot]
d6372fe2e2 Change weekend deduction from 1.0 to 2.0 units
Co-authored-by: Kenearos <86194771+Kenearos@users.noreply.github.com>
2025-12-12 11:36:24 +00:00
copilot-swe-agent[bot]
2d5e61dc09 Initial plan 2025-12-12 11:29:48 +00:00
copilot-swe-agent[bot]
86cd0ae4a7 Initial plan 2025-12-12 11:29:31 +00:00
Kenearos
95495fd751
Merge pull request #21 from Kenearos/copilot/create-output-file-structure
Add Bonus-Bericht export for formatted payroll reports
2025-12-12 12:22:15 +01:00
copilot-swe-agent[bot]
635b986e2c Add Bonus-Bericht export function for formatted bonus reports
- Added new "Bonus-Bericht" button to both Dienstplan_Portable.html and webapp
- Creates a printable HTML report with:
  - Header with "Bonuszahlungen" title
  - Month and payout date information
  - Table showing duties per weekday with amounts per employee
  - Individual explanatory notes for each employee
  - Print/PDF save button
- Format matches user's requested output style from issue #20

Co-authored-by: Kenearos <86194771+Kenearos@users.noreply.github.com>
2025-12-11 08:52:09 +00:00
copilot-swe-agent[bot]
cefb40945b Initial plan 2025-12-11 08:41:08 +00:00
Kenearos
b8ce3308d2
Merge pull request #19 from Kenearos/copilot/export-data-to-excel
Add CSV export for Excel-friendly data export
2025-12-11 09:33:28 +01:00
copilot-swe-agent[bot]
5c9ab77ffd Add Excel/CSV export feature for beginner-friendly data export
- Add CSV export button to Dienstplan_Portable.html
- Add CSV export button to webapp (index.html, app.js, styles.css)
- Export includes all duties and monthly summary with calculations
- Use semicolon separator for German Excel compatibility
- Add UTF-8 BOM for proper character encoding
- Add proper CSV escaping for names with special characters
- Add helpful tip explaining CSV compatibility with Excel/LibreOffice/Google Sheets

Co-authored-by: Kenearos <86194771+Kenearos@users.noreply.github.com>
2025-12-11 08:23:39 +00:00
copilot-swe-agent[bot]
3cdcf7a541 Initial plan 2025-12-11 08:04:56 +00:00
Kenearos
9e19c52e93
Merge pull request #17 from Kenearos/claude/nrw-shift-calendar-01NksD2q4wnmsX53C6c6367n
Create NRW shift schedule calendar
2025-12-10 22:58:59 +01:00
Claude
3b039c019d
Kalender Edition: Verbesserte portable Version mit Schnelleingabe
- Neue kalenderbasierte Tagesansicht mit Navigation
- Erweiterte Feiertagsdaten 2024-2030 (statt nur 2025-2026)
- Feiertagnamen werden jetzt angezeigt (z.B. "Karfreitag")
- Korrektes Variante-2-Streng Regelwerk dokumentiert
- Unterscheidung zwischen Feiertag, Vortag, Fr/Sa/So
- XSS-Schutz durch Input-Sanitization
- Verbesserte UI mit Pfeiltasten-Navigation
- Besseres Export-Format mit Versionierung
- Abwärtskompatibilität beim Import alter Daten
2025-12-10 21:50:34 +00:00
Kenearos
d96475ad34
Merge pull request #16 from Kenearos/copilot/sub-pr-14-again
[WIP] Complete working application for non-admin users
2025-12-10 22:41:20 +01:00
copilot-swe-agent[bot]
4cebb7bf1a Fix all German spelling errors (missing umlauts)
Co-authored-by: Kenearos <86194771+Kenearos@users.noreply.github.com>
2025-12-10 21:40:49 +00:00
Kenearos
0b5a29bd71
Merge pull request #15 from Kenearos/copilot/sub-pr-14
[WIP] Update implementation for non-admin user application feedback
2025-12-10 22:27:07 +01:00
Kenearos
16d0061724
Merge pull request #14 from Kenearos/claude/non-admin-app-setup-01P7njby7mZNPBHKwxAXF76Q
Complete working application for non-admin users
2025-12-10 22:26:40 +01:00
copilot-swe-agent[bot]
c875f68dde Initial plan 2025-12-10 21:26:40 +00:00
Kenearos
f76ee01fb3
Update Dienstplan_Portable.html
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Signed-off-by: Kenearos <86194771+Kenearos@users.noreply.github.com>
2025-12-10 22:26:14 +01:00
copilot-swe-agent[bot]
e82247244c Initial plan 2025-12-10 21:26:01 +00:00
Claude
5a2c3933e5
Portable Einzeldatei-Version: Dienstplan ohne Admin-Rechte
- Vollständige HTML-Datei mit eingebettetem CSS und JavaScript
- 3-Schritt-Workflow: Mitarbeiter -> Dienste -> Ergebnis
- Läuft direkt im Browser ohne Installation oder Server
- Feiertage NRW 2025-2030 integriert
- Lokale Speicherung im Browser (localStorage)
- Kalenderansicht mit WE-Tag-Markierung
- Korrekte Bonus-Berechnung nach Variante 2 (streng)
2025-12-10 19:05:22 +00:00
Kenearos
2ed3574056
Merge pull request #13 from Kenearos/copilot/add-employee-scheduling-interface
[WIP] Add employee scheduling interface with monthly overview
2025-11-25 18:46:57 +01:00
copilot-swe-agent[bot]
044b369dfd Initial plan 2025-11-25 12:35:04 +00:00
Kenearos
22014614d3
Merge pull request #11 from Kenearos/claude/fix-calculation-01H2SPCpE7WPnQPcUfTwU2uU
Korrektur: Bonus nur bei WE-Schwelle ≥ 2,0
2025-11-25 13:30:45 +01:00
Claude
736d160586
Korrektur: Bonus nur bei WE-Schwelle ≥ 2,0
- Gesamter Bonus (WT + WE) wird nur gezahlt, wenn >= 2,0 WE-Tage erreicht
- Unter Schwelle: Auszahlung = 0€ (weder WT noch WE)
- Abzug mit Freitag-Priorität implementiert
- Testfälle und Dokumentation aktualisiert

Betrifft:
- webapp/calculator.js: Korrekte Berechnung mit Freitag-Priorität
- src/calculate.py: WT-Auszahlung nur bei Schwelle
- SPECIFICATION.md: Regeln, Testfälle und Changelog aktualisiert
2025-11-18 22:02:48 +00:00
Kenearos
034b398c2c Vereinfachte Dienstplan-Version: Nur Datum & Mitarbeiter, Python-Berechnungen
- Neue vereinfachte Vorlage ohne komplexe Excel-Formeln
- Automatische Anteil-Berechnung (1 MA = 1.0, 2 MA = je 0.5)
- Python-basierte Vergütungsberechnung nach NRW-Regeln
- Datumsformat als Text für bessere Kompatibilität
- Testdaten-Generator mit Splits
2025-11-18 21:46:07 +00:00