Repository navigation
[Payment due @truph01] Remove deprecated nextstep format - #97202
Conversation
…ldOptimisticFixIssueNextStep
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.
|
…with buildOptimisticFixIssueNextStep
… with buildOptimisticFixIssueNextStep
|
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 |
|
@truph01 Can you please continue review / test on this one |
|
@s77rt The code changes look good, and I've tested them successfully. Could you resolve the merge conflicts? Once that's done, I'll approve the PR. |
truph01
left a comment
There was a problem hiding this comment.
I have two minor comments
| optimisticNextStep = buildOptimisticNextStepForDynamicExternalWorkflowSubmitError(theme.danger); | ||
| } else if (isOffline && hasPendingDEWSubmit(reportMetadata, isDEWPolicy)) { | ||
| optimisticNextStep = buildOptimisticNextStepForDEWOffline(); | ||
| optimisticNextStep = buildOptimisticFixIssueNextStep(moneyRequestReport?.ownerAccountID ?? CONST.DEFAULT_MISSING_ID); |
There was a problem hiding this comment.
DEW error message changed
This changes the DEW submit/approve error from "can't be submitted/approved" to the generic "Waiting for [owner] to fix the issues." Is this intentional?
There was a problem hiding this comment.
Yeah I don't see the value in that specific message. We can add this back later if needed
|
🎯 @truph01, thanks for reviewing and testing this PR! 🎉 A payment issue will be created for your review once this PR is deployed to production. If payment is not needed (e.g., regression PR review fix etc), react with 👎 to this comment to prevent the payment issue from being created. |
|
🚧 pecanoro 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. |
|
🚀 Deployed to staging by https://github.com/pecanoro in version: 9.4.51-0 🚀
|
Help site review — no changes requiredI reviewed the changes in this PR against the help site articles under Why: This is an internal code cleanup that removes the deprecated next-step format and consolidates the optimistic next-step builders. It does not change any user-facing behavior or copy:
I also checked the articles that mention "next step" (e.g. Since there is no user-facing change to document, I did not open a docs draft PR. |
|
🤖 Payment issue created: #98184 |
|
🚀 Deployed to production by https://github.com/roryabraham in version: 9.4.51-1 🚀
Bundle Size Analysis (Sentry): |
| isASAPSubmitBetaEnabled, | ||
| isTrackIntentUser, | ||
| }); | ||
| onyxData.optimisticData?.push(violationsOnyxData, { |
There was a problem hiding this comment.
@s77rt did you unintentionally removed the pushing of violationsOnyxData now optimistic violation calculation is dead on expense creation
There was a problem hiding this comment.
Yeah I'm just seeing that. I only intended to remove the COLLECTION.NEXT_STEP update
Explanation of Change
buildOptimisticNextStepForPreventSelfApprovalsEnabledto use the new next step formatbuildOptimisticNextStepForStrictPolicyRuleViolationswithbuildOptimisticFixIssueNextStepbuildOptimisticNextStepForDynamicExternalWorkflowSubmitErrorwithbuildOptimisticFixIssueNextStepbuildOptimisticNextStepForDynamicExternalWorkflowApproveErrorwithbuildOptimisticFixIssueNextStepbuildOptimisticNextStepForDEWOfflineI don't see why this was only added for DEW. - Removing this will not show any "offline" nextStep (same as other non-DEW cases)dotIndicatoricon - Backend does not set this, it was only used by the optimistic functions that I replaced/removed abovewaitingForPolicyBankAccountmessage key, this is already removed from backendbuildNextStepNew, we are now usingbuildOptimisticNextStepdeprecatedGetPersonalDetailsByIDsanddeprecatedGetLoginsByAccountIDs, they were only used in the now-removedbuildNextStepNewFixed Issues
https://github.com/Expensify/Expensify/issues/528713
PROPOSAL:
Tests
Waiting for [Submitter name / you] to add expenses.Waiting for [Submitter name / you] to fix the issuesWaiting for [Submitter name / you] to submit expensesWaiting for [Approver name / you] to approve expensesWaiting for [Approver name / you] to pay expensesNo further action required!Screen.Recording.2026-08-03.at.10.38.01.AM.mov
Offline tests
Same as Tests
QA Steps
Same as 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)Designlabel and/or tagged@Expensify/designso the design team can review the changes.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