You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* feat: add multi-user profile support
Add profile-based multi-user support so multiple people can track
their workouts independently on the same machine.
- Add profile management module (src/data/profiles.ts) with CRUD operations
- Update Storage class to be profile-aware with per-user data isolation
- Add global --profile flag for explicit profile selection
- Add profile commands: list, create, delete
- Exercises are shared across profiles, templates/workouts/config are per-user
- Auto-migrate existing data to 'default' profile on first use
- Single profile works automatically (backwards compatible)
- Multiple profiles require explicit --profile flag
* refactor: simplify profile implementation
- Replace imperative loop with declarative some() in hasLegacyData()
- Remove redundant fs.existsSync checks in ensureDir() (mkdirSync recursive is idempotent)
- Extract requireProfileDir() helper to consolidate duplicate checks
- Remove redundant null check in updateExercise()
- Remove redundant profileExists check in delete command
0 commit comments