Commit Graph

4 Commits

Author SHA1 Message Date
Docker Config Backup
b38452413d Final working solution: shadcn date picker with timezone fix
- Implemented shadcn/ui date picker with Czech localization
- Added month/year dropdown navigation for easy date selection
- Fixed critical timezone bug causing "No valid days found" error
  - Changed from toISOString() to local date formatting
  - Dates now correctly sent as 2025-01-01 instead of 2024-12-31
- Calendar auto-closes after date selection
- All features tested and working:
  - Journey calculation with correct date ranges
  - "Vyplnit na web" button visible and functional
  - Excel export working
  - Backend successfully processes January 2025 data

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

Co-Authored-By: Claude <noreply@anthropic.com>
2025-10-13 07:45:06 +02:00
Docker Config Backup
8cbc9771ae Fix: Correctly fill refueling data for multiple refuelings per day
Problem: Both refueling forms for the same date were being filled with
refuel_1 data because the logic checked current_km value which was "0"
for both forms initially.

Solution: Track refueling form number per date using refuel_counter dict.
First refueling form gets data from "Tankováno při 1 [km]", second gets
data from "Tankováno při 2 [km]".

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

Co-Authored-By: Claude <noreply@anthropic.com>
2025-10-10 20:12:24 +02:00
Docker Config Backup
f0bbc305c9 Fix: Set both end km and traveled km in journey forms
Problem: Website was recalculating traveled km based on previous row's
end km, causing chain reaction of incorrect values (only 52% match rate).

Solution: Explicitly set f_cil_km (end km) in addition to f_ujeto
(traveled km) to prevent website from auto-calculating incorrect values.

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

Co-Authored-By: Claude <noreply@anthropic.com>
2025-10-10 20:05:36 +02:00
Docker Config Backup
3b5d9fd940 Initial commit - Journey book (kniha jízd) automation system
Features:
- FastAPI backend for scraping attendance and journey book data
- Deterministic kilometer distribution with random variance
- Refueling form filling with km values
- Next.js frontend with date range selector
- Docker deployment setup

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

Co-Authored-By: Claude <noreply@anthropic.com>
2025-10-10 15:41:11 +02:00