Repository navigation
Conversation
mountiny
approved these changes
Sep 23, 2026
Contributor
Reviewer Checklist
Screenshots/VideosAndroid: HybridAppAndroid: mWeb ChromeiOS: HybridAppiOS: mWeb SafariMacOS: Chrome / Safari |
79 tasks done
Contributor
|
🚀 Deployed to staging by https://github.com/mountiny in version: 9.4.93-0 🚀
|
Contributor
|
🚀 Deployed to production by https://github.com/lakchote in version: 9.4.93-3 🚀
Bundle Size Analysis (Sentry): |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Explanation of Change
Follow-up to #100033, answering this review question: #100033 (comment)
Adds
tests/unit/useMoneyRequestReportScrollTest.tsx— 24 cases covering the scroll logicuseMoneyRequestReportScrollowns, which so far was only exercised by manual QA steps:contentHeight - layoutHeight - scrollYmeasurement, theACTION_VISIBLE_THRESHOLDflag the caller uses, and the offset shared throughActionListContext(which is what decides whether incoming messages auto-scroll).scrollToLatestMessagesmust not mark the report read; that happens only once a scroll event reports the list actually landed, and is cancelled if the user drags away first.subscribeToNewActionEventsubscription released.No product code changes. The mocks assert that the hook asks the list to scroll to the last item; whether the list visually lands at the bottom without a blank region is FlashList behavior that stays manual QA — it is exactly why the hook uses
scrollToIndexoverscrollToEnd, and the wiring for that choice is covered by the autoscroll-wiring case.Fixed Issues
$ #99919
PROPOSAL:
Tests
npx jest tests/unit/useMoneyRequestReportScrollTest.tsxOffline tests
Not applicable — test-only change, no product code ships.
QA Steps
No QA — test-only change with no runtime effect.
PR Author Checklist
### Fixed Issuessection aboveTestssectionOffline stepssectionQA stepssectionuseReportActionsScrollTest.tsx,useMoneyRequestReportPaginationTest.tsanduseReportUnreadMessageScrollTrackingTest.tsDesignlabel and/or tagged@Expensify/designmainbranch was merged into this PR after a review, I tested again and verified the outcome was still expected according to theTeststeps.Screenshots/Videos
Not applicable — no UI change.