This commit introduces listeners for network changes that will:
- Test the websocket if we get an offline event to check if we have disconnected.
- Re-connect the websocket immediately if we get an online event, and we are disconnected.
Additionally when a ping fails, we now immediately call the onclose() callback instead of waiting for the system to trigger it when the broken websocket closes. This allows us to re-connect much more quickly (since we don't have to wait for the broken websocket to get cleaned up by the system).
* First set of texts updated for Enterprise Adv upsells and trial
* Updated upsell message for all tiers
* Linting translation file
* Linting
* Reverting unintended styling changes
* my ide making lint more
* Fix tests
* More default texts updated
* Trial banner title
* Make advantages list translatable
* Text updates
* Fix tests
* More text tweaking
* Linting
* Reodered translations
* Fixed e2e test
* More linting
* Removed incorrect new test
* Fix test typo
---------
Co-authored-by: Mattermost Build <build@mattermost.com>
* [MM-62987] Include description on aria-label for last reply time, make link focused when using up/down arrows.
* PR feedback
---------
Co-authored-by: Mattermost Build <build@mattermost.com>
* [MM-62974] Focus team name inputs when error occurs
* [MM-62984] Change h5 to label on create team screens
* [MM-63016] Add a page title for the create team page
* [MM-63025] Add role=alert and aria-describedby for error messages on create team page
* Fix i18n
* [MM-62986] Ensure focus goes back to the inputs after an error for Login/Create Account/MFA
* [MM-63011] Show outline on Mattermost logo link when focused
* [MM-63018] Remove tabindex from the login/signup cards and use <form> element for submit
* [MM-63014] Toggle aria-label when show/hide password is pressed
* [MM-63013] Mention the field name when showing an error message about the password field
* Fix lint
* Update screenshots and fix tests
* Update screenshots and fix tests
* Fix tests
* Update webapp/channels/src/components/mfa/setup/setup.tsx
Co-authored-by: Harrison Healey <harrisonmhealey@gmail.com>
* update screenshots
---------
Co-authored-by: yasserfaraazkhan <attitude3cena.yf@gmail.com>
Co-authored-by: Harrison Healey <harrisonmhealey@gmail.com>
* Fixed save state panel for channel banner
* Defined default background color
* Updated test
---------
Co-authored-by: Mattermost Build <build@mattermost.com>
* Make the Mobile Security settings available on Enterprise Advance
* rename to minLicenseTier
* used license tier checks in system console
* lint fix
* renamed license in test
* Made license name display in single line
---------
Co-authored-by: Elias Nahum <nahumhbl@gmail.com>
* MM-63649 - fix preview embeded images
* enhance utils function and simplify validations in file preview modal component
* add new test for proxied images without extension
* simplify logic; apply DRY unifying it via helper function
* if extension is available in file info, use it first
* add extra validation for the extension lenght if fileInfo.extension is present
---------
Co-authored-by: Mattermost Build <build@mattermost.com>
* MM-63648 - markdown images sometimes do not show the more button
* migrate test to testing-library and remove unnecesary props
---------
Co-authored-by: Mattermost Build <build@mattermost.com>
* MM-63056 Add accessible name to Threads item menus
* MM-63058 Add accessible name to Threads mark as unread button
* MM-63049 Change Threads list to use tab pattern for filtering
* Revert accidentally added i18n string