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

[MM-52207] Grammarly plugin not detected in Mattermost desktop #24081

Open
wants to merge 6 commits into
base: master
Choose a base branch
from

Conversation

hasancankucuk
Copy link

Summary

The aria-label attribute has been modified, and it is impacting the text-area property. Grammarly couldn't detect the issue since the text-area was affected.

Ticket Link

Fixes: #22970
Jira: https://mattermost.atlassian.net/browse/MM-52207

Screenshots

|before | after |

Release Note

NONE

@mm-cloud-bot mm-cloud-bot added the release-note-none Denotes a PR that doesn't merit a release note. label Jul 20, 2023
@mattermost-build
Copy link
Contributor

Hello @hasancankucuk,

Thanks for your pull request! A Core Committer will review your pull request soon. For code contributions, you can learn more about the review process here.

Comment on lines 465 to 468
<label id="advancedTextEditorCellAriaLabel" style={{ display: "none", visibility: "hidden", height: 0 }}>{Utils.localizeMessage(
'channelView.login.successfull',
'Login Successfull',
) + ' ' + ariaLabelMessageInput}</label>
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I am not sure if this is exactly how this issue is supposed to be solved, honestly, I don't have the solution either. Please note that the issue is currently doesn't appear to be in Mattermost run in either Chrome, Firefox, but in Desktop app only.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@M-ZubairAhmed After testing the changes I made to Mattermost on MacOS, it appears that the problem has been successfully resolved. I have attached screenshots for reference. The reason behind this solution is that when aria-label is added, Grammarly treats the textarea as a string, making it unable to detect. To address this issue, I included a label to prevent the textarea from being treated as a string, ensuring both accessibility is maintained and Grammarly detects it correctly. I conducted comprehensive testing using VoiceOver and Grammarly version 1.30.2.0 to validate the improvements

**
| before_desktop | after_desktop |**

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@hasancankucuk i see but i am curious why it only happens on desktop app and not not webapp. Because if Grammarly is does able to identify in webapp, ideally it should do the same for electron as well. Thats being said I would like to explore if this issue is just electron specific and if there is electron specific apis we would like to see to make Grammarly work over there.

@M-ZubairAhmed
Copy link
Member

@hasancankucuk i have updated the original issue can you please check

@devinbinnie devinbinnie added the Setup Cloud Test Server Setup an on-prem test server label Jul 20, 2023
@mm-cloud-bot
Copy link

Creating a new SpinWick test server using Mattermost Cloud.

@mm-cloud-bot
Copy link

Enterprise Edition Image not available in the 30 minutes timeframe, checking the Team Edition Image and if available will use that.

@mm-cloud-bot
Copy link

Test server creation failed. See the logs for more information.

@hasancankucuk
Copy link
Author

@M-ZubairAhmed While looking for another solution to the problem, I found useful information in React's official documentation. The accessibility information provided by React matches the solution I made. Here is the link for your reference if you want to have a look.

telegram-cloud-photo-size-4-5949373043719650390-y

Documentation Link: https://react.dev/reference/react-dom/components/textarea

@M-ZubairAhmed M-ZubairAhmed requested review from hmhealey and removed request for M-ZubairAhmed August 9, 2023 07:27
@hmhealey hmhealey added 2: Dev Review Requires review by a developer 3: QA Review Requires review by a QA tester. May occur at the same time as Dev Review EETests labels Aug 15, 2023
@mattermost-build
Copy link
Contributor

E2E tests not automatically triggered, because the PR is not in a mergeable state. Please update the branch with the base branch and resolve outstanding conflicts.

Copy link
Member

@hmhealey hmhealey left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the PR! I haven't been able to test the PR yet since I don't have Grammarly installed myself, but I do have some feedback first before I can get someone else to test this.

In addition to my comments on the code, could you also ensure the unit tests for the web app run by running npm test -w channels from the webapp folder? Based on the CI results, those are currently failing because the snapshots of the AutosizeTextarea component have changed

@mattermost-build
Copy link
Contributor

This PR has been automatically labelled "stale" because it hasn't had recent activity.
A core team member will check in on the status of the PR to help with questions.
Thank you for your contribution!

