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.
JavaScript apple-watchbodyweightdockerfitnessfitness-trackergymhealthiosmcpnodejspasskeysprogressive-web-applicationspwareactself-hostedself-hostingvitewebauthnweightliftingworkout-tracker
Icons: Settings and sign-in
Duarte Santos8c50c13837a6
diff --git a/frontend/src/components/Passkeys.jsx b/frontend/src/components/Passkeys.jsxindex 7c135f563..787cca2a2 100644--- a/frontend/src/components/Passkeys.jsx+++ b/frontend/src/components/Passkeys.jsx@@ -73,7 +73,7 @@ export function usePasskeys(on) {export function PasskeysRow({ state, changed }) {if (!state) return nullconst n = state.passkeys.length- return <Row icon="lock" iconTint="var(--acc)" title={t('Passkeys')} accessory="chevron"+ return <Row icon="fingerprint" iconTint="var(--acc)" title={t('Passkeys')} accessory="chevron"subtitle={n === 0 ? t('None yet. Add one and sign in without your password.') : tn('1 passkey', '{0} passkeys', n)}onClick={() => ui().openSheet(close => <PasskeysSheet close={close} changed={changed} />)} />}@@ -97,7 +97,7 @@ export function PasskeysSheet({ close, changed }) {{t('Each one signs in to this profile from the device or password manager that keeps it. Tap one to rename or remove it.')}</div>{st.passkeys.length > 0 && <div className="sect-b">- {st.passkeys.map((p, i) => <Row key={p.id} icon="lock" iconTint="var(--grey)" title={label(p, i)} subtitle={meta(p) || null}+ {st.passkeys.map((p, i) => <Row key={p.id} icon="fingerprint" iconTint="var(--grey)" title={label(p, i)} subtitle={meta(p) || null}accessory="chevron" onClick={() => edit(p, i)} />)}</div>}{st.passkeys.length === 1 && st.lastWayIn && <div className="dim small" style={{ marginTop: 8 }}>@@ -237,7 +237,7 @@ export function DeviceLinkSheet({ close }) {{/* Read out or typed character by character: left to right in every language. */}<div className="card" dir="ltr" style={{ textAlign: 'center', fontSize: 24, fontWeight: 700, letterSpacing: '.12em', padding: '14px 0' }}>{link.code}</div><div style={{ height: 12 }} />- <Button icon="link" onClick={copy}>{t('Copy link')}</Button>+ <Button icon="copy" onClick={copy}>{t('Copy link')}</Button></>}<div style={{ height: 8 }} /><Button variant="ghost" onClick={close}>{t('Done')}</Button>diff --git a/frontend/src/components/PasswordAuth.jsx b/frontend/src/components/PasswordAuth.jsxindex 6769fb973..49031d719 100644--- a/frontend/src/components/PasswordAuth.jsx+++ b/frontend/src/components/PasswordAuth.jsx@@ -146,7 +146,7 @@ export function PasswordSignInSheet({ close, onPasskey }) {{reset ? t('Sign in with password') : t('Have a reset code from your admin?')}</Button>{onPasskey && !reset && webauthnOK() && <><div style={{ height: 8 }} />- <Button type="button" icon="person" onClick={() => { close(); onPasskey() }}>{t('Sign in with passkey')}</Button>+ <Button type="button" icon="fingerprint" onClick={() => { close(); onPasskey() }}>{t('Sign in with passkey')}</Button></>}</>}@@ -270,7 +270,7 @@ export function ProveOwner({ passkey, password, onProof, explain = passwordError// A removal's buttons are red whichever proof carries it: each of them removes.const main = danger ? 'danger' : 'primary'return <>- {withPasskey && <Button variant={main} icon="lock" disabled={busy} onClick={() => run(signal => passkeyAssertion({ signal }))}>{t('Confirm with a passkey')}</Button>}+ {withPasskey && <Button variant={main} icon="fingerprint" disabled={busy} onClick={() => run(signal => passkeyAssertion({ signal }))}>{t('Confirm with a passkey')}</Button>}{password && <form onSubmit={withPassword} noValidate>{withPasskey && <div className="dim small" style={{ margin: '14px 0 8px', textAlign: 'center' }}>{t('or with your password')}</div>}{/* Tells a password manager which account the password belongs to. */}diff --git a/frontend/src/components/ServerSync.jsx b/frontend/src/components/ServerSync.jsxindex f41fdfbec..a5368bc35 100644--- a/frontend/src/components/ServerSync.jsx+++ b/frontend/src/components/ServerSync.jsx@@ -221,8 +221,8 @@ export function OwedSheet({ kind, count: count0, media: media0 = 0, exportBackup{refused && !MOBILE && canSignIn() && <><button className="btn primary" disabled={busy} onClick={() => { close(); signInAgain() }}>{pwOn() ? t('Sign in') : t('Sign in with passkey')}</button><div style={{ height: 8 }} /></>}{!refused && <><button className="btn primary" disabled={busy} onClick={retry}>{busy ? t('Syncing…') : t('Try again')}</button><div style={{ height: 8 }} /></>}{media > 0 && exportBackupZip- ? <Button icon="download" disabled={busy} onClick={exportBackupZip}>{t('Export with photos & videos (.zip)')}</Button>- : <Button icon="download" disabled={busy} onClick={exportBackup}>{t('Export backup (JSON)')}</Button>}+ ? <Button icon="share" disabled={busy} onClick={exportBackupZip}>{t('Export with photos & videos (.zip)')}</Button>+ : <Button icon="share" disabled={busy} onClick={exportBackup}>{t('Export backup (JSON)')}</Button>}<div style={{ height: 8 }} /><button className="btn danger" disabled={busy} onClick={anyway}>{LEAVE[kind].anyway()}</button><div style={{ height: 8 }} />@@ -269,8 +269,8 @@ export function ServerSyncSection({ children }) {<Row icon={view.icon} iconTint={TINT[view.tone]} title={view.line} subtitle={sub} className="sync-status" /><Row icon="reset" iconTint="var(--acc)" title={busy ? t('Syncing…') : t('Sync now')} onClick={now} />{sync.status === 'auth' && (MOBILE- ? <Row icon="link" iconTint="var(--indigo)" title={t('Pair again')} subtitle={t('Your changes are kept here, and merged into your account once it is paired again.')} accessory="chevron" onClick={pairAgain} />- : canSignIn() && <Row icon="person" iconTint="var(--blue)" title={pwOn() ? t('Sign in') : t('Sign in with passkey')} subtitle={t('Your changes are kept here, and merged into your account once you are signed in again.')} accessory="chevron" onClick={signInAgain} />)}+ ? <Row icon="qr" iconTint="var(--indigo)" title={t('Pair again')} subtitle={t('Your changes are kept here, and merged into your account once it is paired again.')} accessory="chevron" onClick={pairAgain} />+ : canSignIn() && <Row icon={pwOn() ? 'person' : 'fingerprint'} iconTint="var(--blue)" title={pwOn() ? t('Sign in') : t('Sign in with passkey')} subtitle={t('Your changes are kept here, and merged into your account once you are signed in again.')} accessory="chevron" onClick={signInAgain} />)}{/* another account's, kept when this one signed in over a copy that still owed them */}<KeptChangesRows />{children}diff --git a/frontend/src/views/Login.jsx b/frontend/src/views/Login.jsxindex c7beb999c..acfb29863 100644--- a/frontend/src/views/Login.jsx+++ b/frontend/src/views/Login.jsx@@ -39,7 +39,7 @@ function RegisterSheet({ close }) {} catch (e) { if (e.name !== 'NotAllowedError' && e.name !== 'AbortError') useUI.getState().toast(e.message || t('Registration failed')) }}const choose = pwOn && webauthnOK() && <>- <Segmented options={[{ value: 'passkey', label: t('Passkey'), icon: 'person' }, { value: 'password', label: t('Password'), icon: 'key' }]}+ <Segmented options={[{ value: 'passkey', label: t('Passkey'), icon: 'fingerprint' }, { value: 'password', label: t('Password'), icon: 'key' }]}value={how} onChange={setHow} /><div style={{ height: 12 }} /></>@@ -86,7 +86,7 @@ export default function Login() {<div className="narrow" style={wrap}>{head}<div className="muted" style={{ marginBottom: 30 }}>{t('Live demo. Everything stays in this browser.')}</div>- <Button variant="primary" icon="sparkles" onClick={() => setGuest(true)}>{t('Start the demo')}</Button>+ <Button variant="primary" icon="play" onClick={() => setGuest(true)}>{t('Start the demo')}</Button><div className="card small muted" style={{ textAlign: 'start', marginTop: 16 }}>{t('This demo runs entirely in your browser on example data. Nothing is sent anywhere. Passkey sign-in and sync across your devices come with the openGym server, which you get by self-hosting it.')}</div>@@ -101,10 +101,10 @@ export default function Login() {{head}<div className="muted" style={{ marginBottom: 34 }}>{t('Your workouts. Your weights. Your profile.')}</div>{webauthnOK() ? <>- <Button variant="primary" icon="person" onClick={signIn}>{t('Sign in with passkey')}</Button>+ <Button variant="primary" icon="fingerprint" onClick={signIn}>{t('Sign in with passkey')}</Button><div style={{ height: 10 }} />{pwOn && <><Button icon="key" onClick={() => openPasswordSignIn()}>{t('Sign in with password')}</Button><div style={{ height: 10 }} /></>}- <Button icon="sparkles" onClick={register}>{t('Create new profile')}</Button>+ <Button icon="plusCircle" onClick={register}>{t('Create new profile')}</Button>{/* Already signed in on another device: a code from there gives this one a passkey ofits own (#95), instead of a new, empty profile. */}<div style={{ height: 10 }} />@@ -116,7 +116,7 @@ export default function Login() {<div className="card small muted" style={{ textAlign: 'start', marginBottom: 14 }}>{t("This browser doesn't support passkeys. Sign in with your name and password instead.")}</div><Button variant="primary" icon="key" onClick={() => openPasswordSignIn()}>{t('Sign in with password')}</Button><div style={{ height: 10 }} />- <Button icon="sparkles" onClick={register}>{t('Create new profile')}</Button>+ <Button icon="plusCircle" onClick={register}>{t('Create new profile')}</Button>{canGuest && <div style={{ height: 10 }} />}</> : <div className="card small muted" style={{ textAlign: 'start' }}>{canGuest? t("This browser doesn't do passkeys, but you can still use openGym locally on this device.")diff --git a/frontend/src/views/MobileOnboarding.jsx b/frontend/src/views/MobileOnboarding.jsxindex 6b18e9ae5..af03ac4b1 100644--- a/frontend/src/views/MobileOnboarding.jsx+++ b/frontend/src/views/MobileOnboarding.jsx@@ -62,7 +62,7 @@ export default function MobileOnboarding() {<div className="muted" style={{ marginBottom: 34 }}>{t('How do you want to use openGym?')}</div><Button variant="primary" icon="lock" onClick={() => chooseLocalMode()}>{t('Use on this device')}</Button><div style={{ height: 10 }} />- <Button icon="rocket" onClick={() => useUI.getState().openSheet(close => <ConnectSheet close={close} />)}>{t('Connect to my server')}</Button>+ <Button icon="cloud" onClick={() => useUI.getState().openSheet(close => <ConnectSheet close={close} />)}>{t('Connect to my server')}</Button><div className="dim small" style={{ marginTop: 26, lineHeight: 1.5 }}>{t('Local keeps everything on this phone. Connecting syncs to your own openGym server instead. You can switch later in Settings.')}</div>diff --git a/frontend/src/views/Settings.jsx b/frontend/src/views/Settings.jsxindex b73c29f56..abf17b40a 100644--- a/frontend/src/views/Settings.jsx+++ b/frontend/src/views/Settings.jsx@@ -107,7 +107,7 @@ export default function Settings({ page = null, find = null }) {title: t('Convert to {0}?', v),subtitle: t('Every stored weight (logged sets, working weights, routine targets, body weight, bar weights) is in {0}. Convert the numbers, or keep them and only change the label?', S.unit),items: [- { icon: 'shuffle', label: t('Convert the numbers'), onClick: () => setUnit(v) },+ { icon: 'calculator', label: t('Convert the numbers'), onClick: () => setUnit(v) },{ icon: 'pencil', label: t('Keep the numbers, change the label'), onClick: () => setUnit(v, { convert: false }) },],})@@ -292,7 +292,7 @@ export default function Settings({ page = null, find = null }) {: 'The server has {0} workouts that are not in this backup, logged since it was made or on another device. Replacing deletes them.', n),items: [{ icon: 'trash', label: t('Replace anyway'), danger: true, onClick: () => apply(null) },- { icon: 'shuffle', label: t('Merge them in'), onClick: () => apply(conflict) },+ { icon: 'merge', label: t('Merge them in'), onClick: () => apply(conflict) },{ icon: 'xmark', label: t('Cancel'), onClick: () => {} },],})@@ -525,7 +525,7 @@ export default function Settings({ page = null, find = null }) {is not an improvement for everyone: louder is a cost with headphones or in a quietroom. The chime by default; Classic brings the original back unchanged(lib/sound.js's CLASSIC). Stored as S.classicChime, as before. */}- {S.sound && <SelectRow icon="bell" iconTint="var(--pink)" title={t('Sound')}+ {S.sound && <SelectRow icon="speaker" iconTint="var(--pink)" title={t('Sound')}value={S.classicChime ? 'classic' : 'chime'} onChange={v => update(s => { s.classicChime = v === 'classic' })}options={[{ value: 'chime', label: t('Chime (louder)') },@@ -616,7 +616,7 @@ export default function Settings({ page = null, find = null }) {</>}</Section><Section footer={t('Switching the unit offers to convert every stored weight.')}>- <Row icon="scale" iconTint="var(--teal)" title={t('Weight unit')}>+ <Row icon="ruler" iconTint="var(--teal)" title={t('Weight unit')}><Segmented className="seg-inline"options={[{ value: 'kg', label: 'kg' }, { value: 'lb', label: 'lb' }]}value={S.unit} onChange={v => switchUnit(v)} />@@ -632,7 +632,7 @@ export default function Settings({ page = null, find = null }) {{/* Cardio speed (Discord "miles per hour"). Unlike the weight unit this converts nothing:speeds stay stored in km/h and only what is shown and typed follows it (lib/speed.js).Until chosen it follows the weight unit, so a profile in pounds already reads mph. */}- <Row icon="figureRun" iconTint="var(--teal)" title={t('Speed unit')}>+ <Row icon="ruler" iconTint="var(--teal)" title={t('Speed unit')}><Segmented className="seg-inline"options={[{ value: 'kmh', label: 'km/h' }, { value: 'mph', label: 'mph' }]}value={speedUnitOf(S)} onChange={v => update(s => { s.speedUnit = v })} />@@ -766,7 +766,7 @@ export default function Settings({ page = null, find = null }) {Admin and Disconnect sit in the same block; a browser's account rows follow in their own. */}{user && !DEMO && <ServerSyncSection>{MOBILE && <>- {user.admin && <Row icon="wrench" iconTint="var(--indigo)" title={t('Admin dashboard')} accessory="chevron" onClick={() => nav('/admin')} />}+ {user.admin && <Row icon="crown" iconTint="var(--indigo)" title={t('Admin dashboard')} accessory="chevron" onClick={() => nav('/admin')} />}<AccountIdRow id={user.id} /><Row icon="signOut" iconTint="var(--red)" title={t('Disconnect')} danger onClick={disconnect} /></>}@@ -776,33 +776,33 @@ export default function Settings({ page = null, find = null }) {{!(MOBILE && user) && <Section title={MOBILE ? t('Your data') : DEMO ? t('Demo') : t('Account')}>{MOBILE ? <><Row icon="lock" iconTint="var(--acc)" title={t('All data stays on this phone')} subtitle={t('No account, no cloud. Back it up anytime in Data & backup.')} />- <Row icon="link" iconTint="var(--indigo)" title={t('Connect to my server')} subtitle={t('Sync this device to your own self-hosted openGym instead.')} accessory="chevron"+ <Row icon="cloud" iconTint="var(--indigo)" title={t('Connect to my server')} subtitle={t('Sync this device to your own self-hosted openGym instead.')} accessory="chevron"onClick={connectServer} /><KeptChangesRows /></> : DEMO ? <>- <Row icon="sparkles" iconTint="var(--acc)" title={t('You’re in the demo')} subtitle={t('Example data, stored only in this browser. Go wild and change anything you like.')} />+ <Row icon="info" iconTint="var(--acc)" title={t('You’re in the demo')} subtitle={t('Example data, stored only in this browser. Go wild and change anything you like.')} /><Row icon="reset" iconTint="var(--blue)" title={t('Reset demo data')} accessory="chevron"onClick={() => confirmSheet({ title: t('Reset demo data?'), message: t('Puts the example plan, workouts and weigh-ins back the way they started.'), confirmText: t('Reset'), onConfirm: () => { resetDemo(); nav('/home'); toast(t('Demo data reset')) } })} /><Row icon="rocket" iconTint="var(--indigo)" title={t('Self-host openGym')} subtitle={t('Passkey sign-in, sync across your devices, your own data.')} accessory="chevron"onClick={() => window.open(REPO, '_blank', 'noopener')} /></> : user ? <>- {user.admin && <Row icon="wrench" iconTint="var(--indigo)" title={t('Admin dashboard')} accessory="chevron" onClick={() => nav('/admin')} />}+ {user.admin && <Row icon="crown" iconTint="var(--indigo)" title={t('Admin dashboard')} accessory="chevron" onClick={() => nav('/admin')} />}<PasskeysRow state={passkeys.st} changed={credsChanged} /><DeviceLinkRow state={passkeys.st} />- <Row icon="link" iconTint="var(--blue)" title={t('Pair the mobile app')} subtitle={t('Connect the openGym app on your phone to this account.')} accessory="chevron"+ <Row icon="qr" iconTint="var(--blue)" title={t('Pair the mobile app')} subtitle={t('Connect the openGym app on your phone to this account.')} accessory="chevron"onClick={() => useUI.getState().openSheet(close => <PairSheet close={close} />)} />{pwOn && <PasswordRow version={credsV} />}<Row icon="signOut" iconTint="var(--red)" title={t('Sign out')} danger onClick={signOutHere} /><Row icon="shield" iconTint="var(--red)" title={t('Sign out everywhere')} subtitle={t('Ends this profile’s sessions on all your devices.')} danger onClick={signOutEverywhere} /><AccountIdRow id={user.id} /></> : webauthnOK() ? <>- <Row icon="sparkles" iconTint="var(--acc)" title={t('Create passkey profile')} subtitle={t('Keeps your data safe and separate per person.')} accessory="chevron" onClick={registerHere} />- <Row icon="person" iconTint="var(--blue)" title={t('Sign in with passkey')} accessory="chevron" onClick={passkeySignIn} />+ <Row icon="plusCircle" iconTint="var(--acc)" title={t('Create passkey profile')} subtitle={t('Keeps your data safe and separate per person.')} accessory="chevron" onClick={registerHere} />+ <Row icon="fingerprint" iconTint="var(--blue)" title={t('Sign in with passkey')} accessory="chevron" onClick={passkeySignIn} />{pwOn && <Row icon="key" iconTint="var(--orange)" title={t('Sign in with password')} accessory="chevron" onClick={() => openPasswordSignIn()} />}<KeptChangesRows /></> : pwOn ? <>{/* No passkeys in this browser (plain http on a LAN address, say): a password is the way in. */}- <Row icon="sparkles" iconTint="var(--acc)" title={t('Create new profile')} subtitle={t('Keeps your data safe and separate per person.')} accessory="chevron" onClick={openPasswordRegister} />+ <Row icon="plusCircle" iconTint="var(--acc)" title={t('Create new profile')} subtitle={t('Keeps your data safe and separate per person.')} accessory="chevron" onClick={openPasswordRegister} /><Row icon="key" iconTint="var(--orange)" title={t('Sign in with password')} accessory="chevron" onClick={() => openPasswordSignIn()} /><KeptChangesRows /></> : <>@@ -984,11 +984,11 @@ function MobileReminderCard({ S, update, toast }) {function NudgeRows({ S, setReminder }) {const r = S.reminder || {}return <>- <Row icon="flame" iconTint="var(--red)" title={t('Nudge me when I skip a planned workout')}>+ <Row icon="bell" iconTint="var(--red)" title={t('Nudge me when I skip a planned workout')}><Switch checked={!!r.nudge} onChange={() => setReminder({ nudge: !r.nudge })} /></Row>{r.nudge && (- <SelectRow icon="sparkles" iconTint="var(--blue)" title={t('Nudge tone')}+ <SelectRow icon="chat" iconTint="var(--blue)" title={t('Nudge tone')}value={toneOf(r)} onChange={v => setReminder({ tone: v })}options={NUDGE_TONES.map(k => ({ value: k, label: toneLabel(k), subtitle: t(NUDGE_COPY[k].title) }))} />)}@@ -1086,14 +1086,14 @@ function EquipmentCard({ S, update }) {: t('Standard set. Tap to count the pairs you own.')return <Section title={t('Equipment')} footer={t('Filters the exercise library and picker, and flags routine exercises that need something you don’t have in the active profile.')}><Row icon="plate" iconTint="var(--orange)" title={t('Plates')} subtitle={plateSummary} accessory="chevron" onClick={() => plateInventorySheet()} />- {profiles.length > 0 && <Row icon="dumbbell" iconTint="var(--acc)" title={t('Filter by equipment')}>+ {profiles.length > 0 && <Row icon="kettlebell" iconTint="var(--acc)" title={t('Filter by equipment')}><Switch checked={!!S.equipFilterOn} onChange={v => update(s => { s.equipFilterOn = v })} /></Row>}- {profiles.length > 0 && <SelectRow icon="list" iconTint="var(--blue)" title={t('Active profile')}+ {profiles.length > 0 && <SelectRow icon="house" iconTint="var(--blue)" title={t('Active profile')}value={S.activeEquipId || ''} onChange={v => update(s => { s.activeEquipId = v })}options={profiles.map(p => ({ value: p.id, label: p.name }))} />}{profiles.map(p => (- <Row key={p.id} icon="dumbbell" iconTint="var(--teal)" title={p.name}+ <Row key={p.id} icon="house" iconTint="var(--teal)" title={p.name}subtitle={t('{0} equipment types', p.equipment.length)} accessory="chevron"onClick={() => equipmentProfileSheet(p)}><button className="iconbtn" aria-label={t('Delete')} onClick={ev => { ev.stopPropagation(); remove(p) }}><Icon name="trash" /></button>@@ -1155,7 +1155,7 @@ function AccountIdRow({ id }) {const toast = useUI(s => s.toast)if (!id) return nullconst copy = async () => { if (await copyText(id)) toast(t('Account ID copied')) }- return <Row icon="person" iconTint="var(--grey)" title={t('Account ID')} subtitle={<span className="acct-id">{id}</span>} onClick={copy} />+ return <Row icon="personCircle" iconTint="var(--grey)" title={t('Account ID')} subtitle={<span className="acct-id">{id}</span>} onClick={copy} />}// Lets the mobile app's "connect to my server" mode (lib/remote.js) authenticate without adiff --git a/frontend/src/views/settings-pages.js b/frontend/src/views/settings-pages.jsindex 5230e1495..1996209e8 100644--- a/frontend/src/views/settings-pages.js+++ b/frontend/src/views/settings-pages.js@@ -13,7 +13,7 @@ export const PAGES = {reminders: { title: 'Reminders', icon: 'bell', tint: 'var(--red)' },plan: { title: 'Plan & schedule', icon: 'calendar', tint: 'var(--orange)' },units: { title: 'Units & language', icon: 'ruler', tint: 'var(--teal)' },- equipment: { title: 'Equipment', icon: 'plate', tint: 'var(--indigo)' },+ equipment: { title: 'Equipment', icon: 'kettlebell', tint: 'var(--indigo)' },look: { title: 'Look & Home', icon: 'palette', tint: 'var(--purple)' },coach: { title: 'AI Coach', icon: 'sparkles', tint: 'var(--green)' },data: { title: 'Data & backup', icon: 'folder', tint: 'var(--blue)' },@@ -69,7 +69,7 @@ export const SEARCH = [// Reminders{ page: 'reminders', title: 'Push notifications', icon: 'bell', tint: 'var(--red)', kw: 'push notification alerts', when: c => !c.mobile && c.user },{ page: 'reminders', title: 'Workout day reminder', icon: 'calendar', tint: 'var(--orange)', kw: 'reminder notification remind' },- { page: 'reminders', title: 'Nudge me when I skip a planned workout', icon: 'flame', tint: 'var(--red)', kw: 'nudge skip missed motivation' },+ { page: 'reminders', title: 'Nudge me when I skip a planned workout', icon: 'bell', tint: 'var(--red)', kw: 'nudge skip missed motivation' },// Plan & schedule{ page: 'plan', title: 'How you train', icon: 'repeat', tint: 'var(--orange)', kw: 'scheduling schedule rotation fixed week split' },{ page: 'plan', title: 'Week starts on', icon: 'calendar', tint: 'var(--orange)', kw: 'monday sunday first day week' },@@ -78,12 +78,12 @@ export const SEARCH = [{ page: 'units', title: 'Language', icon: 'globe', tint: 'var(--blue)', kw: 'language translation idioma sprache langue lingua' },{ page: 'units', title: 'English exercise names', icon: 'globe', tint: 'var(--purple)', kw: 'exercise names english translation', when: c => c.nameLang },{ page: 'units', title: 'English names only', icon: 'globe', tint: 'var(--purple)', kw: 'exercise names english translation', when: c => c.nameLang },- { page: 'units', title: 'Weight unit', icon: 'scale', tint: 'var(--teal)', kw: 'kg lb lbs pounds kilos kilograms unit' },+ { page: 'units', title: 'Weight unit', icon: 'ruler', tint: 'var(--teal)', kw: 'kg lb lbs pounds kilos kilograms unit' },{ page: 'units', title: 'Weight decimals', icon: 'ruler', tint: 'var(--teal)', kw: 'decimals precision microplates rounding' },- { page: 'units', title: 'Speed unit', icon: 'figureRun', tint: 'var(--teal)', kw: 'speed mph kmh km/h miles cardio' },+ { page: 'units', title: 'Speed unit', icon: 'ruler', tint: 'var(--teal)', kw: 'speed mph kmh km/h miles cardio' },// Equipment{ page: 'equipment', title: 'Plates', icon: 'plate', tint: 'var(--orange)', kw: 'plates bar plate math barbell' },- { page: 'equipment', title: 'Filter by equipment', icon: 'dumbbell', tint: 'var(--green)', kw: 'equipment filter home gym', when: c => c.profiles },+ { page: 'equipment', title: 'Filter by equipment', icon: 'kettlebell', tint: 'var(--green)', kw: 'equipment filter home gym', when: c => c.profiles },{ page: 'equipment', title: 'Active profile', icon: 'house', tint: 'var(--blue)', kw: 'equipment profile home gym', when: c => c.profiles },{ page: 'equipment', title: 'Add equipment profile', icon: 'plusCircle', tint: 'var(--green)', kw: 'equipment profile home gym hotel' },// Look & Home@@ -107,19 +107,19 @@ export const SEARCH = [{ page: 'about', title: 'Get the Android app', icon: 'download', tint: 'var(--green)', kw: 'apk android download app', when: c => !c.mobile },{ page: 'about', title: 'Version', icon: 'info', tint: 'var(--grey)', kw: 'version about licence license source code open source' },// Account- { page: 'account', title: 'Passkeys', icon: 'lock', tint: 'var(--acc)', kw: 'passkey security login', when: signedInWeb },+ { page: 'account', title: 'Passkeys', icon: 'fingerprint', tint: 'var(--acc)', kw: 'passkey security login', when: signedInWeb },{ page: 'account', title: 'Add another device', icon: 'qr', tint: 'var(--blue)', kw: 'device link code phone computer', when: signedInWeb },- { page: 'account', title: 'Pair the mobile app', icon: 'link', tint: 'var(--blue)', kw: 'pair phone app android iphone', when: signedInWeb },+ { page: 'account', title: 'Pair the mobile app', icon: 'qr', tint: 'var(--blue)', kw: 'pair phone app android iphone', when: signedInWeb },{ page: 'account', title: 'Password', icon: 'key', tint: 'var(--orange)', kw: 'password login', when: c => signedInWeb(c) && c.pwOn },{ page: 'account', title: 'Sign out', icon: 'signOut', tint: 'var(--red)', kw: 'log out logout sign out', when: signedInWeb },{ page: 'account', title: 'Sign out everywhere', icon: 'shield', tint: 'var(--red)', kw: 'log out all devices sessions', when: signedInWeb },- { page: 'account', title: 'Account ID', icon: 'person', tint: 'var(--grey)', kw: 'id uid admin account', when: c => !!c.user && !c.demo },- { page: 'account', title: 'Admin dashboard', icon: 'wrench', tint: 'var(--indigo)', kw: 'admin users dashboard', when: c => !!c.user?.admin && !c.demo },+ { page: 'account', title: 'Account ID', icon: 'personCircle', tint: 'var(--grey)', kw: 'id uid admin account', when: c => !!c.user && !c.demo },+ { page: 'account', title: 'Admin dashboard', icon: 'crown', tint: 'var(--indigo)', kw: 'admin users dashboard', when: c => !!c.user?.admin && !c.demo },{ page: 'account', title: 'Disconnect', icon: 'signOut', tint: 'var(--red)', kw: 'disconnect server local', when: c => c.mobile && !!c.user },- { page: 'account', title: 'Connect to my server', icon: 'link', tint: 'var(--indigo)', kw: 'server sync self-hosted connect', when: c => c.mobile && !c.user },- { page: 'account', title: 'Sign in with passkey', icon: 'person', tint: 'var(--blue)', kw: 'login sign in log in passkey', when: c => !c.mobile && !c.demo && !c.user && c.webauthn },+ { page: 'account', title: 'Connect to my server', icon: 'cloud', tint: 'var(--indigo)', kw: 'server sync self-hosted connect', when: c => c.mobile && !c.user },+ { page: 'account', title: 'Sign in with passkey', icon: 'fingerprint', tint: 'var(--blue)', kw: 'login sign in log in passkey', when: c => !c.mobile && !c.demo && !c.user && c.webauthn },{ page: 'account', title: 'Sign in with password', icon: 'key', tint: 'var(--orange)', kw: 'login sign in log in password', when: c => !c.mobile && !c.demo && !c.user && c.pwOn },- { page: 'account', title: 'Create passkey profile', icon: 'sparkles', tint: 'var(--acc)', kw: 'register account sign up create profile', when: c => !c.mobile && !c.demo && !c.user && c.webauthn },+ { page: 'account', title: 'Create passkey profile', icon: 'plusCircle', tint: 'var(--acc)', kw: 'register account sign up create profile', when: c => !c.mobile && !c.demo && !c.user && c.webauthn },{ page: 'account', title: 'Reset demo data', icon: 'reset', tint: 'var(--blue)', kw: 'demo reset example', when: c => c.demo },]