Skip to content

[CP Staging] Revert #96772: failed SmartScan amount handling - #98790

Merged
Beamanator merged 1 commit into
mainfrom
codex/revert-pr-96772
Aug 17, 2026
Merged

Beamanator merged 1 commit into
mainfrom
codex/revert-pr-96772

Conversation

@Beamanator

Copy link
Copy Markdown
Contributor

Summary

This reverts PR #96772, which introduced failed-SmartScan placeholder amount handling across the expense confirmation flow, expense details, inline amount editing, amount submission, previews, and transaction utilities.

The revert is needed to unblock the linked deploy blockers:

The inverse was applied against current main (12b0038e), not the original merge base. One conflict in src/libs/TransactionUtils/index.ts was resolved by preserving the later scan-failed payment-flow helpers while removing only the behavior introduced by #96772.

Validation

  • ESLint passed for all six changed files.
  • Onyx-connect bypass check passed.
  • oxfmt pre-commit hook passed.
  • tsgo is blocked by an unrelated existing error in tests/unit/hooks/useDiscardChangesConfirmationNative.test.ts: HardwareBackPressEvent is not exported by the installed React Native module.
  • Focused Jest suites could not initialize in the isolated worktree because the repository's React Native Jest module mapping expects the full local dependency layout.

@Beamanator
Beamanator marked this pull request as ready for review August 17, 2026 18:08
@Beamanator
Beamanator requested review from a team as code owners August 17, 2026 18:08
@Beamanator
Beamanator marked this pull request as draft August 17, 2026 18:35
@Beamanator

Copy link
Copy Markdown
Contributor Author

drafting b/c @arosiclair will look into these

@Beamanator
Beamanator marked this pull request as ready for review August 17, 2026 18:45
@Beamanator
Beamanator merged commit ca6b99d into main Aug 17, 2026
52 of 54 checks passed
@Beamanator
Beamanator deleted the codex/revert-pr-96772 branch August 17, 2026 18:46
@Beamanator Beamanator changed the title Revert #96772: failed SmartScan amount handling [CP Staging] Revert #96772: failed SmartScan amount handling Aug 17, 2026
@github-actions

Copy link
Copy Markdown
Contributor

🚧 Beamanator has triggered a test Expensify/App build. You can view the workflow run here.

@OSBotify

Copy link
Copy Markdown
Contributor

✋ This PR was not deployed to staging yet because QA is ongoing. It will be automatically deployed to staging after the next production release.

@os-botify os-botify Bot mentioned this pull request Aug 17, 2026
38 tasks done
@OSBotify OSBotify added the CP Staging marks PRs that have been CP'd to staging label Aug 17, 2026
Beamanator added a commit that referenced this pull request Aug 17, 2026
Revert #96772: failed SmartScan amount handling

(cherry picked from commit ca6b99d)

(cherry-picked to staging by Beamanator)
Beamanator added a commit that referenced this pull request Aug 17, 2026
Revert #96772: failed SmartScan amount handling

(cherry picked from commit ca6b99d)

(cherry-picked to staging by Beamanator)
Beamanator added a commit that referenced this pull request Aug 17, 2026
…070997108-1

🍒 Cherry pick PR #98790 to staging 🍒
@OSBotify

Copy link
Copy Markdown
Contributor

🔁 Filed a Staging retest request for deploy blockers #98697, #98737, #98783, #98784, #98786, #98788 after this PR was cherry-picked to staging.

@OSBotify

Copy link
Copy Markdown
Contributor

🚀 Cherry-picked to staging by https://github.com/Beamanator in version: 9.4.54-4 🚀

platform result
🕸 web 🕸 success ✅
🤖 android 🤖 success ✅
🍎 iOS 🍎 success ✅

@MelvinBot

Copy link
Copy Markdown
Contributor

🤖 No help site changes required.

This PR reverts #96772, which introduced an internal UI display detail for failed SmartScans — showing a blank amount placeholder ('') in the confirmation list, expense details, transaction rows, and previews, plus the associated "enter amount" error and edit-submission handling (isFailedScanAmountPlaceholder).

I reviewed the diff against App/docs/articles, and this behavior is not documented at the help-site level. The user-facing concept for failed scans is already described accurately and generically in Troubleshoot SmartScan Issues:

If SmartScan cannot confidently read these required fields, the scan will fail and will show a message specifying which fields are missing — for example, "Receipt scanning failed — missing merchant, date, and amount. Enter details manually."

That guidance (failed scan → message listing missing fields → enter details manually / replace receipt) holds true both before and after this revert, so no article needs updating and no draft docs PR is warranted.

@Beamanator, please review the linked help site PR and confirm it reflects the current behavior. Then mark the linked help site PR Ready for review — note that since no docs changes were required, no help site PR was created here. If you believe an article should be updated to describe the blank-amount behavior specifically, let me know and I'll open one.

@OSBotify

Copy link
Copy Markdown
Contributor

🚀 Deployed to production by https://github.com/Beamanator in version: 9.4.54-4 🚀

platform result
🕸 web 🕸 success ✅
🤖 android 🤖 success ✅
🍎 iOS 🍎 success ✅

Bundle Size Analysis (Sentry):

@OSBotify

Copy link
Copy Markdown
Contributor

🚀 Cherry-picked to staging by https://github.com/Beamanator in version: 9.4.55-0 🚀

platform result
🕸 web 🕸 success ✅
🤖 android 🤖 success ✅
🍎 iOS 🍎 success ✅

@MelvinBot

Copy link
Copy Markdown
Contributor

🤖 Still no help site changes required — reconfirming my earlier analysis.

This PR reverts #96772, whose only user-visible effect was an internal UI display detail for failed SmartScans (blank amount placeholder + "enter amount" error/edit handling). Nothing in App/docs/articles documents that placeholder behavior. The failed-scan flow is already described accurately and generically in Troubleshoot SmartScan Issues (failed scan → message listing missing fields → enter details manually / replace receipt), and that guidance holds true both before and after this revert. No draft docs PR is warranted.

@Beamanator, please review the linked help site PR and confirm it reflects the current behavior. Then mark the linked help site PR Ready for review — note that since no docs changes were required, no help site PR was created. If you believe an article should specifically describe the blank-amount behavior, let me know and I'll open one.

@OSBotify

Copy link
Copy Markdown
Contributor

🚀 Deployed to production by https://github.com/Beamanator in version: 9.4.55-4 🚀

platform result
🕸 web 🕸 success ✅
🤖 android 🤖 success ✅
🍎 iOS 🍎 failure ❌

Bundle Size Analysis (Sentry):

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CP Staging marks PRs that have been CP'd to staging

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants