You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[$250] Expense - The carousel arrows disappear after reloading the page #62017
Awaiting PaymentAuto-added when associated PR is deployed to productionBugSomething is broken. Auto assigns a BugZero manager.DailyKSv2ExternalAdded to denote the issue can be worked on by a contributorReviewingHas a PR in review
Version Number: 9.1.45-9 Reproducible in staging?: Yes Reproducible in production?: Yes If this was caught during regression testing, add the test name, ID and link from TestRail:#61661 Email or phone of affected tester (no customers):applausetester+bm607@applause.expensifail.com Issue reported by: Applause Internal Team Device used: Web, mweb App Component: Chat Report View
Please re-state the problem that we are trying to solve in this issue.
The carousel arrows disappear after reloading the page
What is the root cause of that problem?
The carousel relies on transactionReportIDs to determine which sibling expenses to navigate between. However, this data is stored in-memory using a singleton and is lost on page reload, causing the carousel to lose context and not render the arrows.
changed the title [-]Expense - The carousel arrows disappear after reloading the page[/-][+][$250] Expense - The carousel arrows disappear after reloading the page[/+]on May 20, 2025
We should remove the useMemo here because reportIDsList is getting from in-memory variable then the useMemo isn't triggered again if reportIDsList is changed. In this case, after we reload the page, reportIDsList is changed from empty array to correct value.
What specific scenarios should we cover in automated tests to prevent reintroducing this issue in the future?
NA
What alternative solutions did you explore? (Optional)
Reminder: Please use plain English, be brief and avoid jargon. Feel free to use images, charts or pseudo-code if necessary. Do not post large multi-line diffs or write walls of text. Do not create PRs unless you have been hired for this job.
🚨 Edited by proposal-police: This proposal was edited at 2025-05-20 09:50:58 UTC.
Proposal
Please re-state the problem that we are trying to solve in this issue:
After reloading the MoneyRequestReport page, the carousel arrows disappear because the active transaction thread report IDs used to control arrow visibility are cleared.
What is the root cause of that problem?
The active transaction thread IDs are currently set only when a user navigates into a transaction from the list. On page reload, this data is lost, so the carousel does not know which reports are part of the thread and hides the arrows.
What changes do you think we should make in order to solve the problem?:
We should repopulate the active transaction thread report IDs whenever the MoneyRequestReport screen is focused, and the current route matches the report ID shown. This can be done using React Navigation’s useFocusEffect hook inside MoneyRequestReportTransactionList to update the global IDs list from current report actions and transactions.
What changes do you think we should make in order to solve the problem?
To solve the issue of carousel arrows disappearing after a page reload, we should ensure that the list of active transaction thread report IDs (transactionReportIDs) is repopulated whenever the MoneyRequestReport screen is focused.
What specific scenarios should we cover in automated tests to prevent reintroducing this issue in the future?
Confirm that on focusing the MoneyRequestReport screen with matching report ID, the active transaction thread IDs are correctly set.
Confirm that on navigating away, the active transaction thread IDs are cleared.
Verify after a full page reload, the carousel arrows remain visible and navigation works.
What alternative solutions did you explore? (Optional)
None
changed the title [-][Due for payment 2025-06-13] [$250] Expense - The carousel arrows disappear after reloading the page[/-][+][Due for payment 2025-06-16] [Due for payment 2025-06-13] [$250] Expense - The carousel arrows disappear after reloading the page[/+]on Jun 9, 2025
The solution for this issue has been 🚀 deployed to production 🚀 in version 9.1.62-0 and is now subject to a 7-day regression period 📆. Here is the list of pull requests that resolve this issue:
@hungvu193@greg-schroeder@hungvu193 The PR fixing this issue has been merged! The following checklist (instructions) will need to be completed before the issue can be closed. Please copy/paste the BugZero Checklist from here into a new comment on this GH and complete it. If you have the K2 extension, you can simply click: [this button]
[Contributor] If the regression was CRITICAL (e.g. interrupts a core flow) A discussion in #expensify-open-source has been started about whether any other steps should be taken (e.g. updating the PR review checklist) in order to catch this type of bug sooner.
Link to discussion: Not critical
[Contributor] If it was decided to create a regression test for the bug, please propose the regression test steps using the template below to ensure the same bug will not reach production again.
Regression Test Proposal
Test:
Create a workspace.
Create a report with multiple expenses.
Go to report and click on expense.
Reload the page.
Verify that the carousel arrow doesn't disappear.
Click on right or left arrow.
Verify that you can move between expense without any issue.
changed the title [-][Due for payment 2025-06-16] [Due for payment 2025-06-13] [$250] Expense - The carousel arrows disappear after reloading the page[/-][+][$250] Expense - The carousel arrows disappear after reloading the page[/+]on Jun 23, 2025
Awaiting PaymentAuto-added when associated PR is deployed to productionBugSomething is broken. Auto assigns a BugZero manager.DailyKSv2ExternalAdded to denote the issue can be worked on by a contributorReviewingHas a PR in review
Activity
melvin-bot commentedon May 14, 2025
Triggered auto assignment to @greg-schroeder (
Bug), see https://stackoverflow.com/c/expensify/questions/14418 for more details. Please add this bug to a GH project, as outlined in the SO.nyomanjyotisa commentedon May 14, 2025
Proposal
Please re-state the problem that we are trying to solve in this issue.
The carousel arrows disappear after reloading the page
What is the root cause of that problem?
The carousel relies on
transactionReportIDsto determine which sibling expenses to navigate between. However, this data is stored in-memory using a singleton and is lost on page reload, causing the carousel to lose context and not render the arrows.App/src/components/MoneyRequestReportView/TransactionThreadReportIDRepository.ts
Lines 1 to 8 in 58ea580
What changes do you think we should make in order to solve the problem?
We should refactor src/components/MoneyRequestReportView/TransactionThreadReportIDRepository.ts to store the data on onyx
This way, the data survives a page reload and the carousel arrows can continue to function as expected.
What specific scenarios should we cover in automated tests to prevent reintroducing this issue in the future?
None
What alternative solutions did you explore? (Optional)
None
melvin-bot commentedon May 20, 2025
Job added to Upwork: https://www.upwork.com/jobs/~021924724352227051900
[-]Expense - The carousel arrows disappear after reloading the page[/-][+][$250] Expense - The carousel arrows disappear after reloading the page[/+]melvin-bot commentedon May 20, 2025
Triggered auto assignment to Contributor-plus team member for initial proposal review - @hungvu193 (
External)thelullabyy commentedon May 20, 2025
🚨 Edited by proposal-police: This proposal was edited at 2025-05-22 07:02:27 UTC.
Proposal
Please re-state the problem that we are trying to solve in this issue.
After reloading the page, the carousel arrows disappear
What is the root cause of that problem?
The carousel arrows appear based on
transactionReportIDsin-memory data. After the page is reloaded, it's clearedApp/src/components/MoneyRequestReportView/MoneyRequestReportTransactionsNavigation.tsx
Line 23 in a95171a
App/src/components/MoneyRequestReportView/TransactionThreadReportIDRepository.ts
Line 1 in a95171a
We only update this if we open a transaction thread report from
MoneyRequestReportTransactionList.App/src/components/MoneyRequestReportView/MoneyRequestReportTransactionList.tsx
Lines 163 to 169 in a95171a
What changes do you think we should make in order to solve the problem?
We can also update
transactionReportIDswheneverMoneyRequestReportTransactionListis mounted and the current full screen report route is this reportApp/src/components/MoneyRequestReportView/MoneyRequestReportTransactionList.tsx
Lines 163 to 169 in a95171a
We should remove the
useMemohere becausereportIDsListis getting from in-memory variable then theuseMemoisn't triggered again ifreportIDsListis changed. In this case, after we reload the page,reportIDsListis changed from empty array to correct value.App/src/components/MoneyRequestReportView/MoneyRequestReportTransactionsNavigation.tsx
Lines 23 to 30 in a95171a
What specific scenarios should we cover in automated tests to prevent reintroducing this issue in the future?
NA
What alternative solutions did you explore? (Optional)
Reminder: Please use plain English, be brief and avoid jargon. Feel free to use images, charts or pseudo-code if necessary. Do not post large multi-line diffs or write walls of text. Do not create PRs unless you have been hired for this job.
ZerozeroAndre commentedon May 20, 2025
🚨 Edited by proposal-police: This proposal was edited at 2025-05-20 09:50:58 UTC.
Proposal
Please re-state the problem that we are trying to solve in this issue:
After reloading the MoneyRequestReport page, the carousel arrows disappear because the active transaction thread report IDs used to control arrow visibility are cleared.
What is the root cause of that problem?
The active transaction thread IDs are currently set only when a user navigates into a transaction from the list. On page reload, this data is lost, so the carousel does not know which reports are part of the thread and hides the arrows.
What changes do you think we should make in order to solve the problem?:
We should repopulate the active transaction thread report IDs whenever the MoneyRequestReport screen is focused, and the current route matches the report ID shown. This can be done using React Navigation’s useFocusEffect hook inside MoneyRequestReportTransactionList to update the global IDs list from current report actions and transactions.
What changes do you think we should make in order to solve the problem?
To solve the issue of carousel arrows disappearing after a page reload, we should ensure that the list of active transaction thread report IDs (transactionReportIDs) is repopulated whenever the MoneyRequestReport screen is focused.
What specific scenarios should we cover in automated tests to prevent reintroducing this issue in the future?
What alternative solutions did you explore? (Optional)
None
27 remaining items
[-][Due for payment 2025-06-13] [$250] Expense - The carousel arrows disappear after reloading the page[/-][+][Due for payment 2025-06-16] [Due for payment 2025-06-13] [$250] Expense - The carousel arrows disappear after reloading the page[/+]melvin-bot commentedon Jun 9, 2025
The solution for this issue has been 🚀 deployed to production 🚀 in version 9.1.62-0 and is now subject to a 7-day regression period 📆. Here is the list of pull requests that resolve this issue:
If no regressions arise, payment will be issued on 2025-06-16. 🎊
For reference, here are some details about the assignees on this issue:
melvin-bot commentedon Jun 9, 2025
@hungvu193 @greg-schroeder @hungvu193 The PR fixing this issue has been merged! The following checklist (instructions) will need to be completed before the issue can be closed. Please copy/paste the BugZero Checklist from here into a new comment on this GH and complete it. If you have the K2 extension, you can simply click: [this button]
hungvu193 commentedon Jun 16, 2025
BugZero Checklist:
Bug classification
Source of bug:
Where bug was reported:
Who reported the bug:
[Contributor] The offending PR has been commented on, pointing out the bug it caused and why, so the author and reviewers can learn from the mistake.
Link to comment: N/A. The carousel was added in Display transaction thread navigation arrows on RHP in Inbox #60898 and we fixed it in Expense - The carousel arrows disappear after reloading the page #62773. We later reverted the changes from Expense - The carousel arrows disappear after reloading the page #62773 in Fix transaction thread arrows navigation #63867
[Contributor] If the regression was CRITICAL (e.g. interrupts a core flow) A discussion in #expensify-open-source has been started about whether any other steps should be taken (e.g. updating the PR review checklist) in order to catch this type of bug sooner.
Link to discussion: Not critical
[Contributor] If it was decided to create a regression test for the bug, please propose the regression test steps using the template below to ensure the same bug will not reach production again.
Regression Test Proposal
Test:
Do we agree 👍 or 👎
melvin-bot commentedon Jun 20, 2025
@greg-schroeder Whoops! This issue is 2 days overdue. Let's get this updated quick!
greg-schroeder commentedon Jun 23, 2025
Processing today
[-][Due for payment 2025-06-16] [Due for payment 2025-06-13] [$250] Expense - The carousel arrows disappear after reloading the page[/-][+][$250] Expense - The carousel arrows disappear after reloading the page[/+]greg-schroeder commentedon Jun 24, 2025
Payment summary:
Contributor: @thelullabyy - $250 - Upwork
C+: @hungvu193 - $250 - ND
garrettmknight commentedon Jul 3, 2025
$250 approved for @hungvu193