Commit Graph

119 Commits

Author SHA1 Message Date
Devin Binnie
ecf47e25b7 [MM-64617] Add enter key press handler to each of the modals (#3463) 2025-07-21 09:23:03 -04:00
Harrison Healey
9d26b01ef5 MM-62005 Change UrlView to always stay mounted (#3453)
* MM-62005 Change UrlView to always stay mounted

* Rename message for URL view and corresponding methods

* Change log level
2025-07-04 09:37:13 -04:00
Devin Binnie
2879ada39a [MM-64355] Disable server management in the Settings Modal when disabled via group policy (#3430)
* [MM-64355] Disable server management in the Settings Modal when disabled via group policy

* Fix to disallow deleting predefined servers

* Fix lint
2025-05-22 08:14:48 -04:00
Devin Binnie
f9b13e39fa Fix tasbar/dock translations (#3410) 2025-05-12 09:10:27 -04:00
Devin Binnie
eeddb8f897 [MM-63399] Add a changelog link for when the app auto updates (#3371)
* [MM-63399] Add a changelog link for when the app auto updates

* PR feedback

* PR feedback
2025-03-12 16:54:37 +00:00
Devin Binnie
1f4e1e0015 [MM-62448] Remove react-bootstrap, bootstrap and dependencies (#3358) 2025-02-27 18:27:03 -05:00
Devin Binnie
5d7374971c [MM-61717] Refresh Settings Modal without Bootstrap (#3337)
* [MM-61717] Refresh Settings Modal without Bootstrap

* Fix i18n

* Couple small bug fixes

* E2E test updates

* Fix linux tests

* PR feedback

* PR feedback

* PR feedback

* Fix the border opacity and height

* PR feedback

* PR feedback 2
2025-02-27 20:51:49 +00:00
Devin Binnie
6fa5508588 [MM-63224] Add incompatible server screen (#3348)
* [MM-63224] Add incompatible server screen

* Fixed issue where init isn't called on no server case

* Amend check
2025-02-21 10:17:49 -05:00
Devin Binnie
097dcfab75 Fix missed props destructure (#3344) 2025-02-18 11:21:14 -05:00
Devin Binnie
4d754efdd7 [MM-61716][MM-62643] Introduce Modal component, remove bootstrap and react-bootstrap from most modals, update styles (#3317)
* Introduce Modal, add some styles from the webapp

* Remove bootstrap from LoadingScreen/WelcomeScreen

* Migrate add/edit server modal to Modal, remove bootstrap

* Migrate remove server modal to Modal, remove bootstrap

* Migrate certificate modal to Modal, remove bootstrap

* Migrate login and permission modals to Modal, remove Bootstrap

* Misc fixes

* E2E tests for current modals

* Update src/renderer/components/Modal.tsx

Co-authored-by: Daniel Espino García <larkox@gmail.com>

* Update src/renderer/components/Modal.tsx

Co-authored-by: Daniel Espino García <larkox@gmail.com>

* PR feedback

---------

Co-authored-by: Daniel Espino García <larkox@gmail.com>
Co-authored-by: Mattermost Build <build@mattermost.com>
2025-02-18 15:58:28 +00:00
Devin Binnie
17300dfd4a [MM-62724] Refresh error page screen to match branding, remove react-bootstrap (#3300)
* [MM-62724] Refresh error page screen to match branding, remove react-bootstrap

* Fix links on error page to open externally

---------

Co-authored-by: Mattermost Build <build@mattermost.com>
2025-01-31 10:26:24 -05:00
Devin Binnie
f070b7068e [MM-62650][MM-62651] Remove bootstrap/react-bootstrap from TabBar, MainPage (#3292) 2025-01-30 15:37:05 -05:00
Devin Binnie
c3657c6318 [MM-62652] Replace Button from react-bootstrap with button (#3295) 2025-01-28 08:45:35 -05:00
Devin Binnie
9ecd139abf [MM-62649] Switch DeveloperModeIndicator over to floating-ui (#3294)
* [MM-62649] Switch DeveloperModeIndicator over to floating-ui

* Fix test
2025-01-28 08:04:48 -05:00
Devin Binnie
34b5f52f0c [MM-62232] Update loading and welcome screens, theming fixes (#3279)
* Replace images with new SVG components, replace backgrounds

* Add Denim and Onyx themes, fix associated themeing issues

* Add back elevation variables

---------

Co-authored-by: Mattermost Build <build@mattermost.com>
2025-01-13 14:42:27 +00:00
Devin Binnie
8aa0b86c7a [MM-22555] Auto-fill server URLs when deep linking into the Desktop App and the server isn't configured (#3200)
* Allow deep linking to non-configured servers by auto filling the modal

* Fall back to base URL if URL with path name does not work

* Allow deep linking directly into a new server with a permalink

* Support welcome screen/no server case

* Some cleanup
2024-11-18 14:08:00 -05:00
Devin Binnie
5fccd0f837 [MM-59823] Migrate BrowserView to WebContentsView (#3177)
* Migrate to WebContentsView from BrowserView

* A bit of cleanup, stop holding reference to the loading screen

* Fix tests

* Fix i18n

---------

Co-authored-by: Mattermost Build <build@mattermost.com>
2024-10-30 09:05:51 -04:00
Devin Binnie
6d37cc2dbb [MM-59483] Remove legacy preload and custom login code (#3174)
* Remove legacy preload script code

* Remove custom login code

* FIx i18n
2024-10-25 10:02:56 -04:00
Devin Binnie
0652f7ff80 [MM-61144][MM-60704] Show badges and allow Edit Server modal for permissions for pre-defined servers (#3175) 2024-10-24 13:12:53 -04:00
Pablo Vélez
9de4f6c2eb MM-60224 - disable upgrade app button once download starts (#3164)
* MM-60224 - disable upgrade app btn  once download starts

* add translations

* fix styles for update available in dark-mode
2024-10-21 17:16:46 +02:00
Devin Binnie
10295162e0 [MM-60086][MM-60610] Implement performanceMonitor, collect CPU/memory usage data and send via API (#3165)
* [MM-60086][MM-60610] Implement performanceMonitor, collect CPU/memory usage data and send via API

* Translations

* PR feedback

* Update api-types package
2024-10-18 10:13:39 -04:00
Devin Binnie
ddecc42233 Disable full screen mode on Linux (#3151) 2024-09-24 09:47:38 -04:00
Devin Binnie
3b179c7ec2 [MM-60605] Fix the Download button being hidden on Windows/Linux (#3148)
* [MM-60605] Fix missing downloads/developer mode icon hidden on Linux and Windows

* Disable for mac

* Fix lint

* Fix misalignment on Windows

* "fix" linux

* Return to inline version, ignore Linux
2024-09-23 08:41:40 -04:00
Devin Binnie
42a0bc4759 [MM-60308] Add a set of "Developer Mode" settings that allow the user to turn off systems or force the app to behave a certain way (#3144)
* Add developer mode manager, implement browser-only mode

* Add indicator when developer mode is enabled

* Add switch to disable notification storage

* Add setting to disable the user activity monitor

* Add switchOff method for easily creating switches to disable/enable functionality, added setting to disable context menu

* Add setting to force legacy API

* Add force new API to remove any support for legacy mode, fix i18n

* Fix lint

* Use one call to `push`
2024-09-18 10:02:20 -04:00
Aino L. Spring
f8a09038dc Fixed #2977 (#3126) 2024-08-19 13:54:58 -04:00
Devin Binnie
c9f671d82a [MM-59552] Remove unsafe-inline from internal CSP, replace with nonce and rework some dynamic styling (#3120)
* Remove unsafe-inline

* Fix dynamic dark mode loading

* Include nonce generator for CSP for styles

* Add nonce provider for react-select

* Fix test
2024-08-12 09:38:59 -04:00
Devin Binnie
8ff64d285a [MM-59841] Migrate to titleBarOverlay for Windows (#3111) 2024-07-31 14:58:33 -04:00
Devin Binnie
b2cd2dc60d [MM-59252] Fix resizing app when welcome screen is open on macOS, force button to always appear on welcome screen (#3112) 2024-07-29 13:23:57 -04:00
Devin Binnie
198b1afe88 [MM-59044] Add per-server permission check for screen sharing (#3097) 2024-07-19 15:52:07 -04:00
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
Rajat Dabade
fdf1096494 [MM-56873]: Updated Svg's and styling for welcome page (#3084)
* [MM-56873]: Updated svg and styling for welcome page

* chore: i18n
2024-07-12 09:30:22 -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
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
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
6d02c5a528 Some further ESLint cleanup, remove some unnecessary scripts and lines (#2984) 2024-03-18 14:46:12 -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
8281bbbb37 [MM-54591] Use getVersion endpoint to report app name (#2862) 2023-09-29 11:16:29 -04:00
Daniel Espino García
5afc8e738c Fix top bar theme when changing the system settings (#2821) 2023-09-06 16:58:19 -04:00
Devin Binnie
80fcbf27c3 [MM-54276] Stop URL from being populated on validation regardless of change/timeout (#2814) 2023-09-01 11:50:56 -04:00
Devin Binnie
b36b40e017 [MM-54321] Expose app name through the API correctly (#2813) 2023-09-01 11:47:13 -04:00
Dmitry Lyzlov
d8a42d68db Replaced hardcoded app name with parameter in localizable strings (#2807) 2023-08-29 07:17:55 -04:00
Devin Binnie
1239add076 [MM-50352] Improve URL validation and add/edit server experience (#2720)
* [MM-50352] Improve URL validation and add/edit server experience

* Fix build

* Fix translations

* First pass of fixes

* Some changes to avoid 2 clicks, tests

* PR feedback

* Update translations

* PR feedback

* Fix translations

* PR feedback

* E2E test fixes
2023-05-24 09:04:38 -04:00
Devin Binnie
316beba950 [MM-14093] Rename 'team' to 'server' and 'tab' to 'view' in most cases, some additional cleanup (#2711)
* Rename MattermostTeam -> UniqueServer, MattermostTab -> UniqueView

* Rename 'team' to 'server'

* Some further cleanup

* Rename weirdly named function

* Rename 'tab' to 'view' in most instances

* Fix i18n

* PR feedback
2023-05-08 09:17:01 -04:00
Devin Binnie
e227c6bf1d [MM-52587] Clean up URL utils, use isInternalURL when possible (#2702) 2023-05-03 08:48:41 -04:00
Devin Binnie
686b4ac9f1 [MM-50485] Migrate app to ServerManager, remove view names and replace with IDs (#2672)
* Migrate app to ServerManager, remove view names and replace with IDs

* Fixed a test

* Fixed a bug when adding the initial server

* Merge'd

* Bug fixes and PR feedback
2023-04-12 12:52:34 -04:00
Devin Binnie
53fb8c8fd3 [MM-50485] Implement ServerManager, introduce id concept for identifying servers/views (#2654)
* Implement ServerManager, introduce id concept for identifying servers/views

* REVERT ME (eventually): Move back to old logging

* PR feedback

* PR feedback

* Revert "REVERT ME (eventually): Move back to old logging"

This reverts commit 46954a5bbed4dd29e89ca9d5217bb75af2837bb3.

* Merge'd

* Use the correct method for Logger in ServerManager
2023-04-05 16:30:50 -04:00
Devin Binnie
cf8aa6499c [MM-51406] Update node-abi, fix some server modal bugs (#2617)
* Update node-abi so tests can run

* [MM-51392] Fix modal ping bugs
2023-03-15 09:12:53 -04:00
Devin Binnie
5cc2e98a1d Merge and migrate locally-trusted preload scripts to contextBridge API (#2553)
* Migrate intl_provider to contextBridge

* Migrate modalPreload to contextBridge

* Migrate loadingScreenPreload to contextBridge

* Migrate downloadDropdown preloads to contextBridge

* Migrate server dropdown preload to contextBridge

* Migrate urlView preload to contextBridge

* Merge all desktop API scripts into one

* Remove unused communication channel constants
2023-02-15 13:42:53 -05:00
KyeongSoo Kim
7d79cab916 open a file when it is clicked from the download list (#2501) 2023-01-16 17:05:24 -05:00
Tasos Boulis
de65cfca4e Escape server name when used inside regex (#2449)
* Escape server name when used inside regex

* Move util under common and add test
2022-12-06 17:29:02 +02:00