-
Notifications
You must be signed in to change notification settings - Fork 2.7k
[MM-24027] Add profile pop-over when clicking a user in the View/Manage members modals #5302
Conversation
Test server destroyed |
Creating a new SpinWick test server using Mattermost Cloud. |
Mattermost test server created! 🎉 Access here: https://mattermost-webapp-pr-5302.test.mattermost.cloud
|
One issue I'll need to fix, the Edit: Just committed a fix for this. I'm using |
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.
@shred86 sweet! One issue I found is that clicking "Send Message" in the profile pop-over should clode the view/manage members modal
@esethna Hm, I'm trying to duplicate this but not sure how. If I click "Send Message" from the pop-over profile, it opens a direct message window thus "closing" everything. Did you perhaps mean the "Add to channel" option? If so, would the desired behavior be to close the view/manage member modal? I guess I could see it being useful to keep open, but I'll obviously try to figure out how to close it if that's not the desired behavior. :) Edit: This also applies for "Edit Account Settings", definitely want to close the view/manage members modal here.... or do we? :) |
Here's an example of the repro @shred86 : Thanks for pointing out those other cases. Given you are taking action on another modal in the case of "Account Settings" and "Add to channel", we should avoid having modals over modals, hence closing the original view members modal when those actions are taken would be the expected UX |
Ah, yeah that's not good! That's strange I'm not seeing the same behavior in Safari or Chrome. I am trying to figure out how to close the View/Manage Members modal though. |
Some additional issues identified and fixed: the |
This is the best solution I can come up with right now for being able to close the View/Manage Members modal. I'm passing the There is one known issue I haven't quite figured out but when you load up the web app for the first time (i.e. refresh the browser), the first time you select "Send Message" from the popover profile when accessed from the View/Manage Members modal, it throws this error:
It only occurs the first time when clicking "Send Message" and only from the popover profile when accessed from the View/Manage Members modal. Edit: Just realized this is also a factor from |
After doing some more investigating, I think I'm understanding this a bit better and where the potential issue is. How I'm currently closing the View/Manage Team and Members modal works (passing When the View/Manage Team and Members modal is accessed through the So I see two options:
The second option seems "cleaner", but one issue still remains which is I would have to call Would be nice if there was a |
Major changes made with the last commit:
There is a lot of commented out code in popover_list_members.jsx for ease of review. Some of it is based on the new I'm holding off on updating the tests for now since depending on whether or not I'm able to remove the code mentioned above in popover_list_members.jsx will determine if some changes to the tests need to be made. Edit: I’ll also take care of PR #13469 with this PR since I’m working on the popover_list_members module anyways. |
@shred86 I would suggest removing the comments because as a PR reviewer I can see the removed lines. The comments just end up looking like new lines in the diff 😃 |
@bradjcoughlin Makes sense - I probably shouldn't have even made the commit yet. I basically wanted to know if those commented out functions are even used and didn't want to delete them quite yet since I wasn't sure, but it's easy enough to copy and paste them back in! :) I can make a new commit with the commented stuff removed. |
0f7a1e2
to
ff3b670
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.
Thank you @shred86
Tested, looks good to merge.
- Verified users are able to view user profile pop-over when clicking the profile picture on manage members modal. same behavior as when clicking on a profile picture or username from a post.
- Verified all links on the popover work as expected (send message, add to channel, email, @ mention and edit acct. settings for current user)
@jgilliam17 Great catch! I found the issue. Since we're using the |
New commit detected. SpinWick will upgrade if the updated docker image is available. |
Test server creation failed. See the logs for more information. |
Mattermost test server updated with git commit Access here: https://mattermost-webapp-pr-5302.test.mattermost.cloud |
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.
Thank you @shred86 for a quick fix and thank you for adding bots to the list, I totally missed that.
Re-tested - looks good.
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.
/update-branch |
Test server destroyed |
1 similar comment
Test server destroyed |
Summary
Added the ability to view user profile pop-over when clicking the profile picture or username from the view/manage members modal. Mimics the behavior when clicking a profile picture or username from a post.
Tested on Chrome 81.0.4044.92, Safari 13.1 (15609.1.20.111.8) and the Mattermost web app 4.4.0 (4.4.0.5682).
Ticket Link
JIRA ticket: MM-24027
Fixes mattermost/mattermost#14266
Screenshots