-
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
Add view transactions cta to Expensify card and company cards page #55095
Changes from 14 commits
cc64293
e474137
936ddc7
4bda948
0f925fb
2b5511c
90ea140
ab09dbb
3453dca
6e9621c
4a800f6
84fbd33
d7e8ca2
bbb8385
3238b9b
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -621,14 +621,22 @@ function buildCannedSearchQuery({ | |
type = CONST.SEARCH.DATA_TYPES.EXPENSE, | ||
status = CONST.SEARCH.STATUS.EXPENSE.ALL, | ||
policyID, | ||
cardID, | ||
}: { | ||
type?: SearchDataTypes; | ||
status?: SearchStatus; | ||
policyID?: string; | ||
cardID?: string; | ||
} = {}): SearchQueryString { | ||
const queryString = policyID | ||
? `type:${type} status:${Array.isArray(status) ? status.join(',') : status} policyID:${policyID}` | ||
: `type:${type} status:${Array.isArray(status) ? status.join(',') : status}`; | ||
let queryString = `type:${type} status:${Array.isArray(status) ? status.join(',') : status}`; | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. did you try to mock some transaction data and see if we get the search results ? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This is the same as before. I haven't tested this part. Did you notice any issues? |
||
|
||
if (policyID) { | ||
queryString = `type:${type} status:${Array.isArray(status) ? status.join(',') : status} policyID:${policyID}`; | ||
} | ||
|
||
if (cardID) { | ||
queryString = `type:${type} status:${Array.isArray(status) ? status.join(',') : status} expense-type:card card:${cardID}`; | ||
} | ||
|
||
// Parse the query to fill all default query fields with values | ||
const normalizedQueryJSON = buildSearchQueryJSON(queryString); | ||
|
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.
Did we confirm this translation ?
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.
Yes.