Fix/import categories correct count#81548
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 |
|
@abzokhattab 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] |
8311061 to
e71601d
Compare
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 831106118c
ℹ️ 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".
|
There’s an issue with the Prettier pipeline failing locally. Could you run |
|
I think we should also add test cases at the |
|
Oops was trying to trigger workflow with a review comment |
|
Please let me know when it's ready for review @ahmedelshaikh20 |
grgia
left a comment
There was a problem hiding this comment.
@ahmedelshaikh20 would you please update this PR/merge main?
|
@grgia I am working on it right now. |
Codecov Report✅ Changes either increased or maintained existing code coverage, great job!
|
|
@grgia Can you help generating the translations for other languages as per this comment. #81548 (comment) |
|
@grgia the Pr is ready |
|
@ahmedelshaikh20 would you fix conflicts? Thanks for your patience, I've been working on a customer fire. |
7ea558f to
b7d583b
Compare
|
|
b7d583b to
7ea558f
Compare
Made-with: Cursor
05a8e5f to
d0b15ae
Compare
|
@ahmedelshaikh20 Could you please merge to main one more time to retrigger the pipeline as the performance test is failing |
cb51085 to
6f66b89
Compare
|
Hello @grgia , the Pr is ready. |
|
🚧 @grgia 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/grgia in version: 9.3.52-0 🚀
Bundle Size Analysis (Sentry): |
|
I reviewed the PR changes against the help site articles and no documentation updates are needed. The two relevant articles are:
Both describe the CSV import workflow steps but neither documents the specific success message text. This PR only changes the toast/confirmation message shown after import (from total count to accurate added/updated counts), which is not referenced in any help site article. |
|
🚀 Deployed to production by https://github.com/roryabraham in version: 9.3.52-9 🚀
|
Explanation of Change
This change fixes an incorrect success message shown after importing a categories CSV.
Previously, the import flow displayed the total number of categories found in the CSV, even when most of those categories already existed in the workspace. This resulted in misleading messages such as “21 categories have been added” when only 2 new categories were actually created.
The update aligns the categories import behavior with the existing members import logic by:
importPolicyCategoriesaddedandupdatedcountsupdateImportSpreadsheetDatato use these counts instead of the CSV lengthFixed Issues
$ #79217
PROPOSAL: $#79217 (comment)
Tests
Offline tests
same
QA Steps
same
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
Testing_Android.webm
Android: mWeb Chrome
Testing_Android_Web.webm
iOS: Native
Simulator.Screen.Recording.-.iPhone.15.Pro.-.2026-02-05.at.13.58.30.mp4
iOS: mWeb Safari
Testing_IOS_WEB.mp4
MacOS: Chrome / Safari
Testing_Safari.mp4