Popular Courses section lacks empty-state or error handling (stuck on “Loading”)
Describe the bug
The “Popular Courses” section on the homepage displays a static “Loading popular courses...” message indefinitely.
If the course data fails to load or is unavailable:
No courses are displayed No error message or fallback UI is shown The loading state never resolves This makes the homepage feel broken or incomplete from a user perspective.
To Reproduce
Open the homepage Scroll to the Popular Courses section Observe that it remains stuck on “Loading popular courses...” No success, empty-state, or error UI is shown
Expected behavior
Display a list of courses when data is available OR Show a friendly empty-state message (e.g., “No popular courses available right now”) OR Display an error message if data fetching fails The loading state should not persist indefinitely.
Actual behavior
Static loading text remains permanently No visual feedback for success or failure
Suggested solution
Implement proper UI state handling:
loading
success
empty
error
Show a fallback UI when courses cannot be loaded Optionally add a Retry button
Impact
Improves homepage UX and clarity Prevents confusion for new users Makes the platform feel complete and reliable
Additional context
This issue is visible on first page load and directly affects the homepage user experience.
Thank you for raising this issue!
We'll review it as soon as possible. We truly appreciate your contributions! ✨
Meanwhile make sure you've visited the README.md, CONTRIBUTING.md, and CODE_OF_CONDUCT.md before creating a PR for this. Also, please do NOT create a PR until this issue has been assigned to you. 😊
@DYHARDx Please assign me this issue, I would like to work on this.
🤖 Auto-unassignment Notice
This issue has been automatically unassigned from @Rahma5983 because it was assigned more than 7 days ago (on Wed Jan 14 2026) and no pull request has been opened to address it.
What happens next?
- This issue is now available for anyone to pick up
- If you were working on this and need more time, please comment on this issue and ask to be reassigned
- If you have a draft PR or work in progress, please open a draft PR to maintain your assignment
For future reference:
- Please open a draft PR within 7 days of being assigned to an issue
- This helps keep the project moving and ensures issues don't get stuck
Thank you for your understanding! 🙏