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.

curated2: !29

Duarte Santos67871fe66d18
diff --cc frontend/src/store/useUI.js
index 1c842ffe8,f9e5563b6..530ba553e
--- a/frontend/src/store/useUI.js
+++ b/frontend/src/store/useUI.js
@@@ -56,9 -56,14 +56,15 @@@ let workDone = nul
export const useUI = create((set, get) => ({
sheets: [], // { id, render:(close)=>JSX, kind:'sheet'|'center', locked }
toastMsg: '',
- timer: null, // rest countdown between sets — { left, total, endsAt }
+ timer: null, // rest countdown between sets — { left, total, endsAt, forIdx }
+ // forIdx: index of the active entry whose set started the rest (undefined when unknown)
work: null, // work countdown DURING a timed set (issue #16) — { left, total, endsAt, label }
+ timerFlashId: 0, // changing the id remounts the four-pulse visual alert
+
+ flashTimer() {
+ if (!useStore.getState().S.timerFlash) return
+ set(s => ({ timerFlashId: s.timerFlashId + 1 }))
+ },
openSheet(render, { kind = 'sheet', locked = false } = {}) {
const id = uid()