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
// The Android app's first-launch card ("How do you want to use openGym?") showed the tab bar under
// it, and a tap on a tab changed the route behind the card and stacked history entries for back to
// walk through. Shell is not rendered in a test, so this reads the condition from the source.
import { describe, expect, it } from 'vitest'
import { readFileSync } from 'node:fs'
const app = readFileSync(new URL('./App.jsx', import.meta.url), 'utf8')
describe('the tab bar', () => {
it('stays away from the first-launch onboarding', () => {
const cond = app.match(/const noTabs = ([^\n]+)/)?.[1] || ''
expect(cond).toContain('needsMobileOnboarding')
expect(app).toMatch(/\{!noTabs && <TabBar /)
})
})