Skip to content

[$250] Odometer – Re-add Rotate and Crop buttons for stitched odometer receipt images #98513

Description

@melvin-bot

Problem
The Rotate and Crop buttons are hidden for stitched odometer receipt images, so admins/users cannot rotate or crop them. OldDot (Classic) allows both Rotate and Crop on these attachments, and we want to support the same in New Expensify.

Root cause
When the stitched-odometer work landed, the original intent was to hide only the "replace image" button for stitched images, but the change unintentionally hid the rotate and crop buttons as well.

Relevant keywords in the codebase:

  • shouldShowRotateAndCropReceiptButton is derived from shouldShowReplaceReceiptButton
  • shouldShowReplaceReceiptButton includes && !isStitchedOdometerReceipt

Expected behavior
Show the Rotate and Crop buttons for stitched odometer receipt images (while still hiding the "replace image" button, as intended).

Reported in Slack.

Upwork Automation - Do Not Edit

Metadata

Metadata

Labels

DailyKSv2EngineeringImprovementItem broken or needs improvement.InternalRequires API changes or must be handled by Expensify staffReviewingHas a PR in review

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions