diff --git a/frontend/src/sheets.jsx b/frontend/src/sheets.jsx index 0716f72..f327356 100644 --- a/frontend/src/sheets.jsx +++ b/frontend/src/sheets.jsx @@ -758,7 +758,14 @@ function ExercisePicker({ onPick, close }) { } {f.slice(0, shown).map(e =>
onPick(e))}>
{exerciseNameFor(e)}
{t(e.tg || e.bp)} · {t(e.eq)}
- {usage[e.id] && } + {usage[e.id] && } + {/* A "+" glyph reads as "add this now" — it used to just open the same detail sheet as + tapping the row, so it added nothing until you'd scrolled past the sets/reps config + and found the real button. Now it does what it looks like: adds with the default + config right away. Tapping the row itself still opens the detail/config sheet, for + when you want to set sets/reps before adding. */} +
)} {f.length === 0 && bp === '★' &&
{t('Nothing chosen yet — add exercises and they’ll show up here.')}
} diff --git a/frontend/src/views/RoutineEdit.jsx b/frontend/src/views/RoutineEdit.jsx index bedef96..0cce769 100644 --- a/frontend/src/views/RoutineEdit.jsx +++ b/frontend/src/views/RoutineEdit.jsx @@ -1,11 +1,12 @@ import { useNavigate, useParams } from 'react-router-dom' import { useEffect, useRef, useState } from 'react' import { useStore } from '../store/useStore.js' +import { useUI } from '../store/useUI.js' import { exOr } from '../lib/exercises.js' import { activeProfile, exAvailable } from '../lib/equipment.js' import { uid } from '../lib/format.js' import { t, exerciseNameFor } from '../lib/i18n.js' -import { supersetUnits, moveSupersetUnit, cleanupSg, exLine } from '../lib/history.js' +import { supersetUnits, moveSupersetUnit, cleanupSg, exLine, defaultConfig } from '../lib/history.js' import { Thumb } from '../components/Media.jsx' import { glyphPicker, exercisePicker, exConfigSheet, confirmSheet } from '../sheets.jsx' import Icon from '../components/Icon.jsx' @@ -306,6 +307,7 @@ export default function RoutineEdit() { const { id } = useParams() const S = useStore(s => s.S) const update = useStore(s => s.update) + const toast = useUI(s => s.toast) const r = S.routines.find(x => x.id === id) useEffect(() => { if (!r) nav('/plan') }, [!!r]) // Editing here has no explicit "save" — every field change persists immediately. A single @@ -424,7 +426,14 @@ export default function RoutineEdit() { })()}
{t('Tap the link button on an exercise to superset it with the one above — you’ll do them back-to-back.')}
- +
- {A.entries.length > 0 && <>