Add Rotate button to receipt modal#76037
Conversation
Codecov Report❌ Looks like you've decreased code coverage for some files. Please write tests to increase, or at least maintain, the existing level of code coverage. See our documentation here for how to interpret this table.
|
|
@aimane-chnaif I'm finding the way to rotate when editing the receipt since the image from this case is from the server. |
|
@aimane-chnaif Please copy/paste the Reviewer Checklist from here into a new comment on this PR and complete it. If you have the K2 extension, you can simply click: [this button] |
|
@NikkiWines Please copy/paste the Reviewer Checklist from here into a new comment on this PR and complete it. If you have the K2 extension, you can simply click: [this button] |
src/pages/media/AttachmentModalScreen/routes/TransactionReceiptModalContent.tsx
Show resolved
Hide resolved
src/pages/media/AttachmentModalScreen/routes/TransactionReceiptModalContent.tsx
Outdated
Show resolved
Hide resolved
src/libs/fetchImage/index.native.ts
Outdated
| export default function fetchImage(source: string, authToken: string) { | ||
| // Create a unique filename based on timestamp | ||
| const timestamp = Date.now(); | ||
| const extension = source.split('.').pop()?.split('?')?.at(0) ?? 'jpg'; |
There was a problem hiding this comment.
I believe extracting extension from file name is somewhere in this repo or expensify-common.
|
I tested on approved expense. Screen.Recording.2025-12-02.at.5.50.59.pm.mov |
joekaufmanexpensify
left a comment
There was a problem hiding this comment.
Excited for this!
@aimane-chnaif After calling |
|
@nkdengineer conflicts |
|
✋ This PR was not deployed to staging yet because QA is ongoing. It will be automatically deployed to staging after the next production release. |
|
🚀 Deployed to staging by https://github.com/NikkiWines in version: 9.2.79-0 🚀
|
|
🚀 Deployed to staging by https://github.com/NikkiWines in version: 9.2.81-0 🚀
|
Revert "Merge pull request #76037 from nkdengineer/fix/75435"
|
🚀 Deployed to production by https://github.com/AndrewGable in version: 9.2.81-5 🚀
|
|
🚀 Deployed to staging by https://github.com/NikkiWines in version: 9.2.82-0 🚀
|
|
🚀 Deployed to staging by https://github.com/NikkiWines in version: 9.2.82-0 🚀
|
|
🚀 Deployed to production by https://github.com/AndrewGable in version: 9.2.81-5 🚀
|
|
🚀 Deployed to staging by https://github.com/NikkiWines in version: 9.2.82-0 🚀
|
|
🚀 Deployed to staging by https://github.com/NikkiWines in version: 9.2.84-0 🚀
|
|
🚀 Deployed to production by https://github.com/AndrewGable in version: 9.2.84-8 🚀
|
|
🚀 Deployed to staging by https://github.com/NikkiWines in version: 9.2.86-0 🚀
|
|
🚀 Deployed to production by https://github.com/marcaaron in version: 9.2.86-4 🚀
|
Explanation of Change
Add Rotate button to receipt modal
Fixed Issues
$ #75435
PROPOSAL: #75435 (comment)
Tests
Offline tests
Same
QA Steps
Same as test
PR Author Checklist
### Fixed Issuessection aboveTestssectionOffline stepssectionQA stepssectioncanBeMissingparam foruseOnyxtoggleReportand notonIconClick)src/languages/*files and using the translation methodSTYLE.md) were followedAvatar, I verified the components usingAvatarare working as expected)StyleUtils.getBackgroundAndBorderStyle(theme.componentBG))npm run compress-svg)Avataris modified, I verified thatAvataris working as expected in all cases)Designlabel and/or tagged@Expensify/designso the design team can review the changes.ScrollViewcomponent to make it scrollable when more elements are added to the page.mainbranch was merged into this PR after a review, I tested again and verified the outcome was still expected according to theTeststeps.Screenshots/Videos
Android: Native
Screen.Recording.2025-11-25.at.22.37.56.mov
Screen.Recording.2025-12-02.at.22.57.08.mov
Android: mWeb Chrome
Screen.Recording.2025-12-02.at.23.03.00.mov
iOS: Native
Screen.Recording.2025-11-25.at.22.40.27.mov
Screen.Recording.2025-12-02.at.22.58.23.mov
iOS: mWeb Safari
Screen.Recording.2025-11-25.at.22.39.43.mov
MacOS: Chrome / Safari
Screen.Recording.2025-11-25.at.22.34.43.mov
Screen.Recording.2025-12-02.at.22.56.25.mov