@devinbinnie devinbinnie added Setup Cloud Test Server Setup an on-prem test server and removed Lifecycle/1:stale Setup Cloud Test Server Setup an on-prem test server labels Aug 28, 2023
@mm-cloud-bot
Copy link

Creating a new SpinWick test server using Mattermost Cloud.

@mm-cloud-bot
Copy link

Enterprise Edition Image not available in the 30 minutes timeframe, checking the Team Edition Image and if available will use that.

@devinbinnie
Copy link
Member

/update-branch

@devinbinnie devinbinnie removed the Setup Cloud Test Server Setup an on-prem test server label Aug 28, 2023
@mm-cloud-bot
Copy link

Test server creation failed. See the logs for more information.

@yasserfaraazkhan
Copy link
Contributor

/e2e-test

@mattermost-build
Copy link
Contributor

Successfully triggered E2E testing!
GitLab pipeline | Test dashboard

Comment on lines 465 to 468
<label id="advancedTextEditorCellAriaLabel" style={{ display: "none", visibility: "hidden", height: 0 }}>{Utils.localizeMessage(
'channelView.login.successfull',
'Login Successfull',
) + ' ' + ariaLabelMessageInput}</label>
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@hasancankucuk i see but i am curious why it only happens on desktop app and not not webapp. Because if Grammarly is does able to identify in webapp, ideally it should do the same for electron as well. Thats being said I would like to explore if this issue is just electron specific and if there is electron specific apis we would like to see to make Grammarly work over there.

Comment on lines 430 to 433
{Utils.localizeMessage(
'channelView.login.successfull',
'Login Successfull',
) + ' ' + ariaLabelMessageInput}</label>
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

please use react intl methods here

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't think it's a problem specific to the desktop application. When I tested it on the master branch in Safari, it still couldn't detect Grammarly Mattermost as in the screenshots.

Ekran Resmi 2023-10-24 23 18 09 Ekran Resmi 2023-10-24 23 18 13 Ekran Resmi 2023-10-24 23 17 13 Ekran Resmi 2023-10-24 23 17 05

@mm-cloud-bot
Copy link

New commit detected. SpinWick will upgrade if the updated docker image is available.

@mm-cloud-bot
Copy link

Test server creation failed. See the logs for more information.

@yasserfaraazkhan yasserfaraazkhan removed the Setup Cloud Test Server Setup an on-prem test server label Oct 31, 2023
The aria-label attribute has been modified, and it is impacting the text-area property. Grammarly couldn't detect the issue since the text-area was affected.
@hasancankucuk hasancankucuk force-pushed the MM-52207-grammarly-plugin-detection-fix branch from 7421dba to 35e6b72 Compare December 5, 2023 17:28
@hasancankucuk
Copy link
Author

@devinbinnie Grammarly is now detecting Mattermost Desktop v5.5.1 both local build and the dmg downloaded from https://docs.mattermost.com/collaborate/install-desktop-app.html . But on the App Store version, it's still not working. On Grammarly's support page, there's info about this situation. I've also checked Mattermost Desktop's electron version and it currently uses version 26.2.1. I think the issue and pull request can be closed. I'm also attaching a screenshot and a link to Grammarly's support page.

https://support.grammarly.com/hc/en-us/articles/4428282986893-Grammarly-for-Mac-doesn-t-work-in-certain-apps-for-Mac
image

@devinbinnie
Copy link
Member

@devinbinnie Grammarly is now detecting Mattermost Desktop v5.5.1 both local build and the dmg downloaded from https://docs.mattermost.com/collaborate/install-desktop-app.html . But on the App Store version, it's still not working. On Grammarly's support page, there's info about this situation. I've also checked Mattermost Desktop's electron version and it currently uses version 26.2.1. I think the issue and pull request can be closed. I'm also attaching a screenshot and a link to Grammarly's support page.

https://support.grammarly.com/hc/en-us/articles/4428282986893-Grammarly-for-Mac-doesn-t-work-in-certain-apps-for-Mac image

Y

