diff --git a/src/lib/components/fitness/SessionCard.svelte b/src/lib/components/fitness/SessionCard.svelte index 7437076..69902a4 100644 --- a/src/lib/components/fitness/SessionCard.svelte +++ b/src/lib/components/fitness/SessionCard.svelte @@ -1,5 +1,5 @@ @@ -63,11 +82,11 @@
| PREVIOUS | {/if} -KG | -REPS | - {#if editable} + {#each mainMetrics as metric (metric)} +{METRIC_LABELS[metric]} | + {/each} + {#if editable && hasRpe}RPE | + {/if} + {#if editable}{/if} @@ -54,39 +78,28 @@ {#if previousSets} | {#if previousSets[i]} - {previousSets[i].weight} × {previousSets[i].reps} + {formatPrev(previousSets[i])} {:else} — {/if} | {/if} -- {#if editable} - handleInput(i, 'weight', e)} - /> - {:else} - {set.weight ?? '—'} - {/if} - | -- {#if editable} - handleInput(i, 'reps', e)} - /> - {:else} - {set.reps ?? '—'} - {/if} - | - {#if editable} + {#each mainMetrics as metric (metric)} ++ {#if editable} + handleInput(i, metric, e)} + /> + {:else} + {set[metric] ?? '—'} + {/if} + | + {/each} + {#if editable && hasRpe}handleInput(i, 'rpe', e)} /> | + {/if} + {#if editable}
|---|