BYAMN-Learning icon indicating copy to clipboard operation
BYAMN-Learning copied to clipboard

Add Offline Progress Sync (with local caching + auto-sync)

Open suman20041 opened this issue 1 year ago • 2 comments

Is your feature request related to a problem or challenge?

Description

While using the project, I noticed that progress tracking currently depends on an active internet connection. This can create a rough experience for users who might go offline temporarily (for example, unstable Wi-Fi, mobile usage, etc.).

💡 Proposed Feature

Implement offline progress caching + automatic sync when the user comes back online.

How it would work

1.When the user updates progress but is offline:

  • Save the progress locally (e.g., IndexedDB or localStorage).
  • Queue these updates in a structured format.

2.When the app detects restored connectivity:

  • Read the cached progress.
  • Sync all pending updates to the server.
  • Clear the local queue only after a successful sync.

3.Provide basic fail-safes like:

  • Retry logic
  • Timestamped entries
  • Avoiding duplicate syncs

🎯 Why This Feature Matters

  • Enhances user experience, especially for inconsistent networks
  • Makes the app feel more “app-like” and reliable
  • Lays the groundwork for future offline-first features
  • Beginner-friendly implementation while still involving interesting logic (queues, events, caching)

Describe the solution you'd like

No response

Describe alternatives you've considered

No response

Additional context

No response

suman20041 avatar Nov 20 '25 18:11 suman20041

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. 😊

github-actions[bot] avatar Nov 20 '25 18:11 github-actions[bot]

@DYHARDx could you please assign this issue to me?

suman20041 avatar Nov 20 '25 18:11 suman20041