@devinbinnie Grammarly is now detecting Mattermost Desktop v5.5.1 both local build and the dmg downloaded from https://docs.mattermost.com/collaborate/install-desktop-app.html . But on the App Store version, it's still not working. On Grammarly's support page, there's info about this situation. I've also checked Mattermost Desktop's electron version and it currently uses version 26.2.1. I think the issue and pull request can be closed. I'm also attaching a screenshot and a link to Grammarly's support page.

https://support.grammarly.com/hc/en-us/articles/4428282986893-Grammarly-for-Mac-doesn-t-work-in-certain-apps-for-Mac image

Yeah, this is unfortunately the case for a lot of things. In order to be in the App Store, macOS requires that an app be placed within its App Sandbox that restricts access to a lot of functionality, unless specifically granted. This probably means that Grammarly won't work with our app in the App Store, so this change is the best we can do.

@devinbinnie
Copy link
Member

@M-ZubairAhmed Are we okay to approve this?

@M-ZubairAhmed
Copy link
Member

M-ZubairAhmed commented Dec 6, 2023

Foloww

@M-ZubairAhmed Are we okay to approve this?

Following the above discussion i think this is the maximum we can do from outside. Let me rope in @yasserfaraazkhan to test if this fix works for the following

  • Webapp in MacOS/Windows/Ubuntu Chrome
  • Webapp in MacOS/Windows/Ubuntu Firefox
  • Webapp in MacOS Safari
  • Webapp in MacOS/Windows/Ubuntu Edge

Please check with and without the above fix. Also please use the browser Grammarly plugin and not the app.

@M-ZubairAhmed M-ZubairAhmed changed the title MM-52207: Fix grammarly issue [MM-52207] Grammarly plugin not detected in Mattermost desktop Dec 6, 2023
@lollobene
Copy link

@devinbinnie Grammarly is now detecting Mattermost Desktop v5.5.1 both local build and the dmg downloaded from https://docs.mattermost.com/collaborate/install-desktop-app.html . But on the App Store version, it's still not working. On Grammarly's support page, there's info about this situation. I've also checked Mattermost Desktop's electron version and it currently uses version 26.2.1. I think the issue and pull request can be closed. I'm also attaching a screenshot and a link to Grammarly's support page.
https://support.grammarly.com/hc/en-us/articles/4428282986893-Grammarly-for-Mac-doesn-t-work-in-certain-apps-for-Mac image

Y

@devinbinnie Grammarly is now detecting Mattermost Desktop v5.5.1 both local build and the dmg downloaded from https://docs.mattermost.com/collaborate/install-desktop-app.html . But on the App Store version, it's still not working. On Grammarly's support page, there's info about this situation. I've also checked Mattermost Desktop's electron version and it currently uses version 26.2.1. I think the issue and pull request can be closed. I'm also attaching a screenshot and a link to Grammarly's support page.
https://support.grammarly.com/hc/en-us/articles/4428282986893-Grammarly-for-Mac-doesn-t-work-in-certain-apps-for-Mac image

Yeah, this is unfortunately the case for a lot of things. In order to be in the App Store, macOS requires that an app be placed within its App Sandbox that restricts access to a lot of functionality, unless specifically granted. This probably means that Grammarly won't work with our app in the App Store, so this change is the best we can do.

I just downloaded version 5.6.0-rc.1 from Github for Mac M1, and still Grammarly it's not detected

@yasserfaraazkhan
Copy link
Contributor

/update-branch

@M-ZubairAhmed
Copy link
Member

@hasancankucuk please fix the CI for the preview url to get generated

@mattermost-build
Copy link
Contributor

This PR has been automatically labelled "stale" because it hasn't had recent activity.
A core team member will check in on the status of the PR to help with questions.
Thank you for your contribution!

@yasserfaraazkhan yasserfaraazkhan removed their request for review January 23, 2024 19:57
@yasserfaraazkhan yasserfaraazkhan removed the 3: QA Review Requires review by a QA tester. May occur at the same time as Dev Review label Jan 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Awaiting Submitter Action Blocked on the author Contributor EETests Lifecycle/1:stale release-note-none Denotes a PR that doesn't merit a release note.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Grammarly plugin not detected in Mattermost desktop
10 participants