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
Problem
The
RotateandCropbuttons are hidden for stitched odometer receipt images, so admins/users cannot rotate or crop them. OldDot (Classic) allows bothRotateandCropon 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:
shouldShowRotateAndCropReceiptButtonis derived fromshouldShowReplaceReceiptButtonshouldShowReplaceReceiptButtonincludes&& !isStitchedOdometerReceiptExpected behavior
Show the
RotateandCropbuttons for stitched odometer receipt images (while still hiding the "replace image" button, as intended).Reported in Slack.
Upwork Automation - Do Not Edit