Enhancement request:
We should create a class that can create and manage the progress bar in each of the apps (rather than managing them independently in each app. There is an open PR for PA that does this just for that app. Let's create a utility class in roar-utils instead.
Enhancement request:
We should create a class that can create and manage the progress bar in each of the apps (rather than managing them independently in each app. There is an open PR for PA that does this just for that app. Let's create a utility class in roar-utils instead.
RoarProgressBarnumTrialsPerBlock, an array of numbers of trials for each block (e.g., for the current PA, we would havenumTrialsPerBlock = [21, 21, 21]for the 19 test trials and 2 practice trials per block)this.currentBlock = 0.updateProgressBarto update the progress bar just like we have in the ROAR apps. In this method, it should also watch to see if we have incremented into a new block and if so, incrementthis.currentBlockand trigger the color change of the dots on the progress bar.completeCurrentBlockto complete the current block, set the progress bar appropriately, and incrementthis.currentBlock.