Please enable JavaScript.
Coggle requires JavaScript to display documents.
Progress Tracking, challangeEnabledAt, If the number of tracked challenges…
Progress Tracking
Disabling Challenge: If the user manually disables a tracked challenge, they will lose data for the current challenge that has been disabled. 1. The surface will be partially reset, including programId and challengeEnabledAt. The data object will be updated to remove the current disabled challenge, while retaining any previous challenges if they are available.
-
-
Disables Routine: If the user disables tracking manually, they will lose data for the current routine, 1. surface will be rested 2. nested will be wiped
-
-
-
enableTrackingChallenge for challange will set challangeProgramId, challangeEnabledAt, data as [challangeEnabledAt]: {},
-
-
-
-
If the number of tracked challenges when enabeling a new challange to be track is more than 2 meaing we have previouses 2 track challagnes, delete 1 in the ProgramTrackingComponent using the onCallRecursiveDelete method.
-
-
-
-
Finish Challenge
If the user finishes the challenge, the data will be kept, but the rest will be reset, including challangeProgramId, while keeping the trackedChallenges value
-
-
-
-
if weeks number > 15 they will be reduced by 4 using deleteOverThresholdRoutineProgressDataV2 this call happens in useSaveWorkoutSession
-
-