MCPcopy Create free account

hub / github.com/Cawlumm/lyftr / functions

Functions570 in github.com/Cawlumm/lyftr

MethodDelete
(uid int64)
backend/stores/active_session.go:31
MethodDelete
Delete removes the user; child rows go via ON DELETE CASCADE (foreign_keys=on).
backend/stores/user.go:78
MethodDeleteActiveSession
(c *gin.Context)
backend/controllers/active_session.go:39
FunctionDemoData
(db *sql.DB)
backend/seed/demo_data.go:83
FunctionDemoUser
(db *sql.DB)
backend/seed/users.go:10
FunctionDiscardConfirm
({ open, onKeep, onDiscard }: Props)
web/src/components/DiscardConfirm.tsx:15
FunctionEditProgram
()
web/src/pages/EditProgram.tsx:22
FunctionEditProgramModal
({ isOpen, onClose, onSuccess, programId }: Props)
web/src/components/EditProgramModal.tsx:27
FunctionEditWeightModal
({ isOpen, onClose, onSuccess, log }: Props)
web/src/components/EditWeightModal.tsx:19
FunctionEditWorkout
()
web/src/pages/EditWorkout.tsx:17
FunctionEditWorkoutModal
({ isOpen, onClose, onSuccess, workoutId }: Props)
web/src/components/EditWorkoutModal.tsx:32
FunctionEmptyState
({ icon: Icon, title, subtitle, action, compact = false }: Props)
web/src/components/ui/EmptyState.tsx:11
FunctionExerciseDetail
()
web/src/pages/ExerciseDetail.tsx:35
FunctionExerciseInfoDrawer
({ exercise, onClose }: Props)
web/src/components/ExerciseInfoDrawer.tsx:12
FunctionExerciseNotes
({ exIdx, notes, onSave }: { exIdx: number; notes: string; onSave: (i: number, v: string) => void })
web/src/pages/GymModeWorkout.tsx:35
FunctionExerciseNotes
({ exIdx, notes, onSave }: { exIdx: number; notes: string; onSave: (i: number, v: string) => void })
web/src/pages/ActiveWorkout.tsx:15
FunctionExercisePicker
({ selectedIds, onSelect, onClose }: Props)
web/src/components/ExercisePicker.tsx:15
MethodExerciseSeedStatus
ExerciseSeedStatus returns exercise count and whether seeding is running.
backend/controllers/exercises.go:104
FunctionExercises
Exercises seeds on first run if the table is empty (async to avoid blocking startup).
backend/seed/exercises.go:49
FunctionFood
()
web/src/pages/Food.tsx:69
FunctionFoodLogModal
({ open, onClose, onLogged, defaultMeal = 'breakfast', editEntry, defaultDate, }: Props)
web/src/components/FoodLogModal.tsx:59
FunctionFoodResultRow
({ item, onClick }: { item: types.FoodSearchResult; onClick: () => void })
web/src/components/FoodLogModal.tsx:542
FunctionFoodResultRow
({ item, onClick }: { item: types.FoodSearchResult; onClick: () => void })
web/src/pages/LogFood.tsx:55
FunctionGenerateTokenPair
(userID int64, email string)
backend/utils/jwt.go:19
MethodGet
Get returns one user-owned entry, or sql.ErrNoRows.
backend/stores/weight.go:70
MethodGet
Get returns a user-owned program with its exercises/sets, or sql.ErrNoRows.
backend/stores/program.go:70
MethodGet
Get returns a user-owned workout with its exercises/sets, or sql.ErrNoRows.
backend/stores/workout.go:71
MethodGet
Get returns the user's saved session blob. Returns sql.ErrNoRows if none.
backend/stores/active_session.go:14
MethodGet
Get returns one exercise, or sql.ErrNoRows if not found.
backend/stores/exercise.go:78
MethodGetActiveSession
(c *gin.Context)
backend/controllers/active_session.go:11
MethodGetExercise
(c *gin.Context)
backend/controllers/exercises.go:31
MethodGetMe
(uid int64)
backend/stores/user.go:14
FunctionGetSeedStatus
(db *sql.DB)
backend/seed/exercises.go:42
MethodGetSettings
(c *gin.Context)
backend/controllers/user.go:25
MethodGetWeightLog
(c *gin.Context)
backend/controllers/weight.go:74
FunctionGymModeWorkout
({ wUnit }: GymModeWorkoutProps)
web/src/pages/GymModeWorkout.tsx:65
FunctionHashPassword
(plain string)
backend/utils/password.go:5
FunctionHelpTip
({ content }: { content: string })
web/src/components/Tooltip.tsx:40
FunctionIconButton
({ icon: Icon, label, onClick, variant = 'ghost', size = 'sm', disabled, className = '', type = 'button',
web/src/components/ui/IconButton.tsx:32
FunctionIsForeignKeyViolation
IsForeignKeyViolation reports whether err is a FOREIGN KEY constraint failure, i.e. a write referencing a row that doesn't exist — a client error, not
backend/utils/dberr.go:50
FunctionLayout
()
web/src/components/Layout.tsx:175
MethodList
(uid int64, f ProgramFilter)
backend/stores/program.go:27
MethodList
(uid int64, f WorkoutFilter)
backend/stores/workout.go:28
MethodList
(f ExerciseFilter)
backend/stores/exercise.go:39
MethodListExercises
(c *gin.Context)
backend/controllers/exercises.go:13
FunctionLoad
()
backend/config/config.go:42
FunctionLoading
()
web/src/components/Loading.tsx:1
FunctionLogFood
()
web/src/pages/LogFood.tsx:92
FunctionLogin
()
web/src/pages/Login.tsx:11
MethodLogin
(c *gin.Context)
backend/controllers/auth.go:50
FunctionLogo
({ size = 'md' }: { size?: 'sm' | 'md' | 'lg' })
web/src/components/Logo.tsx:9
FunctionMacroRing
({ value, target, color, label, }: { value: number; target: number; color: string; label: string })
web/src/pages/Food.tsx:37
FunctionMuscleSparkline
({ values, color, isTop }: { values: number[], color: string, isTop: boolean })
web/src/pages/Dashboard.tsx:85
FunctionNew
(db *sql.DB)
backend/stores/stores.go:21
FunctionNotFound
(c *gin.Context, msg string)
backend/utils/response.go:25
FunctionNumberField
({ value, onChange, inputMode = 'decimal', placeholder = '0', disabled = false, min = 0, ...aria }: Props)
web/src/components/ui/NumberField.tsx:20
FunctionOK
(c *gin.Context, data any)
backend/utils/response.go:9
FunctionPageHeader
({ title, subtitle, action }: Props)
web/src/components/ui/PageHeader.tsx:9
FunctionPeriodSelector
({ options, value, onChange }: PeriodSelectorProps<T>)
web/src/components/PeriodSelector.tsx:7
FunctionProgramCard
({ program, onEdit, onDelete, }: { program: types.Program onEdit: (id: number) => void onDelete: (
web/src/pages/Programs.tsx:15
FunctionProgramDetail
()
web/src/pages/ProgramDetail.tsx:14
FunctionProgramPicker
({ onSelect, onClose }: Props)
web/src/components/ProgramPicker.tsx:11
FunctionPrograms
()
web/src/pages/Programs.tsx:229
FunctionQuickWeighInSheet
({ isOpen, lastValue, lastLog, onClose, onSuccess }: Props)
web/src/components/QuickWeighInSheet.tsx:20
MethodRefreshToken
(c *gin.Context)
backend/controllers/auth.go:84
FunctionRegister
()
web/src/pages/Register.tsx:11
MethodResetExercises
ResetExercises wipes the exercises table and triggers a fresh seed in background.
backend/controllers/exercises.go:109
FunctionRestPicker
({ value, onChange }: Props)
web/src/components/RestPicker.tsx:20
FunctionRestTimerBanner
({ docked = false }: { docked?: boolean })
web/src/components/RestTimerBanner.tsx:15
MethodRoundTrip
(r *http.Request)
backend/controllers/food_test.go:59
FunctionSection
({ title, children }: { title: string; children: React.ReactNode })
web/src/pages/Settings.tsx:29
FunctionSectionHeader
({ icon: Icon, title, right, className = '' }: Props)
web/src/components/ui/SectionHeader.tsx:10
FunctionSegmentedControl
({ options, value, onChange, size = 'md', className = '', }: Props<T>)
web/src/components/ui/SegmentedControl.tsx:19
FunctionServerSettings
()
web/src/components/ServerSettings.tsx:17
FunctionSetChip
({ set, isBest, unit }: { set: types.Set; isBest: boolean; unit: string })
web/src/pages/WorkoutDetail.tsx:13
FunctionSettingRow
({ label, description, children }: { label: string; description?: string; children: React.ReactNode })
web/src/pages/Settings.tsx:17
FunctionSettings
()
web/src/pages/Settings.tsx:42
FunctionSetup
(r *gin.Engine, h *controllers.Handler)
backend/routes/routes.go:14
FunctionStartWorkout
()
web/src/pages/StartWorkout.tsx:8
FunctionStartWorkoutModal
({ isOpen, onClose }: Props)
web/src/components/StartWorkoutModal.tsx:16
FunctionStepperTile
({ icon: Icon, label, name, step, onStep, disabled = false, children }: Props)
web/src/components/ui/StepperTile.tsx:19
FunctionSyncExercises
SyncExercises forces a full re-sync (used by admin endpoint).
backend/seed/exercises.go:69
FunctionTestCORSConfig
(t *testing.T)
backend/routes/cors_test.go:19
FunctionTestClassifiers
(t *testing.T)
backend/utils/dberr_test.go:75
FunctionTestCreateProgram_missingName
(t *testing.T)
backend/controllers/programs_test.go:80
FunctionTestCreateProgram_setNumberNormalized
(t *testing.T)
backend/controllers/programs_test.go:189
FunctionTestCreateProgram_success
(t *testing.T)
backend/controllers/programs_test.go:31
FunctionTestCreateSavedFood_missingName
(t *testing.T)
backend/controllers/food_test.go:881
FunctionTestCreateSavedFood_success
─── CreateSavedFood ──────────────────────────────────────────────────────────
backend/controllers/food_test.go:856
FunctionTestCreateWorkout_missingName
(t *testing.T)
backend/controllers/workouts_test.go:69
FunctionTestCreateWorkout_preservesStartedAt
(t *testing.T)
backend/controllers/workouts_test.go:85
FunctionTestCreateWorkout_success
(t *testing.T)
backend/controllers/workouts_test.go:31
FunctionTestCreateWorkout_unknownExerciseReturns400
TestCreateWorkout_unknownExerciseReturns400 covers the review fix: with foreign keys now enforced, a workout referencing a non-existent exercise must
backend/controllers/review_fixes_test.go:24
FunctionTestDBError
(t *testing.T)
backend/utils/dberr_test.go:96
FunctionTestDBErrorClassifiers
TestDBErrorClassifiers checks the shared classifier against real modernc errors.
backend/controllers/sqlite_lock_test.go:84
FunctionTestDeleteAccountCascadesChildren
TestDeleteAccountCascadesChildren guards that DeleteAccount relies on ON DELETE CASCADE — i.e. foreign keys must stay enforced. This is the behavioral
backend/controllers/cascade_test.go:14
FunctionTestDeleteFoodLog_ownershipEnforced
(t *testing.T)
backend/controllers/food_test.go:386
FunctionTestDeleteFoodLog_success
─── DeleteFoodLog ────────────────────────────────────────────────────────────
backend/controllers/food_test.go:367
FunctionTestDeleteProgram_ownershipEnforced
(t *testing.T)
backend/controllers/programs_test.go:114
FunctionTestDeleteSavedFood_ownershipEnforced
(t *testing.T)
backend/controllers/food_test.go:915
← previousnext →301–400 of 570, ranked by callers