History Export to CSV
This commit is contained in:
@@ -798,6 +798,21 @@ Comprehensive test plan for the GymFlow web application, covering authentication
|
||||
|
||||
**Expected Results:**
|
||||
- The sporadic set is permanently removed from the history.
|
||||
|
||||
#### 4.8. A. Session History - Export CSV
|
||||
|
||||
**File:** `tests/history-export.spec.ts`
|
||||
|
||||
**Steps:**
|
||||
1. Log in as a regular user.
|
||||
2. Complete at least one workout session.
|
||||
3. Navigate to the 'History' section.
|
||||
4. Click the 'Export CSV' button (Download icon).
|
||||
|
||||
**Expected Results:**
|
||||
- A CSV file is downloaded.
|
||||
- The CSV filename contains 'gymflow_history'.
|
||||
- The CSV content contains headers and data rows corresponding to the user's workout history.
|
||||
- No error messages.
|
||||
|
||||
#### 4.8. B. Performance Statistics - View Volume Chart
|
||||
|
||||
@@ -190,6 +190,13 @@ The core feature. States: **Idle**, **Active Session**, **Sporadic Mode**.
|
||||
* **3.5.2 Statistics**
|
||||
* Visualizes progress over time.
|
||||
* **Key Metrics**: Volume (Weight * Reps), Frequency, Body Weight trends.
|
||||
* **3.5.3 Data Export**
|
||||
* **Trigger**: "Export CSV" button in History view.
|
||||
* **Logic**:
|
||||
* Generates a denormalized CSV file containing all workout history.
|
||||
* **Structure**: One row per set.
|
||||
* **Columns**: Includes session attributes (time, plan, note, bodyweight) and set attributes (exercise details, metrics, side, linked exercise flags).
|
||||
* **Output**: Browser download of a `.csv` file.
|
||||
|
||||
### 3.6. User Interface Logic
|
||||
* **3.6.1 Navigation**
|
||||
|
||||
Reference in New Issue
Block a user