[Odometer] Move odometer image stitching to confirmation page#85105
Conversation
|
Hey, I noticed you changed If you want to automatically generate translations for other locales, an Expensify employee will have to:
Alternatively, if you are an external contributor, you can run the translation script locally with your own OpenAI API key. To learn more, try running: npx ts-node ./scripts/generateTranslations.ts --helpTypically, you'd want to translate only what you changed by running |
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.
|
…stitching_to_confirmation_page
…stitching_to_confirmation_page
|
I think this PR also will resolve this bug. |
…stitching_to_confirmation_page
…stitching_to_confirmation_page
|
@DylanDylann 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] |
|
@DylanDylann I fixed one bug that I found but we should be good besides that |
…stitching_to_confirmation_page
|
🚧 @Julesssss has triggered a test Expensify/App build. You can view the workflow run here. |
This comment has been minimized.
This comment has been minimized.
|
🚧 @Julesssss 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! 🧪🧪
|
src/pages/media/AttachmentModalScreen/routes/TransactionReceiptModalContent.tsx
Outdated
Show resolved
Hide resolved
|
@jakubkalinski0 some conflicts now 😢 |
|
@Julesssss Thanks for tagging me! I will get back to my PC and solve it in a minute. Hopefully we can get it merged today and get started on the next PR 🤞 |
…stitching_to_confirmation_page
|
🚧 @Julesssss 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! 🧪🧪
|
Julesssss
left a comment
There was a problem hiding this comment.
Great stuff. This is testing very well. Much better UX with the loading happening on the confirmation page.
|
🚧 @Julesssss 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/Julesssss in version: 9.3.44-0 🚀
Bundle Size Analysis (Sentry): |
|
🚀 Deployed to staging by https://github.com/Julesssss in version: 9.3.47-0 🚀
Bundle Size Analysis (Sentry): |
|
🚀 Deployed to production by https://github.com/grgia in version: 9.3.48-2 🚀
|


Explanation of Change
Moves odometer image stitching from the odometer reading step to the confirmation page. Previously, stitching blocked navigation with a loading button. Now, stitching runs on the confirmation page while an
ActivityIndicatorreplaces the receipt preview, and errors surface viaFormHelpMessage. Also extracts the stitched filename prefix to a constants file and skips stitching when only one image is present.Fixed Issues
$ #84998
PROPOSAL: N/A
Tests
Important
This PR only moves the stitching logic to the confirmation page and does't introduce the backup transaction during editing from confirmation page (this will be added here #86022). Because of that when user makes any changes to the images when editing from confirmation page this change will be reflected on confirmation page as receipt will be re-stitched (no matter if he pressed
"Save"or<back button)We are testing the odometer expense creation flow which you start by doing the following:
Press
FAB-> go to"Track distance"-> choose"Odometer"tabTest 1 - Loading indicator while stitching
Test 2 - Re-stitching Deleting one photo clears the stale receipt
5. Create an odometer expense with start + end photos and navigate to the confirmation page.
6. Press
"Distance"and replace/delete/crop/rotate one of the photos.7. Then press
"Save"and return to the confirmation page.8. Verify that the receipt is re-stitched accordingly to the changes photo is adjusted to the changes (not the previously stitched version).
Test 3 - Single odometer image (no stitching)
9. Create an odometer expense but add only a start photo (skip the end photo).
10. Navigate to the confirmation page.
11. Verify the single image is shown as the receipt directly, with no loading indicator and no stitching attempt.
Offline tests
Same as 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
iOS needs to be tested on a physcical device
Android: Native
android.mp4
Android: mWeb Chrome
androidweb.mp4
iOS: mWeb Safari
ios.mp4
MacOS: Chrome / Safari
web.mp4