Commit Graph

2300 Commits

Author SHA1 Message Date
Kyriakos Z
9ce5cb759d MM-36234: CRT, handle click on notification (#1699)
Clicking on a notification that regards a reply to a thread,
and when the user has CRT set to ON, should open the corresponding thread.

This is done by passing the URL to push to the browser along side the
notification.

Webapp: If a `url` is passed it will be used, otherwise the URL pushed to
history would be the corresponding channel (as is right now).
2021-08-19 17:36:07 +03:00
Devin Binnie
40dfbdb884 [MM-36923] Wait to return to the application before turning off the custom login setting (#1697) 2021-08-17 12:22:37 -04:00
Devin Binnie
a79e7aeb4c [MM-36428][MM-36434][MM-36435] Keyboard navigation and menu updates for new tab/dropdown layout (#1695)
* [MM-36428][MM-36434][MM-36435] Keyboard navigation and menu updates for new tab/dropdown layout

* Shortcuts for Windows/Linux

* Update config.yml

* Fixed up the shortcuts

* Fixed the new server modal popping up where there are GPO teams only
2021-08-16 09:17:45 -04:00
Devin Binnie
52becc3467 [MM-37797] Re-added the check for flashing the window (#1696) 2021-08-13 10:08:00 -04:00
Devin Binnie
60c73d6d58 [MM-37743] Fix URL validation when editing/adding a server (#1688) 2021-08-12 08:26:24 -04:00
Devin Binnie
5964fc99ac [MM-37661][MM-29878] Brand Updates for Desktop v5.0/MM v6.0 (#1691)
* WIP

* WIP

* Fixed the background

* Do the thing

* Merge'd?

* Adjust window height to completely show image
2021-08-11 16:49:36 -04:00
Devin Binnie
14873083d7 fix package lock (#1692) 2021-08-11 12:22:13 -04:00
Devin Binnie
51f80f5fef Remove old src/node_modules on clean if it exists (#1693) 2021-08-11 12:02:30 -04:00
Devin Binnie
10feb84c31 enable handlers earlier (#1676) (#1689)
Co-authored-by: Guillermo Vayá <guillermo.vaya@mattermost.com>
2021-08-10 09:20:07 -04:00
Devin Binnie
d77b6f81a9 [MM-36423][MM-36427] Edit/Delete modals for dropdown (#1682)
* [MM-36423] Edit/Delete modals for dropdown

* [MM-36427] Remove Server Management from Settings modal

* Style fixes

* Hover states for edit/delete buttons

* Update config.yml

* Oops I broke something
2021-08-09 12:04:27 -04:00
Devin Binnie
638e331c58 [MM-37646] Fixed long server name style issue (#1683) 2021-08-05 14:20:46 -04:00
Devin Binnie
bdf83547fe Fix mac installer (#1681)
* Fix mac installer

* Update config.yml

* Ignore issues updating to node v16
2021-08-04 16:02:14 -04:00
Guillermo Vayá
81baae30bf make electron builder compatible with node v16 (#1678)
* make electron builder compatible with node v16

* Fix cp_artifacts.sh

Co-authored-by: Mattermod <mattermod@users.noreply.github.com>
Co-authored-by: Devin Binnie <devin.binnie@mattermost.com>
2021-08-03 09:30:15 -04:00
Guillermo Vayá
2229ed3e84 remove electron-log from preload (#1673)
fix lint
2021-07-28 09:51:55 -04:00
Guillermo Vaya
d859e95c5c Revert "remove electron-log from preload"
This reverts commit 90ba844fba.
2021-07-27 11:24:56 +02:00
Guillermo Vaya
90ba844fba remove electron-log from preload 2021-07-27 11:22:10 +02:00
Guillermo Vayá
0b05f0e00c allow webpack to resolve .json (#1672) 2021-07-26 15:43:02 +02:00
Guillermo Vayá
d77c823bd5 [MM-36747] Spellchecker custom urls (cherrypick to TS) (#1669)
* [MM-36747] Allow users to specify spellchecker url for downloading dictionaries

* fix settings keys

Co-authored-by: = <=>
2021-07-26 09:28:49 -04:00
=
f5ca0f9ef5 remove memoization 2021-07-23 17:15:35 +02:00
Guillermo Vayá
4e75007362 [Mm 37198] enable global sandboxing to increase security (#1667)
* prevent creating new windows from popup windows

* enable sandbox

* fix windows detection logic

* disable on testing environment

Co-authored-by: = <=>
2021-07-23 16:07:48 +02:00
Devin Binnie
c567449854 [MM-36753] Revert to Electron v12.0.1 (#1665) 2021-07-21 16:47:29 -04:00
Devin Binnie
d3599fc500 [MM-36431] Logic to support multiple configurable tabs per server (#1655)
* Updated config, added types and classes for messaging tab

* Working app with tabs and servers

* Remainder of logic

* Make base tab abstract class

* Account for new app case

* Merge'd

* PR feedback
2021-07-20 09:05:53 -04:00
Devin Binnie
29a049e8ae [MM-36998] Ensure server key must be at least 0 (#1660) 2021-07-19 11:29:38 -04:00
Guillermo Vayá
ccd515e50c fix crash on invalid download paths (#1662)
Co-authored-by: = <=>
2021-07-19 17:26:37 +02:00
Devin Binnie
e71c4ff9f0 [MM-36459] Drag and drop for dropdown (#1651)
* [MM-36459] Drag and drop for dropdown

* CircleCI build

* Drag and drop feedback from UX

* PR feedback

* PR feedback
2021-07-14 16:29:35 -04:00
Guillermo Vayá
26ca8ccefc disable gpu before app inits (#1654)
Co-authored-by: = <=>
2021-07-13 18:23:05 +02:00
Devin Binnie
ee1b393e3d Bootstrap v4 dark mode for modals and settings window (#1650)
* Bootstrap v4 dark mode for modals and settings window

* Fix package-lock.json

* Fix package-lock.json again

* Merge'd

* Oops

* Refactor into helper
2021-07-09 17:19:49 -04:00
Devin Binnie
880af87ddf [MM-36421] Replace server tabs with dropdown menu (#1647)
* WIP

* WIP

* PoC for dropdown - logic stuff

* Most of the logic for the dropdown

* Working dropdown menu to pick servers

* Mentions, unreads and expired working. Many styles are working.

* Some more styles

* Dark mode and other stuff

* Some cleanup

* Generate build

* PR feedback

* More PR feedback
2021-07-07 18:49:48 -04:00
Devin Binnie
4130c2c37d React bootstrap upgrade to v1, migrate to react-beautiful-dnd (#1639)
* Upgrade packages, fix errors, still WIP

* WIP

* Bootstrap v4 upgrade

* Switch to react-beautiful-dnd

* Fixed some issues

* Added to generate signed Mac build for UX

* PR feedback

* Missed one

* PR feedback
2021-07-05 21:19:11 -04:00
Sayanta Banerjee
86a3f13a6b Update README.md (#1641) 2021-06-29 17:30:20 +02:00
Devin Binnie
1b3d0eac8f Migrate app to TypeScript (#1637)
* Initial setup and migrated src/common

* WIP

* WIP

* WIP

* Main module basically finished

* Renderer process migrated

* Added CI step and some fixes

* Fixed remainder of issues and added proper ESLint config

* Fixed a couple issues

* Progress!

* Some more fixes

* Fixed a test

* Fix build step

* PR feedback
2021-06-28 09:51:23 -04:00
Devin Binnie
422673a740 [MM-36543] Check for webcontents before trying to load url in case tab was removed (#1633) 2021-06-21 08:48:31 -04:00
Guillermo Vayá
62a0d148ec [MM-30147] [MM-30146] fix loading path for cert modal (#1630)
* fix loading path for cert modal

* fix linting
2021-06-16 16:35:12 +02:00
Guillermo Vayá
2f65c987e1 [MM-35581] fix m1 rename not being persisted, add rpm to release (#1626)
* fix m1 rename not being persisted, add rpm to release

* testing, revert after test

* Revert "testing, revert after test"

This reverts commit 70dc9a702b0d166c159c30add836c695e7fdd278.
2021-06-11 19:59:35 +02:00
Devin Binnie
46ffece3ed [MM-36030] Allow for duplicate servers with different names to behave normally (#1628) 2021-06-10 11:33:52 -04:00
Guillermo Vayá
3aaf1797aa [MM-36340] fix linux theme comparison (#1627) 2021-06-10 09:36:51 -04:00
Guillermo Vayá
92906248ba [MM-35581] Rename arm64 to m1 (#1620)
* add rename

* remove check so we can test it

* revert testing changes

Co-authored-by: = <=>
2021-06-09 10:57:45 +02:00
Guillermo Vayá
fa363d7db8 update to v12.0.10 (#1619) 2021-06-08 11:24:34 +02:00
Elsie Hupp
6b17f30d35 [GH-317] Correct size for Linux tray icons (#1595)
Signed-off-by: Elsie Hupp <9206310+elsiehupp@users.noreply.github.com>
2021-06-07 17:11:20 +02:00
Devin Binnie
9eb61c6cc0 [MM-35984] Make sure Select Downloads Folder dialog always uses the default location if none is selected (#1613) 2021-05-26 10:15:04 -04:00
Devin Binnie
eecadb9c46 [MM-35662] Added media-src tag to CSP to allow data blobs to play for notification sounds (#1612) 2021-05-26 10:08:34 -04:00
Sven Hüster
8481ca7e33 add rpm build option to electron builder (#1611) 2021-05-26 10:22:51 +02:00
Devin Binnie
98cf5d25df [MM-35781] Another workaround for Linux resizing (#1608) 2021-05-19 17:45:15 -04:00
Devin Binnie
4fdcaf66a3 [MM-35811][MM-35386] Upgrade to Electron 12 (#1604)
* Upgrade to Electron 12

* Fix lock file

* Update package.json

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

* Upgrade spectron

Co-authored-by: Guillermo Vayá <guivaya@gmail.com>
2021-05-19 09:40:12 -04:00
Devin Binnie
22449fb081 [MM-35131] Don't set the download location in config if we hit Cancel (#1600) 2021-05-14 09:16:23 -04:00
Devin Binnie
15a020a726 [MM-35588] Ensure that the window exists before calling minimize/maximize/reload (#1598) 2021-05-11 16:10:29 -04:00
Guillermo Vayá
47f36294b8 Windows tray theme (#1593)
* images

* use expected theme on windows

* fix shadowing

Co-authored-by: = <=>
2021-05-10 18:52:23 +02:00
Devin Binnie
3395f7ae4c [MM-19510][MM-19511] Remove ToastActivatorCLSID from Start Menu shortcut on Windows (#1590)
* [MM-19510][MM-19511] Remove ToastActivatorCLSID from Start Menu shortcut on Windows

* Temporarily modify config.yml to run test msi build

* Try again

* Nope

* have store artifacts wait for the msi

* Reverting to see if it's CircleCI or my change causing the issue:

This reverts commit b289f70a643e6697948d7487ea29346a792868ab.

* Revert "Reverting to see if it's CircleCI or my change causing the issue:"

This reverts commit 41f10c281acba914629c9366816ce89fdc43c525.

* Remove changes to circleCI build

* Blank space

Co-authored-by: Guillermo Vaya <guivaya@gmail.com>
2021-05-07 17:27:00 -04:00
Devin Binnie
75567342c1 [MM-35249] Set window bounds on initial load success (#1587) 2021-05-06 09:27:27 -04:00
Devin Binnie
7d333dfe8f [MM-35245] Null check to prevent console error in preload script on unloaded server (#1582) 2021-05-05 17:14:42 -04:00