fix Expense - Violation message no longer displayed after rotating receipt#81159
fix Expense - Violation message no longer displayed after rotating receipt#81159iwiznia merged 7 commits intoExpensify:mainfrom
Conversation
src/pages/media/AttachmentModalScreen/routes/TransactionReceiptModalContent.tsx
Show resolved
Hide resolved
Reviewer Checklist
Screenshots/VideosAndroid: HybridAppScreen.Recording.2026-03-02.at.4.53.50.PM.movAndroid: mWeb ChromeScreen.Recording.2026-03-02.at.4.52.37.PM.moviOS: HybridAppScreen.Recording.2026-03-02.at.4.55.14.PM.moviOS: mWeb SafariScreen.Recording.2026-03-02.at.4.53.11.PM.movMacOS: Chrome / SafariScreen.Recording.2026-03-02.at.4.50.42.PM.mov |
|
@eh2077 this is ready for review |
eh2077
left a comment
There was a problem hiding this comment.
Works well!
@aimane-chnaif Can you also modify the unit test a bit to cover the change? thx 🙇
@MelvinBot can you please help with that? 😅 |
- Assert default state is OPEN when no state param is provided - Add new test case verifying state is preserved when explicitly passed (e.g. rotating receipt) Co-authored-by: Aimane Chnaif <aimane-chnaif@users.noreply.github.com>
|
Updated the unit tests in
|
Co-authored-by: Aimane Chnaif <aimane-chnaif@users.noreply.github.com>
|
Added |
Codecov Report✅ Changes either increased or maintained existing code coverage, great job!
|
|
✋ This PR was not deployed to staging yet because QA is ongoing. It will be automatically deployed to staging after the next production release. |
|
🚧 @iwiznia has triggered a test Expensify/App build. You can view the workflow run here. |
|
🧪🧪 Use the links below to test this adhoc build on Android, iOS, and Web. Happy testing! 🧪🧪
|
|
🚀 Deployed to staging by https://github.com/iwiznia in version: 9.3.28-0 🚀
|
|
🚀 Deployed to staging by https://github.com/iwiznia in version: 9.3.30-0 🚀
|
|
🚀 Deployed to production by https://github.com/blimpich in version: 9.3.30-3 🚀
|
Explanation of Change
Keep
receiptStatewhen rotate image.The change in PR keeps minimal so all other cases of
replaceReceiptare not affected.Fixed Issues
$ #78480
Tests
Offline tests
Same as Tests
QA Steps
Same as Tests
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
Android: mWeb Chrome
iOS: Native
iOS: mWeb Safari
MacOS: Chrome / Safari
web.mov