Fix canShowHeader logic#42332
Conversation
|
@jayeshmangwani Please copy/paste the Reviewer Checklist from here into a new comment on this PR and complete it. If you have the K2 extension, you can simply click: [this button] |
|
@perunt Would you be able to confirm this change is ok since you wrote that code initially? |
|
I also noticed on iOS there seems to be an issue where newer messages don't load initially unless you scroll back up a little, you can see in the video in the screenshots section. I will investigate that in a follow up. |
|
@janicduplessis Is this a follow-up PR of any other PR? |
|
I found the issue while working on #40610, but it is not directly related. |
@janicduplessis From the PR description it looks like the root cause lies elsewhere and is unrelated to PR #40610. |
@jayeshmangwani Please go ahead if you are available here. I am not sure if I can get to this in the next 2-3 days. |
|
@jayeshmangwani Please go ahead with this PR |
|
On it... |
|
@janicduplessis Is there any way to test the Android loader? I have tried with the Steps in the Tests and deep link, but not able to see the Loader for Android native Android_compressed.mp4 |
|
|
Running a build @janicduplessis are you able to help @jayeshmangwani please? |
|
🧪🧪 Use the links below to test this adhoc build on Android, iOS, Desktop, and Web. Happy testing! 🧪🧪 |
|
@jayeshmangwani The seems to be another issue on mobile where the newer messages are not loading unless you scroll up some. Does it work if you try to scroll up for about 1-2 screens of height then scroll back down? |
|
I will try to look at that issue next. |
Now, After trying several times, I am able to show the loader a few times |
Reviewer Checklist
Screenshots/VideosAndroid: NativeAndroid.movAndroid: mWeb ChromemWeb-chrome.moviOS: NativeiOS.moviOS: mWeb SafarimWeb-safari.movMacOS: Chrome / Safariweb.movMacOS: Desktopdesktop.mov |
|
Code changes looks good, and Tests Well. NAB: Videos are missing for some platforms |
mountiny
left a comment
There was a problem hiding this comment.
Thank you, asking to get this merged!
|
✋ This PR was not deployed to staging yet because QA is ongoing. It will be automatically deployed to staging after the next production release. |
|
🚀 Deployed to staging by https://github.com/mountiny in version: 1.4.77-0 🚀
|
|
🚀 Deployed to production by https://github.com/puneetlath in version: 1.4.77-11 🚀
|
|
🚀 Deployed to production by https://github.com/puneetlath in version: 1.4.77-11 🚀
|
Details
I noticed that the loading indicator for loading new messages is not displayed.
I traced it back to this commit which refactored the logic to a variable, but incorrectly.
It changed
to
The correct change is:
When testing on iOS I also noticed the scrollingVerticalOffset check was preventing the loading indicator from showing some times. I don't see why it would be needed and didn't seem to introduce any problem when testing loading other chats.
After this the header now shows correctly on 2nd render as the code was meant to do.
Before
Screen.Recording.2024-05-16.at.23.59.11.mov
After
Screen.Recording.2024-05-17.at.00.08.58.mov
Fixed Issues
$ #42331
PROPOSAL:
Tests
Offline tests
QA Steps
Steps to test comment linking:
PR Author Checklist
### Fixed Issuessection aboveTestssectionOffline stepssectionQA stepssectiontoggleReportand notonIconClick)myBool && <MyComponent />.src/languages/*files and using the translation methodSTYLE.md) were followedAvatar, I verified the components usingAvatarare working as expected)StyleUtils.getBackgroundAndBorderStyle(theme.componentBG))Avataris modified, I verified thatAvataris working as expected in all cases)Designlabel and/or tagged@Expensify/designso the design team can review the changes.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: mWeb Chrome
iOS: Native
Screen.Recording.2024-05-17.at.01.04.44.mov
iOS: mWeb Safari
MacOS: Chrome / Safari
Screen.Recording.2024-05-17.at.00.08.58.mov
MacOS: Desktop