Skip to content

[Due for payment 2025-09-23] [$250] iOS - Scan multi - Can't scroll carousel for see first image after delete one of seven receipts #69301

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.99-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: https://test-management.browserstack.com/projects/2219752/test-runs/TR-443/folder/13176932/41237693/861422316
Issue reported by: Applause - Internal Team

Action Performed:

  1. Open app
  2. Go to any workspace chat
  3. At composer box, tap on + button
  4. Tap Create Expense
  5. Tap Scan
  6. Tap on multi receipt icon
  7. Take 7 photos
  8. Tap on one photo of the row at bottom and delete
  9. Scroll carousel of the row at bottom for seeing first image

Expected Result:

The carousel should scroll smoothly

Actual Result:

User can't scroll the carousel after delete one of seven photos. The first photo is not fully visible and is cropped

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
Bug6927497_1756232202233.Eecd1072_1_.mp4
Image

View all open jobs on GitHub

Upwork Automation - Do Not Edit
  • Upwork Job URL: https://www.upwork.com/jobs/~021961434110976994166
  • Upwork Job ID: 1961434110976994166
  • Last Price Increase: 2025-08-29
Issue OwnerCurrent Issue Owner: @dylanexpensify

Activity

  1. added
    Daily
    Bug
    on Aug 26, 2025
  2. melvin-bot commented on Aug 26, 2025

    @melvin-bot

    Triggered auto assignment to @dylanexpensify (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.

  3. Eskalifer1 commented on Aug 27, 2025

    @Eskalifer1
    Contributor

    Proposal

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

    iOS - Scan multi - Can't scroll carousel for see first image after delete one of seven receipts

    What is the root cause of that problem?

    The problem lies in this component:

    function ReceiptPreviews({submit, isMultiScanEnabled}: ReceiptPreviewsProps) {

    We display a total of 6 complete elements and half of the seventh element at all times. But when we had 7 images and we delete one of them, we are left with 6 images + 1 placeholder. In this case, the element stops scrolling, but the previous position remains (the first image is cropped and the seventh is fully visible).

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

    We need to scroll when deleting items. We can scroll to the top of the list when deleting, or we can scroll a distance equal to the width of one item. This can be discussed during the PR stage. Here is the solution with scrolling to the top when deleting images:

        useEffect(() => {
            const hasRemovedReceipt = receiptsPhotosLength < previousReceiptsPhotosLength;
    
            if (hasRemovedReceipt) {
                flatListRef.current?.scrollToOffset({offset: 0, animated: true});
            }
        }, [receiptsPhotosLength, previousReceiptsPhotosLength, initialReceiptsAmount]);

    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)

    We can enable scroll always or any specific scenario(We can discuss it during PR stage, e.g. when prevoius value was 7 and new value is 6 images), so user can always scroll:


    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.

  4. added
    External
    on Aug 29, 2025
  5. changed the title [-]iOS - Scan multi - Can't scroll carousel for see first image after delete one of seven receipts[/-] [+][$250] iOS - Scan multi - Can't scroll carousel for see first image after delete one of seven receipts[/+] on Aug 29, 2025
  6. melvin-bot commented on Aug 29, 2025

    @melvin-bot
  7. added
    Help Wanted
    on Aug 29, 2025
  8. melvin-bot commented on Aug 29, 2025

    @melvin-bot

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

  9. mananjadhav commented on Aug 31, 2025

    @mananjadhav
    Collaborator

    Well I understand the issue and reviewed the proposal. I have two concerns with scroll to top as it might result into a jarring experience. Second why do need a hasRemovedReceipt check, do we really need a specific removal check?

    I liked that we can move by the width of the item but it might a little complex. I'll confirm the behavior with @puneetlath / @Expensify/design.

    We can scroll to the top of the list when deleting, or we can scroll a distance equal to the width of one item. This can be discussed during the PR stage.

    That being said I think this should be discussed in the proposal stage and not PR stage.

    🎀 👀 🎀 C+ reviewed.

  10. 35 remaining items

  11. melvin-bot commented on Sep 16, 2025

    @melvin-bot

    Reviewing label has been removed, please complete the "BugZero Checklist".

  12. removed
    Reviewing
    on Sep 16, 2025
  13. melvin-bot commented on Sep 16, 2025

    @melvin-bot

    The solution for this issue has been 🚀 deployed to production 🚀 in version 9.2.14-7 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-09-23. 🎊

    For reference, here are some details about the assignees on this issue:

    • @mananjadhav requires payment through NewDot Manual Requests
    • @Eskalifer1 requires payment (Needs manual offer from BZ)
  14. melvin-bot commented on Sep 16, 2025

    @melvin-bot

    @mananjadhav @dylanexpensify 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]

  15. mananjadhav commented on Sep 22, 2025

    @mananjadhav
    Collaborator

    BugZero Checklist:

    • [Contributor] Classify the bug:
    Bug classification

    Source of bug:

    • 1a. Result of the original design (eg. a case wasn't considered)
    • 1b. Mistake during implementation
    • 1c. Backend bug
    • 1z. Other:

    Where bug was reported:

    • 2a. Reported on production (eg. bug slipped through the normal regression and PR testing process on staging)
    • 2b. Reported on staging (eg. found during regression or PR testing)
    • 2d. Reported on a PR
    • 2z. Other:

    Who reported the bug:

    • 3a. Expensify user
    • 3b. Expensify employee
    • 3c. Contributor
    • 3d. QA
    • 3z. Other:
    • [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: I am not sure in which specific PR we could've fixed this. It's an edge case.

    • [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: NA

    • [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.

    • [BugZero Assignee] Create a GH issue for creating/updating the regression test once above steps have been agreed upon.

      Link to issue:

    Regression Test Proposal

    Test:

    For mWeb and Mobile Apps:

    1. Go to any workspace chat
    2. At composer box, tap on + button
    3. Tap Create Expense
    4. Tap Scan
    5. Tap on multi receipt icon
    6. Take 7 or more photos
    7. Tap on one photo of the row at bottom and delete
    8. Make sure list is scrolled to the start and you can scroll through the list.

    Do we agree 👍 or 👎

  16. mananjadhav commented on Sep 22, 2025

    @mananjadhav
    Collaborator

    @dylanexpensify The checklist is completed for tomorrow.

  17. added
    Daily
    and removed
    Weekly
    on Sep 22, 2025
  18. dylanexpensify commented on Sep 23, 2025

    @dylanexpensify
    Contributor

    Payment summary:

    Contributor: @Eskalifer1 $250 via Upwork
    Contributor+: @mananjadhav $250 via NewDot

    Please apply/request!

  19. dylanexpensify commented on Sep 23, 2025

    @dylanexpensify
    Contributor

    @Eskalifer1 sent offer!

  20. Eskalifer1 commented on Sep 23, 2025

    @Eskalifer1
    Contributor

    Thank you! I have accepted!

  21. dylanexpensify commented on Sep 23, 2025

    @dylanexpensify
    Contributor

    done!

  22. quinthar commented on Sep 26, 2025

    @quinthar
    Contributor

    Approved $250 to @mananjadhav

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

Metadata

Metadata

Labels

Awaiting PaymentBugDailyExternal

Type

No type

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions