Commit graph

2431 commits

Author SHA1 Message Date
Mattermost Build e50e2e85b0
[MM-47776] Reverse order of input fields in server welcome screen (#2309) (#2314)
* Reverse order of inputs in Server modals (add/edit)

* Revert "Reverse order of inputs in Server modals (add/edit)"

This reverts commit f3d577dcd5c0e13d6d0e3c2cc4de588008f53e68.

* Update order of server fields in welcome screens

* Update server modal focus test

* Add margin between inputs

(cherry picked from commit 0f51a628f0)

Co-authored-by: Tasos Boulis <tboulis@hotmail.com>
2022-10-24 10:59:22 -04:00
Mattermost Build 27a64cce1c
Fix macos-notification-state build issue (#2310) (#2313)
* Fix macos-notification-state build issue

* Fix windows build, a bit of cleanup

(cherry picked from commit 83b6c64cf3)

Co-authored-by: Devin Binnie <52460000+devinbinnie@users.noreply.github.com>
2022-10-24 10:43:56 -04:00
Mattermost Build bd4f08c35a
[MM-47842] Make "save as" in context menu show the save dialog (#2311) (#2312)
* Make "save as" in context menu show the save dialog

* Update tests

(cherry picked from commit 33da0afce5)

Co-authored-by: Tasos Boulis <tboulis@hotmail.com>
2022-10-24 10:08:43 -04:00
Mattermost Build 74d77f1e81
Reposition 3-dot menu only when it is open (#2304) (#2306)
(cherry picked from commit f7f38102d8)

Co-authored-by: Tasos Boulis <tboulis@hotmail.com>
2022-10-21 16:55:01 +03:00
Mattermost Build 743a6d7388
[MM-47779] Prevent crash when either URL view or main window was destroyed first (#2300) (#2307)
(cherry picked from commit dc49003d38)

Co-authored-by: Devin Binnie <52460000+devinbinnie@users.noreply.github.com>
2022-10-21 09:19:47 -04:00
Mattermost Build 8995517e7e
[MM-47778] Remove Sign into another Server menu item when no servers exist (#2301) (#2305)
(cherry picked from commit 179eacb582)

Co-authored-by: Devin Binnie <52460000+devinbinnie@users.noreply.github.com>
2022-10-21 09:14:18 -04:00
Mattermost Build e47243e66f
[MM-47754] Remove update from downloads when "Restart and Upgrade" is clicked (#2299) (#2303)
* Remove update from downloads when "Restart and Upgrade" is clicked

* Fix failing test

* Mock downloadsManager in autoUpdater tests

(cherry picked from commit 167f7d832a)

Co-authored-by: Tasos Boulis <tboulis@hotmail.com>
2022-10-21 14:12:58 +03:00
Mattermost Build 5f2ebaf750
Fix color issues in Downloads dropdown (#2298) (#2302)
* Fix color issues in Downloads dropdown

* More styling changes

(cherry picked from commit aa28948800)

Co-authored-by: Tasos Boulis <tboulis@hotmail.com>
2022-10-21 13:34:06 +03:00
Mattermost Build 7f281a115d
[MM-47756] Close Downloads when clicking in tabBar (Windows) (#2293) (#2297)
* Make tabBar disabled when dropdowns are open so that clicking there can close them

* Update src/renderer/components/MainPage.tsx

Co-authored-by: Devin Binnie <52460000+devinbinnie@users.noreply.github.com>

* Remove console

Co-authored-by: Devin Binnie <52460000+devinbinnie@users.noreply.github.com>
(cherry picked from commit 1f5f5ef71d)

Co-authored-by: Tasos Boulis <tboulis@hotmail.com>
2022-10-20 10:30:06 -04:00
Mattermost Build 7fb2d1abef
Disabled Clear All button when downloads include only the application update and when they also include files, clear only the files (#2294) (#2296)
(cherry picked from commit bbf162e7d0)

Co-authored-by: Tasos Boulis <tboulis@hotmail.com>
2022-10-20 16:23:37 +03:00
Mattermost Build 399075fbe5
Fix issue where update progress was not displayed (#2286) (#2287)
(cherry picked from commit d5cf3e76e1)

Co-authored-by: Tasos Boulis <tboulis@hotmail.com>
2022-10-14 11:18:38 -04:00
Tasos Boulis ec2d1303e3 Bump to version 5.2.0-rc.2 2022-10-13 18:28:15 +03:00
Mattermost Build 825cae2647
Fix MSI build by removing changelog requirement (#2284) (#2285)
(cherry picked from commit 340ae815d9)

Co-authored-by: Devin Binnie <52460000+devinbinnie@users.noreply.github.com>
2022-10-13 10:11:17 -04:00
Mattermost Build 7792e6906b
Translations update from Mattermost Weblate (#2276) (#2282)
* Translated using Weblate (Turkish)

Currently translated at 100.0% (254 of 254 strings)

Translation: mattermost-languages-shipped/mattermost-desktop
Translate-URL: https://translate.mattermost.com/projects/mattermost/mattermost-desktop/tr/

* Translated using Weblate (Japanese)

Currently translated at 99.6% (253 of 254 strings)

Translation: mattermost-languages-shipped/mattermost-desktop
Translate-URL: https://translate.mattermost.com/projects/mattermost/mattermost-desktop/ja/

* Translated using Weblate (Polish)

Currently translated at 100.0% (254 of 254 strings)

Translation: mattermost-languages-shipped/mattermost-desktop
Translate-URL: https://translate.mattermost.com/projects/mattermost/mattermost-desktop/pl/

* Translated using Weblate (English (Australia))

Currently translated at 99.6% (253 of 254 strings)

Translation: mattermost-languages-shipped/mattermost-desktop
Translate-URL: https://translate.mattermost.com/projects/mattermost/mattermost-desktop/en_AU/

* Translated using Weblate (Hungarian)

Currently translated at 100.0% (254 of 254 strings)

Translation: mattermost-languages-shipped/mattermost-desktop
Translate-URL: https://translate.mattermost.com/projects/mattermost/mattermost-desktop/hu/

* Translated using Weblate (Japanese)

Currently translated at 100.0% (254 of 254 strings)

Translation: mattermost-languages-shipped/mattermost-desktop
Translate-URL: https://translate.mattermost.com/projects/mattermost/mattermost-desktop/ja/

* Translated using Weblate (Dutch)

Currently translated at 96.0% (244 of 254 strings)

Translation: mattermost-languages-shipped/mattermost-desktop
Translate-URL: https://translate.mattermost.com/projects/mattermost/mattermost-desktop/nl/

* Translated using Weblate (German)

Currently translated at 100.0% (254 of 254 strings)

Translation: mattermost-languages-shipped/mattermost-desktop
Translate-URL: https://translate.mattermost.com/projects/mattermost/mattermost-desktop/de/

* Translated using Weblate (Korean)

Currently translated at 12.2% (31 of 254 strings)

Translation: mattermost-languages-shipped/mattermost-desktop
Translate-URL: https://translate.mattermost.com/projects/mattermost/mattermost-desktop/ko/

* Translated using Weblate (Dutch)

Currently translated at 100.0% (254 of 254 strings)

Translation: mattermost-languages-shipped/mattermost-desktop
Translate-URL: https://translate.mattermost.com/projects/mattermost/mattermost-desktop/nl/

* Translated using Weblate (Korean)

Currently translated at 42.9% (109 of 254 strings)

Translation: mattermost-languages-shipped/mattermost-desktop
Translate-URL: https://translate.mattermost.com/projects/mattermost/mattermost-desktop/ko/

* Translated using Weblate (Ukrainian)

Currently translated at 0.3% (1 of 254 strings)

Translation: mattermost-languages-shipped/mattermost-desktop
Translate-URL: https://translate.mattermost.com/projects/mattermost/mattermost-desktop/uk/

* Translated using Weblate (Portuguese (Brazil))

Currently translated at 49.6% (126 of 254 strings)

Translation: mattermost-languages-shipped/mattermost-desktop
Translate-URL: https://translate.mattermost.com/projects/mattermost/mattermost-desktop/pt_BR/

* Translated using Weblate (German)

Currently translated at 100.0% (262 of 262 strings)

Translation: mattermost-languages-shipped/mattermost-desktop
Translate-URL: https://translate.mattermost.com/projects/mattermost/mattermost-desktop/de/

* Translated using Weblate (English (Australia))

Currently translated at 98.8% (259 of 262 strings)

Translation: mattermost-languages-shipped/mattermost-desktop
Translate-URL: https://translate.mattermost.com/projects/mattermost/mattermost-desktop/en_AU/

* Translated using Weblate (Swedish)

Currently translated at 100.0% (262 of 262 strings)

Translation: mattermost-languages-shipped/mattermost-desktop
Translate-URL: https://translate.mattermost.com/projects/mattermost/mattermost-desktop/sv/

* Translated using Weblate (English (Australia))

Currently translated at 99.6% (261 of 262 strings)

Translation: mattermost-languages-shipped/mattermost-desktop
Translate-URL: https://translate.mattermost.com/projects/mattermost/mattermost-desktop/en_AU/

* Translated using Weblate (Dutch)

Currently translated at 99.6% (261 of 262 strings)

Translation: mattermost-languages-shipped/mattermost-desktop
Translate-URL: https://translate.mattermost.com/projects/mattermost/mattermost-desktop/nl/

* Translated using Weblate (Polish)

Currently translated at 100.0% (262 of 262 strings)

Translation: mattermost-languages-shipped/mattermost-desktop
Translate-URL: https://translate.mattermost.com/projects/mattermost/mattermost-desktop/pl/

* Translated using Weblate (Turkish)

Currently translated at 100.0% (262 of 262 strings)

Translation: mattermost-languages-shipped/mattermost-desktop
Translate-URL: https://translate.mattermost.com/projects/mattermost/mattermost-desktop/tr/

Co-authored-by: Kaya Zeren <kayazeren@gmail.com>
Co-authored-by: kaakaa <stooner.hoe@gmail.com>
Co-authored-by: master7 <marcin.karkosz@rajska.info>
Co-authored-by: Matthew Williams <Matthew.Williams@outlook.com.au>
Co-authored-by: Tóth Csaba // Online ERP Hungary Kft <csaba.toth@online-erp.hu>
Co-authored-by: Tom De Moor <tom@controlaltdieliet.be>
Co-authored-by: jprusch <rs@schaeferbarthold.de>
Co-authored-by: Tilto_ <tilto0822@naver.com>
Co-authored-by: Dmitriy Danilov <daniloff200@gmail.com>
Co-authored-by: José Vítor Cruz de Souza <josevcsouza@gmail.com>
Co-authored-by: MArtin Johnson <martinjohnson@bahnhof.se>
(cherry picked from commit 89c3375652f955b220e9b353dba61c2e85574ee7)

Co-authored-by: Weblate (bot) <hosted@weblate.org>
2022-10-13 09:44:58 -04:00
Mattermost Build 93f4dc823c
Try wix 3.11.2 (#2280) (#2281)
(cherry picked from commit 04d81d10b3)

Co-authored-by: Devin Binnie <52460000+devinbinnie@users.noreply.github.com>
2022-10-12 11:07:32 -04:00
Mattermost Build 9568c96a3a
[MM-47463] Fix build issues (#2277) (#2279)
* Try updating to 5.0.0

* Try turning off nvm

* Switch to newer Go image

(cherry picked from commit be13c231b6)

Co-authored-by: Devin Binnie <52460000+devinbinnie@users.noreply.github.com>
2022-10-12 08:50:58 -04:00
Mattermost Build 6b7d844ba5
[MM-47279] Upgrade to Electron v21 (#2270) (#2275)
* WIP

* Fixed robotjs on windows

(cherry picked from commit 0ac53605c0)

Co-authored-by: Devin Binnie <52460000+devinbinnie@users.noreply.github.com>
2022-10-11 14:03:19 -04:00
Devin Binnie 9ffcec1e7c Bump to version 5.2.0-rc.1 2022-10-07 10:22:14 -04:00
Tasos Boulis a5dac0f4b2
Fix issue with downloads position after window (un)maximize (#2273) 2022-10-07 10:14:17 -04:00
Tasos Boulis a4b05c601b
Remove duplicate handler for showing file in folder (#2274) 2022-10-07 10:14:03 -04:00
Tasos Boulis 131b5fa2ac
[MM-22239] Downloads dropdown (#2227)
* WIP: show/hide temp downloads dropdown

* WIP: Position downloads dropdown correctly under the button

* WIP: Use correct width for dropdown so that right radius and shadows are displayed

* WIP: Add items to download list after finished downloading

* WIP: Add download item base components

* Add "clear all" functionality

* Use type Record<> for downloads saved in config

* Add styling to files in the downloads dropdown

* Open file in folder when clicking it from downloads dropdown. Center svg in parent element

* Update scrollbar styling

* Update scrollbar styling

* Update state of downloaded items if deleted from folder

* Add progress bar in downloads

* Use "x-uncompressed-content-length" in file downloads.

* Keep downloads open when clicking outside their browserview

* Use correct color for downloads dropdown button

* Add better styling to downloads dropdown button

* Allow only 50 download files maximum. Oldest file is being removed if reached

* Autoclose downloads dropdown after 4s of download finish

* Add file thumbnails

* Dont show second dialog if first dismissed

* Add red badge when downloads running and dropdown closed

* Add menu item for Downloads

* Add support for more code file extensions

* Open downloads dropdown instead of folder from the menu

* Run lint:js and fix problems

* Add tests for utils

* Fix issue with dropdown not displaying

* Remove unecessary comment

* Move downloads to separate json file, outside Config

* Add downloads dropdown menu for the 3-dot button

* Dont show dev tools for downloads

* Add cancel download functionality

* Add dark mode styling

* Use View state for downloadsMenu open state

* Fix some style issues

* Add image preview for downloaded images

* Remove extra devTool in weback config

* Fix issue with paths on windows

* Align items left in downloads menu

* Use pretty-bytes for file sizes

* Show download remaining time

* Close downloads dropdown when clicking outside

* Show different units in received bytes when they are different from the total units (kb/mb)

* Dont hide downloads when mattermost view is clicked

* Keep downloads open if download button is clicked

* Use closest() to check for download clicks

* Fix unit tests.
Add tests for new Views and downloadManager
Add @types/jest as devDependency for intellisense

* Remove unecessary tsconfig for jest

* Fix types error

* Add all critical tests for downloadsManager

* WIP: add e2e tests for downloads

* WIP: add e2e tests for downloads

* Rename downloads spec file

* WIP: make vscode debugger work for e2e tests

* Remove unused mock

* Remove defaults for v4 config

* Use electron-mocha for e2e debugger

* Fix e2e tests spawning JsonFileManager twice

* Add async fs functions and add tests for download item UI

* Add async fs functions and add tests for download item UI

* Improve tests with "waitForSelector" to wait for visible elements

* Wait for page load before assertions

* Add tests for file uploads/downloads

* Dont show native notification for completed downloads if dropdown is open

* Increment filenames if file already exists

* Fix antializing in downloads dropdown

* Fix styling of downloads header

* Increase dimensions of green/red icons in downloads

* Fix styling of 3-dot button

* Fix unit tests

* Show 3-dot button only on hover or click

* PR review fixes

* Revert vscode debug fixes

* Mock fs.constants

* Mock fs instead of JsonFileManager in downlaods tests

* Mock fs instead of JsonFileManager in downlaods tests

* Add necessary mocks for downloads manager

* Mark file as deleted if user deleted it

* Fix min-height of downloads dropdown and 3-dot icon position

* Add more tests

* Make size of downloads dropdown dynamic based on content

* Combine log statements

* Close 3-dot menu if user clicks elsewhere

* Move application updates inside downloads dropdown

* Fix update issues

* Fix ipc event payload

* Add missing prop

* Remove unused translations

* Fix failing test

* Fix version unknown

* Remove commented out component
2022-10-07 11:40:27 +03:00
Devin Binnie cf6ca93627
[MM-47279] Upgrade to Electron v19.1.1 and other Electron dependency upgrades (#2272) 2022-10-06 09:37:23 -04:00
David Edler e3e8ee0362
disable flashWindow on linux, it doesn't work and causes notifications without context #2262 (#2263) 2022-09-30 12:53:05 +03:00
Devin Binnie 7c3b68fb68
[MM-46857] Remove misleading console error about tab status when servers don't exist (#2260) 2022-09-21 08:53:43 -04:00
Tasos Boulis 90123896b8
Fix vscode debugger for E2E tests (#2258) 2022-09-16 15:23:21 -04:00
Julian Mondragón c3493b09ff
MM-45981_Desktop: Add Server Screen: Improve Onboarding screens (#2243) 2022-09-16 10:35:37 -05:00
master7 c12dc3d6ae Translated using Weblate (Polish)
Currently translated at 100.0% (242 of 242 strings)

Translation: mattermost-languages-shipped/mattermost-desktop
Translate-URL: https://translate.mattermost.com/projects/mattermost/mattermost-desktop/pl/
2022-09-12 11:20:07 -04:00
Vitaly barakov b04ee71fe7 Translated using Weblate (Russian)
Currently translated at 0.4% (1 of 242 strings)

Translation: mattermost-languages-shipped/mattermost-desktop
Translate-URL: https://translate.mattermost.com/projects/mattermost/mattermost-desktop/ru/
2022-09-12 11:20:07 -04:00
master7 cda03e3e7e Translated using Weblate (Polish)
Currently translated at 90.0% (218 of 242 strings)

Translation: mattermost-languages-shipped/mattermost-desktop
Translate-URL: https://translate.mattermost.com/projects/mattermost/mattermost-desktop/pl/
2022-09-12 11:20:07 -04:00
Devin Binnie 2837b764bd
E2E omnibus fixes (#2249)
* Add environment variable for E2E test server

* Fix auto updater test

* Kill macOS processes after test as well

* No dot

* Just do it for all of them

* Force focus of main window on tests

* Fix a focus issue, try win.show() instead

* Another windows hack

* Oops can't spell

Co-authored-by: Mattermod <mattermod@users.noreply.github.com>
2022-09-12 10:43:19 -04:00
Pantelis Vratsalis 7e414bdf5a
Change order of fields in add server modal to match the one in mobile v2 (#2230) 2022-09-02 12:30:20 -04:00
Tasos Boulis 172025f037
Make writeToFile return a Promise in JsonFileManager (#2246)
* Make writeToFile return a Promise in JsonFileManager

* Add return after promise reject
2022-09-01 12:42:51 -04:00
Devin Binnie 4c968dc747
Add webContents listeners to modals (#2247)
* Add webContents listeners to modals

* Fix tests
2022-09-01 09:41:06 -04:00
Tasos Boulis 6d550a8a16
Add recommended VSCode extensions (#2244)
* Add code spell check and i18n-ally to recommended vscode extens
ions

* Add EditorConfig to recommended extensions and formatCodeOnAction to use eslint fix
2022-08-29 17:15:25 -04:00
Devin Binnie f95fce2c85
Remove notification logging from info (#2245) 2022-08-29 09:19:58 -04:00
Devin Binnie 840c640fdf
[MM-46405] Drop support for asterisk-based unreads (#2239) 2022-08-25 14:23:29 -04:00
Devin Binnie 78d9a41a7b
[MM-45003] Fix the infinite redirect caused by MFA sending the login signal repeatedly (#2237)
* [MM-45003] Fix the infinite redirect caused by MFA sending the login signal repeatedly

* Update src/main/windows/windowManager.ts

Co-authored-by: Tasos Boulis <tboulis@hotmail.com>

Co-authored-by: Tasos Boulis <tboulis@hotmail.com>
2022-08-25 14:21:36 -04:00
Devin Binnie f58a4b1826
[MM-46533] Remove buildConfig item and add webpack flags for onboarding screens and GPU acceleration (#2241)
* [MM-46533] Remove buildConfig item and add webpack flags for onboarding screens and GPU acceleration

* REVERT ME

* Use contexts instead

* Revert "REVERT ME"

This reverts commit 1e75779623f1c5eb2ce3a64e0c39cd4a8cf7ada7.
2022-08-25 10:58:06 -04:00
master7 461ebfebf4 Translated using Weblate (Polish)
Currently translated at 89.2% (216 of 242 strings)

Translation: mattermost-languages-shipped/mattermost-desktop
Translate-URL: https://translate.mattermost.com/projects/mattermost/mattermost-desktop/pl/
2022-08-25 09:12:49 -04:00
master7 1e9008a638 Translated using Weblate (Polish)
Currently translated at 79.3% (192 of 242 strings)

Translation: mattermost-languages-shipped/mattermost-desktop
Translate-URL: https://translate.mattermost.com/projects/mattermost/mattermost-desktop/pl/
2022-08-25 09:12:49 -04:00
yangyangdaji 0fe7505309 Translated using Weblate (Chinese (Simplified))
Currently translated at 17.7% (43 of 242 strings)

Translation: mattermost-languages-shipped/mattermost-desktop
Translate-URL: https://translate.mattermost.com/projects/mattermost/mattermost-desktop/zh_Hans/
2022-08-25 09:12:49 -04:00
master7 c544e93c57 Translated using Weblate (Polish)
Currently translated at 74.7% (181 of 242 strings)

Translation: mattermost-languages-shipped/mattermost-desktop
Translate-URL: https://translate.mattermost.com/projects/mattermost/mattermost-desktop/pl/
2022-08-25 09:12:49 -04:00
kaakaa 9c32c9b0a4 Translated using Weblate (Japanese)
Currently translated at 100.0% (242 of 242 strings)

Translation: mattermost-languages-shipped/mattermost-desktop
Translate-URL: https://translate.mattermost.com/projects/mattermost/mattermost-desktop/ja/
2022-08-25 09:12:49 -04:00
Tóth Csaba // Online ERP Hungary Kft ad58355f3f Translated using Weblate (Hungarian)
Currently translated at 100.0% (242 of 242 strings)

Translation: mattermost-languages-shipped/mattermost-desktop
Translate-URL: https://translate.mattermost.com/projects/mattermost/mattermost-desktop/hu/
2022-08-25 09:12:49 -04:00
Guillermo Vayá 60c16f7211 Translated using Weblate (Spanish)
Currently translated at 100.0% (242 of 242 strings)

Translation: mattermost-languages-shipped/mattermost-desktop
Translate-URL: https://translate.mattermost.com/projects/mattermost/mattermost-desktop/es/
2022-08-25 09:12:49 -04:00
Tom De Moor f61655a95b Translated using Weblate (Dutch)
Currently translated at 99.5% (241 of 242 strings)

Translation: mattermost-languages-shipped/mattermost-desktop
Translate-URL: https://translate.mattermost.com/projects/mattermost/mattermost-desktop/nl/
2022-08-25 09:12:49 -04:00
Matthew Williams f9f0cec934 Translated using Weblate (English (Australia))
Currently translated at 99.5% (241 of 242 strings)

Translation: mattermost-languages-shipped/mattermost-desktop
Translate-URL: https://translate.mattermost.com/projects/mattermost/mattermost-desktop/en_AU/
2022-08-25 09:12:49 -04:00
MArtin Johnson c4aa9ad4e7 Translated using Weblate (Swedish)
Currently translated at 100.0% (242 of 242 strings)

Translation: mattermost-languages-shipped/mattermost-desktop
Translate-URL: https://translate.mattermost.com/projects/mattermost/mattermost-desktop/sv/
2022-08-25 09:12:49 -04:00
master7 3d49402379 Translated using Weblate (Polish)
Currently translated at 73.5% (178 of 242 strings)

Translation: mattermost-languages-shipped/mattermost-desktop
Translate-URL: https://translate.mattermost.com/projects/mattermost/mattermost-desktop/pl/
2022-08-25 09:12:49 -04:00
Tom De Moor df0019bcdc Translated using Weblate (Dutch)
Currently translated at 97.5% (236 of 242 strings)

Translation: mattermost-languages-shipped/mattermost-desktop
Translate-URL: https://translate.mattermost.com/projects/mattermost/mattermost-desktop/nl/
2022-08-25 09:12:49 -04:00