Repository navigation
Allow changing the workspace on the confirmation page when scanning from the camera button - #103130
Conversation
…rom the camera button Co-authored-by: Nyoman Jyotisa <nyomanjyotisa@users.noreply.github.com>
…iler Co-authored-by: Nyoman Jyotisa <nyomanjyotisa@users.noreply.github.com>
|
Fixed the failing Cause: In Fix: The test now reads the hook with Verified locally: The compliance check now skips the file because it has no components or hooks. ESLint and
|
|
🤖 Android test steps verification results: ✅ pass The scan flow from the bottom tab bar lets you switch the workspace on Confirm details. The submitted expense lands in the chosen workspace's chat, not the default workspace's chat.
|
|
@MelvinBot please replace the sections from Updated testing, checklist, and recordingsTests
Offline testsLoad Confirm details online, enable Force offline, switch to B, then reconnect. Verify B remains selected. QA StepsSame as Tests and Offline tests.
PR Author Checklist
Screenshots/VideosAndroid: NativeAndroid-pr103130.mp4Android: mWeb ChromeAndroid-mWeb-pr103130.mp4iOS: Nativeios-pr103130.mp4iOS: mWeb Safariios-mWeb-pr103130.mp4MacOS: Chrome / SafariChrome-pr103130.mp4 |
|
I updated the PR description. Everything from I dropped the outer "Updated testing, checklist, and recordings" |
|
@MelvinBot please mark this PR as ready for review. |
|
I marked this PR as ready for review. |
|
Codex usage limits have been reached for code reviews. Please check with the admins of this repo to increase the limits by adding credits. |
|
@nyomanjyotisa 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] |
Reviewer Checklist
Screenshots/VideosAndroid: HybridAppAndroid-pr103130.mp4Android: mWeb ChromeAndroid-mWeb-pr103130.mp4iOS: HybridAppios-pr103130.mp4iOS: mWeb Safariios-mWeb-pr103130.mp4MacOS: Chrome / SafariChrome-pr103130.mp4 |
garrettmknight
left a comment
There was a problem hiding this comment.
Looks good from a product perspective.
|
We did not find an internal engineer to review this PR, trying to assign a random engineer to #102764 as well as to this PR... Please reach out for help on Slack if no one gets assigned! |
|
@MelvinBot please merge |
…itableWorkspace-nyomanjyotisa Co-authored-by: Nyoman Jyotisa <nyomanjyotisa@users.noreply.github.com> # Conflicts: # src/pages/iou/request/step/IOURequestStepScan/components/NavigateGlobalCreateContext.tsx
|
@nyomanjyotisa 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] |
|
I merged
I couldn't run Jest locally because dependencies couldn't be reinstalled after the merge. CI will run the tests. |
|
The failing Analysis: Three calls in
That param became required in src/libs/actions/IOU/SplitTransactionUpdate.ts:83. Thread report drafts explicitly through the split-transaction update flow made that change and was the last PR to touch both files. Evidence:
Next step: Once a fix lands on |
|
Nothing has changed since my last comment, so I still haven't pushed a fix. The
|
|
@MelvinBot please merge |
…itableWorkspace-nyomanjyotisa Co-authored-by: Nyoman Jyotisa <nyomanjyotisa@users.noreply.github.com>
|
I merged the latest The branch now includes [No QA] fix ts error on main, so CI will rerun typecheck with that fix. |
|
✋ This PR was not deployed to staging yet because QA is ongoing. It will be automatically deployed to staging after the next production release. |
|
🚧 tylerkaraszewski 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/tylerkaraszewski in version: 9.5.9-0 🚀
|
|
No help site update is needed. This bug fix lets you change the workspace on the confirmation page after scanning from the camera button, which matches what users already expect, and no article says the workspace is locked in that flow. |
|
🚀 Deployed to production by https://github.com/cristipaval in version: 9.5.9-4 🚀
Bundle Size Analysis (Sentry): |






Explanation of Change
This replaces #102768, which was closed so
nyomanjyotisacould own and test the PR. The code is the same.The bottom-tab camera button (and the desktop floating receipt button) starts a scan with the active workspace chat as the route
reportID, instead of a generated one like FAB → Create expense → Scan. Because of that,useResetIOUTypesetsisFromGlobalCreate: falseon the draft, and the workspace row on the confirmation page is only editable whenisFromGlobalCreateis true. So users couldn't switch workspaces on the confirmation page.Both flows already go through
navigateGlobalCreateafter the receipt is captured, which assigns the draft to the default workspace chat. This PR also setsisFromGlobalCreate: trueon the drafts there. That way:reportID, so the expense goes to the chosen workspace.isRestrictedToPreferredPolicyand test-receipt locks still apply.navigateGlobalCreate. The FAB scan and receipt drop flows already haveisFromGlobalCreate: true, so this is a no-op for them.Added unit tests in
tests/unit/NavigateGlobalCreateTest.tsxfor both branches ofnavigateGlobalCreate(default workspace and preserved participants).Fixed Issues
$ #102764
PROPOSAL: #102764
Tests
Offline tests
Load Confirm details online, enable Force offline, switch to B, then reconnect. Verify B remains selected.
QA Steps
Same as Tests and Offline tests.
PR Author Checklist
### Fixed Issuessection aboveTestssectionOffline stepssectionQA stepssectionAvatar, 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)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-pr103130.mp4
Android: mWeb Chrome
Android-mWeb-pr103130.mp4
iOS: Native
ios-pr103130.mp4
iOS: mWeb Safari
ios-mWeb-pr103130.mp4
MacOS: Chrome / Safari
Chrome-pr103130.mp4