feat : Implement Offline alert page / Offline detection for better user experience
Opened this issue · 1 comments
Is your feature request related to a problem? Please describe.
Yes, the problem arises when users lose internet connectivity while browsing the GitFinder website. Currently, there is no indication that they are offline, which can cause confusion as the content may not load or update. This results in a poor user experience as they might assume the website is broken or slow, when in reality it's a connectivity issue.
Describe the solution you'd like
I would like to implement a feature that detects when a user goes offline using a custom React hook (window.navigator.onLine
). This feature would display a dedicated "You are offline" page, notifying the user about their network status. The custom hook will listen for the online
and offline
events and update the app accordingly. The user will be redirected to the offline page whenever they lose connectivity, providing a clear message and a prompt to refresh the page once they regain internet access.
Screenshots
Since this feature hasn’t been implemented yet, here’s a mock-up of how the offline page could look:
- A centered message that says, "You are currently offline. Please check your connection."
- A retry or refresh button to reload the page when the user reconnects.
Similar to below:
Screenshots/Video of Feature
Once the feature is implemented, we can share a video showcasing the transition between online and offline states, highlighting the seamless user experience when the page detects connectivity issues.
Check List
- I am contributing under GSSoC-ext
- I am contributing under Hacktoberfest
- I follow contribution guidelines
👋 Thank you for raising an issue! We appreciate your effort in helping us improve. Our GitFinder team will review it shortly. Stay tuned!