-
Notifications
You must be signed in to change notification settings - Fork 3k
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
Fix tracking categories not dynamic #42593
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 |
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.
@lakchote I left a comment about optionsList
in XeroMapTrackingCategoryConfigurationPage
. Would you mind to have a look at it? 😄
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! 🧪🧪 |
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.
Worked on the adhoc build 😄
@@ -12,26 +12,18 @@ const getXeroSetupLink = (policyID: string) => { | |||
return commandURL + new URLSearchParams(params).toString(); | |||
}; | |||
|
|||
/** | |||
* Fetches the category object from the xero.data.trackingCategories based on the category name. |
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.
NAB why remove the comment?
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.
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) { |
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.
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 categories
Screen.Recording.2024-05-24.at.15.20.51.mov
Offline tests
NA
QA Steps
Same as in tests
PR Author Checklist
### Fixed Issues
section aboveTests
sectionOffline steps
sectionQA steps
sectiontoggleReport
and notonIconClick
)myBool && <MyComponent />
.src/languages/*
files and using the translation methodWaiting for Copy
label for a copy review on the original GH to get the correct copy.STYLE.md
) were followedAvatar
, I verified the components usingAvatar
are working as expected)StyleUtils.getBackgroundAndBorderStyle(theme.componentBG)
)Avatar
is modified, I verified thatAvatar
is working as expected in all cases)Design
label so the design team can review the changes.ScrollView
component to make it scrollable when more elements are added to the page.main
branch was merged into this PR after a review, I tested again and verified the outcome was still expected according to theTest
steps.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