Production Release: RestDays Widget + Trainingstyp Fix #16
Loading…
Reference in New Issue
Block a user
No description provided.
Delete Branch "develop"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Changes in this release:
Features
Bugfixes
Commits
Testing
Deployment
Gitea Runner will automatically deploy to mitai.jinkendo.de
Issue closed: #13
Problem: Photos were always getting NULL date instead of form date, causing frontend to fallback to created timestamp (today). Root cause: FastAPI requires Form() wrapper for form fields when mixing with File() parameters. Without it, the date parameter was treated as query parameter and always received empty string. Solution: - Import Form from fastapi - Change date parameter from str="" to str=Form("") - Return photo_date instead of date in response (consistency) Now photos correctly use the date from the upload form and can be backdated when uploading later. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>PROBLEM: Simple full_rest/active_recovery model doesn't support context-specific rest days (e.g., strength rest but cardio allowed). SOLUTION: JSONB-based flexible rest day configuration. ## Changes: **Migration 010:** - Refactor rest_days.type → rest_config JSONB - Schema: {focus, rest_from[], allows[], intensity_max} - Validation function with check constraint - GIN index for performant JSONB queries **Backend (routers/rest_days.py):** - CRUD: list, create (upsert by date), get, update, delete - Stats: count per week, focus distribution - Validation: check activity conflicts with rest day config **Frontend (api.js):** - 7 new methods: listRestDays, createRestDay, updateRestDay, deleteRestDay, getRestDaysStats, validateActivity **Integration:** - Router registered in main.py - Ready for weekly planning validation rules ## Next Steps: - Frontend UI (RestDaysPage with Quick/Custom mode) - Activity conflict warnings - Dashboard widget Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>