-
Notifications
You must be signed in to change notification settings - Fork 3.1k
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Show green dot for uncompleted tasks assigned to current user #20808
Conversation
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.
Few initial changes
Reviewer Checklist
Screenshots/VideosWebMobile Web - ChromeMobile Web - SafariDesktopiOSAndroid |
Co-authored-by: Georgia Monahan <38015950+grgia@users.noreply.github.com>
result.isTaskCompleted = ReportUtils.isTaskCompleted(report); | ||
result.isTaskAssignee = ReportUtils.isTaskAssignee(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.
do you think we should add defaults values for these above?
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 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 comment
The reason will be displayed to describe this comment to others. Learn more.
Hi ✋ Coming from #22149
We are using the managerEmail
to check the task assignee and show the green button if it's isTaskAssignee.
Still, in the sidebar links selector, we didn't specify the property managerEmail
to the Onyx selector function, making the sidebar not re-rendering on the managerEmail
change.
working on testing |
c6128c8
to
5597e7f
Compare
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.
Approving, going to get a C+ reviewer
This comment was marked as outdated.
This comment was marked as outdated.
I'm afraid they won't be able to test the changes from the backend though. So only optimistically. |
Actually, I see this needs the Auth PR changes so nvm I can run through checklist in a bit |
I think there are unrelated bugs with the assignee and accountID. This does work but for some reason it doesn't look like the assignee shows up |
Merging so we can get this in before the freeze |
✋ This PR was not deployed to staging yet because QA is ongoing. It will be automatically deployed to staging after the next production release. |
🚀 Deployed to staging by https://github.com/thienlnam in version: 1.3.29-0 🚀
|
🚀 Deployed to production by https://github.com/luacmartins in version: 1.3.29-11 🚀
|
!hasBrickError && | ||
(optionItem.isUnreadWithMention || | ||
(optionItem.hasOutstandingIOU && !optionItem.isIOUReportOwner) || | ||
(optionItem.isTaskReport && optionItem.isTaskAssignee && !optionItem.isTaskCompleted)); |
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
Details
Adds a green dot next to uncompleted tasks in the LHN that are assigned for the current user. The green dot will not appear for the user who created and assigned the tasks. (This might be subject to change, I'm not sure yet if we should only show the green dot to the assignee)
Fixed Issues
$ polish of #18510
Tests
Please checkout this PR in Auth first, compile and
sudo service auth restart
before testing.Offline tests
QA Steps
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)/** comment above it */
this
properly so there are no scoping issues (i.e. foronClick={this.submit}
the methodthis.submit
should be bound tothis
in the constructor)this
are necessary to be bound (i.e. avoidthis.submit = this.submit.bind(this);
ifthis.submit
is never passed to a component event handler likeonClick
)StyleUtils.getBackgroundAndBorderStyle(themeColors.componentBG)
)Avatar
is modified, I verified thatAvatar
is working as expected in all cases)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
Web
Screen.Recording.2023-06-15.at.12.45.18.mov
Mobile Web - Chrome
Mobile Web - Safari
Desktop
iOS
Android