-
Notifications
You must be signed in to change notification settings - Fork 2.9k
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
AutoscrollToTopThreshold
#34244
AutoscrollToTopThreshold
#34244
Conversation
@AndrewGable 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] |
I think we should probably bring this back, but it won't reliably fix #34240 – if you just leave some comments on the IOU report, then scroll to the top, then edit fields, it won't scroll back to the bottom if there's more than 128 pixels between you and the bottom. And I think that's expected – we wouldn't necessarily want to scroll you all the way back down to the bottom if you scrolled all the way up to edit a field – what if you want to edit another? |
Discussing in https://expensify.slack.com/archives/C01GTK53T8Q/p1704907225899739 – this PR needs test steps to cover:
|
QA StepsPre-requisites:
Case 1:
Case 2:
Case 3: (especially iOS)
Case 4: (especially iOS)
|
Case 1, 2: Screen.Recording.2024-01-11.at.1.19.39.AM.mov |
Reviewer Checklist
Screenshots/VideosAndroid: NativeAndroid: mWeb ChromeiOS: NativeCase 1,2: Screen.Recording.2024-01-11.at.1.19.39.AM.movCase 3,4: Screen.Recording.2024-01-11.at.1.22.05.AM.movScreen.Recording.2024-01-11.at.1.28.29.AM.moviOS: mWeb SafariMacOS: Chrome / SafariMacOS: Desktop |
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.
Deleting IOU seems broken on main.
Otherwise looks good!
✋ This PR was not deployed to staging yet because QA is ongoing. It will be automatically deployed to staging after the next production release. |
CPing this to staging |
…hreshold `AutoscrollToTopThreshold` (cherry picked from commit 99e91c3)
🚀 Cherry-picked to staging by https://github.com/roryabraham in version: 1.4.24-2 🚀
@Expensify/applauseleads please QA this PR and check it off on the deploy checklist if it passes. |
🚀 Deployed to production by https://github.com/thienlnam in version: 1.4.24-3 🚀
|
Details
Bring back autoscrollToTopThreshold after it was removed here https://github.com/Expensify/App/pull/32098/files#diff-b1c8c4fd8072edbd35c63a7cdd71b63ff1701a6f43529ea794f7720a86460df2L18
Fixed Issues
$ #34240
PROPOSAL:
Tests
Offline tests
QA Steps
Pre-requisites:
Login account A
Login account B on another device
DM chat between A and B should have enough messages history
On A, scroll down to the bottom to see latest message on DM chat with B
Case 1:
On A, Send any image or pdf attachment
Verify that image is fully seen
Case 2:
On B, Send message to A
Observe the chat page on A
Verify that the chat page scrolls down to the bottom to show the newly received message
Case 3: (especially iOS)
A requests money from B
B opens 1:1 DM with A
B taps Pay elsewhere on the IOU preview
On both A and B, verify that no empty space below IOU preview in 1:1 DM after paying elsewhere
Case 4: (especially iOS)
A requests money from B
Open IOU report on both accounts
Delete money request
On both A and B, verify that no empty space after IOU preview is removed
PR Author Checklist
### Fixed Issues
section aboveTests
sectionOffline steps
sectionQA steps
sectiontoggleReport
and notonIconClick
)myBool && <MyComponent />
.src/languages/*
files and using the translation methodWaiting for Copy
label for a copy review on the original GH to get the correct copy.STYLE.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 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
iOS: mWeb Safari
MacOS: Chrome / Safari
MacOS: Desktop