[GHG-654] Added mentions on sidebar buttons / rhs bar#775
[GHG-654] Added mentions on sidebar buttons / rhs bar#775cyrusjc wants to merge 8 commits intomattermost:masterfrom
Conversation
| style={button} | ||
| > | ||
| <i className='fa fa-comment-o'/> | ||
| {' ' + mentions.length} |
There was a problem hiding this comment.
I'm leaning towards not showing the number of mentions.
There are users who are keen on keeping their inboxes empty. Given that they have no control over this number and can't reduce it, I wonder if we should omit the number. The button would still allow the user to check in on their conversation but would no longer nag them.
There was a problem hiding this comment.
That's a good point. I think it makes sense to remove the number. Would we then want to change the ordering of the mentions icon? I was thinking since it would be just an icon we can move it next to the refresh button
There was a problem hiding this comment.
@hanzei Is it possible to "remove" mentions? Maybe unsubscribing to the issue/PR does this?
|
@cyrusjc There are some merge conflicts to resolve due to a recent typescript PR merge. Can you please take a look at them? Thanks for your work on this!! 😄 |
mickmister
left a comment
There was a problem hiding this comment.
LGTM, nice work @cyrusjc 👍 Just one comment for discussion
|
This PR has been automatically labelled "stale" because it hasn't had recent activity. |
arush-vashishtha
left a comment
There was a problem hiding this comment.
This PR has been tested for the "mentions" feature in the RHS along with setting the organizational lock. LGTM
|
@cyrusjc Can you please resolve the conflicts on this PR? |
|
@cyrusjc Are you still willling to work on this PR? |
Yea I'll take a look over the weekend |
64ffb6d to
a1dd6ab
Compare
a1dd6ab to
520b6e2
Compare
|
This PR has been automatically labelled "stale" because it hasn't had recent activity. |
…ub into cyrusjc/adding-mentions-to-sidebar
|
/update-branch |
|
Error trying to update the PR. |
server/plugin/graphql/lhs_request.go
Outdated
| baseOpenPR := fmt.Sprintf("author:%s is:pr is:%s archived:false", username, githubv4.PullRequestStateOpen) | ||
| baseReviewPR := fmt.Sprintf("review-requested:%s is:pr is:%s archived:false", username, githubv4.PullRequestStateOpen) | ||
| baseAssignee := fmt.Sprintf("assignee:%s is:%s archived:false", username, githubv4.PullRequestStateOpen) | ||
| baseMentions := fmt.Sprintf("mentions:%s is:%s is:pr archived:false", c.username, githubv4.PullRequestStateOpen) |
There was a problem hiding this comment.
Shouldn't the username passed to the method be used here?
| baseMentions := fmt.Sprintf("mentions:%s is:%s is:pr archived:false", c.username, githubv4.PullRequestStateOpen) | |
| baseMentions := fmt.Sprintf("mentions:%s is:%s is:pr archived:false", username, githubv4.PullRequestStateOpen) |


Closes #654
Summary:
Added mention icon and associated information in the RHS bar for the mentions in PRs as suggested in the issue.
Changes looks like:


