Commit Graph

271 Commits

Author SHA1 Message Date
Dean Whillier
e00f803fd3 [MM-22618] Reorder tab menu items to match tab order (#1198)
* reorder tab menu items to match tab order

* now reorder menu items on tray icon
2020-02-18 09:49:21 -05:00
Guillermo Vayá
3c35767df5 [MM-22150] Add default accelerators (#1183) 2020-02-10 12:35:13 -08:00
Hunter Lester
cf097e624f [MM-18007] macOS app reopens closed window on Cmd+Tab (#1110) 2020-01-23 12:09:22 +01:00
JtheBAB
f6129c8253 Add pl-PL as spellchecker (#1155)
* Update contextMenu.js

* Update SpellChecker.js

* Update spellchecker_test.js

* Update test/specs/spellchecker_test.js

Co-Authored-By: Dean Whillier <deanwhillier@users.noreply.github.com>

Co-authored-by: Dean Whillier <deanwhillier@users.noreply.github.com>
2020-01-21 09:08:50 -05:00
Guillermo Vayá
58cf6d5b28 [MM-20363] prevent using api to navigate within the app's window (#1137)
* prevent using api to navigate within the app's window

* api calls handled differently

* add aliases to ease development

* small refactor of url navigation

* hardcode http/s protocol being allowed

* add protocols specified on electron-builder
2020-01-17 13:52:05 -05:00
Raoul Scarazzini
f9b5d64993 Add it-IT spell checker (#1139) 2020-01-16 22:20:15 -05:00
Dean Whillier
9f2c1b6f86 Upgrade to Electron 6 (#1152)
- includes update to electron-builder 22
- includes deprication update to powerMonitor
2020-01-16 17:47:13 -05:00
Devin Binnie
932ddafdb0 [MM-10586] Desktop App Window/Tabs Update (#1056)
* [MM-19054] Added new server tab look and feel, still missing proper hover states and session expired icon

* [MM-19055] Added window controls and removed border for macOS

* [MM-19055] Add dark mode for macOS

* [MM-19054] Added session expired icon

* Test windows titlebar

* Fixed the menu issue and added non-macOS dark mode

* Blank commit

* Fixed a lint issue

* Fixed more lint issues

* Fixed more issues

* New tray icons

* [MM-19603] Drag and drop tabs

* Fixed some assets and fixed build output to include missing assets

* Fixed a couple small issues

* Only show tabs for only 1 server on Mac

* Fixed some more tests

* Fixed another test

* Revert "Fixed another test"

This reverts commit 36040294a71a68663d06996d71eecc5ed23d7014.

* Fixed another test

* Trial and error!

* A bunch of additional fixes

* Fixed a lint issue

* Fixed restore focus on add server tab causing bad UX

* Trial and error on flaky test again

* Fixed some bugs based on PR feedback.

* blank commit to push tests

* Revert "Test windows titlebar"

This reverts commit 9cd46b71b1427b75942434ac49185870d2437b85.

* Remove the rest of the old new titlebar and fixes

* Added three-dot link

* New menu

* Rest of new windows menu and other fixes

* Fixed lint errors

* Added windows 10 style title bar buttons for non mac OS

* Lint fixes and enabled the tab bar regardless of number of servers

* Missed one

* Fixed unicode characters

* Commenting out test that should no longer be applicable

* Removed Windows 10 style titlebar icons and used material design instead

* Fixed a lint issue

* Some small UX fixes

* blank commit

* Fixed an issue where dropping the first tab moves it too far over before snapping into place

* Additional style fixes

* Another small issue fix

* Back to Windows 10 style

* Lint fixes

* Accessible three dot menu

* Lint fixes

* Shrinking tabs when window is too small

* Gradient between tabs and title bar buttons when window is too small

* Add drag to gradient

* Replaced icons, drag and drop cursor sticking fix, slight tab change

* Lint and some mac fixes

* Light theme fix to three dot menu

* Hack for tab sticking to cursor on macOS

* Fixes for the find utility

* Fix for Catalina dark mode

* Revert "Fix for Catalina dark mode"

This reverts commit 45da05dd0f17f46efd1c53fafb92e9c1fd9dd8d9.

* Fixed a couple issues Dean found

* More fixes

* Three dot hover effect to circle

* PR feedback

* Test fixes

* Test and config fixes

* Disable dragging when there are GPO servers

* [MM-20757] Fixed dark mode on debug when running macOS Catalina

* Allow future config versions to use v2 config if launching this version of the app

* Oops

* New titlebar icons, blur for titlebar on inactive

* Lint fix

* Set unfocused opacity to 0.4

* Final FINAL icons

* Fixed closing menu not returning focus to the app

* Lint fix

* Update src/browser/components/TabBar.jsx

Co-Authored-By: Guillermo Vayá <guivaya@gmail.com>

* Update src/main/Validator.js

Co-Authored-By: Guillermo Vayá <guivaya@gmail.com>

* Lint fixes

* Moved react-smooth-dnd fork to MM org and fixed another merge issue

Co-authored-by: mattermod <mattermod@users.noreply.github.com>
Co-authored-by: Guillermo Vayá <guivaya@gmail.com>
2020-01-03 12:00:43 -05:00
Guillermo Vayá
81a9e5e028 set white background for OSs which have turned off subpixel aliasing (#1129) 2019-12-27 10:47:12 +01:00
Guillermo Vayá
2d8c7af089 [MM-14135] allow negative window app positions (#1124)
* [MM-14135] allow negative positions to enable having the app on a monitor on the left of primary

* remove logging
2019-12-13 17:13:03 +01:00
Dean Whillier
d23c8cf48a [MM 19649] Fix blank window when auto-starting the app on login (#1106)
* Windows: fix hidden/shown/maximized window on start

* allow for some overlap with the top/left edge of the screen before resetting

* support maximizing directly from app tray icon after initial startup

* inline comments

* alternative to prevent minimize effect on startup

* default hideOnStartup to false

* update comment
2019-11-19 23:02:49 +01:00
Dean Whillier
81c32c2d8c Manually handle misbehaving keyboard shortcuts (#1092)
* manually handle misbehaving keyboard shortcuts

MM-19198
MM-19032

includes zooming, redo/undo & copy/cut/paste for good measure

* manually handle misbehaving menu items

* bump electron minor version

* remove temp log import

* update context menu package version
2019-10-28 11:27:59 -04:00
Dean Whillier
e1f64f0ba0 [MM-19266] User activity monitor updates (#1061)
* user activity monitor updates

- re-work of the mechanism for determining user activity status and triggering updates that are passed to the server via the webapp
- removing system events (login/out screensaveer on/of etc.) to be re-considered for a future release

* add missing descriptions

* review tweaks

* update tests
2019-10-09 09:00:15 -04:00
Dean Whillier
24fdd05860 Change help menu shortcut on Windows (#1048) 2019-10-03 12:19:11 -04:00
Dean Whillier
761ef8d0e6 [MM-18152] Desktop notifications (#1040)
* temp

* add in html5 notification tests

* strip out custom permissions handling

* disable middle click

* validate as URI instead of URL

allow’s custom protocol’s to pass through

* add context isolation to new window requests

* add new permissions handling

* prevent setting user to away from quit/shutdown

* dispatch desktop notifications from renderer

* remove test code

* log desktop notification errors

* should deny as a last resort

* only trigger callback once
2019-09-23 14:59:12 -04:00
Dean Whillier
99fae82514 [MM-18551] Remove (auto)updater from v4.3 (#1035)
* remove (auto)updater from v4.3
2019-09-16 13:08:45 -04:00
Dean Whillier
e12d47ea62 Mm 16694 master validate urls (#1000)
* validate urls before deeplink or link click

* tests for isValidURL utility function

* review change - invert condition

* add validation for loaded files

bounds-info.json, app-state.json, config.json

* further validation and tweaks

certificate.json, permission.json

* add 2 more files for validation

* parse and validate deeplinks

- includes fix for windows deeplink when app is open

* disable auto-updator when in dev

* Squirrel is not used anymore

* fix validating allowedProtocols

* discard any args following a deeplink url

* tweaks

* update test

* support scheme’s with and without slashes

* stop after finding the first occurance of a deep link

* test updates

* updates to run tests successfully

* port updates to validation from 4.2

* url validation updates

changed validation package to better support internal domains and punycode domains
2019-09-09 12:38:31 -04:00
Dean Whillier
2d173e6f70 Enable context isolation (#999) 2019-09-09 12:30:25 -04:00
steevsachs
e6acdf387c [MM-11896] Do not use minimize shortcut on win32 (#971) 2019-07-02 15:09:39 +02:00
Yuya Ochiai
04c03c3baf Upgrade dependencies (#996)
* Upgrade Electron to 5.0.4

* Fix spellcheck provider

* npm audit fix
2019-06-26 15:46:13 -04:00
Dean Whillier
2cfc735d6d [MM 7970] Maintain online status while the Desktop App is in the background ... and other things. (#993)
* monitor os-level user activity

* disable eslint warnings

* add tests for UserActivityMonitor

* couple more tests

* udpate headers of new files
2019-06-25 10:11:03 -04:00
Dean Whillier
4137d0ea23 [MM-14740] Consolidate configuration to support integration of MSI/GPO (#959)
* config logic consolidation

* filter out duplicate servers

* build default teams and GPO teams are not editable

* tweaks

* tweak config architecture to support tests

- config needs to load in each process (main and renderer) and then synchronize with each other
- finished saving ui functionality

* add esdoc comments to new config module

* remove old config-related files

* revert eslint comment

* don’t filter teams, duplicates are allowed

* some code review tweaks

* Remove unecessary deepCopy

* tweak for tests

* Skip test for now

Can’t seem to get this test to work, even though what is being tested works fine in the actual app.

* fix for failing test

click of ‘light’ option wasn’t triggering an update as it is selected by default, so flipped the order to first select ‘dark’ and then ‘light’
2019-04-11 13:58:30 +02:00
Dean Whillier
28bf5ce08d Merge pull request #954 from mattermost/MM-14176
[MM-14176] Fix restart after quitting in full screen
2019-03-26 09:56:45 -04:00
Dean Whillier
feda6e6c02 don’t save window.fullscreen to app state 2019-03-21 11:44:48 -04:00
Dean Whillier
c17fdc23a4 fix black screen when closing window in fullscreen 2019-03-20 16:43:27 -04:00
William Gathoye
876899404a Merge pull request #926 from manland/MM-13827
add a menu to open dev tools for current webview
2019-02-20 20:50:39 +01:00
Aswath K
57939e21f2 Fix #538: makes the app not to restart in full screen mode 2019-02-11 22:37:00 +05:30
Romain Maneschi
1ef2108756 add a menu to open dev tools for current webview 2019-02-07 00:23:25 +01:00
Yuya Ochiai
4593cf38b3 Set notifyOnly:true on Windows builds 2018-11-20 00:34:22 +09:00
Yuya Ochiai
ed67da7357 Update auto-updater config for release 2018-11-11 23:26:25 +09:00
Yuya Ochiai
10d1bb7d0a Tweak updater modal appearance 2018-10-18 01:03:30 +09:00
Yuya Ochiai
48f165c44f Add cancel button to updater 2018-10-18 00:59:18 +09:00
Yuya Ochiai
ccdfbae3b2 Merge remote-tracking branch 'mattermost/master' into auto-updater 2018-10-16 00:28:47 +09:00
Hans-Peter Schadler
6f6e80bdac Preserve case of first letter in spell check, fixes #562 2018-10-06 10:21:56 +02:00
Yuya Ochiai
e5427ca274 Merge remote-tracking branch 'mattermost/master' into startup-via-config-json 2018-09-12 23:03:17 +09:00
Yuya Ochiai
d73f98825e Apply no-var eslint rule 2018-09-03 21:41:04 +09:00
Yuya Ochiai
9f9f5de5dd Hide the main window on Mac auto-start 2018-08-28 22:38:26 +09:00
Yuya Ochiai
15bc264fd5 Keep autostart config in sync with config.json 2018-08-07 23:51:54 +09:00
Yuya Ochiai
79f2faadba Fix timing to call quitAndInstall() 2018-08-02 22:09:09 +09:00
Yuya Ochiai
b45fc6545c Set flag to quit on auto-update 2018-08-02 22:09:09 +09:00
Yuya Ochiai
4e1b02bb1c Set interval to 5 minutes for auto-updater test 2018-08-02 22:09:09 +09:00
Yuya Ochiai
1573363132 Add logger to auto-updater 2018-08-02 22:09:09 +09:00
Yuya Ochiai
681572c512 Fix ESLint error 2018-08-02 22:09:09 +09:00
Yuya Ochiai
32ea776ed3 Show progress bar while downloading update 2018-08-02 22:09:09 +09:00
Yuya Ochiai
ca97a819f9 Prevent auto download of upgrade 2018-08-02 22:09:09 +09:00
Yuya Ochiai
fbcb08fa6e Fix Remind Me Later not working 2018-08-02 22:09:09 +09:00
Yuya Ochiai
0bec4ab5a3 Add enableAutoUpdater to buildConfig 2018-08-02 22:09:09 +09:00
Yuya Ochiai
79c445c500 Add notifyOnly auto-updater 2018-08-02 22:09:09 +09:00
Yuya Ochiai
f7926241ea Show auto-updater dialog as a modal 2018-08-02 22:09:09 +09:00
Yuya Ochiai
fb47c287d9 Tweak auto-updater flow 2018-08-02 22:09:09 +09:00