bug: Video Progress Bar is Not Working
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+
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.