- 
                Notifications
    
You must be signed in to change notification settings  - Fork 3.4k
 
[CP Stag] fix an issue with min height of screen when Offline Indicator is shown #30887
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
          Reviewer Checklist
 Screenshots/Videos | 
    
| 
           @sarious Please update offline test, last step to : 
 and for test: 
  | 
    
| 
           We have a failed Reassure test.  | 
    
* commit 'a13b7fd97f35d42d121170270d56bce3e6ecc84e': Prettier wanted import order changed? Update import order Make lint happy fix: remove underscore feat: new emoji font for Windows
          
 Oh, I see. What can I do with that? It seems the error is not related to components and files that I was changed. It seem this is an error, because of someone else commits.  | 
    
| 
           @sarious Can you merge main again ? maybe it was fixed on latest main  | 
    
| 
           I think merging main should fix the issue  | 
    
| 
           Sorry, closed by accident  | 
    
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Changes LGTM. Can you please merge main to fix the failing test?
| 
           @sarious are you able to do this asap? This is blocking the deploy so we'd like to get this fixed.  | 
    
| 
           I'm gonna merge this PR with failing jest tests since they are unrelated to the changes in this PR and this is blocking the deploy.  | 
    
| 
           @luacmartins looks like this was merged without a test passing. Please add a note explaining why this was done and remove the   | 
    
| 
           See above  | 
    
| 
           ✋ This PR was not deployed to staging yet because QA is ongoing. It will be automatically deployed to staging after the next production release.  | 
    
fix an issue with min height of screen when Offline Indicator is shown (cherry picked from commit bd2d15c)
| 
           🚀 Cherry-picked to staging by https://github.com/puneetlath in version: 1.3.95-7 🚀 
 @Expensify/applauseleads please QA this PR and check it off on the deploy checklist if it passes.  | 
    
| 
           🚀 Deployed to production by https://github.com/puneetlath in version: 1.3.95-9 🚀 
  | 
    
          
 I wanted to do that at first, but each merge of main branch added new problems. Firstly, it was lint issues, because someone pushed the code without the checks, after that I've got Performance Test Issues and in the end Jets Test Errors.. And all of these errors wasn't related to my code.  | 
    
| 
           🚀 Deployed to production by https://github.com/puneetlath in version: 1.3.97-7 🚀 
  | 
    
























@fedirjh @luacmartins
Details
minHeightstyle to the root View, because the child View has some paddings. (just put it inKeyboardAvoidingViewbecause ofmaxWeight). Also because of that we don't need to calculate insets inuseInitialWindowDimensionshook.shouldEnableMaxHeightand addedshouldEnableKeyboardAvoidingView={false}toEditRequestAmountPagepage to behave the same asMoneyRequestSelectorPagepage and fix an issue when go back from currency selectorFixed Issues
$ #17866
PROPOSAL: #17866 (comment)
Fix of the issue with offline mode:
#30840
Tests
Case with adding money request:
Case with editing money request:
Offline tests
Case with adding money request:
Case with editing money request:
QA Steps
See above.
PR Author Checklist
### Fixed Issuessection aboveTestssectionOffline stepssectionQA stepssectiontoggleReportand notonIconClick)myBool && <MyComponent />.src/languages/*files and using the translation methodWaiting for Copylabel for a copy review on the original GH to get the correct copy.STYLE.md) were followedAvatar, I verified the components usingAvatarare working as expected)/** comment above it */thisproperly so there are no scoping issues (i.e. foronClick={this.submit}the methodthis.submitshould be bound tothisin the constructor)thisare necessary to be bound (i.e. avoidthis.submit = this.submit.bind(this);ifthis.submitis never passed to a component event handler likeonClick)StyleUtils.getBackgroundAndBorderStyle(themeColors.componentBG))Avataris modified, I verified thatAvataris working as expected in all cases)ScrollViewcomponent to make it scrollable when more elements are added to the page.mainbranch was merged into this PR after a review, I tested again and verified the outcome was still expected according to theTeststeps.Screenshots/Videos
Android: Native
android-native-edit-offline.mov
android-native-offline.mov
android-native-online.mov
Android: mWeb Chrome
android-chrome-edit-offline.mov
android-chrome-offline.mov
iOS: Native
ios-native-edit-offline.mov
ios_native-offline.mov
ios-native-online.mov
iOS: mWeb Safari
ios-safari-edit-offline.mov
ios-safari-offline.mov
ios-safari-online.mov
MacOS: Chrome / Safari
MacOS: Desktop