Skip to content

Commit

Permalink
Merge pull request Expensify#22734 from hungvu193/fix-21565
Browse files Browse the repository at this point in the history
Allow user to search for tasks
  • Loading branch information
Beamanator authored Jul 18, 2023
2 parents 88b9416 + 9edad92 commit d05cb4a
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/components/OptionRow.js
Original file line number Diff line number Diff line change
Expand Up @@ -218,7 +218,11 @@ class OptionRow extends Component {
numberOfLines={1}
textStyles={displayNameStyle}
shouldUseFullTitle={
this.props.option.isChatRoom || this.props.option.isPolicyExpenseChat || this.props.option.isMoneyRequestReport || this.props.option.isThread
this.props.option.isChatRoom ||
this.props.option.isPolicyExpenseChat ||
this.props.option.isMoneyRequestReport ||
this.props.option.isThread ||
this.props.option.isTaskReport
}
/>
{this.props.option.alternateText ? (
Expand Down
3 changes: 3 additions & 0 deletions src/libs/OptionsListUtils.js
Original file line number Diff line number Diff line change
Expand Up @@ -519,6 +519,8 @@ function createOption(accountIDs, personalDetails, report, reportActions = {}, {
result.alternateText = showChatPreviewLine && !forcePolicyNamePreview && lastMessageText ? lastMessageText : subtitle;
} else if (result.isMoneyRequestReport) {
result.alternateText = lastMessageTextFromReport.length > 0 ? lastMessageText : Localize.translate(preferredLocale, 'report.noActivityYet');
} else if (result.isTaskReport) {
result.alternateText = showChatPreviewLine && lastMessageText ? lastMessageTextFromReport : Localize.translate(preferredLocale, 'report.noActivityYet');
} else {
result.alternateText = showChatPreviewLine && lastMessageText ? lastMessageText : LocalePhoneNumber.formatPhoneNumber(personalDetail.login);
}
Expand Down Expand Up @@ -889,6 +891,7 @@ function getSearchOptions(reports, personalDetails, searchValue = '', betas) {
includeOwnedWorkspaceChats: true,
includeThreads: true,
includeMoneyRequests: true,
includeTasks: true,
});
}

Expand Down

0 comments on commit d05cb4a

Please sign in to comment.