-
Notifications
You must be signed in to change notification settings - Fork 3.5k
[NoQA] Feature: Travel Invoicing - Release 2.3: Update Settlement Account Flow #79809
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
[NoQA] Feature: Travel Invoicing - Release 2.3: Update Settlement Account Flow #79809
Conversation
…7-travel-invoicing-21
…7-travel-invoicing-21
…7-travel-invoicing-21
…7-travel-invoicing-21
…7-travel-invoicing-21
|
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 |
|
@parasharrajat 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] |
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.
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 47fc11416e
ℹ️ 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".
|
🟢 Ready for review! |
|
In progress. |
|
Screenshots look good to me 👍 |
Explanation of Change
UX Flow
WorkspaceCardPage.tsx). When the “Settlement account” row is tapped fromWorkspaceTravelInvoicingSection, we navigate to that screen with an extra context flag (mode = 'travelInvoicing'), and on selection we callsetTravelInvoicingSettlementAccountinstead of the card‑specific action.Data & Onyx
private_expensifyCardSettings, but for thePROGRAM_TRAVEL_USfeed.getTravelSettlementAccount(policy)returns a structure like{displayName, last4, bankAccountID}for use in UI.getTravelSettlementAccount(policy)recomputes to the new bank, which updates the row.Actions
New function in
src/libs/actions/TravelInvoicing.ts:setTravelInvoicingSettlementAccount({policyID, settlementAccountID}):SetTravelInvoicingSettlementAccount.Components & reuse
Navigation:
WorkspaceBankAccountSelectorPage, with an extra param indicating this is for Travel Invoicing.Settlement account screen:
setTravelInvoicingSettlementAccountvs the card’s action).Testing
Component tests:
policyID,context= 'travel').Integration:
Fixed Issues
$ #78675
PROPOSAL:
Tests
Note
Right now in order to test the section locally - tester can edit / comment out two blocks of code to be able to see the new section in Workspace Settings > Travel, below is a diff:
DIFF
Test 1: Navigation Flow
Test 2: Account Selection
Test 3: Persistence
Offline tests
N/A
QA Steps
Same as tests.
PR Author Checklist
### Fixed Issuessection aboveTestssectionOffline stepssectionQA stepssectioncanBeMissingparam foruseOnyxtoggleReportand 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
web.mov
ios-hybrid.mov