Fix tracking categories not dynamic #42593
Conversation
|
Also lint is failing |
You need to sync to xero using the |
Fixed! |
|
it crashed when I opened the category detail Screen.Recording.2024-05-27.at.13.41.31.mov |
src/pages/workspace/accounting/xero/XeroMapTrackingCategoryConfigurationPage.tsx
Outdated
Show resolved
Hide resolved
src/pages/workspace/accounting/xero/XeroMapTrackingCategoryConfigurationPage.tsx
Outdated
Show resolved
Hide resolved
src/pages/workspace/accounting/xero/XeroMapTrackingCategoryConfigurationPage.tsx
Outdated
Show resolved
Hide resolved
src/pages/workspace/accounting/xero/XeroMapTrackingCategoryConfigurationPage.tsx
Outdated
Show resolved
Hide resolved
|
@lakchote Lint is failing |
Reviewer Checklist
Screenshots/VideosAndroid: NativeAndroid.movAndroid: mWeb ChromemAndroid.moviOS: Nativeios.moviOS: mWeb SafarimSafari.movMacOS: Chrome / Safarichrome.movMacOS: Desktopdesk.mov |
|
Seems we need to re-run the linting again 😄 . But this LGTM 🚀 |
|
@stitesExpensify 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] |
|
🎯 @hungvu193, thanks for reviewing and testing this PR! 🎉 An E/App issue has been created to issue payment here: #42633. |
|
@hungvu193 thank you for the review, lint issue should be fixed now. @rlinoz please review it again when you can, thanks! |
|
🧪🧪 Use the links below to test this adhoc build on Android, iOS, Desktop, and Web. Happy testing! 🧪🧪 |
rlinoz
left a comment
There was a problem hiding this comment.
Worked on the adhoc build 😄
| }; | ||
|
|
||
| /** | ||
| * Fetches the category object from the xero.data.trackingCategories based on the category name. |
There was a problem hiding this comment.
NAB why remove the comment?
There was a problem hiding this comment.
I've removed it since it was not relevant anymore as it's been replaced by getTrackingCategories().
And as getTrackingCategories() is self-explaining, I felt like it was not necessary to add a comment for it.
|
🚀 Deployed to staging by https://github.com/lakchote in version: 1.4.77-11 🚀
|
|
🚀 Deployed to staging by https://github.com/lakchote in version: 1.4.77-11 🚀
|
|
🚀 Deployed to production by https://github.com/mountiny in version: 1.4.78-5 🚀
|
| const updateMapping = useCallback( | ||
| (option: {value: string}) => { | ||
| if (option.value !== category?.value) { | ||
| if (option.value !== categoryName) { |

Details
Related to https://expensify.slack.com/archives/C036QM0SLJK/p1716541958011089?thread_ts=1716238514.357639&cid=C036QM0SLJK
Fixed Issues
$
PROPOSAL:
Tests
On a Xero account change your tracking categories to very specific names (like: Pizza toppings for example)
Import > Tracking categoriesScreen.Recording.2024-05-24.at.15.20.51.mov
Offline tests
NA
QA Steps
Same as in tests
PR Author Checklist
### Fixed Issuessection aboveTestssectionOffline stepssectionQA stepssectiontoggleReportand notonIconClick)myBool && <MyComponent />.src/languages/*files and using the translation methodWaiting for Copylabel for a copy review on the original GH to get the correct copy.STYLE.md) were followedAvatar, I verified the components usingAvatarare working as expected)StyleUtils.getBackgroundAndBorderStyle(theme.componentBG))Avataris modified, I verified thatAvataris working as expected in all cases)Designlabel so 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
Android: mWeb Chrome
iOS: Native
iOS: mWeb Safari
MacOS: Chrome / Safari
Screen.Recording.2024-05-24.at.15.20.51.mov
MacOS: Desktop