Today, I worked on implementing a progress tracking feature for the Certamen App. This feature visually displays a user's study progress, showing the number of completed, in-progress, and unstarted lessons for each category.
StudyBox
component to represent user progress.completed
, in-progress
, unstarted
).The biggest challenge was calculating the progress dynamically while ensuring that the UI remained performant. To solve this:
/lib
folder to compute progress percentages.useEffect
to trigger re-renders only when lesson data changes.useEffect
, useState
) for dynamic updates.The feature works smoothly! Users now have a clear visual indicator of their study progress, which is both motivating and informative.
Next, I plan to add a hover tooltip to each progress bar segment to display detailed stats (e.g., the number of lessons completed). Stay tuned!