fix: persist and display Volume PRs in workout history

Volume PRs were calculated client-side in the workout summary but never
saved to the database, so they didn't appear in history detail pages.
Add bestSetVolume PR detection to both session save and recalculate
endpoints, and render the new type in the history detail view.
This commit is contained in:
2026-03-24 20:31:17 +01:00
parent 17b7e1b29a
commit 03f9194903
4 changed files with 22 additions and 1 deletions
+1 -1
View File
@@ -31,7 +31,7 @@ export interface ICompletedExercise {
export interface IPr {
exerciseId: string;
type: string; // 'est1rm' | 'maxWeight' | 'repMax'
type: string; // 'est1rm' | 'maxWeight' | 'bestSetVolume' | 'repMax'
value: number;
reps?: number;
}