fix crop image regression#83795
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.
|
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 93500477a0
ℹ️ About Codex in GitHub
Codex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".
| if (!imageUri) { | ||
| return; | ||
| } | ||
| ImageSize.getSize(imageUri).then(({width, height, rotation: originalRotation}) => { |
There was a problem hiding this comment.
Should we handle the image processing error?
There was a problem hiding this comment.
I just updated and we also handle in the onLoad event and set the image size when it's not initialized so we don't need an error here.
Expected behavior: the confirmation page will be shown Screen.Recording.2026-03-02.at.11.55.51.mov |
|
After replacing the new image, we should navigate to confirmation page Screen.Recording.2026-03-02.at.11.58.26.mov |
@dukenv0307 Fixed both of them |
Reviewer Checklist
Screenshots/VideosAndroid: HybridAppScreen.Recording.2026-03-02.at.12.49.14.movAndroid: mWeb ChromeScreen.Recording.2026-03-02.at.12.43.33.moviOS: HybridAppScreen.Recording.2026-03-02.at.12.47.06.moviOS: mWeb SafariScreen.Recording.2026-03-02.at.12.42.43.movMacOS: Chrome / SafariScreen.Recording.2026-03-02.at.12.37.58.mov |
|
We did not find an internal engineer to review this PR, trying to assign a random engineer to #83711 as well as to this PR... Please reach out for help on Slack if no one gets assigned! |
|
@srikarparsi All yours |
|
🚧 @srikarparsi 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! 🧪🧪
|
|
✋ This PR was not deployed to staging yet because QA is ongoing. It will be automatically deployed to staging after the next production release. |
Explanation of Change
fix crop image regression
Fixed Issues
$ #83711
#83789
PROPOSAL:
Tests
Offline tests
QA Steps
Same as test
PR Author Checklist
### Fixed Issuessection aboveTestssectionOffline stepssectionQA stepssectiontoggleReportand 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.2026-02-28.at.20.44.00.mov
Screen.Recording.2026-02-28.at.20.47.39.mov
Android: mWeb Chrome
Screen.Recording.2026-02-28.at.20.46.41.mov
iOS: Native
Screen.Recording.2026-02-28.at.20.45.11.mov
iOS: mWeb Safari
Screen.Recording.2026-02-28.at.20.45.43.mov
MacOS: Chrome / Safari
Screen.Recording.2026-02-28.at.20.44.28.mov