Commit graph

2295 commits

Author SHA1 Message Date
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
Devin Binnie dbe48e796c
[MM-39673][MM-T1288] E2E Test: Keyboard Shortcuts in Settings Page (#2041) 2022-04-08 09:56:13 -04:00
Ujjwal Sharma c48628413a
[MM-39661] MM-T827 Select Next/Previous Tab (#1964)
* MM-T827 added

* package.json revert

* robotjs taps induced

* Switched commands to ctrl-tab and ctrl-shift-tab

Co-authored-by: Devin Binnie <devin.binnie@mattermost.com>
2022-04-07 15:25:07 -04:00
Devin Binnie b81559b380
Fix nightly build again (#2042)
* More fixes for the nightly build

* remove ci changes
2022-04-07 10:31:51 -04:00
Devin Binnie 0fea052a9b
[MM-43039] Upgrade and clean up dependencies (#2038)
* Upgrade Electron to v18

* Fix a test

* Upgrade ESLint and TypeScript

* Update Joi

* Clean up and upgrade dependencies

* Upgrade dev dependencies

* Upgrade to Webpack 5

* Update NOTICE.txt

* Update test runtime
2022-04-06 19:08:27 -04:00
Devin Binnie 61de4dfb7b
Fix a typo in the nightly build (#2040) 2022-04-06 09:16:10 -04:00
Devin Binnie 2427e9eaa0
Fix daily upload for Rainforest builds (#2035) 2022-04-05 17:19:59 -04:00
Devin Binnie 626fea84a5
[MM-41999] Add additional logging for debugging, allow users to change log level (#2031)
* Add debug logging switch

* Add tests

* Mock electron-log globally in jest

* New logs for debugging

* Switch to a dropdown to choose log levels

* Fix tests

* Update wording
2022-03-31 16:46:57 -04:00
Devin Binnie 7c1fa2c78d
[MM-42098] Remove icon from Windows 10/11 notification (#2032) 2022-03-31 16:46:23 -04:00
Devin Binnie 67b150ab3b
Add seperate deb and rpm builds for CI (#2033) 2022-03-31 16:46:10 -04:00
Devin Binnie 33bf2581a1
Add skip_waiting_for_build_processing to CI build (#2027) 2022-03-29 11:35:55 -04:00
Amy Blais 0b26143e59
Update ISSUE_TEMPLATE.md (#2030) 2022-03-29 09:40:08 -04:00
Colton Shaw 81cb2b6bed
Fullscreen mode (#1968)
* Add preference to open app in full screen

* CLI flag for fullscreen and function to return fullscreen state

Parsing the config or the args to define how to open the app. Args take priority over the config, and fallback is the window state.

* Optional TS config value

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

* Remove undefined check for `Config.startInFullscreen`

* Fixed optional arg for test

* Fixed jest test

* fullscreen optional window value

* Update src/main/windows/mainWindow.ts

Co-authored-by: Guillermo Vayá <guivaya@gmail.com>

* Update src/main/windows/mainWindow.ts

Co-authored-by: Guillermo Vayá <guivaya@gmail.com>

* Type fixes

Co-authored-by: Mattermod <mattermod@users.noreply.github.com>
Co-authored-by: Devin Binnie <52460000+devinbinnie@users.noreply.github.com>
Co-authored-by: Guillermo Vayá <guivaya@gmail.com>
Co-authored-by: Devin Binnie <devin.binnie@mattermost.com>
2022-03-28 17:22:08 -04:00
Devin Binnie b7d9e771a2
Attempt to fix linux build (#2026)
* Attempt to fix linux build

* This

* Is this better?

* Typo

* THIS?!
2022-03-28 16:43:27 -04:00
Devin Binnie 0a7be91576
[MM-42538] Submit nightly builds to TestFlight for macOS (#2023)
* Initial MAS build, working on TestFlight

* Migration of old configs to MAS

* Ignore fastlane files

* Add mac app store build to nightly build

* Revert Me - For testing in PR

* Don't need to install fastlane

* BIG D

* Fix patch updater script to allow for no yml

* Nevermind, do this instead

* Update xcode

* Let's try a fake version that works

* Revert version and rename for test flight

* Use Xcode 13.0.0

* Use CircleCI build number when available

* Revert testing changes

* Remove notarize for MAS

* Change vars to MACOS instead of IOS

* Revert electron-builder to v22

* Revert package-lock.json

Co-authored-by: Mattermod <mattermod@users.noreply.github.com>
2022-03-28 11:06:00 -04:00
Devin Binnie bc7f82fbf3
[MM-42587] Fix typo in unread checking code (#2020)
Co-authored-by: Mattermod <mattermod@users.noreply.github.com>
2022-03-21 10:08:16 -04:00
Devin Binnie 3eb904cd67
[MM-41891] Improve error and reload states (#2019) 2022-03-18 10:16:12 -04:00
Devin Binnie f79c445920
[MM-42024] Enable React Developer Tools for nightly builds (#2018) 2022-03-16 11:29:26 -04:00