Repository navigation
[LegendList 4/15] fix: stabilize composer focus and scroll notifications - #104977
roryabraham merged 3 commits into
Conversation
Resolve the current composer after delayed focus, reserve notification-banner space on initial layout, and keep inverted-list scroll events scoped to their existing callers. Expose local and realtime notification sources with a backward-compatible callback signature. Co-authored-by: Codex <noreply@openai.com>
Codecov Report✅ Changes either increased or maintained existing code coverage, great job!
|
Co-authored-by: Codex <noreply@openai.com>
|
@MelvinBot request review from @roryabraham and @dmkt9 and assign them here. |
|
Done. I requested reviews from |
|
Hi @roryabraham, I found a bug where the composer doesn't regain focus when a modal is closed after editing a message. 2026-10-27.11-18-49.mp4 |
|
@chrispader The changes look good to me. Can you resolve the conflicts and mark this PR as ready? |
Yes, sounds good. Please go ahead and open the issue using the standard Steps to reproduce/Expected Results/Actual Results template 👍🏼 |
|
@MelvinBot Open a separate issue for this bug: #104977 (comment), based on the CME's agreement here: #104977 (comment), and assign it to @roryabraham and me. Steps to Reproduce
Expected ResultThe composer should automatically regain focus after the modal is closed. Actual ResultThe composer doesn't regain focus after the modal is closed. |
|
I created Web - Chat - Composer doesn't regain focus after closing a modal once a message has been edited and assigned it to @roryabraham and @dmkt9. It uses your steps, expected result, and actual result. It also includes your video and links back to the two PR comments. I added the |
|
Finishing up this PR right now @dmkt9 @roryabraham ! |
Preserve inverted-list scroll notifications alongside main's compiler cleanup. Co-authored-by: Codex <noreply@openai.com>
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
|
@marcaaron 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] |
Reviewer Checklist
Screenshots/VideosAndroid: HybridAppandroid.hybrid.mp4Android: mWeb ChromeiOS: HybridAppios.hybrid.mp4iOS: mWeb SafariMacOS: Chrome / Safarichrome.mp4 |
|
✋ This PR was not deployed to staging yet because QA is ongoing. It will be automatically deployed to staging after the next production release. |
|
🚧 roryabraham has triggered a test Expensify/App build. You can view the workflow run here. |
|
🧪🧪 Use the links below to test this adhoc build on Android, iOS, and Web. Happy testing! 🧪🧪
|
|
🚀 Deployed to staging by https://github.com/roryabraham in version: 9.5.25-0 🚀
|
|
No help site update is needed. This PR fixes timing problems with composer focus, list scroll events, and when the notifications banner first appears, so no feature changes and no article sentence becomes wrong. |
|
🚀 Deployed to production by https://github.com/jasperhuangg in version: 9.5.25-2 🚀
Bundle Size Analysis (Sentry): |
Closing an inline editor can replace the input before delayed focus runs, and the notification banner can appear after the list measures. This PR resolves the current input when focus executes and initializes notification permission before the first layout. It also keeps list scroll notifications scoped to inverted lists and identifies local and realtime action events.
@roryabraham @dmkt9
Explanation of Change
This is layer 4 of the fifteen-part LegendList series. It extracts the composer and notification preparation from #100733, which remains the list migration in layer 12. Report actions continue to use the existing inverted FlashList.
Review and merge order: fifteen-part LegendList rollout. Layers 6 to 8 are independent preparations; merge all three before layer 12.
Fixed Issues
$ #98994
Part of the migration split from #98270. No approved proposal is linked.
Tests
All platforms means desktop web, mobile web, Android, and iOS.
All platforms, save and cancel a message edit
Android and iOS apps, keyboard after returning to a chat
Desktop Chrome, notification permissions
Desktop web, message hover actions while scrolling
Offline tests
All platforms, cancel an edit offline
QA Steps
Run the All platforms cases and the blocks for the platform being tested, including Offline tests.
PR Author Checklist
### Fixed Issuessection aboveTestssectionOffline stepssectionQA stepssectionAvatar, I verified the components usingAvatarare working as expected)npm run compress-svg)Avataris modified, I verified thatAvataris working as expected in all cases)Designlabel and/or tagged@Expensify/designso the design team can review the changes.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
All platforms, save a message edit
Screen_Recording_20261027_181444_Expensify.Dev.mp4
iOS: Native
All platforms, save and cancel a message edit
pr4-ios-save-cancel-upload.mp4
All platforms, save a message edit
Screen.Recording.iPhone.18.Pro.27-10-2026.at.17.37.15.mp4
Cold chat open and initial loading
FlashList is on the left and LegendList is on the right. FlashList leaves the report body blank during loading; LegendList shows the report-action skeleton before messages appear.
LegendListLoadingSkeletonVsFlashList.mp4
Cold expense-chat open
FlashList is on the left and LegendList is on the right. Both progress from the loading skeleton to an expense preview and its surrounding report actions.
ExpenseChatCold.mp4
Warm expense-chat open
FlashList is on the left and LegendList is on the right. Both open the cached expense preview and report actions from the inbox.
ExpenseChatWarm.mp4
Warm chat open
Side-by-side opens of the same cached chat, ending on the same report-action history. The implementations are not labeled in this recording.
LegendListWarmReportOpen.mp4
MacOS: Chrome / Safari
All platforms, save a message edit
Screen.Recording.2026-10-27.at.17.13.08.mov