Change accounting section into multiple sections#82030
Change accounting section into multiple sections#82030carlosmiceli merged 21 commits intoExpensify:mainfrom
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✅ Changes either increased or maintained existing code coverage, great job!
|
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 95e174cf8c
ℹ️ 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".
|
@ShridharGoel Looking good from initial tests! I'm requesting access to a commercial card feed on Slack so I can test that the results display as expected. Can you fix the TS checks in the meantime? |
Reviewer Checklist
Screenshots/VideosAndroid: HybridAppandroid-app-2026-02-25_11.14.43.mp4Android: mWeb Chromeandroid-chrome-2026-02-25_11.18.11.mp4iOS: HybridAppios-app-2026-02-25_10.51.44.mp4iOS: mWeb Safariios-safari-2026-02-25_10.59.04.mp4MacOS: Chrome / Safaridesktop-chrome-2026-02-25_11.00.28.mp4 |
|
@jjcoffee TS checks are failing due to missing translations. @JmillsExpensify @carlosmiceli Can you run the translations script? |
|
@ShridharGoel There's also this: |
src/components/Search/index.tsx
Outdated
| const {defaultCardFeed} = useCardFeedsForDisplay(); | ||
| const suggestedSearches = useMemo(() => getSuggestedSearches(accountID, defaultCardFeed?.id), [defaultCardFeed?.id, accountID]); | ||
| const searchKey = useMemo(() => Object.values(suggestedSearches).find((search) => search.similarSearchHash === similarSearchHash)?.key, [suggestedSearches, similarSearchHash]); | ||
| const searchKey = useMemo<SearchKey | undefined>(() => { |
There was a problem hiding this comment.
@ShridharGoel This change seems unrelated to the PR, can you explain why it's needed?
There was a problem hiding this comment.
Yes, this should not be needed now. It was added when I was trying to ensure that all statement feed variants don't get treated as the same, and switching the variants works properly. But then that was handled via getActiveSearchItemIndex.
There was a problem hiding this comment.
The changes which had added getActiveSearchItemIndex have been reverted. So added a similar logic again.
|
@JmillsExpensify Thanks, can you start an adhoc build and check the behaviour matches the expectation? |
|
🚧 @JmillsExpensify has triggered a test Expensify/App build. You can view the workflow run here. |
|
Done! I'll get to this tomorrow though, ran out of time today. |
This comment has been minimized.
This comment has been minimized.
|
Thanks @JmillsExpensify! Were you able to confirm that the correct data shows in each category as well? Using a test card feed I don't see anything show up under |
|
Let me double check quickly. I honestly can't recall. |
|
Yes, I was able to get feeds to show up. I think it's likely a UX issue (we default to one feed, so if it's not the right one then you need to select alt feeds), or it's because we're currently showing feeds on New Expensify that we shouldn't (because they're no longer active. |
|
So for that specific consideration, no issues from me. |
|
Will finish screenshots tomorrow, having trouble with my Mac instance today. |
|
@carlosmiceli on to you! |
|
🚧 @carlosmiceli 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/carlosmiceli in version: 9.3.26-0 🚀
|
|
@ShridharGoel just noticed an issue. We are using the same card icon for both
|
|
Can you put in a quick fix please? |
|
🚀 Deployed to production by https://github.com/puneetlath in version: 9.3.26-8 🚀
|


Explanation of Change
Change accounting section into multiple sections.
Fixed Issues
$ #81292
PROPOSAL: #81292 (comment)
Tests
Precondition: Have different types of card feeds and Expensify cards.
Open the app and go to Reports.
Confirm you see these sections:
Monthly accrual
Reconciliation
Click each menu item one by one.
After each click, confirm results refresh and the selected item becomes highlighted.
If a workspace has only cash, then Monthly accrual will only show Unapproved cash.
Similarly, for Card statements, Expensify Card and Reimbursements: Those sub-items will only appear, including the entire section, if the underlying features are enabled.
Offline tests
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
Android: Native
Screen.Recording.2026-02-11.at.12.10.30.AM.mov
Android: mWeb Chrome
Screen.Recording.2026-02-11.at.12.07.27.AM.mov
iOS: Native
Screen.Recording.2026-02-11.at.12.04.27.AM.mov
iOS: mWeb Safari
Screen.Recording.2026-02-11.at.12.05.08.AM.mov
MacOS: Chrome / Safari
Screen.Recording.2026-02-10.at.11.51.39.PM.mov