Commit graph

56 commits

Author SHA1 Message Date
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
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
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
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
Kenearos
35de2c27f0
Merge pull request #10 from Kenearos/claude/duty-schedule-calculator-01HRgA7y2Auxt5K2BY6sWtrM
Claude/duty schedule calculator 01 h rg a7y2 auxt5 k2 by6s wtr m
2025-11-18 21:29:44 +01:00
Claude
116a8851bf
Add comprehensive automated test suite for web app
Implements complete test coverage for the duty schedule calculator:

Test Coverage:
- Holiday Provider: NRW holiday detection (2025-2030)
- Calculator - Day Classification: Qualifying days (Fr-So, holidays, day before)
- Calculator - Bonus Calculation: All scenarios (threshold, mixed days, half shifts)
- Storage: CRUD operations, export/import, data persistence
- Edge Cases: Rounding errors, performance, leap years

Test Statistics:
- Total Tests: 30+
- Categories: 5 (HolidayProvider, Calculator×2, Storage, Edge Cases)
- Assertions: assertEqual, assertAlmostEqual, assertTrue, assertFalse

Features:
- Visual test runner with color-coded results
- Detailed error messages with expected vs. actual values
- Grouped test results by category
- Performance tracking
- Summary statistics (total/passed/failed)

Test Scenarios Include:
- Threshold: <2.0 days (0€), =2.0 days (450€), >2.0 days (900€)
- Mixed duties: Normal + qualifying days
- Half shifts: Correct calculation (0.5 × rates)
- Holidays: Including day before holiday
- Storage: Multiple employees, data persistence
- Edge cases: Rounding, 30+ duties, leap year

Files:
- webapp/test.html - Test runner UI
- webapp/test-suite.js - Test implementation (30+ tests)
- webapp/TEST_GUIDE.md - Comprehensive testing documentation

Usage:
1. Open http://localhost:8000/test.html
2. Click "Alle Tests ausführen"
3. View results with pass/fail indicators

All tests passing 
2025-11-18 20:13:32 +00:00
Claude
6617a1b298
Add claude.md to project structure in README 2025-11-18 20:08:38 +00:00
Kenearos
80f6d0e562
Merge pull request #9 from Kenearos/claude/duty-schedule-calculator-01HRgA7y2Auxt5K2BY6sWtrM
Build duty schedule calculation application
2025-11-18 21:07:19 +01:00
Claude
8c436c4aa9
Add comprehensive project documentation (claude.md)
Provides detailed overview of the entire Dienstplan project including:
- All three implementations (Web-App, Python/Excel, Android)
- Calculation logic differences between versions
- Complete file structure documentation
- Development guidelines and testing scenarios
- Code architecture explanation
- Deployment options and security notes

This document serves as a comprehensive guide for understanding
and maintaining the project.
2025-11-18 20:03:04 +00:00
Claude
520e3b62e0
Add web-based duty schedule bonus calculator
Implements a complete web application for calculating bonus payments
for weekend and holiday duty shifts according to NRW rules.

Features:
- Employee management (add/remove multiple employees)
- Monthly duty scheduling (full and half shifts)
- Automatic NRW holiday detection (2025-2030)
- Bonus calculation with configurable rules
- LocalStorage for data persistence
- Export/Import functionality (JSON)
- Responsive design for desktop and mobile
- No external dependencies

Calculation Rules:
- Qualifying days: Friday, Saturday, Sunday, public holidays, day before holiday
- Minimum threshold: 2.0 qualifying days required
- Deduction: 1.0 qualifying day after threshold reached
- Rates: Normal days 250€, qualifying days 450€
- Half shifts: 50% of respective rate
- No bonus payment if threshold not reached

Technical Stack:
- Vanilla JavaScript (no frameworks)
- HTML5 & CSS3
- LocalStorage API
- Modern, gradient-based UI design

Files:
- webapp/index.html - Main HTML interface
- webapp/styles.css - Responsive styling
- webapp/app.js - Main application logic and UI handling
- webapp/calculator.js - Bonus calculation engine
- webapp/holidays.js - NRW public holidays provider
- webapp/storage.js - LocalStorage data management
- webapp/README.md - Comprehensive documentation

Updated main README.md to include web app in available versions.
2025-11-18 20:00:13 +00:00
Kenearos
f12b6a1dc6
Merge pull request #8 from Kenearos/copilot/add-duty-scheduling-feature
Add native Android app for mobile duty roster management
2025-11-14 19:24:15 +01:00
copilot-swe-agent[bot]
c2fa2d3156 Add comprehensive implementation summary document
Co-authored-by: Kenearos <86194771+Kenearos@users.noreply.github.com>
2025-11-14 17:26:56 +00:00
copilot-swe-agent[bot]
5314f2fe7b Update CHANGELOG with Android app implementation details
Co-authored-by: Kenearos <86194771+Kenearos@users.noreply.github.com>
2025-11-14 17:25:40 +00:00
copilot-swe-agent[bot]
976d494d9f Add Android app implementation with core features
Co-authored-by: Kenearos <86194771+Kenearos@users.noreply.github.com>
2025-11-14 17:24:17 +00:00
copilot-swe-agent[bot]
3069fcd8ba Initial plan 2025-11-14 17:15:43 +00:00
Kenearos
0636924bdb
Merge pull request #6 from Kenearos/copilot/fix-dienstplan-functionality
Fix Excel formula syntax error in Checks sheet validation
2025-11-14 18:12:24 +01:00
copilot-swe-agent[bot]
abf5e9bbfb Add CHANGELOG documenting the formula syntax fix
Co-authored-by: Kenearos <86194771+Kenearos@users.noreply.github.com>
2025-11-14 14:14:25 +00:00
copilot-swe-agent[bot]
73b214a094 Fix Excel formula syntax error in Checks sheet
Co-authored-by: Kenearos <86194771+Kenearos@users.noreply.github.com>
2025-11-14 14:11:14 +00:00
copilot-swe-agent[bot]
391214ccb3 Initial plan 2025-11-14 14:06:24 +00:00
Kenearos
ad0f2332a9
Merge pull request #4 from Kenearos/copilot/set-up-copilot-instructions
Configure comprehensive Copilot instructions for repository
2025-11-14 15:04:56 +01:00
copilot-swe-agent[bot]
8547b55800 Update Copilot instructions with comprehensive project documentation
Co-authored-by: Kenearos <86194771+Kenearos@users.noreply.github.com>
2025-11-14 14:01:50 +00:00