You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Offline message not showing in Country and State selection screen #24046
Can the user still use Expensify without this being fixed? Have you informed them of the workaround?
Platforms:
Which of our officially supported platforms is this issue occurring on?
Android / native
Android / Chrome
iOS / native
iOS / Safari
MacOS / Chrome / Safari
MacOS / Desktop
Version Number: 1.3.49-0 Reproducible in staging?: y Reproducible in production?: y If this was caught during regression testing, add the test name, ID and link from TestRail: Email or phone of affected tester (no customers): Logs:https://stackoverflow.com/c/expensify/questions/4856 Notes/Photos/Videos: Any additional supporting documentation
to fix this we need to remove modal margin by setting shouldAddBottomSafeAreaPadding = false for MODAL_TYPE.RIGHT_DOCKED.
this fix will affect on other RIGHT_DOCKED modals AvatarCropModal YearPickerModal StateSelectorModal, but we need that because we also need to show OfflineIndicator for them
this issue may also need to fixed in this places AvatarCropModal YearPickerModal StateSelectorModal
It seems like there's more to this issue than just the offline indicator not showing up on those pages when you switch to airplane mode. In the second video, you can't even load the personal details screen while offline, which I think you should be able to do.
@jasperhuangg do you think there's a chance this is also related to the recent changes around personal details?
This issue is covered in this PR #24164 @DinalJivani I think you're still eligible for the bounty of this issue reporter, because your report in Slack is before @hungvu193's proposal #23165 (comment) that cover this issue.
Activity
dukenv0307 commentedon Aug 2, 2023
Proposal
Please re-state the problem that we are trying to solve in this issue.
Offline message not showing in Country and State selection screen
What is the root cause of that problem?
The OfflineIndicator is missing from StateSelectorModal and CountrySelectorModal
What changes do you think we should make in order to solve the problem?
We can add the CountrySelectorModal in those components to improve consistency
What alternative solutions did you explore? (Optional)
We can add ScreenWrapper which already implement OfflineIndicator to those Modal components
ahmedGaber93 commentedon Aug 2, 2023
Proposal
Please re-state the problem that we are trying to solve in this issue.
Offline message not showing in Country and State selection screen
What is the root cause of that problem?
CountrySelectorModalis modal cover screen in small screens and not haveOfflineIndicatoror useScreenWrapperWhat changes do you think we should make in order to solve the problem?
add
OfflineIndicatorat the end of CountrySelectorModalWhat alternative solutions did you explore? (Optional)
CountrySelectorModalcontent withScreenWrapperto handleOfflineIndicatorvisibilityThis will show

OfflineIndicator, but it displayed with extra margin bottom.This because we add 2 margin, first for modal here
App/src/styles/getModalStyles/getBaseModalStyles.js
Line 241 in eb02006
and second for ScreenWrapper here
App/src/components/ScreenWrapper/index.js
Lines 92 to 95 in eb02006
to fix this we need to remove modal margin by setting
shouldAddBottomSafeAreaPadding = falseforMODAL_TYPE.RIGHT_DOCKED.this fix will affect on other RIGHT_DOCKED modals AvatarCropModal YearPickerModal StateSelectorModal, but we need that because we also need to show
OfflineIndicatorfor themthis issue may also need to fixed in this places AvatarCropModal YearPickerModal StateSelectorModal
melvin-bot commentedon Aug 2, 2023
Triggered auto assignment to @sakluger (
Bug), see https://stackoverflow.com/c/expensify/questions/14418 for more details.melvin-bot commentedon Aug 2, 2023
Bug0 Triage Checklist (Main S/O)
Platformsin OP are ✅)sakluger commentedon Aug 5, 2023
It seems like there's more to this issue than just the offline indicator not showing up on those pages when you switch to airplane mode. In the second video, you can't even load the personal details screen while offline, which I think you should be able to do.
@jasperhuangg do you think there's a chance this is also related to the recent changes around personal details?
sakluger commentedon Aug 7, 2023
Asked Jasper in the original Slack thread.
ahmedGaber93 commentedon Aug 8, 2023
This issue is covered in this PR #24164
@DinalJivani I think you're still eligible for the bounty of this issue reporter, because your report in Slack is before @hungvu193's proposal #23165 (comment) that cover this issue.
sakluger commentedon Aug 9, 2023
@ahmedGaber93 good catch! I asked on that PR if it would fix this issue as well (PR comment).
If that one does fix this issue, then we will close this one without pay, since that issue was reported 20 days ago vs 10 days ago for this one.
sakluger commentedon Aug 10, 2023
The other PR fixed this issue as well, closing 👍