Skip to content

Open-source gym & body-weight tracker, now in the App Store (iPhone + Apple Watch) and as an Android APK. Plan routines, log workouts, see which muscles are trained, import from Strong/Hevy/FitNotes. Self-host it or use it on the phone alone.

Icons: exercise sheets, Home, Library, Stats and the routine editor

Duarte Santosc27335c36f05
diff --git a/frontend/src/components/MuscleExplorer.jsx b/frontend/src/components/MuscleExplorer.jsx
index 3a1bcc24f..2562be5a3 100644
--- a/frontend/src/components/MuscleExplorer.jsx
+++ b/frontend/src/components/MuscleExplorer.jsx
@@ -44,7 +44,7 @@ export default function MuscleExplorer({ onPick, onDetail, onPlan }) {
return <>
{profile && <div className="small dim row" style={{ margin: '-4px 2px 10px', gap: 6, alignItems: 'center' }}>
- <Icon name="dumbbell" style={{ fontSize: 13 }} />
+ <Icon name="kettlebell" style={{ fontSize: 13 }} />
{showAll ? t('Showing all equipment') : t('Showing what you have in "{0}"', profile.name)}
<button className="chip nocap" style={{ marginInlineStart: 'auto', padding: '3px 10px', fontSize: 12 }} onClick={() => { setShowAll(v => !v); setEq(''); setShown(40) }}>
{showAll ? t('Filter by "{0}"', profile.name) : t('Show all equipment')}
@@ -60,7 +60,7 @@ export default function MuscleExplorer({ onPick, onDetail, onPlan }) {
</div>
</div>
- {!selected && onPick && <div className="empty"><div className="ico"><Icon name="target" /></div>{t('Choose a muscle to see exercises that train it.')}</div>}
+ {!selected && onPick && <div className="empty"><div className="ico"><Icon name="figureStrength" /></div>{t('Choose a muscle to see exercises that train it.')}</div>}
{selected && <>
<div className="row between" style={{ margin: '2px 0 10px' }}>
diff --git a/frontend/src/sheets.jsx b/frontend/src/sheets.jsx
index bd6a4f1bf..f56d5d62e 100644
--- a/frontend/src/sheets.jsx
+++ b/frontend/src/sheets.jsx
@@ -191,7 +191,7 @@ function StarterPlanChooser({ close }) {
{starterPlanOptions().map(({ id, days }) => {
const { name, about } = PLAN_COPY[id]()
return <div key={id} className="item" {...tappable(() => choose(id, name))}>
- <span className="lrow-i" style={{ background: 'var(--surface-3)' }}><Icon name="sparkles" /></span>
+ <span className="lrow-i" style={{ background: 'var(--surface-3)' }}><Icon name="clipboard" /></span>
<div className="grow"><div className="tt">{name}</div><div className="ss">{t('{0} days per week', days)} · {about}</div></div>
<Icon name="chevronRight" className="chev" />
</div>
@@ -278,7 +278,7 @@ function BwSheet({ required, onDone, close }) {
<Button variant="primary" onClick={save}>{required ? t('Save & start workout') : t('Save')}</Button>
{required && <>
<div style={{ height: 8 }} /><Button variant="ghost" className="dim" onClick={() => { close(); onDone && onDone(null) }}>{t('Start without weighing in')}</Button>
- <div style={{ height: 2 }} /><Button variant="ghost" className="dim" icon="reset" onClick={() => { close(); nav('/workout') }}>{t('Choose a different workout')}</Button>
+ <div style={{ height: 2 }} /><Button variant="ghost" className="dim" icon="swap" onClick={() => { close(); nav('/workout') }}>{t('Choose a different workout')}</Button>
</>}
{!required && recent.length > 0 && <>
<h4 className="sec">{t('Recent weigh-ins')}</h4>
@@ -844,8 +844,8 @@ function ExerciseDetail({ ex, close }) {
<Media ex={ex} />
<div className="row" style={{ gap: 6, flexWrap: 'wrap', margin: '10px 0' }}>
<span className="tag acc">{t(ex.bp)}</span>
- {ex.bp === 'cardio' ? <span className="tag"><Icon name="target" />{t(MUSCLE_NAME['cardiovascular system'])}</span> : (ex.primaries?.length ? ex.primaries : (ex.tg ? [ex.tg] : [])).map((s, i) => <span key={i} className="tag"><Icon name="target" />{t(MUSCLE_NAME[s] || s)}</span>)}
- <span className="tag"><Icon name="dumbbell" />{t(ex.eq)}</span>
+ {ex.bp === 'cardio' ? <span className="tag"><Icon name="figureStrength" />{t(MUSCLE_NAME['cardiovascular system'])}</span> : (ex.primaries?.length ? ex.primaries : (ex.tg ? [ex.tg] : [])).map((s, i) => <span key={i} className="tag"><Icon name="figureStrength" />{t(MUSCLE_NAME[s] || s)}</span>)}
+ <span className="tag"><Icon name="kettlebell" />{t(ex.eq)}</span>
{(ex.secondaries?.length ? ex.secondaries : smOf(ex)).slice(0, 3).map((s, i) => <span key={i} className="tag">{t(MUSCLE_NAME[s] || s)}</span>)}
</div>
{ex.desc && <div className="exnote">{ex.desc}</div>}
@@ -945,7 +945,7 @@ function AddToRoutine({ ex, close }) {
<div className="grow"><div className="tt">{r.name}</div><div className="ss">{exCount(r.ex.length)}</div></div>
{r.ex.some(e => e.id === ex.id) && <span className="tag">{t('already in')}</span>}<Icon name="plus" className="chev" />
</div>)}
- <div className="item" {...tappable(() => pick('_new'))}><span className="lrow-i" style={{ background: 'var(--surface-3)' }}><Icon name="sparkles" /></span>
+ <div className="item" {...tappable(() => pick('_new'))}><span className="lrow-i" style={{ background: 'var(--surface-3)' }}><Icon name="plusCircle" /></span>
<div className="grow"><div className="tt">{t('New routine')}</div><div className="ss">{t('Create one and start with this exercise')}</div></div><Icon name="plus" className="chev" /></div>
</div>
</>
@@ -1150,7 +1150,7 @@ function ExercisePicker({ onPick, title, close }) {
return <>
<div className="row between" style={{ marginBottom: 10 }}><h3>{title || t('Add exercise')}</h3>
- <Button size="sm" variant="tinted" icon="target" onClick={() => setByMuscle(true)}>{t('By muscle')}</Button>
+ <Button size="sm" variant="tinted" icon="figureStrength" onClick={() => setByMuscle(true)}>{t('By muscle')}</Button>
</div>
{/* .picker-search is what index.css keys the keyboard-aware sheet layout on: the sheet
lifts above the keys and the search stays put while the list scrolls under it. */}
@@ -1159,7 +1159,7 @@ function ExercisePicker({ onPick, title, close }) {
{narrowed && <span className="search-count" role="status" aria-label={exCount(f.length)}>{fmtNum(f.length)}</span>}
{q && <button className="clear" onClick={() => { setQ(''); setShown(50) }} aria-label={t('Clear')}><Icon name="xmark" /></button>}</div></div>
{profile && <div className="small dim row" style={{ margin: '8px 0 2px', gap: 6, alignItems: 'center' }}>
- <Icon name="dumbbell" style={{ fontSize: 13 }} />
+ <Icon name="kettlebell" style={{ fontSize: 13 }} />
{showAll ? t('Showing all equipment') : t('Showing what you have in "{0}"', profile.name)}
<button className="chip nocap" style={{ marginInlineStart: 'auto', padding: '3px 10px', fontSize: 12 }} onClick={() => setShowAll(v => !v)}>
{showAll ? t('Filter by "{0}"', profile.name) : t('Show all equipment')}
@@ -1181,7 +1181,7 @@ function ExercisePicker({ onPick, title, close }) {
</div>}
<div className="list">
{!special && <div className="item" {...tappable(() => customExSheet(null, ex => onPick(ex), q.trim()))}>
- <div className="thumb thumb-x"><Icon name="sparkles" /></div>
+ <div className="thumb thumb-x"><Icon name="plusCircle" /></div>
<div className="grow"><div className="tt">{t('Create your own exercise')}</div><div className="ss">{t('name + body part, and a photo or video if you like')}</div></div><Icon name="plus" className="chev" />
</div>}
{f.slice(0, shown).map(e => <div key={e.id} className="item" {...tappable(() => onPick(e))}>
@@ -1615,7 +1615,7 @@ function ExConfig({ ex, existing, onSave, onDelete, onReplace, close, routine, i
subtitle={bw ? (mode === 'time' ? t('No weight to enter. Just time the hold.') : t('No weight to enter. Just log the reps.')) : t('Ask for a weight on every set.')}>
<Switch checked={bw} onChange={v => setC(x => ({ ...x, bodyweight: v, weight: v ? 0 : x.weight }))} />
</Row>
- {mode !== 'cardio' && <Row icon="shuffle" iconTint="var(--blue)" title={t('Per side')}
+ {mode !== 'cardio' && <Row icon="sides" iconTint="var(--blue)" title={t('Per side')}
subtitle={mode === 'time'
? (perSide
? tn('{0} set becomes {1}: one on each side, {2}s held every time.', '{0} sets become {1}: one on each side, {2}s held every time.', c.sets || 0, (c.sets || 0) * 2, c.sec || 0)
@@ -1634,7 +1634,7 @@ function ExConfig({ ex, existing, onSave, onDelete, onReplace, close, routine, i
</Row>}
{/* Off keeps the list as `pyramidDraft`, so a stray tap does not lose it before Save
(save writes neither field unless the toggle is on). */}
- {mode === 'reps' && <Row icon="target" iconTint="var(--acc)" title={t('Pyramid sets')}
+ {mode === 'reps' && <Row icon="steps" iconTint="var(--acc)" title={t('Pyramid sets')}
subtitle={t('A different rep target for each set, e.g. 12 · 8 · 6 · Max · 12.')}>
<Switch checked={pyramid} onChange={v => setC(x => (v
? { ...x, pyramid: x.pyramidDraft || pyramidFromFlat(x), intensifier: undefined }
@@ -1721,7 +1721,7 @@ function ExConfig({ ex, existing, onSave, onDelete, onReplace, close, routine, i
{/* The routine editor's counterpart to a workout's Swap (#110): another exercise in this
slot, with the slot's sets, reps, weight, rule and note kept (lib/routines.js). What was
changed on this sheet and not saved is left behind, as closing it would. */}
- {onReplace && <><div style={{ height: 8 }} /><Button icon="shuffle" onClick={() => { close(); onReplace() }}>{t('Replace exercise')}</Button></>}
+ {onReplace && <><div style={{ height: 8 }} /><Button icon="swap" onClick={() => { close(); onReplace() }}>{t('Replace exercise')}</Button></>}
{onDelete && <><div style={{ height: 8 }} /><Button variant="danger" onClick={() => { close(); onDelete() }}>{t('Remove from routine')}</Button></>}
</>
}
@@ -1880,7 +1880,7 @@ function PlanTools({ close }) {
<div className="dim small" style={{ margin: '7px 2px 0', lineHeight: 1.4 }}>{t('A clean printout, one page per plan. No exercise ever gets split across pages.')}</div>
{!hasRoutines && <div className="dim small" style={{ margin: '12px 2px 0' }}>{t('Add an exercise to a routine first. An empty plan has nothing to share.')}</div>}
<h4 className="sec">{t('Got a plan from a friend?')}</h4>
- <Button variant="ghost" icon="folder" onClick={() => fileRef.current?.click()}>{t('Import a plan file')}</Button>
+ <Button variant="ghost" icon="download" onClick={() => fileRef.current?.click()}>{t('Import a plan file')}</Button>
<input ref={fileRef} type="file" accept="application/json,.json" onChange={pickFile} hidden />
</>
}
@@ -2123,7 +2123,7 @@ function WorkoutDetail({ w, close }) {
<div className="grow"><div className={`tt ${exerciseNameClass(ex)}`} style={{ fontWeight: 600 }}>{nameOf(e)} {w.prs && w.prs.includes(e.id) && <span className="pr"><Icon name="trophy" />PR</span>}</div>
<div className="ss">{e.sets.filter(hasCompletedWork).map(s => setLabel(e.id, s, e.target, speedUnitOf(st))).join(' · ') || t('no sets')}</div>
{e.note && <div className="small dim" style={{ marginTop: 3 }}>
- {e.notePin && <Icon name="flag" style={{ fontSize: 12, marginInlineEnd: 4, verticalAlign: '-1px', color: 'var(--yellow)' }} />}{e.note}
+ {e.notePin && <Icon name="pin" style={{ fontSize: 12, marginInlineEnd: 4, verticalAlign: '-1px', color: 'var(--yellow)' }} />}{e.note}
</div>}</div>
<Icon name="chevronRight" className="chev" style={{ alignSelf: 'center' }} />
</div>
@@ -2198,7 +2198,7 @@ function WorkoutDetail({ w, close }) {
initial.current = latest.current.trim().slice(0, NOTE_MAX)
workoutDateSheet(w, close)
}}>{t('Change date & time')}</Button>
- <Button icon="timer" style={{ marginBottom: 8 }} onClick={() => {
+ <Button icon="stopwatch" style={{ marginBottom: 8 }} onClick={() => {
saveNote()
initial.current = latest.current.trim().slice(0, NOTE_MAX)
workoutDurationSheet(w, close)
@@ -2216,7 +2216,7 @@ function WorkoutDetail({ w, close }) {
}
})}>{t('Save as routine')}</Button>
<div style={{ height: 8 }} />
- <Button icon="clipboard" onClick={copyAsText}>{t('Copy as text')}</Button>
+ <Button icon="copy" onClick={copyAsText}>{t('Copy as text')}</Button>
<div style={{ height: 10 }} />
{/* Matched the way the edits above are, not by id: a workout from before ids has none, and
filtering on `x.id !== undefined` took every other one of them with it. */}
@@ -2552,7 +2552,7 @@ function ExerciseNote({ entryIdx, close }) {
onFocus={onNoteFocus} onChange={e => setNote(e.target.value)} />
<div style={{ height: 10 }} />
<div className="sect-b">
- <Row icon="flag" iconTint="var(--yellow)" title={t('Show this next time')}
+ <Row icon="pin" iconTint="var(--yellow)" title={t('Show this next time')}
subtitle={t('Brings it up again the next time you train this exercise.')}>
<Switch checked={pin} onChange={setPin} disabled={!note.trim()} />
</Row>
diff --git a/frontend/src/views/Home.jsx b/frontend/src/views/Home.jsx
index 707719229..56dfd6b89 100644
--- a/frontend/src/views/Home.jsx
+++ b/frontend/src/views/Home.jsx
@@ -127,7 +127,7 @@ export default function Home() {
<div className="today-row" {...tappable(onToday)}>
<div className="row" style={{ gap: 9, minWidth: 0 }}>
<span className="lrow-i" style={{ background: S.active ? 'var(--orange)' : doneToday ? 'var(--surface-3)' : routine ? 'var(--acc)' : 'var(--surface-3)' }}>
- <Icon name={S.active ? (editingSaved ? 'pencil' : 'timer') : doneToday ? 'checkCircle' : routine ? glyphOf(routine.emoji) : 'moon'}
+ <Icon name={S.active ? (editingSaved ? 'pencil' : 'play') : doneToday ? 'checkCircle' : routine ? glyphOf(routine.emoji) : 'moon'}
style={doneToday && !S.active ? { color: 'var(--green)' } : undefined} />
</span>
<div style={{ minWidth: 0 }}>
@@ -150,7 +150,7 @@ export default function Home() {
way in, "Choose a different workout" on the weigh-in sheet, does not exist when the
weigh-in is switched off. This is that door, and it starts nothing on its own. */}
{!S.active && <div style={{ display: 'flex', justifyContent: 'center', marginTop: 4 }}>
- <Button size="sm" variant="ghost" className="dim" icon="reset" onClick={() => nav('/workout')}>
+ <Button size="sm" variant="ghost" className="dim" icon="swap" onClick={() => nav('/workout')}>
{t('Choose a different workout')}
</Button>
</div>}
@@ -176,11 +176,11 @@ export default function Home() {
{!S.routines.length && !S.active && (
<div className="card">
<div className="row" style={{ gap: 10, marginBottom: 6 }}>
- <span className="lrow-i"><Icon name="sparkles" /></span>
+ <span className="lrow-i"><Icon name="calendar" /></span>
<div className="big" style={{ fontSize: 22 }}>{t('Welcome!')}</div>
</div>
<div className="muted small" style={{ marginBottom: 12 }}>{t('Set up your weekly routine to get going, or grab a ready-made starter plan.')}</div>
- <Button variant="primary" icon="sparkles" onClick={starterPlanSheet}>{t('Load starter plan')}</Button>
+ <Button variant="primary" icon="clipboard" onClick={starterPlanSheet}>{t('Load starter plan')}</Button>
<div style={{ height: 8 }} /><Button onClick={() => nav('/plan')}>{t('Build my own plan')}</Button>
</div>
)}
diff --git a/frontend/src/views/Library.jsx b/frontend/src/views/Library.jsx
index 3294ff3e4..e87150921 100644
--- a/frontend/src/views/Library.jsx
+++ b/frontend/src/views/Library.jsx
@@ -42,7 +42,7 @@ export default function Library() {
return <>
<div className="hdr lib-hdr"><div><h1>{t('Exercises')}</h1></div>
- <Button size="sm" variant="tinted" icon="target" onClick={() => nav('/muscles')}>{t('By muscle')}</Button>
+ <Button size="sm" variant="tinted" icon="figureStrength" onClick={() => nav('/muscles')}>{t('By muscle')}</Button>
<div className="sub lib-count">{ownCount
? tn('{1} animated exercises + 1 of your own', '{1} animated exercises + {0} of your own', ownCount, EXDB.length)
: t('{0} exercises with animations', EXDB.length)}</div>
@@ -52,7 +52,7 @@ export default function Library() {
{narrowed && <span className="search-count" role="status" aria-label={exCount(f.length)}>{fmtNum(f.length)}</span>}
{q && <button className="clear" onClick={() => { setQ(''); setShown(40) }} aria-label={t('Clear')}><Icon name="xmark" /></button>}</div>
{profile && <div className="small dim row" style={{ margin: '-4px 2px 10px', gap: 6, alignItems: 'center' }}>
- <Icon name="dumbbell" style={{ fontSize: 13 }} />
+ <Icon name="kettlebell" style={{ fontSize: 13 }} />
{showAll ? t('Showing all equipment') : t('Showing what you have in "{0}"', profile.name)}
<button className="chip nocap" style={{ marginInlineStart: 'auto', padding: '3px 10px', fontSize: 12 }} onClick={() => setShowAll(v => !v)}>
{showAll ? t('Filter by "{0}"', profile.name) : t('Show all equipment')}
@@ -71,7 +71,7 @@ export default function Library() {
</div>}
<div className="list">
<div className="item" {...tappable(() => customExSheet(null, ex => exerciseDetailSheet(ex), q.trim()))}>
- <div className="thumb thumb-x"><Icon name="sparkles" /></div>
+ <div className="thumb thumb-x"><Icon name="plusCircle" /></div>
<div className="grow"><div className="tt">{t('Create your own exercise')}</div><div className="ss">{t('name + body part, and a photo or video if you like')}</div></div><Icon name="plus" className="chev" />
</div>
{f.slice(0, shown).map(e => {
diff --git a/frontend/src/views/RoutineEdit.jsx b/frontend/src/views/RoutineEdit.jsx
index 9913b9162..6280465fc 100644
--- a/frontend/src/views/RoutineEdit.jsx
+++ b/frontend/src/views/RoutineEdit.jsx
@@ -423,7 +423,7 @@ export default function RoutineEdit() {
This switch decides whether the routine's workouts count at all: a deload routine's
sessions open at its own numbers and are never the baseline the next regular session
progresses from (session-start.js, history.js entryExcluded). */}
- <Row icon="pause" iconTint="var(--orange)" title={t('Deload routine')}
+ <Row icon="chartLineSlash" iconTint="var(--orange)" title={t('Deload routine')}
subtitle={t('Its workouts do not count toward progression. They still show in history and statistics.')}>
<Switch checked={r.excludeFromProgression === true} onChange={v => update(s => {
const routine = s.routines.find(x => x.id === id)
diff --git a/frontend/src/views/Stats.jsx b/frontend/src/views/Stats.jsx
index 701a0b8c6..57ea85e53 100644
--- a/frontend/src/views/Stats.jsx
+++ b/frontend/src/views/Stats.jsx
@@ -210,7 +210,7 @@ function MuscleBalance({ S }) {
{view === 'balance' ? <>
<div className="row between" style={{ marginBottom: 8 }}>
<h2 style={{ margin: 0 }}>{t('Muscle balance')} <span className="dim" style={{ textTransform: 'none', letterSpacing: 0 }}>· {on ? t('by hard sets') : t('by sets worked')}</span></h2>
- {!weekly && rated && <Button size="sm" icon="flame" style={on ? { color: 'var(--yellow)' } : undefined}
+ {!weekly && rated && <Button size="sm" icon="gauge" style={on ? { color: 'var(--yellow)' } : undefined}
onClick={() => { setHard(h => !h); setSel(null) }}>{on ? t('Hard') : t('All')}</Button>}
</div>
<Segmented className="seg-range" value={win} onChange={v => { setWin(v); setSel(null); setWeeklyExpanded(false) }}