Devin Binnie
080e4bf727
[MM-59543] Disallow use of file: protocol in the app, remove all references to it, add mattermost-desktop: protocol to read local files ( #3095 )
2024-07-18 16:01:44 -04:00
Devin Binnie
87b2f12663
[MM-59544] Upgrade to Electron v31.2.1 ( #3096 )
2024-07-18 11:01:22 -04:00
Devin Binnie
2dee9b6bc8
Fixed isInsideRectangle to actually work, and removed null check for matchingScreen since it will always return something ( #3093 )
2024-07-16 09:35:06 -04:00
Devin Binnie
35665dee33
[MM-59480] Remove logging of the title/body of notifications ( #3092 )
2024-07-15 14:31:14 -04:00
Claudio Costa
6305153711
Show context menu in Calls popout ( #3085 )
2024-07-15 10:44:21 -04:00
Claudio Costa
c0e2b2a0e7
[MM-57964] Implement openThread
and openStopRecordingModal
( #3073 )
...
* Implement API to open thread from Calls widget
* Stop recording modal
* Rename
2024-06-20 18:42:21 +02:00
Devin Binnie
d3a76caeef
[MM-58780] Don't account for scaleFactor on Windows when resizing if the matching screen is the primary monitor ( #3072 )
2024-06-19 09:27:19 -04:00
Devin Binnie
0d4800fd61
[MM-54863] Add permissions manager UI in Edit Server modal, improve permission checks to be less missable ( #3059 )
...
* [MM-54863] Add permissions manager UI in Edit Server modal, improve permission checks to be less missable
* Removing this for E2E (which was having issues anyways)
* PR feedback
* Disable permissions dialog for current E2E tests
* Fixed the dark mode CSS
* Update icon
2024-06-19 09:19:24 -04:00
Devin Binnie
bf07674d68
[MM-58593] Ensure desktop app reloads the current URL when reloading manually ( #3061 )
2024-06-13 09:03:10 -04:00
Devin Binnie
3139d485d4
[MM-58357] Disable window scaling for OSes that aren't Windows ( #3063 )
2024-06-12 10:21:21 -04:00
Devin Binnie
06c5fe9220
[MM-58693] Fix some issues with Windows notifications ( #3060 )
...
* Fix DND setting for Windows
* Add custom not_sent reason for handling windows permissions denied
* Wait to see if failed event happened first before calling success
* Add test
* Reverse priority
2024-06-11 17:18:01 -04:00
Devin Binnie
d11752e195
[MM-58455] Add error handling when FocusStatus is not authorized on macOS ( #3053 )
...
* [MM-58455] Add error handling when FocusStatus is not authorized on macOS
* Do the permission check very early so that it's less likely for users to miss it
* Move permissions check to initialize
2024-06-06 14:04:49 -04:00
Devin Binnie
923df7c187
[MM-46634] Force window to be focused after navigation on notification click ( #3051 )
2024-06-04 15:43:22 -04:00
Devin Binnie
9bc0270a13
[MM-58357] Account for monitor scale factor when creating the window from saved bounds ( #3045 )
2024-05-29 10:08:11 -04:00
Devin Binnie
9c6d809682
Improve notification logging ( #3040 )
2024-05-23 16:45:36 -04:00
Devin Binnie
3cf7ec7451
[MM-58158] Make sure closing the permissions dialog results in a Deny instead of an Allow ( #3032 )
2024-05-08 15:00:44 -04:00
Devin Binnie
b411437a15
[MM-58089] Disallow redirects to untrusted URLs without a permission prompt ( #3024 )
...
* [MM-58089] Disallow redirects to untrusted URLs without a permission prompt
* Fix types
* Add test
2024-05-08 11:12:09 -04:00
Devin Binnie
a6ce24d184
[MM-58001] Fix an issue where the window position has a decimal number ( #3017 )
...
* [MM-58001] Fix an issue where the window position has a decimal number
* I accidentally a log
2024-04-24 13:20:16 -04:00
Devin Binnie
6845d4a261
Fix shouldNotify notification reason ( #3009 )
2024-04-19 09:17:13 -04:00
Devin Binnie
02704177c0
Move Settings Window into Modal ( #3007 )
...
* Move Settings Window into modal
* Re-add for E2E tests
2024-04-16 09:53:55 -04:00
Devin Binnie
d2414c286f
Fix settings window disappearing on macOS when dragged to another monitor ( #3006 )
...
* Fix settings window disappearing on macOS when dragged to another monitor
* Force other windows to show on the same screen as the main window when created
* Try to center the window relative to the main window
* Fix test
2024-04-15 17:15:18 -04:00
Devin Binnie
1eda09ae25
[MM-57348] Change result
to status
as a better descriptor of the notification status ( #3005 )
2024-04-12 09:06:33 -04:00
Devin Binnie
6f96919771
[MM-57736] Force maximize state when restoring the window ( #3002 )
2024-04-10 07:54:26 -04:00
Devin Binnie
e1c957e774
Various QoL fixes for Desktop App ( #2999 )
...
* Some ESLint fixes
* Add login/logout signal to API, clear mentions on logout and flush cookies on login/logout
* Fix issue where local and HTTP-only servers would not validate correctly
* Reduce noise of renderer logging, adjust a few local renderer logs to be louder when needed
* Fallback to beginning of hostname for servers that don't change the site name
* Fix Save Image crash
* Update the name for insecure servers too
* Fix test
* Fix lint
* Reduce repetition
2024-04-08 09:12:35 -04:00
Devin Binnie
e7cf7a81e9
[MM-57348] Support notification metrics from the Desktop App client ( #2998 )
...
* [MM-57348] Support notification metrics from the Desktop App client
* Add timeout in case promise never resolves
2024-04-05 10:35:12 -04:00
Devin Binnie
ba8578273f
Stop Apple from killing the Electron dev process when a notification is received ( #2991 )
2024-03-22 13:12:06 -04:00
Devin Binnie
da59e13477
Use .close()
instead of the private .destroy()
to stop leaking WebContents ( #2990 )
...
* Use `.close()` instead of the private `.destroy()` to stop leaking WebContents
* Fix tests
2024-03-22 12:26:51 -04:00
Devin Binnie
6d02c5a528
Some further ESLint cleanup, remove some unnecessary scripts and lines ( #2984 )
2024-03-18 14:46:12 -04:00
Devin Binnie
ab014c26a2
Stop constant reloading of BrowserViews for servers that are not available ( #2980 )
2024-03-13 08:53:07 -04:00
Devin Binnie
e56b5cdd6a
Various build and developer fixes, some optimizations ( #2975 )
...
* Various build and developer fixes, some optimizations
* Fix the linux build
* Fix afterpack
* Fix notarization variables
* Revert macos-notification-state changes from this PR
* Only build the tar for PRs
* Also ci
* Fix copy script
* Fix copy script more
* Remove @babel/cli
* Fix windows build
* Fix MAS build
2024-03-12 10:04:11 -04:00
Devin Binnie
e5efa727fe
Upgrade electron-log to v5.1.1 ( #2973 )
2024-03-11 19:55:34 -04:00
Devin Binnie
c55e37da2f
[MM-45780] Update to macos-notification-state 3.0, update entitlements and provisioning profile to allow Communication Notification access ( #2972 )
...
* [MM-45780] Update to macos-notification-state 3.0, update entitlements and provisioning profile to allow Communication Notification access
* Remove extra entitlements
* Add proper inherit
2024-03-11 09:37:38 -04:00
Devin Binnie
9b36c25e4e
[MM-52696] Upgrade and clean up Desktop App dev dependencies ( #2970 )
...
* Upgrade to ESLint v8
* Upgrade TypeScript, api-types, react-intl
* Remove unnecessary dependencies
* Update to React 17.0.2
* npm audit fixes, remove storybook
* Lock some packages
* Remove nan patch
* Remove some deprecated dependencies
* Fix lint/type/tests
* Merge'd
* Fix bad use of spawn
* Fix notarize
* Fix afterpack, switch to tsc es2020
* Fix api types
* Use @mattermost/eslint-plugin
2024-03-07 15:55:33 -05:00
Devin Binnie
12d59cd81c
[MM-48518] Include renderer logs in main log ( #2969 )
2024-03-06 09:42:34 -05:00
Devin Binnie
405403ca99
[MM-56882] Fix a potential crash in diagnostics ( #2960 )
2024-02-16 12:27:30 -05:00
Claudio Costa
1613eb17bc
[MM-55503] Update Calls Desktop API ( #2937 )
...
* Update Calls Desktop API
* Update tests
* Handle Calls links internally
---------
Co-authored-by: Devin Binnie <52460000+devinbinnie@users.noreply.github.com >
2024-01-24 10:54:19 -05:00
Claudio Costa
3308730f13
[MM-55720] Add menu item to open developer tools for Call Widget window ( #2936 )
...
* Add menu item to open developer tools for Call Widget window
* Add dedicated Developer Tools submenu
2024-01-09 17:31:06 -06:00
Devin Binnie
113fda79b1
Fixed a crash when the view loads for the first time ( #2931 )
2023-12-15 11:32:32 -05:00
Devin Binnie
0cab09b7f5
[MM-55152] Add new Desktop API endpoints, improve preload script, some clean-up ( #2900 )
...
* Add constants for app info, add to API
* Migrate history button
* Converted calls API over to context bridge, removed some unnecessary logging
* Convert to TS, add types for web app to consume
* Fix tests, prune
* Fix lint
* More changes to support the legacy API
* Force legacy code off, add support for unreads/mentions/expired through the API
* Fix issues with cross-tab login, removed need for log in/log out signalling
* Fixed test, typos
* Change package name for types
* Add some other stuff to the types
* PR feedback
* More feedback
* Use npm package
* Change types and API to provide off listeners
* Version number
* Lock
* Fix typo
* Add sessionID for calls
2023-12-13 09:39:46 -05:00
Hasan Can
9f80b7d82b
customize taskbar icon depending to session ( #2899 )
...
Co-authored-by: Mattermost Build <build@mattermost.com >
2023-12-05 11:22:53 -05:00
Devin Binnie
762324b596
[MM-55317] Force deep linking to use formatted path names when rewriting the URL ( #2907 )
...
* [MM-55317] Force deep linking to use formatted path names when rewriting the URL
* PR feedback
2023-11-10 10:48:26 -05:00
Devin Binnie
a1071277d6
[MM-55261] Allow embedded video links to go fullscreen after a permission check ( #2905 )
2023-11-10 09:02:34 -05:00
Devin Binnie
9faaa79064
[MM-55054] Consider a matching origin for a media request as a trusted URL when checking permissions ( #2893 )
2023-11-02 12:21:58 -04:00
Devin Binnie
36daa3d67e
[MM-54742] Force secure keyboard entry off when window loses focus and when servers switch ( #2869 )
...
* [MM-54742] Force secure keyboard entry off when window loses focus and when servers switch
* Fix for when window is not focused, added tests
2023-10-10 10:47:13 -04:00
Daniel Espino García
9aec7db821
Fix notifications not working ( #2865 )
...
* Fix notifications not working
* Transform into a manager
* Remove test accessor
2023-10-10 16:13:07 +02:00
Devin Binnie
02261c9de3
[MM-54701] Fix development deep linking for login for Windows/Linux ( #2867 )
...
* [MM-54701] Add exec and dist path for Windows dev deep linking
* Add script for Linux to add a desktop entry for deep linking
* Fix build
2023-10-10 10:07:10 -04:00
Devin Binnie
013d46da8a
[MM-54584] Fixed an issue where clicking on a link to an unregistered protocol on macOS would cause the app to crash ( #2868 )
2023-10-06 08:29:24 -04:00
Devin Binnie
8281bbbb37
[MM-54591] Use getVersion endpoint to report app name ( #2862 )
2023-09-29 11:16:29 -04:00
Devin Binnie
2a88175b09
[GH-2857] Allow only macOS to call setSecureKeyboardEntryEnabled ( #2860 )
2023-09-28 11:07:58 -04:00
Devin Binnie
47087a3176
Fix multiple permission dialogs displaying for the same permission check ( #2849 )
2023-09-19 12:07:47 +02:00