Skip to content
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

Several Modals seem to randomly be in the open state after the webapp has been left idle #120

Open
DHaussermann opened this issue Nov 16, 2022 · 8 comments
Assignees
Labels
Type/Bug Something isn't working

Comments

@DHaussermann
Copy link

I'm seeing an odd behavior with Service Now. After I have left my local Mattermost instance idle for some time (maybe 2 hours or so), when I return to the browser tab, I see several modals open and their overlays showing for no apparent reason.

Screen.Recording.2022-11-16.at.4.49.48.PM.mov

I'm working to see if there is any action that is causing this.

image
image
image
image

In the image set above you can see that 4 modals where open. I have placed them chronologically

manojmalik20 added a commit that referenced this issue Nov 18, 2022
Changed the structure of webapp by removing all the reducers for modals and creating one reducer for global modal
Modified all the required containers and components to use the new global modal state
Made some new types and refactored all the types to move to new files
ayusht2810 added a commit that referenced this issue Nov 23, 2022
[MI-2372] Fixed issue #115, #117, #120 and add some enhancements
@ayusht2810
Copy link
Contributor

This issue is fixed in the latest release v2.3.1. Please confirm and close this issue. @DHaussermann

@DHaussermann
Copy link
Author

@ayusht2810 Are you certain this is resolved?
image

This seems like something we should fix before release if possible.

Note @mkdbns you can reach out to me if we need more concrete repro steps. This does not seem to happen with several modal as it did before but I can repro it for 1 modal in the other client.

@hanzei hanzei added the Type/Bug Something isn't working label Dec 1, 2022
@manojmalik20
Copy link
Contributor

@hanzei @DHaussermann We asked a question regarding this issue on the community - https://community.mattermost.com/core/pl/18ibezsxbindirhzb1xomdau4y. As per the suggestion there, we are planning to implement a custom post for all the notifications and the "Shared by" post. We are planning to make it look like Mattermost slack attachment so that it looks the same but the handling of buttons will be different. That will fix this issue.
Also, we will add the logic that those posts will use slack attachments to render in the mobile app so that mobile app users can also see all the posts but in the mobile app, the post will not contain any buttons as the mobile app doesn't support opening custom modals.

Should we go ahead with this or do you have some concerns/suggestions regarding this?

@hanzei
Copy link
Contributor

hanzei commented Dec 9, 2022

Does that mean this bug only happens when a user is connected with more the one client?

@manojmalik20
Copy link
Contributor

Yes.

@ayusht2810
Copy link
Contributor

@DHaussermann @hanzei should we proceed with this approach?

@hanzei
Copy link
Contributor

hanzei commented Dec 13, 2022

Sound good to me. But I would consider it an edge case. Other plugins suffer the same issue, e.g. GitHub.

@asatkinson What do you think?

@asatkinson
Copy link

I think we decided that this was worth fixing, but not worth holding release up over. For Phase 3 this will be fixed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Type/Bug Something isn't working
Projects
None yet
Development

No branches or pull requests

5 participants