Repository navigation
Conversation
|
@codex review |
|
@MelvinBot review |
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
ReviewThis looks good to merge. I found no correctness issues. CI passes, including unit tests and typecheck. These parts check out:
Suggestions (none blocking):
|
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: c5117da3a4
ℹ️ 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".
| // Given the settings iOS prepares ahead of time, which it only reuses for an identical capture | ||
| const preparedSettings = cameraPlatformConfigIOS.preparedPhotoSettings?.at(0); | ||
|
|
||
| // When a plain portrait scan is captured |
There was a problem hiding this comment.
Explain why the plain capture is the test action
In the newly added prepared-settings test, this When comment only paraphrases the next captureReceiptIOS call; it never explains why that action is needed (for example, that the plain path is the one whose settings are prewarmed). Reword it to capture that rationale, since this repository requires Given/When/Then comments to explain why the test performs each step.
AGENTS.md reference: AGENTS.md:L93-L93
Useful? React with 👍 / 👎.
|
Do you need review here @mountiny ? |
|
Oh i see no c+ was assigned on the issue. Continuing on review then Its ready right @OlimpiaZurek? |
Yes, it's ready for review |
Reviewer Checklist
Screenshots/VideosAndroid: HybridAppAndroid: mWeb ChromeiOS: HybridAppiOS: mWeb SafariMacOS: Chrome / Safari |
|
@MelvinBot @codex review |
|
Codex Review: Didn't find any major issues. Another round soon, please! Reviewed commit: ℹ️ About Codex in GitHubCodex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you
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". |
|
Can we get adhoc build here @mountiny? Thanks! |
|
🚧 mountiny has triggered a test Expensify/App build. You can view the workflow run here. |
This comment has been minimized.
This comment has been minimized.
|
✋ This PR was not deployed to staging yet because QA is ongoing. It will be automatically deployed to staging after the next production release. |
|
🚧 mountiny 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/mountiny in version: 9.5.33-0 🚀
|
|
🚀 Deployed to production by https://github.com/roryabraham in version: 9.5.33-1 🚀
Bundle Size Analysis (Sentry): |
Explanation of Change
Since VisionCamera v5, every iOS scan takes a full photo, because v5 has no snapshot on iOS. iOS receipt capture p95 went from ~210ms to ~630ms. Most of the slow captures are on iPhone 15 Pro and newer (p95 ~700–830ms, against ~310–370ms on iPhone 14 / 15), and photo resolution doesn't explain it.
We capture with a virtual camera (wide + ultra-wide). VisionCamera only sets
isAutoVirtualDeviceFusionEnabledwhenenableVirtualDeviceFusionis passed, so AVFoundation's default applies: on. With fusion on, iOS can merge frames from several lenses into one photo, which is extra work a flat receipt doesn't need.This PR turns fusion off on iOS:
captureReceipt/index.ios.ts:enableVirtualDeviceFusion: falseon every receipt captureplatformConfig/index.ios.ts: the same field inpreparedPhotoSettings, so the plain portrait scan still matches the prepared settings and uses iOS's faster prepared pathLens switching (for example macro on Pro iPhones) works as before. Android isn't changed.
Fixed Issues
$ #105825
PROPOSAL:
Tests
iOS only:
Offline tests
QA Steps
Same as tests
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
Android: mWeb Chrome
iOS: Native
iOS: mWeb Safari
MacOS: Chrome / Safari