Set logging is now a united. Sporadic set table removed.

This commit is contained in:
AG
2025-12-05 08:55:59 +02:00
parent a632de65ea
commit 41d1d0f16a
19 changed files with 1129 additions and 1232 deletions

View File

@@ -22,6 +22,7 @@ export interface WorkoutSet {
bodyWeightPercentage?: number; // Percentage of bodyweight used (e.g. 65 for pushups)
timestamp: number;
side?: 'LEFT' | 'RIGHT'; // For unilateral exercises
completed: boolean;
}
export interface WorkoutSession {
@@ -33,6 +34,7 @@ export interface WorkoutSession {
userBodyWeight?: number;
planId?: string; // Link to a plan if used
planName?: string;
type: 'STANDARD' | 'QUICK_LOG';
}
export interface ExerciseDef {
@@ -81,22 +83,6 @@ export interface BodyWeightRecord {
dateStr: string; // YYYY-MM-DD
}
export interface SporadicSet {
id: string;
exerciseId: string;
exerciseName: string;
type: ExerciseType;
reps?: number;
weight?: number;
durationSeconds?: number;
distanceMeters?: number;
height?: number;
bodyWeightPercentage?: number;
timestamp: number;
note?: string;
side?: 'LEFT' | 'RIGHT'; // For unilateral exercises
}
export interface User {
id: string;
email: string;