From f4e8b5fe85493f3652366d5eab679acd7ad101c4 Mon Sep 17 00:00:00 2001 From: Alexander Bocken Date: Sun, 22 Mar 2026 19:48:42 +0100 Subject: [PATCH] fitness: add RPE input to template editor --- src/routes/fitness/workout/+page.svelte | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/routes/fitness/workout/+page.svelte b/src/routes/fitness/workout/+page.svelte index 6b39e66..4896c9c 100644 --- a/src/routes/fitness/workout/+page.svelte +++ b/src/routes/fitness/workout/+page.svelte @@ -410,6 +410,7 @@ {#each editorExercises as ex, exIdx (exIdx)} {@const exercise = getExerciseById(ex.exerciseId)} {@const exMetrics = getExerciseMetrics(exercise).filter((/** @type {string} */ m) => m !== 'rpe')} + {@const hasRpe = getExerciseMetrics(exercise).includes('rpe')}
{exercise?.name ?? ex.exerciseId} @@ -433,6 +434,10 @@ {#if mIdx > 0}×{/if} {/each} + {#if hasRpe} + @ + + {/if} {#if ex.sets.length > 1} {/if} @@ -925,6 +930,9 @@ color: var(--color-text-secondary); font-size: 0.8rem; } + .rpe-input { + width: 3rem; + } .set-remove { background: none; border: none;