-
Type:
Bug
-
Resolution: Done
-
Priority:
High
-
Affects Version/s: None
-
None
-
STOP TB Sprint 5
When the app goes into offline mode (camp disconnected), the CTA button changes to “Track” (used for manual entry in offline mode), which is expected behavior.
However, when the camp gets connected again (online mode), the button still remains “Track” instead of updating back to the appropriate state (e.g., “Pending” / “Refer for X-ray” / status-based button).
The button state only gets corrected after logging out and logging back in.
Steps to Reproduce:
- Open Digital Chest X-ray and True Nat module
- Ensure camp is connected (online mode)
- Disconnect the camp (go offline)
- Observe button changes to Track (expected)
- Reconnect the camp (online mode)
- Observe the button state
Actual Behavior:
- Button remains “Track” even after reconnection
- UI does not refresh automatically
- Correct state appears only after logout/login
Expected Behavior:
- Button should automatically update based on connectivity status
- On reconnection, it should revert to the correct state (e.g., Pending / Refer / status-based CTA)
- No need for logout/login to refresh UI
