Commit Graph

1160 Commits

Author SHA1 Message Date
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
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
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á
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
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
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
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
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
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
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
Devin Binnie
87bbad13fa [MM-35454] Fix default downloads path for Windows and Linux, only set for the app if the path is not blank (#1583)
* [MM-35454] Fix default downloads path for Windows and Linux, only set for the app if the path is not blank

* Default all other OSes other than Mac/Windows to unix standard
2021-05-05 12:54:21 -04:00
Devin Binnie
4dd731d01b [MM-35131] Set default app downloads path to specified path in config (#1574) 2021-04-30 09:44:42 -04:00
Devin Binnie
ad6c1064da [MM-35171] Use modified default user agent string instead of hardcoded (#1571) 2021-04-28 22:18:25 -04:00
Guillermo Vayá
9e5dfd6946 fix help message spacing (#1564) 2021-04-26 15:01:01 +02:00
Devin Binnie
f4f64c50a9 [MM-34836] Cleanse URLs of extra slashes on parsing, and add the image proxy case (#1560)
* [MM-34836] Cleanse URLs of extra slashes on parsing, and add the image proxy case

* Added unit tests
2021-04-23 11:01:12 -04:00
Devin Binnie
bdaa710b7e [MM-34884] Only call show() on an existing mainWindow if the window is actually closed or hidden (#1552) 2021-04-20 09:35:46 -04:00
Guillermo Vayá
992324f42f we don't use pressed images anymore with templates (#1549) 2021-04-20 11:48:00 +02:00
Devin Binnie
c461770274 [MM-34594] Only show dock badge when the setting is enabled (#1538)
* [MM-34594] Only show dock badge when the setting is enabled

* Fixed a potential crash
2021-04-19 14:33:04 -04:00
Devin Binnie
dcec274d30 [MM-34890][MM-34897] Fix some fullscreen issues (#1546)
* [MM-34890][MM-34897] Fix some fullscreen issues

* Using saveWindowState instead
2021-04-19 10:59:07 +02:00
Guillermo Vaya
1cbe799bc8 fix mac bg 2021-04-16 23:24:38 +02:00
Guillermo Vayá
b00da1b053 Update icons (#1545) 2021-04-16 19:29:40 +02:00
Devin Binnie
62de91b7aa [MM-34494] Encapsulate context menu in a class object and add it to each view as necessary (#1544) 2021-04-16 12:33:23 -04:00
Guillermo Vayá
9f31d3c725 [MM-34820] Improve spell check's option help text (#1543)
* improve spell check text

* Update src/renderer/components/SettingsPage.jsx

Co-authored-by: Carrie Warner (Mattermost) <74422101+cwarnermm@users.noreply.github.com>

Co-authored-by: Carrie Warner (Mattermost) <74422101+cwarnermm@users.noreply.github.com>
2021-04-15 13:41:34 -04:00
Guillermo Vayá
03c80ced4e [MM-33903] fix loading screen (#1540)
* fix loading screen and add timeout

* fix updates not rerendering
2021-04-15 16:11:06 +02:00