Commit Graph

54 Commits

Author SHA1 Message Date
Harrison Healey
eaaf75a232 Fix Rollup warnings and remove some unused Rollup plugins (#26387)
* Fix rollup warnings

* Remove some unused Rollup plugins

* Re-add unintentionally half-removed Stylelint
2024-03-05 09:53:17 -05:00
Harrison Healey
5740b43922 Upgrade web app and pacakges to TypeScript 5.3.3 (#26354) 2024-03-04 16:07:39 -05:00
Harrison Healey
0d2053aa5c MM-56985 Remove babel-plugin-lodash (#26295) 2024-02-26 16:47:26 -05:00
Harrison Healey
8c045b729e MM-53919 Add imagemin-gifsicle and imagemin-mozjpeg as required dependencies (#26118) 2024-02-06 17:04:11 -05:00
M-ZubairAhmed
85d31e8d5c [MM-56609] Remove @floating-ui/react-dom & @floating-ui/react-dom-interactions in favour of @floating-ui/react (#26060) 2024-01-30 20:33:05 +00:00
M-ZubairAhmed
797fe9b917 [MM-56599] Upgrade to "@floating-ui/react" for advanced_text_editor/formatting_bar component (#25970) 2024-01-23 12:18:22 +00:00
M-ZubairAhmed
18f0d8d88f [MM-55407] Remove deprecated LocalizedIcon component (#25828) 2024-01-03 05:25:26 +00:00
M-ZubairAhmed
7b49e15824 [MM-55993] Create a composable independent table to be used in Admin reporting (#25611) 2023-12-18 18:52:58 +00:00
Devin Binnie
d62122b884 [MM-55153] Consolidate Desktop App API, use new contextBridge endpoints when available (#25438)
* Create Desktop API module, migrate message passing code

* Changes to use new API

* Use Desktop API to notify when mentions/unreads/expired changes

* Expose Desktop App module to plugins

* Fix lint

* PR feedback

* Fixed an issue where I forgot to check if the method exists first

* Slight API changes

* Fix package

* Convert all to class, add comments, small reworks for PR feedback
2023-12-04 14:09:46 -05:00
Daniel Espino García
fde9e179be Update typescript dependencies and some other updates (#25535)
* Update typescript dependencies and some other updates

* Fix lint

* Fix tests

* Address feedback

---------

Co-authored-by: Mattermost Build <build@mattermost.com>
2023-12-04 15:29:42 +01:00
Harrison Healey
5a37630058 Update subpackages to 9.3.0 (#25503)
Automatic Merge
2023-11-23 15:30:14 +02:00
Nick Misasi
e1c851a3ca [CLD-6324] Cloud IP Filtering (#24726)
* Initial comit for ip filtering service implementation

* Add audit logs for IP Filters

* start of webapp work

* Stashing

* Updates based on Agniva's feedback around service vs einterface

* Updates completed

* Commit before refactoring, everything's working

* First pass of cleanup complete, front-end tests added

* actually add files

* Updates to some translation strings, running i18n-extract

* Lock everything behind a feature flag

* Fix tests, try to fix some linter stuff

* Fixed linter for JS, on to scss

* Fixed linter for scss

* Fix linter

* More fixes for pipeline

* Support for IPV6

* Remove tsx file that was removed in masteR

* Revert package.json and package-lock.json to master, add cidr-regex dep into channels/package.json

* Another commit to force fix Github

* Fixes around IPV6. Some suggestions from Matt re: UX review. Fixing pipelines for tests and types on new cidr-regex package

* Changes to address Matt's feedback

* A few more changes for clean up

* Add support for permissions

* Fix vet for OpenAPI spec

* Actually add the yaml file for openapi

* Add permission migration to allow support for IP Filtering

* Fix tests

* Final fixes from Matt

* Remove cancel button from page, update link outs to documentation

* Update test to account for removed cancel button

* Adjustments based on feedback from Harrison

* More fixes from PR feedback

* Add a t to fix translations that doesn't seem to be breaking anyone else?

* More fix

* updates for PR feedback

* Fix linter

* Fix types

* Now fix the linter again

* Add back tests because Harrison was able to get them running

* Adjustments for PR feedback

* Remove admin_definition.jsx

* Fix linter

* [CLD-6453] IP Filtering notification email for sysadmins (#25224)

* Initial commit for IP filtering alert email

* Updates to style for email, addition of ip_filtering email:

* Fix pipelines

* Adjustments from Matt's feedback

* Padding changes

* template diff (#25249)

Co-authored-by: Gabe Jackson <3694686+gabrieljackson@users.noreply.github.com>

* Fix hardcoded true, remove bool return value

---------

Co-authored-by: Mattermost Build <build@mattermost.com>
Co-authored-by: Gabe Jackson <3694686+gabrieljackson@users.noreply.github.com>

* Lock feature behind enterprise license. Drop cidr-regex in favour of ipaddr.js dependency. Refactor isIpAddressWithinRanges to use ipaddr.js

* Add a couple server tests

* fix linter

* Fix types from merge conflicts

---------

Co-authored-by: Mattermost Build <build@mattermost.com>
Co-authored-by: Gabe Jackson <3694686+gabrieljackson@users.noreply.github.com>
2023-11-14 09:12:04 -05:00
M-ZubairAhmed
1ff1a1312b upgrade (#25398) 2023-11-10 10:30:34 -05:00
M-ZubairAhmed
f733dc58fa [MM-55294] Migrate jest v26 to v29 to speed up "web app CI PR / test" (#25192) 2023-11-07 11:41:26 +05:30
Jesús Espino
da43d75e78 Admin console definition to typescript (#25232)
* Migrating admin_definition from jsx to tsx

* Fixing types and errors

* Fixing all the types errors

* Fixing linter errors

* Removing no longer needed yup dependency

* Moving admin_definition types to its own file

* Removing a couple of anys

* Fixing linter errors

* Fixing tests snapshots

* Fixing bug

---------

Co-authored-by: Mattermost Build <build@mattermost.com>
2023-11-01 09:57:23 +01:00
Nicolas Le Cam
6649bbebb8 [MM-54924] Update pdfjs to version 3.11.174 (#25075) 2023-10-26 15:36:10 +05:30
M-ZubairAhmed
e552f6b86a [MM-54848] Remove deprecated LocalizedInput component (#25052) 2023-10-24 14:41:29 +05:30
Jesús Espino
6274faeda8 Revert "Migrating the admin_definition.jsx file to typescript (#24658)" (#24869)
This reverts commit a1bf8504a8.
2023-10-10 22:33:24 +02:00
Harrison Healey
88954c651a Update subpackage versions for 9.2 (#24865) 2023-10-10 13:27:16 -04:00
Jesús Espino
a1bf8504a8 Migrating the admin_definition.jsx file to typescript (#24658)
* Migrating admin_definition from jsx to tsx

* Fixing types and errors

* Fixing all the types errors

* Fixing linter errors

* Removing no longer needed yup dependency

* Moving admin_definition types to its own file

* Removing a couple of anys

* Fixing linter errors

* Fixing tests snapshots
2023-10-10 13:26:45 -04:00
Jesús Espino
bb4aa764bc Migrating some files from javascript to typescript (#24663)
* Migrating some files to typescript

* Some other files migrated

* Migrating more javascript to typescript

* Migrating more javascript to typescript

* Fixing types

* Fixing linter errors

* Fixing some imports

* Fixing linter errors

* Renaming the snapshots

* Addressing PR review comments
2023-10-10 16:22:11 +02:00
Daniel Espino García
67ca4644bb Bump to latest mmjstool (#24838)
Automatic Merge
2023-10-09 19:51:15 +03:00
Harrison Healey
ff929e4a15 Move the shared ESLint plugin/config into the monorepo (#24670)
* Move the shared ESLint plugin/config into the monorepo

* Add peer dependencies to ESLint plugin
2023-10-05 14:47:51 -04:00
M-ZubairAhmed
bac317dfe5 MM-54181 : Clean up code around deprecated Gfycat (#24343)
* first pass of removal

* first pass of removal

* Update admin_console.js

* rev beta

* remove more

* Update initial_state.ts

---------

Co-authored-by: Mattermost Build <build@mattermost.com>
2023-09-05 16:40:37 -04:00
Harrison Healey
0338ec8fdc Update subpackage versions to 9.1 (#24445) 2023-09-05 15:19:55 -04:00
Harrison Healey
3828446abd Update version of JS subpackages to 9.0.0 (#24438) 2023-09-01 12:25:16 -04:00
Harrison Healey
c07b30c5b0 MM-54191 Change how menu item click handlers are triggered after menus fully close (#24335)
* MM-54191 Change how menu item click handlers are triggered after menus fully close

* Switch menu items to use onClick instead of onMouseDown

* Add unit tests for menu keyboard navigation and opening modals

* Fix missing use of useMenuContextValue

* Remove unneeded ?.

* Fix unrelated test broken by @testing-library/user-event update
2023-08-31 11:53:33 -04:00
Sinan Sonmez (Chaush)
53fc44e13a MM-46494: Add filter options to browse channel modal (#24099) 2023-08-31 08:37:41 +05:30
M-ZubairAhmed
bc11b29807 Replace Gfycat with GIPHY in emoji/gif picker (#24236)
* Added the package

* design

* add styled-component alias

* add contrast ratio

* added the tab icon

* review comments

* rev comments

* key added

* key added

* trans

* Added giphy sdk test key for playwright tests config

---------

Co-authored-by: Mattermost Build <build@mattermost.com>
Co-authored-by: maria.nunez <maria.nunez@mattermost.com>
2023-08-18 16:02:46 -04:00
Saturnino Abril
93a2c3281a MM-53813: Fix(accessibility): on channels page (#24122)
* fix(accessibility): on channels page

* fix lint and update dynamic-virtualized-list

* fix snapshot and update per feedback

* fix e2e tests

* fix test

---------

Co-authored-by: Mattermost Build <build@mattermost.com>
2023-07-28 11:17:11 -04:00
Harrison Healey
dfdc0e28d0 MM-52536 Webpack unification part 2 (#23557)
* Remove unused bundle-loader

* Remove broken webpack-live-reload-plugin

* Remove unused terser-webpack-plugin

* Remove unused dotenv-webpack

* Update and share type definition for Webpack global values

* Share eslint-import-resolver-webpack

* Remove unused pmmmwh/react-refresh-webpack-plugin

* Remove webpack-cli/serve since it's already part of webpack-cli

* Remove unused Webpack packages from Components

* Share and update style-loader

* Remove unused image-webpack-loader from Boards
2023-06-12 11:50:34 -04:00
Harrison Healey
11c0a861b2 MM-52539 Unify versions of Babel used throughout web app and remove unneeded libraries (#23543)
* Remove unneeded Babel plugins and update Babel preset

* Remove unneeded babel/cli package

* Update and share Babel and presets

* Update and share babel-plugin-styled-components

* Update and share babel-plugin-formatjs

* Update and share babel-plugin-typescript-to-proptypes

* Update and share babel-loader

* Remove all Babel-related ESLint libraries

* Remove unused babel-jest from Playbooks

* MM-51968 Remove unused Babel libraries from Boards

* Update snapshots because of course I have to

* Update snapshot
2023-06-08 17:05:21 -04:00
M-ZubairAhmed
f4f420dd93 [MM-52979]: Remove code around abandoned MUI modal migration (#23556) 2023-06-05 18:40:38 +05:30
M-ZubairAhmed
b6a407c392 MM-52819 : "medical_symbol", "male_sign" and "female_sign" emojis are broken (#23538) 2023-06-05 18:38:46 +05:30
M-ZubairAhmed
b72043727a [MM-52226] : Fix broken make-emojis command (#23454) 2023-05-26 10:43:44 +05:30
Harrison Healey
9587b826c7 Bump JS package versions to 8.0.0 (#23442) 2023-05-19 16:02:24 -04:00
M-ZubairAhmed
156d1429de [MM-52708] webapp/channels : Remove "FormattedAdminHeader" component (#23344) 2023-05-15 19:14:33 +05:30
M-ZubairAhmed
041ecd56fe [MM-52681] webapp/channels : Remove 't' functions for defineMessages in channels and update mmjstool version (#23318) 2023-05-15 17:59:48 +05:30
Harrison Healey
c35d738e04 MM-52536 Webpack unification part 1 (#23322)
* MM-52536 Update Webpack and use the same version for all products

* Switch Channels to use asset modules

* Remove unused module configuration from Boards/Playbooks

* Remove file-loader and html-loader

* Unify versions of CSS-related loaders

* Remove unused webpack-node-externals dependency

* Add missing MiniCssExtractPlugin to Boards/Playbooks production builds
2023-05-10 15:20:16 -04:00
Ashish Dhama
389062193b [WebApp][MM-51266]: Add compass (MUI wrapper components) in common components package (#22942)
* wrap all the components using compass-components with compass-components theme provider

Co-authored-by: @michelengelen 
Co-authored-by: Mattermost Build <build@mattermost.com>
2023-05-04 13:43:33 +05:30
Harrison Healey
2e852c06a8 MM-51562 Update package versions to 7.11.0 (#23230)
Automatic Merge
2023-05-03 18:04:29 +03:00
M-ZubairAhmed
2119bc0901 MM-51974 : Unify "react-intl" related dependencies versions across products (#22894)
Picks out formatjs-eslint-plugin to webapp root. Updates react-intl to 6.3.2 in all products. Executed i18n-extract and checked if any translations got changed. Although it was a major version update, the only breaking change was for a vue peer dependency. Adds "*" to take whatever dependency rule to products and declare the react-intl as the root package. Fixes a few lint and type errors cropped in due to the update No-ID rule removed from playbooks in preparation for unifying practices across products. Lastly, a few missing translations in Playbooks added
2023-04-16 05:19:08 +05:30
M-ZubairAhmed
241376b315 MM-52165 : Remove 50% maxWorker on Channels test run (#22962)
* test

* remove boards maxWorkers

---------

Co-authored-by: Caleb Roseland <caleb@calebroseland.com>
Co-authored-by: Mattermost Build <build@mattermost.com>
2023-04-14 15:12:00 -04:00
Ashish Dhama
24774f51da [MM-52121]: Migrate About build modal unit test to testing library (#22927)
* Migrate About build modal unit test to testing library

* add user-event library

* add user event

* remove snapshot
2023-04-13 13:58:41 +05:30
Colton Shaw
abb34c4879 [Webapp] added hour diff to profile (#22669)
Automatic Merge
2023-04-13 04:34:28 +03:00
M-ZubairAhmed
50aabf6b93 MM-52008 : Standardise package.json's version across all products in webapp (#22876)
The version in package.json was added to display the workspace name in the terminal for playbooks. Additionally, it was ensured that all products now have the same version number, as the release of all products is tied to a single release channel.
2023-04-11 13:30:29 +05:30
M-ZubairAhmed
dd67376097 engines (#22875) 2023-04-10 10:14:35 -04:00
M-ZubairAhmed
6be0ed0d19 MM-52004 : Remove stub types packages for moment-timezone, highlight-js, classnames (#22879) 2023-04-08 06:14:31 +05:30
M-ZubairAhmed
9bffaeae42 MM-51846 : Upgrade Esint from 7 to 8+ (#22753) 2023-04-07 03:50:01 +05:30
M-ZubairAhmed
3f6452bdf5 init (#22752) 2023-04-03 15:29:04 -04:00