기능(Feature) #3135
open[MO/ PC] Handling Internet Connection Loss (Offline Mode) & Automatic Reload
0%
Description
1. Description
Currently, when a user is performing an action (e.g., clicking Download/Get coupon) and experiences a network outage or server deployment issue, the application enters an "Endless Loading" state. A mechanism is needed to detect the connection status, display appropriate notifications, and automatically restore the experience when the network is restored.
2. Steps to Reproduce
Access the web application.
Click the Get Coupon button.
Disconnect from Wi-Fi/LAN (or simulate Offline in DevTools).
Click the Download button on the popup.
Observe: The app is currently loading indefinitely.
3. Expected Results
When the connection is lost: * Stop the loading state.
Display a message (Toast or Dialog): "Updating service. Please try again later." with a Confirm button.
If the user continues to interact without a network connection, display the badge or text: "No internet connection".
When the connection is restored:
The system automatically detects and performs a Reload (or calls the most recent API) to update the latest data.