Critical fixes:
1. Added "+ Schlaf erfassen" button back (was missing!)
- Opens NewEntryForm component inline
- Default: 450 min (7h 30min), quality 3
- Collapsible detail view
- Live plausibility check
2. Fixed import overwriting manual entries
- Problem: ON CONFLICT WHERE clause didn't prevent updates
- Solution: Explicit if/else logic
- If manual entry exists → skip (don't touch)
- If non-manual entry exists → UPDATE
- If no entry exists → INSERT
- Properly counts imported vs skipped
Test results:
✅ CSV import with drag & drop
✅ Inline editing
✅ Segment timeline view with colors
✅ Source badges (Manual/Apple Health)
✅ Plausibility check (backend + frontend)
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
|
||
|---|---|---|
| .. | ||
| migrations | ||
| routers | ||
| apply_v9c_migration.py | ||
| auth.py | ||
| check_features.py | ||
| db_init.py | ||
| db.py | ||
| Dockerfile | ||
| feature_logger.py | ||
| main_old.py | ||
| main.py | ||
| migrate_to_postgres.py | ||
| models.py | ||
| requirements.txt | ||
| schema.sql | ||
| startup.sh | ||