Commit graph

2562 commits

Author SHA1 Message Date
Devin Binnie c6cc870e19
[MM-44932] Fixed issue where deleting a server doesn't switch to another server (or show the new server modal) (#2174) 2022-06-28 08:00:25 -04:00
Devin Binnie 7440a73ca2
Fixes to E2E tests for v5.1.1 (#2169) 2022-06-22 12:43:24 -04:00
Devin Binnie 895d8bd077
Update to Electron 18.3.0 (#2167) 2022-06-22 12:01:29 -04:00
Devin Binnie 055c699c70
[MM-44071] Fixed an issue where the first certificate could not be selected (#2162) 2022-06-22 11:04:38 -04:00
Mattermod 79d64e3ddf
Update Licences at Notice.txt to reflect dependency changes. (#2161) 2022-06-20 09:50:18 -04:00
Devin Binnie 063f072e85
[MM-44466] Prevent dragging of title bar button images (#2156) 2022-06-20 09:48:03 -04:00
Devin Binnie fd8810382f
Fix MAS/TestFlight nightly build (#2151) 2022-06-15 19:02:08 -04:00
Devin Binnie 0c5b612489
[MM-45031] Don't use infinite background retry logic when the certificate is invalid (#2153) 2022-06-15 09:22:21 -04:00
Devin Binnie 537ed1dd0c
[MM-44644] Update configured server URL from SiteURL if available (#2152) 2022-06-14 12:30:24 -04:00
Devin Binnie 3d353d021b
[MM-44666] Set default window size to 1280x800 (#2154) 2022-06-14 10:20:04 -04:00
Mustafa Kara 1a179b0dc6
Create configuration folder for notice.txt generation (#2149)
Signed-off-by: Mustafa Kara <mustafa.kara@mattermost.com>
2022-06-14 10:15:40 +03:00
Devin Binnie b4a779a666
[MM-44607] Only cleanse subpath if it occurs at the beginning (#2129)
* [MM-44607] Only cleanse subpath if it occurs at the beginning

* Fix tests
2022-05-27 11:37:07 -04:00
Devin Binnie 42a53e31b5
[MM-44344] Restore zip build for Windows and remove auto-updater from it (#2132) 2022-05-27 09:32:27 -04:00
Devin Binnie 8979c18226
[MM-44339] Remove unnecessary calls to show the main window (#2134) 2022-05-27 09:27:51 -04:00
Devin Binnie 37fe523e8c
Fix issue with changing servers and tabs (#2126) 2022-05-26 14:17:44 -04:00
Devin Binnie 581e1fd2e0
Update to Electron v18.2.4 (#2119) 2022-05-24 10:25:57 -04:00
vas 4efac368d5
only refresh view when the server URL changes (MM-34565) (#2082) (#2094)
* only refresh view when the server URL changes (MM-34565)

Create views of current and incoming tabs indexed
by unique [URL, TABTYPE] tuples, and diffing them.
Tuples that are identical are recycled, merely
porting the new server name over.

* lint fixes

* WIP

* linting

* remove dependency on by, duad

* provide a more exaplanatory name for TabView.prototype.tuple (urlTypeTuple)

* minor improvements in viewManager

- remove stateful behaviour from makeView
- more descriptive variable names when looping
- create new arrays before sorting (sort is in-place by default)

* resolve linting errors
2022-05-20 11:06:43 -04:00
JtheBAB d74dba5bad
Update GPO to reflect right version (#2110)
* Update mattermost.adml

* Update mattermost.admx
2022-05-19 08:42:32 +02:00
Eli Young 9aca802258
Fix GitHub release asset upload (#2114)
ghr only looks at immediate descendents of the path it is provided, so
we need to ensure that ghr-dist/ is flattened.
2022-05-18 14:34:34 -04:00
vas aeda1dfdcc
automatically add protocol to Server URL (#2083) (#2106)
* automatically add protocol to Server URL (#2083)

* refactor NewTeamModal to only detect protocol on save

* use window.postMessage for intercom + only ping on form save
2022-05-17 09:41:56 -04:00
Devin Binnie 2e740d60bd
[MM-44161] Show both validation messages when adding new server if both fields are invalid (#2104) 2022-05-12 12:04:51 -04:00
Devin Binnie fcf0be0a38
Broke a test (#2101) 2022-05-11 10:16:50 -04:00
Devin Binnie 99873c6669
[MM-44117] Fix stack overflow where window resize would constantly emit the restore event (#2099)
* Fix stack overflow where window resize would constantly call the restore function

* Use browserWindow.once
2022-05-11 10:08:43 -04:00
vas 8dd7d3dcc5
fix version flags displaying bad version on linux (#1422) (#2089)
yargs, the command line parsing library, was unable to read the app's version automatically from package.json
fix by passing the app's version as electron sees it
2022-05-10 15:52:33 -04:00
Devin Binnie 4ebaebfd17
[MM-44066] Truncate server names in the system tray to 50 characters (#2096) 2022-05-10 10:46:08 -04:00
Devin Binnie 9d3c1327b9
Turn off updates for DEB and TGZ distributions (#2093) 2022-05-10 09:36:55 -04:00
Devin Binnie 1414bbaedf
[MM-44023] Remove Settings window flash, change wording on Settings page (#2088) 2022-05-09 10:45:01 -04:00
Devin Binnie ebf5897f99
[MM-44022] Switch to using current BrowserView for determining window bounds for URL view (#2087) 2022-05-09 10:26:54 -04:00
Devin Binnie d1ca1188b4
[MM-43601] Switch upgrade button to an actual button and moved onClick event (#2080) 2022-04-26 09:17:01 -04:00
Devin Binnie 14ceaf677c
Fix release markdown (#2075)
* Fix release markdown

* Oops

* Fix build_mac_pr
2022-04-25 17:19:34 -04:00
Devin Binnie 82024caf0d
[MM-30272] Update to electron builder v23.0.8 (#2073) 2022-04-25 17:18:59 -04:00
Devin Binnie 90576570e2
[MM-43632] Ensure handleURLView is called when removing the target URL (#2074) 2022-04-25 17:18:23 -04:00
Devin Binnie 9b3d37e953
MAS: remove default download location (#2070) 2022-04-25 09:37:43 -04:00
Mustafa Kara 78b4bbf357
Create makefile and pipeline to generate signed debian packages. (#2068)
* Integrate GitLab Pipeline to Build Signed Packages

Signed-off-by: Mustafa Kara <mkara@pinchflat.dev>

* Fix Ci Pipeline Location

Signed-off-by: Mustafa Kara <mkara@pinchflat.dev>

* Implement gitlabci and Makefile to build linux packages

Signed-off-by: Mustafa Kara <mkara@pinchflat.dev>

* Improve makefile and pipeline to support customizable package action

Signed-off-by: Mustafa Kara <mkara@pinchflat.dev>

* Fix variable definition

Signed-off-by: Mustafa Kara <mkara@pinchflat.dev>

* Fix variable definition

Signed-off-by: Mustafa Kara <mkara@pinchflat.dev>

* Fix makefile formatting

Signed-off-by: Mustafa Kara <mkara@pinchflat.dev>

* Fix SSH key problem

Signed-off-by: Mustafa Kara <mkara@pinchflat.dev>

* Fix extended echo

Signed-off-by: Mustafa Kara <mkara@pinchflat.dev>

* Fix makefile for ssh keys issue

Signed-off-by: Mustafa Kara <mkara@pinchflat.dev>

* Parameterize sign artifacts

Signed-off-by: Mustafa Kara <mkara@pinchflat.dev>

* Change artifact directory

Signed-off-by: Mustafa Kara <mkara@pinchflat.dev>

* Fix package make command

Signed-off-by: Mustafa Kara <mkara@pinchflat.dev>

* Add Sign step to pipeline

Signed-off-by: Mustafa Kara <mkara@pinchflat.dev>

* Fix pipeline code for version

Signed-off-by: Mustafa Kara <mkara@pinchflat.dev>

* Fix makefile for version

Signed-off-by: Mustafa Kara <mkara@pinchflat.dev>

* Fix pipeline code

Signed-off-by: Mustafa Kara <mkara@pinchflat.dev>

* Fix Makefile for fast package-linux action

Signed-off-by: Mustafa Kara <mkara@pinchflat.dev>

* Fix Makefile for version

Signed-off-by: Mustafa Kara <mkara@pinchflat.dev>

* Create Sign Action

Signed-off-by: Mustafa Kara <mkara@pinchflat.dev>

* Move dependency installations to container

Signed-off-by: Mustafa Kara <mkara@pinchflat.dev>

* Add jq dependency check

Signed-off-by: Mustafa Kara <mkara@pinchflat.dev>

* Implement sign debian artifacts step

Signed-off-by: Mustafa Kara <mkara@pinchflat.dev>

* Fix Makefile spacing

Signed-off-by: Mustafa Kara <mkara@pinchflat.dev>

* Fix Makefile spacing

Signed-off-by: Mustafa Kara <mkara@pinchflat.dev>

* FIx artifacts for debian only

Signed-off-by: Mustafa Kara <mkara@pinchflat.dev>

* Fix artifacts directory

Signed-off-by: Mustafa Kara <mkara@pinchflat.dev>

* Implement signing via Makefile way

Signed-off-by: Mustafa Kara <mkara@pinchflat.dev>

* Modify Makefile for aptly packaging

Signed-off-by: Mustafa Kara <mkara@pinchflat.dev>

* Fix pipeline for aptly

Signed-off-by: Mustafa Kara <mkara@pinchflat.dev>

* Fix foreach loop in Makefile

Signed-off-by: Mustafa Kara <mkara@pinchflat.dev>

* Fix repo gpg key

Signed-off-by: Mustafa Kara <mkara@pinchflat.dev>

* Fix Repo Public Key issue

Signed-off-by: Mustafa Kara <mkara@pinchflat.dev>

* Get PGP key with wget

Signed-off-by: Mustafa Kara <mkara@pinchflat.dev>

* Change gpg implementation

Signed-off-by: Mustafa Kara <mkara@pinchflat.dev>

* Configure aptly

Signed-off-by: Mustafa Kara <mkara@pinchflat.dev>

* Fix missing release variable

Signed-off-by: Mustafa Kara <mkara@pinchflat.dev>

* Fix Frozen Makefile

Signed-off-by: Mustafa Kara <mkara@pinchflat.dev>

* Publish packages to apt repository

Signed-off-by: Mustafa Kara <mkara@pinchflat.dev>

* Configure variables for pipeline

Signed-off-by: Mustafa Kara <mkara@pinchflat.dev>

* Configure Package Linux Job

Signed-off-by: Mustafa Kara <mkara@pinchflat.dev>

* Fix Pipeline Code

Signed-off-by: Mustafa Kara <mkara@pinchflat.dev>

* Create rules for pipeline

Signed-off-by: Mustafa Kara <mkara@pinchflat.dev>

* COnfigure nightly branch

Signed-off-by: Mustafa Kara <mkara@pinchflat.dev>

* FIx broken branch name

Signed-off-by: Mustafa Kara <mkara@pinchflat.dev>

* Improve makefile to use build type variable

Signed-off-by: Mustafa Kara <mkara@pinchflat.dev>

* Fix nightly branch

Signed-off-by: Mustafa Kara <mkara@pinchflat.dev>

* Fix makefile

Signed-off-by: Mustafa Kara <mkara@pinchflat.dev>

* Fix Makefile

Signed-off-by: Mustafa Kara <mkara@pinchflat.dev>

* Install JQ

Signed-off-by: Mustafa Kara <mkara@pinchflat.dev>

* Remove need of version dedection

Signed-off-by: Mustafa Kara <mkara@pinchflat.dev>

* Fix sign operation

Signed-off-by: Mustafa Kara <mkara@pinchflat.dev>

* Create files to prepare signed artifacts

Signed-off-by: Mustafa Kara <mkara@pinchflat.dev>

* Create gitlab pipeline to use for desktop builds

Signed-off-by: Mustafa Kara <mkara@pinchflat.dev>

* Remove aptly conf

Signed-off-by: Mustafa Kara <mkara@pinchflat.dev>

* Sort makefile commands

Signed-off-by: Mustafa Kara <mkara@pinchflat.dev>
2022-04-21 09:41:50 -04:00
Devin Binnie 073fef83ae
Fix version numbers (#2064) 2022-04-19 20:18:04 -04:00
Devin Binnie c47da0de29
Fix download folder for MAS (#2063) 2022-04-19 20:16:58 -04:00
Amy Blais 7ec0b270cf
Update NOTICE.txt (#2060)
* Update NOTICE.txt

* Update NOTICE.txt
2022-04-19 15:24:16 -04:00
Devin Binnie e4bdb08a5d
Fixes to the release script (#2059) 2022-04-19 12:12:09 -04:00
Devin Binnie 0c369c4f3a
Add MAS to release pipeline (#2058) 2022-04-19 10:34:40 -04:00
Devin Binnie b240d446d8
Fix issue where opening a new view causes the original view still to push (#2053)
* Fix issue where opening a new view causes the original view still to push

* Test fix
2022-04-19 10:29:19 -04:00
Devin Binnie 1c44c8527a
E2E test fixups (#2045)
* Reinstall reporter and re-enable skipped tests

* Fixups for Linux

* Mac fixes

* Windows fixes

* Use keyboard shortcuts instead of menu for most menu actions

* Couple fixes

* One more fix for now

* Windows fixes

* Lint fixes

* Change up developer tools tests to be more consistent

* Fix key for mac

* Couple fixes for flaky tests/to avoid crashes on unload
2022-04-19 09:56:41 -04:00
Devin Binnie ce2ddb6a6a
[MM-31547] Stop users from being able to enter the same server name or URL twice (#2049)
Co-authored-by: Mattermod <mattermod@users.noreply.github.com>
2022-04-19 09:31:04 -04:00
Devin Binnie a26e3caf23
[MM-43185] Fix size of BrowserView for URLView (#2050) 2022-04-18 11:29:23 -04:00
Devin Binnie 9b8b1b58be
Upgrade to Electron v18.0.3 to fix MAS rejection (#2052) 2022-04-14 11:54:10 -04:00
Devin Binnie b8244f3266
[MM-26016] Hide tray icon theme colour when tray icon not enabled (#2051) 2022-04-14 10:15:21 -04:00
Devin Binnie bce2811dbc
[MM-39796][MM-39872][MM-T1659][MM-T2827] E2E Tests for Popups (#2047)
* [MM-39796] E2E Test: Copy and Paste when connecting plugin

* [MM-39872] E2E Test Prevent browser back/forward from firing in OAuth windows
2022-04-14 09:16:11 -04:00
Devin Binnie 4d46762584
[MM-43040] Copy entire config directory over for MAS (#2046)
* [MM-43040] Copy entire config directory over for MAS

* Fix package version
2022-04-13 09:25:03 -04:00
Devin Binnie fdbb468e7f
[MM-39747][MM-T1315][MM-T1316][MM-T1317] E2E Test: Ensure focus is returned to Mattermost view (#2048) 2022-04-12 13:52:59 -04:00
Devin Binnie 3f614a7c6f
[MM-39794] E2E Test: Drag and Drop (#2044) 2022-04-11 10:16:18 -04:00
Devin Binnie 9b466b67f6
[MM-39793][MM-T2633] E2E Test: Use back button to return to the desktop app login - and fixes (#2043)
* [MM-39793][MM-T2633] E2E Test: Use back button to return to the desktop app login - and fixes

* Lint and test fixes
2022-04-08 15:04:00 -04:00