Commit graph

1361 commits

Author SHA1 Message Date
Daniel Espino García
2649b4b63a
Remove app alias for imports (#8314) 2024-11-07 08:34:49 +08:00
Jesse Hallam
6f381cfcf5
MM-53775: hide Thread Overview until a reply occurs (#8316) 2024-11-06 13:01:42 -04:00
Rahim Rahman
97e74c92af
feat:proper badge theme use for server list (#8313)
* fix(MM-61209): mention badge incorrect theme color

* @asaadmahmood color correction

* @asaadmahmood borderWidth 1px

* remove borderWidth: 1
2024-11-05 07:11:17 -07:00
Rahim Rahman
aa85f22729
fix(MM-61209): mention badge incorrect theme color (#8312)
* fix(MM-61209): mention badge incorrect theme color

* removed expect-error with proper typing
2024-11-05 06:25:34 -07:00
Joram Wilander
3764bf031e
MM-59449 Add tests for actions/remote/post (#8301)
* Add cud tests to actions/remote/post

* Remove unused fetchPostsForCurrentChannel

* Add fetch tests to actions/remote/post

* Update app/actions/remote/post.ts

* fix tests

---------

Co-authored-by: Elias Nahum <nahumhbl@gmail.com>
2024-11-04 08:27:20 -05:00
Joram Wilander
a3582c42a9
MM-59423 Add tests to actions/remote/notifications (#8302)
* Add tests to actions/remote/notifications

* Fix typing error in test
2024-11-04 08:27:03 -05:00
Joram Wilander
cd2725ea31
MM-59422 Add tests to actions/remote/search (#8304)
* Add tests to actions/remote/search

* Better confirm results of searchFiles test
2024-11-04 08:26:50 -05:00
Joram Wilander
99db5bdee8
Add tests to actions/remote/groups (#8303) 2024-11-04 19:24:01 +08:00
TheoForger
ece82d75ca
[MM-60236] Remove ephemeral posts on refresh/during initial load (#8260)
* fix: remove ephemeral posts on refresh

* fix: remove ephemeral posts during app launch

* fix: remove code to await the cleanup

* use built in constant instead of string `system_ephemeral`

* remove sort from `queryPostsByType()`

* switch back to the `await` approach in `cleanupEphemeralPosts`

---------

Co-authored-by: Mattermost Build <build@mattermost.com>
2024-11-01 09:28:06 -06:00
Rahim Rahman
41ab86cd2d
fix(MM-53762): missing file and reaction (#8284)
* fix: missing file and reaction

* update import
* simplify code

* update post test to show the changes fix emoji and reaction
* clean up  test
2024-10-30 14:55:34 -06:00
Nicolas Le Cam
0c587ab427
feat: Switch FormattedDate component to Intl.DateTimeFormat (#8276)
* feat: Switch FormattedDate component to Intl.DateTimeFormat

* feat: Revert stylistic only changes

* Add tests

* Take code review into account

* Fix tests by forcing timezone

* Use constant formats in DateSeparator to avoid uneeded rerenders

* Add UserTimezone tests
2024-10-30 14:30:17 -06:00
Joram Wilander
f2198137aa
Add tests to actions/remote/preference (#8299) 2024-10-30 07:53:05 -04:00
Elias Nahum
534aeaaef6
Fix sidebar teams order (#8281) 2024-10-30 17:12:58 +08:00
Tanmay Thole
a580642114
feat: Add visible to you text on ephemeral posts (#8245)
* feat: Add visible to you text on ephemeral posts

* docs: update localization file

* style: system header of ephemeral post

* feat: visible to you text for ephemeral posts
2024-10-30 10:01:49 +01:00
Joram Wilander
e4d895df85
MM-59438 Add tests to actions/remote/session (#8296)
* Add tests to actions/remote/session

* Fix styling

* Fix typing in session_manager
2024-10-29 11:06:01 -04:00
Daniel Espino García
2e8c9ce9a5
Reconnect the network when we switch network types (#8034) 2024-10-29 10:14:31 +01:00
Elias Nahum
1beb9a99c2
Add logs when notification device tokens is registered or fails to do so (#8282) 2024-10-29 08:18:51 +08:00
Joram Wilander
c1b66b364b
Add tests to actions/remote/thread (#8289) 2024-10-28 09:40:06 -04:00
Joram Wilander
daf13fa1b9
Add tests to actions/remote/reactions (#8290) 2024-10-28 09:16:31 -04:00
TheoForger
e932cf30a0
Add Index to 'type' column in 'Post' table (#8278)
* update `Post` table schema and migration plan to index `type` column

* use `unsafeExecuteSql()` for adding index during migration

* Update SQL query to create index

Co-authored-by: Elias Nahum <nahumhbl@gmail.com>

* Update docs

* Remove `UNIQUE` from SQL query

Co-authored-by: Rahim Rahman <rahim.rahman@mattermost.com>

---------

Co-authored-by: Elias Nahum <nahumhbl@gmail.com>
Co-authored-by: Rahim Rahman <rahim.rahman@mattermost.com>
2024-10-26 14:14:56 +02:00
Claudio Costa
751bb2dfb1
Ensure full validation of Calls post props (#8279) 2024-10-24 16:10:49 -06:00
Rajat Dabade
e4dc8dbbfe
MM-59973: fix the emoji count 0 issue when archive and unarchive chan… (#8146)
* MM-59973: fix the emoji count 0 issue when archive and unarchive channels

* ref to null and initialing it

* refactor: added a safe condition

* refactor code

* more clean up

* clean-ups

* index to tosting as a key to component

* refactor code

* fix: (MM-59973) emoji count 0 update (#8256)

* reversed from all useMemo to useMemo + useEffect
* tried to include everything into useMemo was an anti-pattern
* moved back to useMemo + useEffect
* previousNumber and animateToNumber comparison has some flaw when dealing with difference length between the two

* simple fix

* fix more silly mistakes

* move _previousNumberString to constant

* Test: increase timeout-minutes to 120 for e2e test

* reverted the timeout-minutes back to 40

---------

Co-authored-by: Rahim Rahman <rahim.rahman@mattermost.com>
Co-authored-by: Mattermost Build <build@mattermost.com>
2024-10-23 16:17:37 +05:30
Elias Nahum
8c7c02d298
Add support for Auth Scheme customization (#8261) 2024-10-23 08:44:12 +08:00
Joram Wilander
05f7875d22
Add tests to actions/remote/user (#8273) 2024-10-21 11:12:42 -04:00
Elias Nahum
418f43cf16
Add utils/post_list unit tests (#8265) 2024-10-18 12:45:08 +08:00
Elias Nahum
eba51a73c6
Add utils/role unit tests (#8266) 2024-10-18 06:30:34 +08:00
Elias Nahum
0df47511a9
Add utils/search unit tests (#8267) 2024-10-18 06:29:49 +08:00
Tanmay Thole
f8a1a5f187
feat: Add copy button on code view (#8244)
* feat: Add copy button on code view

* docs: Update localization file

* Update app/screens/code/index.tsx

Co-authored-by: Rahim Rahman <rahim.rahman@mattermost.com>

* refactor: Update deps array

---------

Co-authored-by: Rahim Rahman <rahim.rahman@mattermost.com>
2024-10-17 10:24:07 +02:00
Elias Nahum
98b8bf109f
fix bookmarks sort order when WS does not bump update_at (#8264) 2024-10-17 09:05:01 +08:00
Rajat Dabade
647b8c8eb6
MM-60705 DB migration: added update_at column to draft table for mobile (#8237)
* MM-60705 DB migration: added update_at column to draft table for mobile

* refactor: updated docs

* refactor: reverted unwanted changes and updated default value for update_at columns

* refactor: changed the condition for excepting 0 value for update_at column
2024-10-15 19:49:22 +05:30
Daniel Espino García
bc8a42b161
Native set load measured (#8242)
* Track notification loaded on native side instead of JS

* iOS details and iOS 18 changes

* Fix tests
2024-10-14 16:07:06 +02:00
Claudio Costa
fa7e7ef44d
Update calls-common (#8255)
* Bump rtc monitor interval to 10s

* Update calls-common
2024-10-11 13:47:49 -06:00
Abdullahi Abass
7dcb6ad4ce
fix: render channel links in threads list (#8205)
fixes: https://github.com/mattermost/mattermost/issues/27859

Co-authored-by: Mattermost Build <build@mattermost.com>
2024-10-11 00:55:24 -06:00
Claudio Costa
e693431dec
[MM-45894] Calls: support for signaling media tracks using data channels (#8246)
* Replace pako with fflate

* Allow signaling through data channel

* Update calls-common
2024-10-09 16:33:33 -06:00
Lucas Reis
603ea793f9
MM-60425 Making clickable images work inside Markdown (#8215)
* fix: disables the gallery click on images inside a markdown link

* feat: removing the logic for acknowledging children that is inside link

* chore: renaming for consistency
2024-10-07 15:57:26 -04:00
Joram Wilander
d486f4861a
Add tests to actions/remote/team (#8241) 2024-10-03 08:18:27 -04:00
Pablo Vélez
0cbbe7266d
MM-60534 -fix rate my app broken styles (#8232)
* MM-60534 -fix rate my app broken styles

* use a simpler and more general approach
2024-09-30 18:17:11 +02:00
Elias Nahum
f04838d9b1
open an external browser when the server config for MobileExternalBrowse is set to true (#8220) 2024-09-17 06:40:12 +08:00
Elias Nahum
394da4487c
Various Fixes (#8212) 2024-09-13 04:46:15 +08:00
Daniel Espino García
20d248fb99
Send notification status information to the server (#8060)
* Send notification status information to the server

* Add version and update names

* Update props names

* Use the single endpoint
2024-09-12 16:52:52 +02:00
Pablo Vélez
c31ec8a711
MM-60312- rename ssoOffice 365 to sso EntraId (#8209)
* MM-60312- rename ssoOffice 365 to sso EntraId

* address pr comments, remove old icon and fix i18n
2024-09-09 11:52:18 +02:00
Rahim Rahman
00e05d581e
fix: MM-58164 Search text is behind the textbox while searching (#8026)
* fix: MM-58164 search text hides behind textbox
* clean up unit test for useCollapsibleHeader
* simplify math
* unlock doesn't need to use useCallback as it doesn't have any deps
* revert changes on unlock
* using lockValue & headerOffset directly into children props
* disable scrolling to prevent scrollValue from being updated
* properly snapping flatlist to the proper spot in a few scenarios

---------

Co-authored-by: Mattermost Build <build@mattermost.com>
2024-09-05 11:28:00 -06:00
Joram Wilander
aba68c45d5
MM-59440 Add unit tests for actions/remote/channel (#8184)
* Add member tests for actions/remote/channel

* Add channel and dm tests to actions/remote/channel

* Update app/actions/remote/channel.test.ts

Co-authored-by: Elias Nahum <nahumhbl@gmail.com>

---------

Co-authored-by: Elias Nahum <nahumhbl@gmail.com>
2024-08-29 09:46:16 -04:00
Elias Nahum
a2dca382c7
add unit tests to app/utils/notification (#8140) 2024-08-29 00:04:12 +08:00
Elias Nahum
2174c679e1
add unit tests for app/utils/navigation (#8139) 2024-08-29 00:03:50 +08:00
Elias Nahum
358417dd7b
add unit tests to app/utils/permalink (#8141) 2024-08-29 00:03:25 +08:00
Elias Nahum
48af5fdcd5
add unit tests to app/utils/post (#8142) 2024-08-29 00:02:40 +08:00
Claudio Costa
13ca346155
[MM-60291] Fix rendering of live captions (#8185)
* Load jobs state from call state

* Fix rendering of live captions overlay
2024-08-28 07:28:12 -06:00
Elias Nahum
8b869c246b
fix sso login success message (#8174)
* fix sso login success message

* fix if statement

---------

Co-authored-by: Mattermost Build <build@mattermost.com>
2024-08-27 08:06:51 +08:00
yasserfaraazkhan
0bf501a14a
Mock date.now in flaky app/actions/team tests (#8171) 2024-08-27 01:44:00 +08:00