Skip to content

[Due for payment 2026-04-30] Expense - When taking a photo to scan on landscape can't see the whole receipt #87305

Closed

Description

@mitarachim

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.3.54-0
Reproducible in staging?: Yes
Reproducible in production?: N/A - new feature, doesn't exist in prod
If this was caught during regression testing, add the test name, ID and link from BrowserStack: #85229
Email or phone of affected tester (no customers): gatahntm+6320@gmail.com
Issue reported by: Applause Internal Team
Bug source: Pull Request QA execution
Device used: iPhone 12.mini, iOS 16.7
App Component: Money Requests

Action Performed:

  1. Launch the app and login with any account being on landscape mode
  2. Tap on FAB or the plus icon inside a chat
  3. Tap on Create expense
  4. Switch to scan
  5. Complete the flow to see the end image and compare to what was showing during taking it

Expected Result:

User can see the whole receipt when taking. a photo to scan on ladscape

Actual Result:

It's hard to make sure you take the correct photo of the receipt as only part of the photo that will be taken is shown

Workaround:

Unknown

Platforms:

  • Android: App
  • Android: mWeb Chrome
  • iOS: App
  • iOS: mWeb Safari
  • iOS: mWeb Chrome
  • Windows: Chrome
  • MacOS: Chrome / Safari

Screenshots/Videos

Bug7124261_1775607870910.RPReplay_Final1775607479.mp4

View all open jobs on GitHub

Issue OwnerCurrent Issue Owner: @mallenexpensify

Activity

  1. added
    DeployBlockerCash
    Daily
    Bug
    DeployBlocker
    on Apr 8, 2026
  2. melvin-bot commented on Apr 8, 2026

    @melvin-bot

    You have been assigned to this deploy blocker because you recently merged this PR: #85229

  3. melvin-bot commented on Apr 8, 2026

    @melvin-bot

    💬 A slack conversation has been started in #expensify-open-source

  4. github-actions commented on Apr 8, 2026

    @github-actions
    Contributor

    👋 Friendly reminder that deploy blockers are time-sensitive ⏱ issues! Check out the open `StagingDeployCash` deploy checklist to see the list of PRs included in this release, then work quickly to do one of the following:

    1. Identify the pull request that introduced this issue and revert it.
    2. Find someone who can quickly fix the issue.
    3. Fix the issue yourself.
  5. MelvinBot commented on Apr 8, 2026

    @MelvinBot
    Contributor

    Proposal

    What is the root cause of that problem?

    The camera viewfinder always uses a portrait aspect ratio (0.75) regardless of device orientation. At index.native.tsx:118, cameraAspectRatio is computed as format.photoHeight / format.photoWidth (3024/4032 = 0.75), which assumes portrait display.

    getCameraViewfinderStyle then returns {aspectRatio: 0.75, minWidth: '100%', minHeight: '100%'}. In landscape on an iPhone 12 mini (~812×375), minHeight: '100%' fills the 375px height, and the 0.75 ratio constrains width to ~281px — only ~35% of screen width. The parent cameraView has overflow: 'hidden' + alignItemsCenter, clipping the preview to a narrow centered strip.

    The isInLandscapeMode hook is already imported in this file but only used for the permission view, not for the camera viewfinder.

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

    Make cameraAspectRatio orientation-aware in index.native.tsx. When in landscape mode, invert the ratio to format.photoWidth / format.photoHeight (4032/3024 ≈ 1.33) so the viewfinder fills the wide screen correctly. The existing isInLandscapeMode hook is already available in the component — it just needs to be used when computing cameraAspectRatio.

    What alternative solutions did you explore? (Optional)

    • Use flex: 1 in landscape instead of an explicit aspect ratio — simpler but could distort the preview or not match the actual capture area.
    • Make getCameraViewfinderStyle orientation-aware — would work but pushes orientation logic into a generic style utility, when it's better scoped to the scan component.

    Next Steps for Contributor+ team: Reply with @MelvinBot implement this to create a draft PR, @MelvinBot <your feedback> to refine this analysis, or explain why you are rejecting Melvin's proposal.

  6. rushatgabhane commented on Apr 8, 2026

    @rushatgabhane
    Member

    I'd say this is not a blocker because landscape mode is a new feature. Let's fix it as a regular issue

  7. removed
    DeployBlockerCash
    on Apr 8, 2026
  8. 24 remaining items

  9. melvin-bot commented on Apr 23, 2026

    @melvin-bot

    The solution for this issue has been 🚀 deployed to production 🚀 in version 9.3.61-4 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 2026-04-30. 🎊

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

    • @GCyganek does not require payment (Contractor)
    • @truph01 requires payment through NewDot Manual Requests
  10. melvin-bot commented on Apr 23, 2026

    @melvin-bot

    @truph01 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]

  11. melvin-bot commented on Apr 28, 2026

    @melvin-bot

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

  12. GCyganek commented on Apr 29, 2026

    @GCyganek
    Contributor

    deployed to production

  13. added
    Awaiting Payment
    on Apr 29, 2026
  14. melvin-bot commented on Apr 29, 2026

    @melvin-bot

    Triggered auto assignment to @mallenexpensify (Awaiting Payment)

  15. melvin-bot commented on Apr 29, 2026

    @melvin-bot

    Triggered auto assignment to @mallenexpensify (Awaiting Payment)

  16. melvin-bot commented on Apr 30, 2026

    @melvin-bot

    Payment Summary

    Upwork Job

    • Contributor: @GCyganek does not require payment (Contractor)
    • Reviewer: @truph01 owed $250 via NewDot

    BugZero Checklist (@mallenexpensify)

    • (if NewFeature) I have created a PR for any necessary HelpDot updates, or I confirmed no updates are necessary.
    • I have verified the correct assignees and roles are listed above and updated the necessary manual offers
    • I have verified that there are no duplicate or incorrect contracts on Upwork for this job (https://www.upwork.com/ab/applicants//hired)
    • I have verified the PR was not reverted
    • I have applied any discounts due to bugs/regressions introduced by this PR
    • I have paid out the Upwork contracts or cancelled the ones that are incorrect
    • I have verified the payment summary above is correct
  17. mallenexpensify commented on May 1, 2026

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

Metadata

Metadata

Labels

Awaiting PaymentBugDailyEngineering

Type

No type

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions