Skip to content

Commit

Permalink
Merge branch 'main' into fix/22691
Browse files Browse the repository at this point in the history
  • Loading branch information
dukenv0307 committed Aug 2, 2023
2 parents cf90c13 + 751d797 commit b0c21aa
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
9 changes: 6 additions & 3 deletions src/libs/ReportUtils.js
Original file line number Diff line number Diff line change
Expand Up @@ -1145,6 +1145,10 @@ function isWaitingForIOUActionFromCurrentUser(report, allReportsDict = null) {
return false;
}

function isWaitingForTaskCompleteFromAssignee(report) {
return isTaskReport(report) && isTaskAssignee(report) && isOpenTaskReport(report);
}

/**
* @param {Object} report
* @param {Object} allReportsDict
Expand Down Expand Up @@ -2324,9 +2328,8 @@ function shouldReportBeInOptionList(report, currentReportId, isInGSDMode, iouRep
return true;
}

// Include reports if they have a draft or have an outstanding IOU
// These are always relevant to the user no matter what view mode the user prefers
if (report.hasDraft || isWaitingForIOUActionFromCurrentUser(report, iouReports)) {
// Include reports that are relevant to the user in any view mode. Criteria include having a draft, having an outstanding IOU, or being assigned to an open task.
if (report.hasDraft || isWaitingForIOUActionFromCurrentUser(report, iouReports) || isWaitingForTaskCompleteFromAssignee(report)) {
return true;
}

Expand Down
2 changes: 1 addition & 1 deletion src/pages/home/report/LinkPreviewer.js
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ function LinkPreviewer(props) {
{!_.isEmpty(title) && (
<TextLink
fontSize={variables.fontSizeNormal}
style={[styles.pv2, StyleUtils.getTextColorStyle(colors.blueLinkPreview)]}
style={[styles.mv2, StyleUtils.getTextColorStyle(colors.blueLinkPreview), styles.alignSelfStart]}
href={url}
>
{title}
Expand Down

0 comments on commit b0c21aa

Please sign in to comment.