Skip to content

Commit 17ee49c

Browse files
author
bndct-devops
committed
fix: plate calculator only shown for barbell/trap bar/EZ bar exercises
1 parent 4ed7ad0 commit 17ee49c

2 files changed

Lines changed: 3 additions & 2 deletions

File tree

TODO.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,7 @@
6161
- **CI: explicit frontend build job** — add `npm ci && npm run build` step before `build-and-push` for faster, cheaper feedback on broken JSX/imports (currently only caught inside the Docker build)
6262

6363
### UX / missing features
64+
- **Interactive charts (touch tooltips)** — SVG `onTouchMove`/`onMouseMove` handler computes nearest data point from touch X, renders floating tooltip bubble; covers bodyweight line, weekly volume bars, muscle donut, per-exercise 1RM line; no new dependency needed; pan/zoom out of scope
6465
- **JSON backup / restore** — full JSON dump of exercises + workouts + sets per profile; CSV export exists but can't be re-imported; needed for migrating between instances
6566
- **System theme auto-follow** — "System" option in theme picker reads `prefers-color-scheme` and maps to Light/Dark; single media query, no backend change
6667
- **Exercise picker: body part filter chips** — horizontal scrollable chip row (All / Chest / Back / …) above the list in the add-exercise bottom sheet; reuses existing filter logic from Exercises tab

frontend/src/ActiveWorkoutView.jsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -560,8 +560,8 @@ export default function ActiveWorkoutView({ workout, exercises, sessionSets, onF
560560
onAnimationEnd={() => setLogPulseActive(false)}><Check size={18} strokeWidth={2.5} /></button>
561561
</div>
562562
)}
563-
{/* Plate calculator */}
564-
{isActive && plateCalc && (() => {
563+
{/* Plate calculator — barbell / trap bar / EZ bar only */}
564+
{isActive && plateCalc && /barbell|trap bar|ez bar/i.test(ex.equipment || '') && (() => {
565565
const wKg = parseWeight(weight, unit)
566566
if (!wKg || wKg <= 0) return null
567567
const BAR_KG = unit === 'lbs' ? 20.4116 : 20

0 commit comments

Comments
 (0)