-
Notifications
You must be signed in to change notification settings - Fork 3k
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
Fix canShowHeader logic #42332
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 |
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.
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 Issues
section aboveTests
sectionOffline steps
sectionQA steps
sectiontoggleReport
and notonIconClick
)myBool && <MyComponent />
.src/languages/*
files and using the translation methodSTYLE.md
) were followedAvatar
, I verified the components usingAvatar
are working as expected)StyleUtils.getBackgroundAndBorderStyle(theme.componentBG)
)Avatar
is modified, I verified thatAvatar
is working as expected in all cases)Design
label and/or tagged@Expensify/design
so the design team can review the changes.ScrollView
component to make it scrollable when more elements are added to the page.main
branch was merged into this PR after a review, I tested again and verified the outcome was still expected according to theTest
steps.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