Commit graph

2542 commits

Author SHA1 Message Date
Tasos Boulis bbf162e7d0
Disabled Clear All button when downloads include only the application update and when they also include files, clear only the files (#2294) 2022-10-20 16:20:51 +03:00
Rohitesh Gupta 48869a654f
Updated CodeQL to latest version (#2292)
* Created CodeQL config

* Upgraded CodeQL to latest version
2022-10-20 16:13:07 +03:00
Tasos Boulis cf647ce3e9
[MM-36456] Add support for Gnome's do-not-disturb (#2278)
* Add support for gnome do-not-disturb mode

* Add tests

* Invert condition
2022-10-17 16:37:42 +03:00
Tasos Boulis d5cf3e76e1
Fix issue where update progress was not displayed (#2286) 2022-10-14 11:17:51 -04:00
Devin Binnie 340ae815d9
Fix MSI build by removing changelog requirement (#2284) 2022-10-13 10:11:04 -04:00
Kaya Zeren 90c9961d5e 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/
2022-10-13 09:50:37 -04:00
master7 a23cb3e752 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/
2022-10-13 09:50:37 -04:00
Tom De Moor e7198928b4 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/
2022-10-13 09:50:37 -04:00
Matthew Williams 9996c4bb20 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/
2022-10-13 09:50:37 -04:00
MArtin Johnson 087caff106 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/
2022-10-13 09:50:37 -04:00
Matthew Williams 47c11473e6 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/
2022-10-13 09:50:37 -04:00
jprusch fdccbee862 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/
2022-10-13 09:50:37 -04:00
José Vítor Cruz de Souza 70e9ca673a 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/
2022-10-13 09:50:37 -04:00
Dmitriy Danilov cec82c4dc6 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/
2022-10-13 09:50:37 -04:00
Tilto_ 4afe3e22ef 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/
2022-10-13 09:50:37 -04:00
Tom De Moor eed8ccb597 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/
2022-10-13 09:50:37 -04:00
Tilto_ 99e83c9fd4 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/
2022-10-13 09:50:37 -04:00
jprusch e36b4c5c72 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/
2022-10-13 09:50:37 -04:00
Tom De Moor c355586d5e 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/
2022-10-13 09:50:37 -04:00
kaakaa 506c1fbb37 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/
2022-10-13 09:50:37 -04:00
Tóth Csaba // Online ERP Hungary Kft 98a1cbc79c 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/
2022-10-13 09:50:37 -04:00
Matthew Williams 2e186b4539 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/
2022-10-13 09:50:37 -04:00
master7 7d060f222a 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/
2022-10-13 09:50:37 -04:00
kaakaa 1ab249cb3a 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/
2022-10-13 09:50:37 -04:00
Kaya Zeren d5a22fbfbb 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/
2022-10-13 09:50:37 -04:00
Devin Binnie 04d81d10b3
Try wix 3.11.2 (#2280) 2022-10-12 11:07:13 -04:00
Tasos Boulis 9f7a96e794
Fix 3-dot menu not losing focus after clicking outside (Windows). Related to MM-46424 (#2242) 2022-10-12 18:04:15 +03:00
Devin Binnie be13c231b6
[MM-47463] Fix build issues (#2277)
* Try updating to 5.0.0

* Try turning off nvm

* Switch to newer Go image
2022-10-12 08:50:41 -04:00
Devin Binnie 0ac53605c0
[MM-47279] Upgrade to Electron v21 (#2270)
* WIP

* Fixed robotjs on windows
2022-10-11 14:02:54 -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