Repository navigation
104404 Add TravelApproval beta and Spend Travel section with Trips - #104536
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 bun ./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.
|
|
|
||
| // Travel section | ||
| { | ||
| const travelSection: SearchTypeMenuSection = { |
There was a problem hiding this comment.
mocks have Travel right under Expense reports, above Accounting. can we move it up ?
| topMerchants: 'Principales comerciantes', | ||
| violationsBySubmitter: 'Infracciones por remitente', | ||
| travel: 'Viajes', | ||
| trips: 'Viajes', |
There was a problem hiding this comment.
NAB: section and tab both read Viajes in es
There was a problem hiding this comment.
Same value with script bun ./scripts/generateTranslations.ts --paths search.tabs.travel
| topCategories: 'Principais categorias', | ||
| topMerchants: 'Principais estabelecimentos', | ||
| violationsBySubmitter: 'Violações por quem enviou', | ||
| travel: 'Viagens', |
There was a problem hiding this comment.
ran the translation script locally, everything matches except this one
| travel: 'Viagens', | |
| travel: 'Viagem', |
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
|
@allgandalf @suneox Should I review this PR? If so, I can get to it in a couple of hours. |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 692930edf9
ℹ️ 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".
@daledah I think no need @allgandalf will be review travel approval beta chain |
Reviewer Checklist
Screenshots/VideosAndroid: HybridAppAndroid: mWeb ChromeiOS: HybridAppiOS: mWeb SafariMacOS: Chrome / Safari |
|
I'm adding to the QA section that we need to make sure insights is not visible for users not on the beta since that was also changed here |
|
🚧 stitesExpensify has triggered a test Expensify/App build. You can view the workflow run here. |
|
✋ This PR was not deployed to staging yet because QA is ongoing. It will be automatically deployed to staging after the next production release. |
|
🧪🧪 Use the links below to test this adhoc build on Android, iOS, and Web. Happy testing! 🧪🧪
|
|
🚀 Deployed to staging by https://github.com/stitesExpensify in version: 9.5.20-0 🚀
|
|
@suneox, what account can we use here for testing?
|
|
A gmail account should work, I don't think that insights is released to everyone yet |
|
🚀 Deployed to production by https://github.com/jasperhuangg in version: 9.5.20-5 🚀
Bundle Size Analysis (Sentry): |

Explanation of Change
Adds the
TravelApprovalbeta and a new Travel section in Spend with a Trips item (newTRIPSsearch key,type:trip), built the same way as the Expense reports section (design doc, Detailed Implementation → Release 1, steps 0 and 2).Fixed Issues
$ #104404
PROPOSAL:
Tests
Setup: sign in as a workspace admin.
travelApprovalis an explicit-only beta, so turn it on in Troubleshoot → Beta overrides even if the account hasall. If no workspace is set up for Expensify Travel on your backend, set it up from the browser console (replace the policy ID):travelApprovalbeta on and a workspace set up for Expensify Travel, open Spend.type:tripand Trips stays highlighted in the menu.Onyx.merge('policy_<policyID>', {travelSettings: null})) and turn on Travel in More features (isTravelEnabledonly). Verify there's no Travel section.associatedTravelDomainAccountID(Onyx.merge('policy_<policyID>', {travelSettings: {associatedTravelDomainAccountID: '123'}})). Verify the Travel section shows.travelApprovalbeta off in Beta overrides while on Spend. Verify the Travel section disappears without a reload.Offline tests
travelApprovalbeta on and a workspace set up for Expensify Travel.QA Steps
insightsPagebeta enabledtravelApprovalbeta for the account.PR Author Checklist
### Fixed Issuessection aboveTestssectionOffline stepssectionQA stepssectionAvatar, I verified the components usingAvatarare working as expected)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
CleanShot.2026-10-22.at.15.23.08.3.mp4
iOS: mWeb Safari
CleanShot.2026-10-22.at.15.04.18.2.mp4
MacOS: Chrome / Safari
CleanShot.2026-10-22.at.14.48.46.1.mp4
Automation
Travel section with Trips (beta on, workspace set up)
Trips opens
type:tripNo Travel section (workspace not set up)
Beta off hides Travel without reload
Search router "Go to Trips"
Narrow layout