Skip to content

[$250] The order is broken of expenses when using left/right buttons in RHP #64494

Closed

Description

@izarutskaya

If you haven’t already, check out our contributing guidelines for onboarding and email contributors@expensify.com to request to join our Slack channel!


Version Number:
Reproducible in staging?: Needs reproduction
Reproducible in production?: Needs reproduction
If this was caught during regression testing, add the test name, ID and link from TestRail:
Email or phone of affected tester (no customers):
Logs: https://stackoverflow.com/c/expensify/questions/4856
Expensify/Expensify Issue URL:
Issue reported by: @garrettmknight
Slack conversation (hyperlinked to channel name): #expensify_bugs

Action Performed:

Preconditions: User should have workspace with approver

  1. Go to https://staging.new.expensify.com/
  2. Log in with submitter user
  3. As submitter, create 5 compliant expenses. Include categories during creation.
  4. Submit the report.
  5. Change the 5th expense in the list to remove the category
  6. Log in another browser as approver
  7. As the approver, open the top expense in RHP.
  8. Tap right.

Expected Result:

The right arrow leads to the second expense

Actual Result:

The right arrow goes straight to the fifth expense and the order is wild thereafter.

Workaround:

Unknown

Platforms:

Select the officially supported platforms where the issue was reproduced:

  • Android: App
  • Android: mWeb Chrome
  • iOS: App
  • iOS: mWeb Safari
  • iOS: mWeb Chrome
  • Windows: Chrome
  • MacOS: Chrome / Safari
  • MacOS: Desktop
Platforms Tested: On which of our officially supported platforms was this issue tested:
  • Android: App
  • Android: mWeb Chrome
  • iOS: App
  • iOS: mWeb Safari
  • iOS: mWeb Chrome
  • Windows: Chrome
  • MacOS: Chrome / Safari
  • MacOS: Desktop

Screenshots/Videos

Screen.Recording.2025-06-13.at.3.51.50.PM.mov

View all open jobs on GitHub

Upwork Automation - Do Not Edit
  • Upwork Job URL: https://www.upwork.com/jobs/~021937812633312520311
  • Upwork Job ID: 1937812633312520311
  • Last Price Increase: 2025-06-25
Issue OwnerCurrent Issue Owner: @francoisl

Activity

  1. added
    Daily
    Needs Reproduction
    Bug
    on Jun 18, 2025
  2. MelvinBot commented on Jun 18, 2025

    @MelvinBot
    Contributor

    This has been labelled "Needs Reproduction". Follow the steps here: https://stackoverflowteams.com/c/expensify/questions/16989

  3. melvin-bot commented on Jun 18, 2025

    @melvin-bot

    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.

  4. ChavdaSachin commented on Jun 18, 2025

    @ChavdaSachin
    Contributor

    Proposal

    Please re-state the problem that we are trying to solve in this issue.

    What is the root cause of that problem?

    To decide the navigation order using left and right buttons we make use of getActiveTransactionThreadIDs function to fetch the sorted transactionIDs which would ultimately decide the order. And those IDs are set by setActiveTransactionThreadIDs function. And we do not pass sorted transactions here.

    const sortedSiblingTransactionReportIDs = getThreadReportIDsForTransactions(reportActions, transactions);

    What changes do you think we should make in order to solve the problem?

    Pass sorted transactions here

            const sortedSiblingTransactionReportIDs = getThreadReportIDsForTransactions(reportActions, sortedTransactions);

    const sortedSiblingTransactionReportIDs = getThreadReportIDsForTransactions(reportActions, transactions);

    Like following

    const sortedSiblingTransactionReportIDs = getThreadReportIDsForTransactions(reportActions, sortedTransactions);

    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)

    NA

  5. garrettmknight commented on Jun 23, 2025

    @garrettmknight
    Contributor

    @greg-schroeder I've got a few other examples in this thread.

  6. melvin-bot commented on Jun 24, 2025

    @melvin-bot

    @greg-schroeder Huh... This is 4 days overdue. Who can take care of this?

  7. added
    External
    on Jun 25, 2025
  8. changed the title [-]The order is broken of expenses when using left/right buttons in RHP[/-] [+][$250] The order is broken of expenses when using left/right buttons in RHP[/+] on Jun 25, 2025
  9. melvin-bot commented on Jun 25, 2025

    @melvin-bot
  10. added
    Help Wanted
    on Jun 25, 2025
  11. 1 remaining item

  12. melvin-bot commented on Jun 25, 2025

    @melvin-bot

    Triggered auto assignment to Contributor-plus team member for initial proposal review - @shubham1206agra (External)

  13. melvin-bot commented on Jun 30, 2025

    @melvin-bot

    @shubham1206agra Huh... This is 4 days overdue. Who can take care of this?

  14. shubham1206agra commented on Jun 30, 2025

    @shubham1206agra
    Contributor

    @ChavdaSachin's proposal looks good to me.

    🎀👀🎀 C+ reviewed

  15. melvin-bot commented on Jun 30, 2025

    @melvin-bot

    Triggered auto assignment to @francoisl, see https://stackoverflow.com/c/expensify/questions/7972 for more details.

  16. francoisl commented on Jun 30, 2025

    @francoisl
    Contributor

    Pass sorted transactions here

    const sortedSiblingTransactionReportIDs = getThreadReportIDsForTransactions(reportActions, transactions);

    I don't see that code on main anymore, it must have been edited since the proposal was posted. Is the proposal still valid, and the change even needed?

  17. shubham1206agra commented on Jun 30, 2025

    @shubham1206agra
    Contributor

    Looks like it got fixed in #63867

  18. ChavdaSachin commented on Jun 30, 2025

    @ChavdaSachin
    Contributor

    Good to know.

    I am not fully aware of the rules so...
    Does it make us eligible for any partial payment?

  19. shubham1206agra commented on Jun 30, 2025

    @shubham1206agra
    Contributor

    No

  20. francoisl commented on Jun 30, 2025

    @francoisl
    Contributor

    Yeah sorry, in this case there's nothing to fix anymore.

    Going to close – @garrettmknight feel free to reopen if you're still running into the issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

BugDailyExternalHelp WantedNeeds Reproduction

Type

No type

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions