/simplify pass: code-quality + efficiency batch #15
Loading…
Reference in a new issue
No description provided.
Delete branch "develop"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary
Batch from a /simplify pass across the Expo / React Native app.
constants/routes.tsreplaces 12+ raw expo-router string literalsControlledInput/ControlledPasswordInputprimitives collapse ~250 lines of<Controller>+<FormControl>duplication across 5 formsRespirationExerciseModalconverted from hand-rolledFormErrorstoreact-hook-form; newDurationStepperextracted from three repeated minus/value/plus blockshooks/api.tsxremoves the SecureStore round-trip on every authenticated request. Module-level (notuseAuth) to avoid a circularuseAuth↔useApicycle — AuthProvider itself callsapiFetchfor/user/loginInformationPageListandRelaxationActivityListmigrated toFlatList; cardsReact.memo'd on(id, isFavorite)Promise.alltypes/api.tsswitched to a discriminatedApiSuccess<T> | ApiErrorunion;_apiFetchImpldrops theas unknown ascastTest plan
pnpm exec tsc --noEmit— cleanFlatListvirtualization🤖 Generated with Claude Code