cms icon indicating copy to clipboard operation
cms copied to clipboard

feat: add last watched video feature

Open whoisasx opened this issue 1 year ago • 0 comments

Hi @hkirat, @devsargam, @Rajankannaujiya 👋

Resolves #1897 I have resolved the concerned issue. Below is a summary of the changes:


✅ Enhancements Implemented

1. Recently Watched Video Tracking

  • Previously, there was no way to identify the last video a user watched.
  • I have added a banner at the top of each course section that displays the most recently played video for the user.

2. Week Folder State Persistence

  • The app did not remember which week folder the user was exploring.
  • Now, when the user returns after viewing a week's content, the same week automatically remains in focus, improving navigation and overall user experience.

3. Improved Seed File for Better Testing

The seed file has been updated to include more realistic and complete test data.
This ensures:

  • More robust and reliable testing
  • Better coverage of various scenarios
  • Easier validation of new features (recently watched video + week focus)

🎥 Demo

An MP4 file has been attached below to demonstrate and compare the behavior before and after the fix.

https://github.com/user-attachments/assets/89da61ae-d6be-4bf0-856f-fa45eff3892a

https://github.com/user-attachments/assets/4e117591-b2bb-415a-a37c-834de3fb1c09

Checklist before requesting a review

  • [x] I have performed a self-review of my code
  • [x] I assure there is no similar/duplicate pull request regarding same issue

whoisasx avatar Dec 03 '25 23:12 whoisasx