cms icon indicating copy to clipboard operation
cms copied to clipboard

bug: Video Progress Bar is Not Working

Open pankajsingh016 opened this issue 8 months ago • 1 comments

Describe the bug The progress bar dosen't show completed after completion of a recorded video.

Expected behavior The progress bar should show completed and the completion percentage should increase.

Info (please complete the following information):

  • Chrome version 138+

pankajsingh016 avatar Jun 26 '25 12:06 pankajsingh016

Approach: I updated the markAsCompleted flow so that when a video is marked finished, the currentTimestamp is automatically set to the video’s full duration. I also added proper cache invalidation and revalidation for both regular progress updates and completions. Since caching was previously disabled in the course content fetch, I re-enabled it so invalidation actually works as expected. The cache invalidation is targeted — it clears only the relevant course (along with the global courses cache) — and then revalidates the key pages like /history, /courses, and /. With this in place, the UI now refreshes with the correct data, and progress reliably shows 100% once a video is completed.

Jimil1407 avatar Aug 28 '25 05:08 Jimil1407