decompose ReportActionsList: 2#89598
Conversation
Codecov Report❌ Looks like you've decreased code coverage for some files. Please write tests to increase, or at least maintain, the existing level of code coverage. See our documentation here for how to interpret this table.
|
|
@codex review |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: a7216bf17c
ℹ️ About Codex in GitHub
Codex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".
|
@codex review |
|
Codex Review: Didn't find any major issues. 🎉 ℹ️ About Codex in GitHubCodex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you
If Codex has suggestions, it will comment; otherwise it will react with 👍. When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback". |
|
@DylanDylann 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] |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: e9dae3f470
ℹ️ About Codex in GitHub
Codex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
…tps://github.com/callstack-internal/Expensify-App into refactor/extract-report-actions-pagination-hooks
|
@codex review |
|
Codex Review: Didn't find any major issues. 🎉 ℹ️ About Codex in GitHubCodex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you
If Codex has suggestions, it will comment; otherwise it will react with 👍. When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback". |
Reviewer Checklist
Screenshots/VideosAndroid: HybridAppScreen.Recording.2026-05-14.at.15.03.19.movAndroid: mWeb ChromeScreen.Recording.2026-05-14.at.15.00.07.moviOS: HybridAppScreen.Recording.2026-05-14.at.15.04.42.moviOS: mWeb SafariScreen.Recording.2026-05-14.at.14.59.36.movMacOS: Chrome / SafariScreen.Recording.2026-05-14.at.14.59.03.mov |
|
🚧 @rlinoz 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! 🧪🧪
|
|
✋ 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/rlinoz in version: 9.3.74-7 🚀
Bundle Size Analysis (Sentry): |
|
This PR is a purely internal refactoring — it extracts two React hooks ( No changes are required to Expensify's help site files. |
|
🚀 Deployed to production by https://github.com/Beamanator in version: 9.3.74-7 🚀
|
|
Hi @adhorodyski. QA steps are not very clear. |
|
@IuliiaHerets I think you can follow this one: Open a chat chat
Open a money-request / invoice report
Others
|
Explanation of Change
PR 2 of the ReportActionsList decomposition series (#88320, blueprint #87506).
Extracts two pipeline hooks from the inline pagination logic in
ReportActionsView:useReportActionsPagination— wrapsusePaginatedReportActions, handles optimistic CREATED report action injection, money-request optimistic IOU injection, andgetCombinedReportActionsthread stitching. ReadsRAM_ONLY_REPORT_LOADING_STATEto factorisLoadingInitialReportActionsinto the optimistic-CREATED gate so behavior matches current main.useTransactionThread— owns transaction-thread report ID derivation (viagetOneTransactionThreadReportID+ non-deleted transaction filtering), thread report actions selector, and parent action lookup.ReportActionsViewshrinks from 377 → ~232 lines by replacing the inline block with a singleuseReportActionsPagination(reportID)call. Skeleton flags, concierge filtering, list ID, layout, and thevisibleReportActionspost-filter all stay in the View.useLoadReportActionssignature simplified:transactionThreadReport: OnyxEntry<Report>→transactionThreadReportID: string | undefined. Removes the dependency on the full Onyx report entry — only the ID is ever read inside the hook. Updated call sites inReportActionsViewandMoneyRequestReportView/MoneyRequestReportActionsList.useTransactionsAndViolationsForReportexposes a newisLoadedfield (additive, no breaking changes for existing consumers).ReportActionsList.tsxis unchanged — it still receives data via props fromReportActionsView. List moves to direct hook calls in PR 6 with the orchestrator swap.Fixed Issues
$ #88320
PROPOSAL:
Tests
Offline tests
Same as Tests, run with airplane mode toggled mid-session.
QA Steps
Same as Tests.
PR Author Checklist
### Fixed Issuessection aboveTestssectionOffline stepssectionQA stepssectiontoggleReportand notonIconClick)src/languages/*files and using the translation methodSTYLE.md) were followedAvatar, I verified the components usingAvatarare working as expected)StyleUtils.getBackgroundAndBorderStyle(theme.componentBG))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.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
iOS: mWeb Safari
MacOS: Chrome / Safari