Commit graph

2460 commits

Author SHA1 Message Date
Devin Binnie b69b06c882 Bump to version 5.2.2-rc.2 2022-11-30 11:56:05 -05:00
Mattermost Build f2310b993b
Extend npm run package:* context deadline to 60m (#2437) (#2438)
(cherry picked from commit d8baf2ddc9)

Co-authored-by: Devin Binnie <52460000+devinbinnie@users.noreply.github.com>
2022-11-30 11:55:52 -05:00
Mattermost Build 7dc12bd793
[MM-48682] Stop user from opening the servers menu when no servers are configured (#2434) (#2435)
(cherry picked from commit 0a32030985)

Co-authored-by: Devin Binnie <52460000+devinbinnie@users.noreply.github.com>
2022-11-30 11:08:45 -05:00
Mattermost Build 04a97f23c5
[MM-48380] Reworked Linux build process to correctly support ARM64 (#2428) (#2433)
* [MM-48380] Reworked Linux build process to correctly support ARM64

* Try with ubuntu 18.04

* Why is it backwards

* Revert "Why is it backwards"

This reverts commit 5208fd3fa616a6fe774cca744bb6cd9d3f288a7a.

* Revert "Try with ubuntu 18.04"

This reverts commit e3c0f9e01e5d4b4040f6bb23bbd0fcf6160b92bd.

* :(

(cherry picked from commit b9758bd679)

Co-authored-by: Devin Binnie <52460000+devinbinnie@users.noreply.github.com>
2022-11-30 09:58:57 -05:00
Devin Binnie 3b729c3cde Bump to version 5.2.2-rc.1 2022-11-22 13:14:31 -05:00
Tasos Boulis 7ac3d5edf8 Fix issue with windows-focus-assist returning truthy value on older windows versions (#2385) 2022-11-22 13:12:59 -05:00
Mattermost Build 142962df52
[MM-48557] Fix AppImage shortcut (#2413) (#2414)
(cherry picked from commit 911ae29623)

Co-authored-by: Devin Binnie <52460000+devinbinnie@users.noreply.github.com>
2022-11-22 11:44:19 -05:00
Mattermost Build 6163f83bdd
[MM-48079] Fix race condition related to registry loading vs. the welcome screen popup (#2408) (#2412)
(cherry picked from commit 45e7ec95b7)

Co-authored-by: Devin Binnie <52460000+devinbinnie@users.noreply.github.com>
2022-11-22 09:36:00 -05:00
Mattermost Build 7f1469dd9a
[MM-48380] ARM64 build for Windows/Linux (#2406) (#2407)
* Test ARM build for Windows/Linux

* Fix the windows build

(cherry picked from commit 3c0d309697)

Co-authored-by: Devin Binnie <52460000+devinbinnie@users.noreply.github.com>
2022-11-21 16:27:29 -05:00
Tasos Boulis c75cf59576 Remove invalid files from downloads list on startup 2022-11-21 12:08:26 +02:00
Devin Binnie 76f3c0649c Bump to version 5.2.1 2022-11-15 13:58:20 -05:00
Mattermost Build 1e38a538c3
Fix release script, it would create rc1 instead of rc.1 (#2383) (#2384)
* Dont put dot(.) between rc and number

* Revert "Dont put dot(.) between rc and number"

This reverts commit d9a8837bd0dc18a529d216f76b4f24fe588b63f7.

* Fix missed rc1 in release script

(cherry picked from commit 71f53a477a)

Co-authored-by: Tasos Boulis <tboulis@hotmail.com>
2022-11-15 13:46:03 +02:00
Tasos Boulis fe50d79ad9 Bump to version 5.2.1-rc.2 2022-11-14 23:47:36 +02:00
Mattermost Build b7b2733f7e
[MM-48080] Update tray icon instantly when the settings change (#2376) (#2382)
* Update wording and update tray icon instantly when the settings change

* Add tests

* Include new file

(cherry picked from commit e1f5250c0c)

Co-authored-by: Tasos Boulis <tboulis@hotmail.com>
2022-11-14 22:25:03 +02:00
Mattermost Build b0996a1a06
Exclude unnecessary binaries for native modules (#2380) (#2381)
(cherry picked from commit 4171774aee)

Co-authored-by: Devin Binnie <52460000+devinbinnie@users.noreply.github.com>
2022-11-14 14:10:36 -05:00
Tasos Boulis 2e2b43aad8 Bump to version 5.2.1-rc1 2022-11-10 17:28:47 +02:00
Mattermost Build ec4ac77228
[MM-48167] Only grab the last extension from a filename during Save As (#2357) (#2360)
(cherry picked from commit 0ec3da40ba)

Co-authored-by: Devin Binnie <52460000+devinbinnie@users.noreply.github.com>
2022-11-07 09:56:46 -05:00
Mattermost Build bf0196fbbf
[MM-48184] Disallow edit/remove server if it is imported from GPO (#2353) (#2355)
* Disallow edit/remove server if it is imported from GPO

* Fix width issue of team dropdown

(cherry picked from commit c319038704)

Co-authored-by: Tasos Boulis <tboulis@hotmail.com>
2022-11-04 18:44:52 +02:00
Mattermost Build 79b80dc21f
[MM-48079] Dont show server login when GPO has preconfigured servers (#2346) (#2354)
* Show onboarding server screen only when teams.length is 0

* Add tests

* Add more tests

* Fix issue where callback would not re-evaluate variables

(cherry picked from commit 935cf3a0cc)

Co-authored-by: Tasos Boulis <tboulis@hotmail.com>
2022-11-04 17:34:56 +02:00
Devin Binnie 023ac00559 Bump to version 5.2.0 2022-10-31 09:18:03 -04:00
Devin Binnie 6ca93cf138 Bump to version 5.2.0-rc.5 2022-10-28 16:21:18 -04:00
Mattermost Build fb3d54c9bb
Downloads fixes (#2331) (#2332)
* Add file extension when necessary

* [MM-48017] Set the bounds for the dropdowns on finished resize

(cherry picked from commit 6ae055728d)

Co-authored-by: Devin Binnie <52460000+devinbinnie@users.noreply.github.com>
2022-10-28 16:20:45 -04:00
Mattermost Build 5fc023c6ef
FIx E2E test util method (#2329) (#2330)
(cherry picked from commit 911c0880dd)

Co-authored-by: Devin Binnie <52460000+devinbinnie@users.noreply.github.com>
2022-10-28 11:55:40 -04:00
Devin Binnie ecaa3c8e2f Bump to version 5.2.0-rc.4 2022-10-27 13:04:32 -04:00
Mattermost Build 36f9afe74c
[MM-47970] + [MM-47754] Downloads fixes (#2326) (#2327)
* Use downloads location as default when clicking "Save as". Remove update from downloads after upgrade when application starts

* Fix issue where "addedAt" was extracted from undefined object

* Fix tests

(cherry picked from commit ca62814ce6)

Co-authored-by: Tasos Boulis <tboulis@hotmail.com>
2022-10-27 13:00:39 -04:00
Mattermost Build dd7a3f9fd5
Stop unnecessary TestFlight builds (#2323) (#2324)
(cherry picked from commit a29528f1fd)

Co-authored-by: Devin Binnie <52460000+devinbinnie@users.noreply.github.com>
2022-10-26 15:14:11 -04:00
Mattermost Build ce8db337cf
[MM-47912] Upgrade to Electron v21.2.0 (#2319) (#2321)
(cherry picked from commit 54c76d5dd6)

Co-authored-by: Devin Binnie <52460000+devinbinnie@users.noreply.github.com>
2022-10-26 11:48:49 +03:00
Tasos Boulis 1de99aae87 Bump to version 5.2.0-rc.3 2022-10-25 16:15:57 +03:00
Mattermost Build 97678c6686
[MM-47801][MM-45980] Added support for security-scoped bookmarks to allow the MAS build to save files wherever needed (#2315) (#2316)
* First pass

* [MM-47801] Added support for security-scoped bookmarks to allow the MAS build to save files wherever needed

(cherry picked from commit 635a41f998)

Co-authored-by: Devin Binnie <52460000+devinbinnie@users.noreply.github.com>
2022-10-25 15:40:38 +03:00
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