Days off workouts on Tracker view

This commit is contained in:
AG
2025-12-13 19:40:40 +02:00
parent dbb4beb56d
commit 003c045621
9 changed files with 145 additions and 4 deletions

View File

@@ -599,6 +599,20 @@ Comprehensive test plan for the GymFlow web application, covering authentication
- Timer value persists across different session modes (active to sporadic).
- Last manually set value becomes the new default for manual modes.
#### 3.17. B. Idle State - Days Off Training Logic
**File:** `tests/workout-tracking.spec.ts`
**Steps:**
1. Log in as a new user (0 workouts).
2. Verify message: "Do your very first workout today.".
3. Start and Finish a Free Workout.
4. Verify message: "Last workout: Today".
**Expected Results:**
- Messages update dynamically based on workout history.
- "Ready?" text is NOT visible.
#### 3.18. C. Rest Timer - Plan Integration
**File:** `tests/rest-timer.spec.ts`

View File

@@ -74,6 +74,17 @@ Users can structure their training via Plans.
### 3.4. Workout Tracking (The "Tracker")
The core feature. States: **Idle**, **Active Session**, **Sporadic Mode**.
* **3.4.0 Idle State (Visuals)**
* **Days Off Logic**:
* Displays "Do your very first workout today." for new users (0 workouts).
* Displays "Last workout: Today" if `endTime` of last standard session was today.
* Displays "Days off training: N" otherwise.
* **Color Coding**:
* **1 Day**: Green.
* **2-4 Days**: Gradient (Green to Red).
* **5+ Days**: Red.
* **Constraint**: The text "Ready?" must NOT be displayed.
* **3.4.1 Active Session (Standard)**
* **Initiation**:
* Can start "Free Workout" (no plan).