Skip to content

Expense- "Select all" checkbox is still marked after deleting all the expenses in offline mode #64062

Closed

Description

@lanitochka17

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: 9.1.65-0
Reproducible in staging?: Y
Reproducible in production?: Y
If this was caught during regression testing, add the test name, ID and link from TestRail: N/A
Email or phone of affected tester (no customers): sdjpjnsdioisjdojsdi@gmail.com
Issue reported by: Applause - Internal Team

Action Performed:

  1. Go to staging.new.expensify.com
  2. Go to workspace chat
  3. Submit two expenses to the workspace chat
  4. Go to expense report
  5. Go offline
  6. Select all expenses via checkbox
  7. Click More > Delete
  8. Delete the expenses

Expected Result:

"Select all" checkbox will not be marked after deleting all the expenses in offline mode

Actual Result:

"Select all" checkbox is still marked after deleting all the expenses in offline mode

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

Add any screenshot/video evidence
Bug6857978_1749728979005.20250612_194609.mp4

View all open jobs on GitHub

Upwork Automation - Do Not Edit
  • Upwork Job URL: https://www.upwork.com/jobs/~021933611359058890264
  • Upwork Job ID: 1933611359058890264
  • Last Price Increase: 2025-06-13
  • Automatic offers:
    • allgandalf | Reviewer | 107723226
Issue OwnerCurrent Issue Owner: @inimaga

Activity

  1. added
    Daily
    Bug
    on Jun 12, 2025
  2. FitseTLT commented on Jun 12, 2025

    @FitseTLT
    Contributor

    🚨 Edited by proposal-police: This proposal was edited at 2025-06-12 12:15:26 UTC.

    Proposal

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

    Expense- "Select all" checkbox is still marked after deleting all the expenses in offline mode

    What is the root cause of that problem?

    We don't check if there is selected transaction here so in this case both selectedTransactionIDs.length and transactionsWithoutPendingDelete are zero and the check box is marked

    isChecked={selectedTransactionIDs.length === transactionsWithoutPendingDelete.length}

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

    We need to check for selelctedTransactions length

                                isChecked={selectedTransactionIDs.length > 0 && selectedTransactionIDs.length === transactionsWithoutPendingDelete.length}
    
    

    or check for transactionsWithoutPendingDelete.length

    isChecked={transactionsWithoutPendingDelete.length > 0 && selectedTransactionIDs.length === transactionsWithoutPendingDelete.length}
    

    What specific scenarios should we cover in automated tests to prevent reintroducing this issue in the future?

    N / A

    What alternative solutions did you explore? (Optional)

  3. CortneyOfstad commented on Jun 13, 2025

    @CortneyOfstad
    Contributor

    Was able to recreate so getting eyes on this 👍

  4. added
    External
    on Jun 13, 2025
  5. changed the title [-]Expense- "Select all" checkbox is still marked after deleting all the expenses in offline mode[/-] [+][$250] Expense- "Select all" checkbox is still marked after deleting all the expenses in offline mode[/+] on Jun 13, 2025
  6. melvin-bot commented on Jun 13, 2025

    @melvin-bot
  7. added
    Help Wanted
    on Jun 13, 2025
  8. melvin-bot commented on Jun 13, 2025

    @melvin-bot

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

  9. CortneyOfstad commented on Jun 13, 2025

    @CortneyOfstad
    Contributor

    Hey @jjcoffee! There is a proposal above for you to review when you have a chance — thanks!

  10. jjcoffee commented on Jun 16, 2025

    @jjcoffee
    Contributor

    I guess this is technically a regression from #63233 cc @jmusial @hoangzinh @allgandalf

    Otherwise we can go ahead with @FitseTLT's proposal.

    🎀👀🎀 C+ reviewed

  11. 12 remaining items

  12. added
    Weekly
    and removed
    Daily
    on Jun 23, 2025
  13. added
    Reviewing
    Weekly
    and removed
    Weekly
    on Jun 23, 2025
  14. CortneyOfstad commented on Jun 23, 2025

    @CortneyOfstad
    Contributor

    PR to fix is here

  15. jjcoffee commented on Jun 24, 2025

    @jjcoffee
    Contributor

    Can I be unassigned here as this is being handled as a regression fix?

  16. allgandalf commented on Jun 25, 2025

    @allgandalf
    Contributor

    Hopeful to get the PR merged this week

  17. CortneyOfstad commented on Jul 1, 2025

    @CortneyOfstad
    Contributor

    PR merged to staging 18 hours ago 🎉

  18. allgandalf commented on Jul 4, 2025

    @allgandalf
    Contributor

    Good to close! no checklist here since this was a regression

  19. CortneyOfstad commented on Jul 8, 2025

    @CortneyOfstad
    Contributor

    Thanks @allgandalf!

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

Metadata

Metadata

Labels

BugExternalReviewingWeekly

Type

No type

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions