-
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
Show green dot for uncompleted tasks assigned to current user #20808
Changes from all commits
f12b390
4f22290
0421d53
d09672d
44db560
7cef0a7
90f06a0
76de934
ddb17f8
31594b7
5597e7f
ccd79e8
286c623
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 |
---|---|---|
|
@@ -183,7 +183,7 @@ function getOrderedReportIDs(reportIDFromRoute) { | |
return; | ||
} | ||
|
||
if (ReportUtils.isTaskReport(report) && report.stateNum !== CONST.REPORT.STATE.OPEN && report.statusNum !== CONST.REPORT.STATUS.OPEN) { | ||
if (ReportUtils.isTaskReport(report) && ReportUtils.isTaskCompleted(report)) { | ||
archivedReports.push(report); | ||
return; | ||
} | ||
|
@@ -266,6 +266,10 @@ function getOptionData(reportID) { | |
result.isThread = ReportUtils.isThread(report); | ||
result.isChatRoom = ReportUtils.isChatRoom(report); | ||
result.isTaskReport = ReportUtils.isTaskReport(report); | ||
if (result.isTaskReport) { | ||
result.isTaskCompleted = ReportUtils.isTaskCompleted(report); | ||
result.isTaskAssignee = ReportUtils.isTaskAssignee(report); | ||
Comment on lines
+270
to
+271
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. do you think we should add defaults values for these above? 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. We only grab these if the report is a task, so I think they'll either be true or false. 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. Hi ✋ Coming from #22149 We are using the |
||
} | ||
result.isArchivedRoom = ReportUtils.isArchivedRoom(report); | ||
result.isPolicyExpenseChat = ReportUtils.isPolicyExpenseChat(report); | ||
result.isMoneyRequestReport = ReportUtils.isMoneyRequestReport(report); | ||
|
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.
We forgot to take into account the task cancelled state. This later caused #27805