Commit Graph

18270 Commits

Author SHA1 Message Date
Agniva De Sarker
f5ee5463e4
MM-56201, MM-56280: Suppress typing and emoji events (#25794)
We do not send the typing event when the originating
channel is not the active channel or active channel thread.

https://mattermost.atlassian.net/browse/MM-56201

```release-note
NONE
```

Co-authored-by: harshil Sharma <harshilsharma63@gmail.com>
Co-authored-by: Harrison Healey <harrisonmhealey@gmail.com>
2024-02-22 08:36:24 +05:30
Doug Lauder
38bbf04e48
Metrics for shared channels (#26199)
* add metrics definitions for shared channels
2024-02-21 17:21:35 -05:00
Scott Bishel
f90b3d4141
MM-56822 Update logic around permissions and sanitization (#26227)
* update logic around permissions and sanitization

* add test

* add comments

* fix test

---------

Co-authored-by: Mattermost Build <build@mattermost.com>
2024-02-21 15:19:11 -07:00
Nick Misasi
01e1eebc07
[CLD-6430] Remove telemetry check from true_up_review (#26073)
* Remove telemetry check from true_up_review

* Fix bug

* Fix linter

* fix tests
2024-02-21 09:50:47 -05:00
Harshil Sharma
521844fed5
API handler opts modifier (#26148)
* POC for API handler opts modifier

* Made upload POSt api a  file upload API

* Specified file upload local API

* Specified file upload local API

* Specified file upload API

* Simplified handler params

* Added basic security checks

* Fixed i18n

* used type for API handler options

* Removed limited reader from util deserializers (#26263)
2024-02-21 12:13:50 +00:00
Asaad Mahmood
ecb09de6c7
MM-53814 - Updating contrast for accessibility (#24381)
* Updating contrast for accessiblity

* Updating accessbility

* Updating accessiblity for icons

* Updating header icons

* Updating text opacity

* Updating icons and text

* Updating sidebar left

* Upadating icon in system console

* Updating global header

* Updating channel list

* Updating tests and fixing conflicts

* Updating filter css

* Updating css

* Updating epehemeral message contrast

* Updating icon with 64 opacity

* Updating test

* Updating confirm license removal csss

* Updating unintended files

---------

Co-authored-by: Mattermost Build <build@mattermost.com>
2024-02-21 15:54:18 +05:00
Syed Ali Abbas Zaidi
14dcdf7510
[MM-56844] Convert ./components/admin_console/admin_sidebar_header/admin_sidebar_header.tsx from Class Component to Function Component (#26233) 2024-02-21 11:04:15 +01:00
Syed Ali Abbas Zaidi
95e85db811
[MM-56849] Convert ./components/post_view/failed_post_options/failed_post_options.tsx from Class Component to Function Component (#26234)
Co-authored-by: Mattermost Build <build@mattermost.com>
2024-02-21 11:03:47 +01:00
Sinan Sonmez (Chaush)
bff19228e1
MM-41586: Team setting modal UI update (#25729)
* add new sections

* remove section related code

* add some todos

* convert team setting to functional component

* remove unused props from main_menu

* remove unused collapseModal

* create 2 sections files

* clean info section

* cleanup access tab

* further clean team info setting component

* fix input fields

* fix description input field

* reorganize files

* add team icon when there is no team image

* improve layout

* fix autofocus

* delete empty file

* add note related to learna bout teams link

* add edit icon

* add upload functionality

* finish image upload

* implement logic for handle save

* add remove icon button

* fix remove button color

* fix styling on image remove and upload

* fix image remove feature

* show remove image button dynamically

* fix height

* update haveImageChanges on handleTeamIconRemove cl

* fix spacing inside input

* fix cursor point

* access tab basis

* add some todo

* add baseline for client error

* handle desc and image client errors

* move folders

* rename section to tab

* move the name section to new file

* dedicated description component

* dedicated image section

* convert to functional component

* remove unnecessary fetchTeam

* remove havechanges  state

* remove not needed folder

* rename from section to tab

* convert access tab to FC

* fix invite section input

* finalize team invite code section

* add checkbox

* add select_text_input

* finish allowed domains

* fix save changes panel style

* convert open_invite

* add logic for show save changes panel globally

* handle server errors

* combine client errors

* fix save changes issue

* clean colors used in css

* fix style

* fix type issues

* fix another type

* fix allowed domains

* fix type error

* add save changes panel to access tab

* add success state to save changes panel

* remove unused prop

* cleanup css

* fix save changes modal position

* fix title font size

* remove not used prop

* fix mobile view width

* fix mobile view

* add group constraint text

* handle invite code error

* update snapshots

* fix input height

* fix tests

* write tests for open_invite

* write tests for team_info_tab

* write tests for team_access_tab

* Refactor setTeamIcon test in teams.test.ts

* Refactor team access and team info tabs for save changes panel

* Add useEffect hook to set inviteId in AccessTab component

* fix lint

* fix lint

* fix i18

* remove old todo

* fix text

* fix css

* fix css

* fix padding

* fix mobile view

* update snapshot

* performance improvements

* fix type

* improve translation passing to components

* fix lint

* rename saving to editing

* fix empty allowed domains

* complete renaming of saving

* seperate AllowedDomainsSelect

* seperate InviteSectionInput

* fix i18n

* capitalize translation id

* final fix for i18n

* remove empty file

* fix lint and test

* fix rgb values

* remove action related types from index file

* add last_team_icon_update to Team type

* fix unnecessary null check operator

* fix more types

* add new features for text selector

* update text for select text input

* fix style issues on save changes

* fix lint check

* add animation for save changes panel

* remove unused type

* fix test

* fix theming issues

* fix MM-T385

* fix MM-T388

* fix MM-T387 and MM-T2341

* fix MM-T391

* Fix MM-T2318, MM-T2317, MM-T2312, MM-T2322, MM-T2335

* fix top padding

---------

Co-authored-by: Mattermost Build <build@mattermost.com>
2024-02-20 17:46:35 -05:00
Arun
c064c3a979
[MM-56660] When deleting a draft , the modal delete button does not have focus (#26132)
* delete draft confirmation button autofocus

* removed css clases for no visual changes

* updated snapshots for test

---------

Co-authored-by: Mattermost Build <build@mattermost.com>
2024-02-20 17:31:57 -05:00
Doug Lauder
1fb5c3b1cf
Log warning when plugin using Shared Channels APIs is uninstalled (#26262)
* don't log error every minute when plugin uninstalled
2024-02-20 14:10:08 -05:00
Aditya Pratap Singh Hada
6541708a93
[MM-55735] Add Request Context to PostStore.Save (#26048) 2024-02-20 17:07:20 +01:00
Nick Misasi
287962a309
[CLD-6630] Cleanup: Refactor IP Filters email notification logic into app layer (#26072)
* Refactor IP Filters email notification logic into app layer

* Forgot to git add
2024-02-20 10:52:55 -05:00
Ibrahim Serdar Acikgoz
7d8a56019b
[MM-56348] system/ping: add new method with options (#26079) 2024-02-20 14:22:28 +01:00
Angel Mendez
0aaa047ea3
Migration typescript/enterprise/ldap (#25840)
* refactor: migrate file ldap_group_sync_spec.js to ts

- migrate file to typescript

* refactor: migrate file ldap_guest_spec.ts to ts

- migrate file to typescript
- update data types

* refactor: migrate ldap_login_spec.js to ts

* refactor: migrate ldap_setting_spec.js file to ts

- convert file to typescript

* Fix: type error

---------

Co-authored-by: Mattermost Build <build@mattermost.com>
Co-authored-by: yasserfaraazkhan <attitude3cena.yf@gmail.com>
2024-02-20 12:52:22 +05:30
Matthew Straughn
1e794136c8
MM 19654 s3 debugging logs overlap, Wrapped mlog in an io.Writer func (#25788)
* updated go mod and sum files

* Revert "updated go mod and sum files"

This reverts commit 088dd00a84.

* wrapped mlog in and io.Writer func to pass to TraceOn

* fixed var and func receiver names

* removed the underscore in the func receiver.

* passed a pointer of s3Trace to TraceOn

---------

Co-authored-by: Mattermost Build <build@mattermost.com>
2024-02-20 07:59:26 +05:30
Wayne Wollesen
fd91064016
fixed typos (#24182) 2024-02-19 22:40:32 +01:00
Utsav Ladani
dc9e404df0
[GH-25298] Place the text centered in default profile picture (#25324) 2024-02-19 16:05:51 +01:00
mattermod
97479800c2 Update latest version to 9.5.1 2024-02-19 14:43:00 +00:00
mknd1
c084be79bb
[MM-T2078] Write Webapp E2E with Cypress: "MM-T2078 Profile picture: file types accepted" (#25824)
Automatic Merge
2024-02-19 14:22:22 +02:00
Angel Mendez
d81910d721
Migration: typescript/okta commands.js (#25730)
* refactor: migrate okta _commands.js to typescript

- convert okta _commands.js file to typescript
- add types to function arguments
- declare types for functions into same file

* docs: add docs for okta_commands.ts

- add documentation
- improve type definitions
- add return types

* refactor: create interface for okta response on okta_commands.ts

- create interface OktaResponse
- replace any with OktaResponse

---------

Co-authored-by: Mattermost Build <build@mattermost.com>
2024-02-19 19:09:17 +08:00
Angel Mendez
19d6a2c47d
Migration typescript/team.js (#25811)
* refactor: convert file team.js to ts

- convert file to typescript
- create types in file

* refactor: use optional chaining operator for link.click

---------

Co-authored-by: Mattermost Build <build@mattermost.com>
2024-02-19 19:07:54 +08:00
Angel Mendez
a777e12055
Migration typescript/channel sidebar.js (#25812)
* refactor: convert channel_sidebar.js to ts

- convert file to typescript

* refactor: add type for category on channel_sidebar.ts

- create interface Category into channel_sidebar.ts
- remove file with type category.d.ts

---------

Co-authored-by: Mattermost Build <build@mattermost.com>
2024-02-19 19:05:47 +08:00
Syed Ali Abbas Zaidi
d21236b908
[MM-56843] Convert ./actions/views/modals.test.jsx from Class Component to Function Component (#26238) 2024-02-19 07:58:49 +00:00
Trang
f130615011
[MM-55737] Add Request Context to UserStore.Save (#26109) 2024-02-16 17:12:49 +01:00
Tom De Moor
9643a16408
fixing filenames (#26231)
* fixing filenames

* building email templates

* Revert "building email templates"

This reverts commit 6aa419df3b.

---------

Co-authored-by: Tom De Moor <tom@controlaltdieliet.be>
Co-authored-by: Mattermost Build <build@mattermost.com>
2024-02-16 08:06:00 -07:00
Harrison Healey
7d9f725d90
MM-56776 Call ChannelHasBeenCreated plugin hook for GMs (#26226) 2024-02-16 09:47:08 -05:00
Syed Ali Abbas Zaidi
5fcab87934
[MM-56846] Convert ./components/analytics/table_chart.tsx from Class Component to Function Component (#26237)
Co-authored-by: Mattermost Build <build@mattermost.com>
2024-02-16 11:55:08 +05:30
Harrison Healey
54507bb115
Fix types of various fields in GlobalState (#26125)
* Fix types of entities.admin.analytics and entities.admin.teamAnalytics

* Fix type of entities.channels.channelsInTeam

* Fix types of entities.users.stats and entities.users.filteredStats

* Fix types of various profilesInX fields in entities.users

* Fix incorrect field name last_password_update_at used when updating password

We never noticed this bug before because the settings modal reloads the current user after updating their password.

* MM-56760 Fix users not being removed from state.entities.users properly
2024-02-15 12:25:11 -05:00
Amy Blais
64b140900e
Promote/downgrade some languages (#26216)
Automatic Merge
2024-02-15 18:12:05 +02:00
Agniva De Sarker
f3c7510c70
MM-56878: Remove unused store method (#26230)
IsUserInChannelUseCache wasn't being used anywhere.

https://mattermost.atlassian.net/browse/MM-56878

```release-note
NONE
```
2024-02-15 19:20:48 +05:30
Ben Schumacher
de3e5aab25
[MM-53156] Remove Multi-Product architecture (#25669) 2024-02-15 13:01:44 +01:00
Yusuke Nemoto
d3b799eaa5
[MM-52171] webapp: Make rhs_card reloading when card body is changed (#23612) 2024-02-15 11:50:39 +01:00
M-ZubairAhmed
114b3dc8d2
[MM-56824] Componentize the Mobile and Desktop section headers in the user settings modal. (#26193) 2024-02-15 09:56:25 +00:00
M-ZubairAhmed
86c880cf87
[MM-56798] Smoothen animation and lazy load User Settings (#26168) 2024-02-15 09:54:54 +00:00
Christopher Speller
5758f234e5
Allow plugins to specify all props for create comment. (#26152)
* Allow plugins to specificy all props for create comment.

* Types
2024-02-14 07:46:12 -08:00
Agniva De Sarker
28cb8d0441
MM-56579: Include deactivated users from DM posts (#25985)
There were 2 separate bugs here:
1. We were not including deactivated users while fetching posts from
DM channels.
2. We were not respecting the includeArchivedChannels flag while
fetching DM channels.

We fix both of these issues here.

```release-note
Include posts from deactivated users in DM channel export. Also
respect the --include-archived-channels flag for DM channels.
```

https://mattermost.atlassian.net/browse/MM-56579

Co-authored-by: Mattermost Build <build@mattermost.com>
2024-02-14 20:59:46 +05:30
Christopher Poile
62f616dfbf
MM-56571 - Update prepackaged calls to v0.24.0 (#26189) 2024-02-14 09:24:42 -05:00
Harrison Healey
4ac345cc56
Add some tests for plugin hooks used by MS Teams plugin automute (#26144)
* Confirm that plugins can trigger their own PreferencesHaveChanged hook

* Add tests for ChannelHasBeenCreated hook

* Convert new tests to use assert.Eventually

* Add tests for UserHasJoinedChannel hook

* Bypass linter for a case where t.Fatal is needed
2024-02-13 16:39:19 -05:00
Christopher Speller
3bf8574b0d
Add handling of posts with unsafe links. (#26129)
* Add handling of posts with unsafe links.

* Lint

* Add some tests.

* Remove interal links exception

* Add exception for links that start with siteurl, except image proxy

* Allow only permalinks

* Don't interperate regex in siteURL

* Negate the external requests helper

* Modify prop check to only check for 'true'

* Move regex outside function.
2024-02-13 09:28:30 -08:00
Harrison Healey
daab9d5ff5
Improve types of testing utilities and fix some types in unit test code (#26122)
* Improve type of DeepPartial and make mergeObjects handle Sets/Maps properly

* Fix linting

* Remove undefined fields from menu_cloud_trial.test

* Prevent importing the wrong version of DeepPartial
2024-02-13 11:48:13 -05:00
Agniva De Sarker
bdce9f42d8
MM-56358: Unskip racy test TestUploadLicenseFile (#26009)
This was already fixed before in https://github.com/mattermost/mattermost/pull/24971.
We just enable the test now.

https://mattermost.atlassian.net/browse/MM-56358

```release-note
NONE
```

Co-authored-by: Mattermost Build <build@mattermost.com>
2024-02-13 21:03:17 +05:30
Daniel Espino García
845f28cb76
Fix system console plugin headers (#26196)
* Fix system console plugin headers

* Fix tests
2024-02-13 10:28:38 +01:00
Ben Schumacher
578216a5e4
[MM-53935] Log message if user tries to login using wrong password (#25343) 2024-02-13 10:11:27 +01:00
Ben Schumacher
8498a18854
[MM-55469] Don't show ldap job details until job runs (#25433) 2024-02-13 10:09:11 +01:00
Devin Binnie
cf11adff98
[MM-56478] Only clear the suggestion pretext when the suggestion is completed and not when the list is cleared (#26151)
* [MM-56478] Only clear the suggestion pretext when the suggestion is completed and not when the list is cleared

* Also clear pretext when unfocusing the box
2024-02-12 11:05:11 -05:00
Devin Binnie
c723bf345a
[MM-56654] Turn off landing page for Desktop App token flow, cleanup check for landing page (#26126) 2024-02-12 11:04:38 -05:00
M-ZubairAhmed
41081b9eee
[MM-56572] Preview doesn't work when editing a channel header (#26158) 2024-02-12 14:54:27 +00:00
Weblate (bot)
744b059a75
Translations update from Mattermost Weblate (#26143)
* Translated using Weblate (Russian)

Currently translated at 99.8% (5807 of 5817 strings)

Translation: Mattermost/webapp
Translate-URL: https://translate.mattermost.com/projects/mattermost/webapp/ru/

* Translated using Weblate (Czech)

Currently translated at 95.3% (5545 of 5817 strings)

Translation: Mattermost/webapp
Translate-URL: https://translate.mattermost.com/projects/mattermost/webapp/cs/

* Translated using Weblate (Russian)

Currently translated at 100.0% (2588 of 2588 strings)

Translation: Mattermost/server
Translate-URL: https://translate.mattermost.com/projects/mattermost/server/ru/

* Translated using Weblate (Russian)

Currently translated at 100.0% (5817 of 5817 strings)

Translation: Mattermost/webapp
Translate-URL: https://translate.mattermost.com/projects/mattermost/webapp/ru/

* Translated using Weblate (Polish)

Currently translated at 100.0% (2588 of 2588 strings)

Translation: Mattermost/server
Translate-URL: https://translate.mattermost.com/projects/mattermost/server/pl/

* Translated using Weblate (Dutch)

Currently translated at 99.9% (2587 of 2588 strings)

Translation: Mattermost/server
Translate-URL: https://translate.mattermost.com/projects/mattermost/server/nl/

* Translated using Weblate (Chinese (Simplified))

Currently translated at 100.0% (2588 of 2588 strings)

Translation: Mattermost/server
Translate-URL: https://translate.mattermost.com/projects/mattermost/server/zh_Hans/

* Translated using Weblate (English (Australia))

Currently translated at 99.1% (2565 of 2588 strings)

Translation: Mattermost/server
Translate-URL: https://translate.mattermost.com/projects/mattermost/server/en_AU/

* Translated using Weblate (German)

Currently translated at 100.0% (2589 of 2589 strings)

Translation: Mattermost/server
Translate-URL: https://translate.mattermost.com/projects/mattermost/server/de/

* Translated using Weblate (English (Australia))

Currently translated at 99.9% (2587 of 2589 strings)

Translation: Mattermost/server
Translate-URL: https://translate.mattermost.com/projects/mattermost/server/en_AU/

* Translated using Weblate (Polish)

Currently translated at 100.0% (2589 of 2589 strings)

Translation: Mattermost/server
Translate-URL: https://translate.mattermost.com/projects/mattermost/server/pl/

* Translated using Weblate (Chinese (Simplified))

Currently translated at 100.0% (2589 of 2589 strings)

Translation: Mattermost/server
Translate-URL: https://translate.mattermost.com/projects/mattermost/server/zh_Hans/

* Translated using Weblate (English (Australia))

Currently translated at 100.0% (5817 of 5817 strings)

Translation: Mattermost/webapp
Translate-URL: https://translate.mattermost.com/projects/mattermost/webapp/en_AU/

* Translated using Weblate (Czech)

Currently translated at 95.3% (5545 of 5817 strings)

Translation: Mattermost/webapp
Translate-URL: https://translate.mattermost.com/projects/mattermost/webapp/cs/

* Translated using Weblate (Polish)

Currently translated at 100.0% (5817 of 5817 strings)

Translation: Mattermost/webapp
Translate-URL: https://translate.mattermost.com/projects/mattermost/webapp/pl/

* Update translation files

Updated by "Cleanup translation files" hook in Weblate.

Translation: Mattermost/server
Translate-URL: https://translate.mattermost.com/projects/mattermost/server/

* Update translation files

Updated by "Cleanup translation files" hook in Weblate.

Translation: Mattermost/webapp
Translate-URL: https://translate.mattermost.com/projects/mattermost/webapp/

---------

Co-authored-by: Konstantin <eleferen@gmail.com>
Co-authored-by: Martin Joneš <m.jones@7group.cz>
Co-authored-by: master7 <marcin.karkosz@rajska.info>
Co-authored-by: Tom De Moor <tom@controlaltdieliet.be>
Co-authored-by: ThrRip <coding@thrrip.space>
Co-authored-by: jprusch <rs@schaeferbarthold.de>
Co-authored-by: Matthew Williams <Matthew.Williams@outlook.com.au>
Co-authored-by: Petr Chlíbek <p.chlibek@7group.cz>
2024-02-12 10:35:05 -04:00
M-ZubairAhmed
30024c78af
Migrate "cluster_settings.test.jsx, message_export_settings.test.jsx, schema_admin_settings.test.jsx, interactive_dialog/index.js" to Typescript (#26111) 2024-02-12 13:55:36 +00:00