From 5d3396c333d72a42025feb76a4691c3048581315 Mon Sep 17 00:00:00 2001 From: Brian McGonagill Date: Wed, 18 Feb 2026 15:58:45 -0600 Subject: [PATCH] Getting A better Log Entry Experience, and history setup --- Tracking.md | 84 ++++++++++ client/General/Home/home.html | 22 ++- client/General/Home/home.js | 3 + client/General/Measurements/measLogEntry.js | 1 - .../Workouts/WorkoutLogs/logEntry.html | 124 ++++++++------ .../General/Workouts/WorkoutLogs/logEntry.js | 157 ++++++++++++------ .../Workouts/Workoutdata/workoutData.js | 34 ++++ .../Workouts/Workoutdata/workoutdata.html | 45 +++++ client/General/headerbar.html | 2 +- client/MainLayout.html | 2 +- client/main.css | 4 +- imports/api/logEntry.js | 55 +++--- lib/route.js | 7 + package-lock.json | 26 +++ package.json | 2 + 15 files changed, 428 insertions(+), 140 deletions(-) create mode 100644 Tracking.md create mode 100644 client/General/Workouts/Workoutdata/workoutData.js create mode 100644 client/General/Workouts/Workoutdata/workoutdata.html diff --git a/Tracking.md b/Tracking.md new file mode 100644 index 0000000..fea551a --- /dev/null +++ b/Tracking.md @@ -0,0 +1,84 @@ +Aerobic: +- Resting Heart Rate (RHR) +- Elevated Heart Rate (EHR) +- Recovery Time (Elevated to Resting) +- VO2 (Oxygenation during exercise) +- Pace / Speed (distance per time) +- Total Time per session +- Exercise Type +- Trends through + - Pace / Speed over Time (weekly, monthly, etc) + - Weekly Duration (total time in aerobic exercise per week) + - Exercise Difficulty Rating (EDR) - Subjective 1 - 10 scale + - Resting Heart Rate over time + - Recovery Time over time + +Weight trainng: +- Exercise Type +- Max Day / Regular Training +- Weight used +- Sets done +- Repetitions completed +- Half Repetitions completed +- To failure (true/false) +- Trends through + - Weight per exercise type over time + - Sets done per weight level per exercise type over time + - Reps done per set per weight level per exercise type over time + - Body part measurements (inches / centimeters) + - Max Lift on Max Days + - Max Lift Reps + +Meal Tracking +- Meal Name +- Dishes included in Meal +- Approximate portion size +- Approximate calories +- Approxmiate portein in grams +- Approximate fat content in grams / calories +- Trends through + - Personal Goal (more calories or less?) + - Number of meals per day + - Calorie count + - Protein gram count + - Fat gram / calorie count + +routine { + _id: routineId, + name: routine_name, + type: routine_type, + addedBy: user, + addedDate: yyyy-mm-dd, + addedTime: hh:mm:ss, +} + +exercises { + _id: exerciseId, + routineId: routineId, + exName: exercise_name, + exercise_type: exercise_type, +} + +logEntry { + _id: logId, + routineId: routineId, + exerciseId: exerciseId, + "date": "2023-03-01", + "exercises": [ + { + "name": "Bench Press", + "weight": 120, + "sets": [ + { + "reps": 8, + "went_to_failure": true + }, + { + "reps": 10, + "went_to_failure": false + } + ], + "sets_performed": 2 + } + ] +} \ No newline at end of file diff --git a/client/General/Home/home.html b/client/General/Home/home.html index 60b3e3b..0c093eb 100644 --- a/client/General/Home/home.html +++ b/client/General/Home/home.html @@ -6,25 +6,23 @@

Workouts

-
+
-

Workouts

-
-
- {{workoutCount}} -
+

{{workoutCount}} Workout Routines

+
-

Exercise Logs

+

{{logCount}} Exercise Logs

+
+
+