Commit graph

3102 commits

Author SHA1 Message Date
Mattermost Build
c19fd35557
Mobile-side for MM-65084 (#9115) (#9169)
* Mobile fix for MM-65084

* Changing test/setup.ts to use a deterministic fill

This avoids the ci issue about parenthesis and is more clear that this is just a fixed sequence for testing, similar to randomUUID above.

* Add setBearerToken and setCSRFToken to Client definition

* Use setClientCredentials and memoize createPkceBundle

* Restoring the preauthSecret back to the Client constructors

This came out of a response to MM-65085: Support Pre Shared Password on server connect where preauthSecret was added in the buildConfig. Claude (correctly imo) identified this as now redundant and so removed it but it is valid to keep it as well. In any case, putting it back to be consistent with ClientTracking and ClientBase.

* Rename PKCE to SAML based terminology, similar to server

* Fix lint issue with too many blank lines at eof

* Removing plain on mobile side

---------


(cherry picked from commit 2d6a5d5097)

Co-authored-by: JG Heithcock <jgheithcock@gmail.com>
2025-09-30 09:25:21 +03:00
Mattermost Build
ab2be60ed4
Fix playbooks bottom sheet not scrolling on ipad (#9137) (#9166)
* Fix playbooks bottom sheet not scrolling on ipad

* Address copilot feedback

(cherry picked from commit 167d0c6579)

Co-authored-by: Daniel Espino García <larkox@gmail.com>
2025-09-29 08:42:33 +03:00
Mattermost Build
3c3973eaa5
Add onPress on full chip (#9134) (#9154)
* Add onPress on full chip

* Address feedback

* Fix test

(cherry picked from commit d4fb05d4bb)

Co-authored-by: Daniel Espino García <larkox@gmail.com>
2025-09-29 08:32:50 +03:00
unified-ci-app[bot]
e825d3aa3d
Bump app build and version number (#9152)
* Bump app build number to 672

* Bump app version number to 2.33.0

---------

Co-authored-by: Mattermost CI Bot <ci-bot@mattermost.com>
2025-09-19 12:48:56 +03:00
Mattermost Build
2075d783f0
Add several UX fixes to set command screen on playbooks (#9136) (#9146)
* Add several UX fixes to set command screen on playbooks

* Update app/products/playbooks/screens/edit_command/edit_command.test.tsx



* Update app/components/autocomplete/autocomplete.test.tsx



* Fix keyboard overlap

---------


(cherry picked from commit 62aba308f1)

Co-authored-by: Daniel Espino García <larkox@gmail.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
2025-09-19 08:18:53 +03:00
Mattermost Build
3a06691a83
Add set due date functionality to playbooks (#9091) (#9126)
* Add set due date functionality to playbooks

* Fix i18n

* Fix test

* Add tests

* Address feedback

* Remove unneeded line break

* Fix test

(cherry picked from commit 0df334dd2f)

Co-authored-by: Daniel Espino García <larkox@gmail.com>
2025-09-12 17:52:35 +03:00
Mattermost Build
cc4698a1e2
Navigation for permalink and Tablet fixes (#9116) (#9125)
* typescript and view component for permalink with user and message

* Old post edited handling in permalink

* Added test and update flag value to EnablePermalinkPreview

* Added test for permalink_preview component

* Added test for content/index.tsx for permalink

* Addressed review comments

* Unit test for missing file and review comments

* Added test to check handlePostEdited permalink sync only calls one time only

* Change TouchableOpacity to Pressable

* When user not found fetch the user from the server

* Removed the redundant test in the test for permalink_preview/index?

* ts to tsx

* Removed the circular dependency

* Address review comments

* displayname fallback

* remove permalink when permalink post is deleted

* UX review comments

* Linter fixes

* Test fixes

* File attachment in permalink preview component

* Fix the width and height of the image in permalink

* Added gredient when exceeds height of permalink container

* Minor

* Updated tests

* Minor

* Review comments

* Minor review comments

* type fixes

* Review comments

* Minor

* Mention ability in permalink preview

* Support for external link in permalink

* Handle device not connected update permalink post

* test fixes

* Address review comments

* Minor

* Merge fixes

* Addressed review comments

* Fix content.test.tsx after permalink branch merge

- Updated test expectations to use embedData prop instead of post prop
- Fixed assertions to match the new PermalinkPreview API
- All content tests now pass

* review comments

* Review comments

* Some more review comments

* Minor

* Fixed the undefined issue for opengraph component metadata

* More fixes

* Navigation for permalink

* Tablet fixes

* type chech for site name

* linter fixes

* UX review and remove show more height not require

* Fix tests

* Fixed the navigation issue for DM's

* Minor fixes due to merge main

---------


(cherry picked from commit 4e95364344)

Co-authored-by: Rajat Dabade <rajatdabade1997@gmail.com>
Co-authored-by: yasserfaraazkhan <attitude3cena.yf@gmail.com>
2025-09-12 15:40:15 +03:00
Mattermost Build
9db6b0c89d
Add select user screen to select owner and task assignee (#9089) (#9124)
* Add select user screen to select owner and task assignee

* Fix i18n

* Add tests

* Address feedback

* Fix test

* Address UX feedback

* Fix test

* Put the no assignee button inline with the search

(cherry picked from commit a5d7bf7db4)

Co-authored-by: Daniel Espino García <larkox@gmail.com>
2025-09-12 13:23:21 +03:00
Mattermost Build
876226ef53
Mention, embedded link and handling of post update on offline device (#9104) (#9122)
* typescript and view component for permalink with user and message

* Old post edited handling in permalink

* Added test and update flag value to EnablePermalinkPreview

* Added test for permalink_preview component

* Added test for content/index.tsx for permalink

* Addressed review comments

* Unit test for missing file and review comments

* Added test to check handlePostEdited permalink sync only calls one time only

* Change TouchableOpacity to Pressable

* When user not found fetch the user from the server

* Removed the redundant test in the test for permalink_preview/index?

* ts to tsx

* Removed the circular dependency

* Address review comments

* displayname fallback

* remove permalink when permalink post is deleted

* UX review comments

* Linter fixes

* Test fixes

* File attachment in permalink preview component

* Fix the width and height of the image in permalink

* Added gredient when exceeds height of permalink container

* Minor

* Updated tests

* Minor

* Review comments

* Minor review comments

* type fixes

* Review comments

* Minor

* Mention ability in permalink preview

* Support for external link in permalink

* Handle device not connected update permalink post

* test fixes

* Address review comments

* Minor

* Merge fixes

* Addressed review comments

* Fix content.test.tsx after permalink branch merge

- Updated test expectations to use embedData prop instead of post prop
- Fixed assertions to match the new PermalinkPreview API
- All content tests now pass

* review comments

* Review comments

* Some more review comments

* Minor

* Fixed the undefined issue for opengraph component metadata

* More fixes

* type chech for site name

* linter fixes

* UX review and remove show more height not require

* Fix tests

* Review nitpick and fixes

* Minor UX changes

---------


(cherry picked from commit da2f38e072)

Co-authored-by: Rajat Dabade <rajatdabade1997@gmail.com>
Co-authored-by: yasserfaraazkhan <attitude3cena.yf@gmail.com>
2025-09-12 12:03:56 +03:00
Mattermost Build
00eb493a01
Ability to show attachment if the permalink post contains attachments. (#9101) (#9121)
* typescript and view component for permalink with user and message

* Old post edited handling in permalink

* Added test and update flag value to EnablePermalinkPreview

* Added test for permalink_preview component

* Added test for content/index.tsx for permalink

* Addressed review comments

* Unit test for missing file and review comments

* Added test to check handlePostEdited permalink sync only calls one time only

* Change TouchableOpacity to Pressable

* When user not found fetch the user from the server

* Removed the redundant test in the test for permalink_preview/index?

* ts to tsx

* Removed the circular dependency

* Address review comments

* displayname fallback

* remove permalink when permalink post is deleted

* UX review comments

* Linter fixes

* Test fixes

* File attachment in permalink preview component

* Fix the width and height of the image in permalink

* Added gredient when exceeds height of permalink container

* Minor

* Updated tests

* Minor

* Review comments

* Minor review comments

* type fixes

* Review comments

* Minor

* Address review comments

* Minor

* Merge fixes

* Addressed review comments

* Some more review comments

* linter fixes

* UX review and remove show more height not require

* Fix tests

* Review fixes, dev and ux

---------


(cherry picked from commit d732b5a33e)

Co-authored-by: Rajat Dabade <rajatdabade1997@gmail.com>
Co-authored-by: yasserfaraazkhan <attitude3cena.yf@gmail.com>
2025-09-12 11:23:23 +03:00
Rajat Dabade
71fed8aa50
(Android) Common component for upload item for main application and share extension (#9028)
* Common component for upload item for main application and share extension

* Addressed review comments

* intl fixes

---------

Co-authored-by: Mattermost Build <build@mattermost.com>
2025-09-11 12:54:54 +05:30
Rajat Dabade
113f9d942c
Typescript support and view component for permalink with user and message (#9052)
* typescript and view component for permalink with user and message

* Old post edited handling in permalink

* Added test and update flag value to EnablePermalinkPreview

* Added test for permalink_preview component

* Added test for content/index.tsx for permalink

* Addressed review comments

* Unit test for missing file and review comments

* Added test to check handlePostEdited permalink sync only calls one time only

* Change TouchableOpacity to Pressable

* When user not found fetch the user from the server

* Removed the redundant test in the test for permalink_preview/index?

* ts to tsx

* Removed the circular dependency

* Address review comments

* displayname fallback

* remove permalink when permalink post is deleted

* UX review comments

* Linter fixes

* Test fixes

* Address review comments

* Minor

* Some more review comments

---------

Co-authored-by: yasserfaraazkhan <attitude3cena.yf@gmail.com>
2025-09-10 17:12:16 +05:30
Daniel Espino García
82c7787dc4
Do not show the playbooks item on DMs/GMs (#9098)
Co-authored-by: Mattermost Build <build@mattermost.com>
2025-09-09 09:53:38 +02:00
Weblate (bot)
303dbf3367
Translations update from Mattermost Weblate (#9112)
Automatic Merge
2025-09-08 15:49:12 +03:00
Daniel Espino García
b227837fa5
Add playbooks edit command functionality (#9084)
* Add playbooks edit command functionality

* Fix tests

* Add tests

* Remove option to change command when the run is disabled (not participant or finished)

* Fix tests

* Address feedback

* Fix test

* Remove unneeded variables
2025-09-08 14:29:15 +02:00
Rahim Rahman
881342cb5f
chore: error on react-hooks/exhaustive-deps during pre-commit (#9105)
* chore: exhaustive-deps error
* faster precommit using tsc --incremental
* don't exit until both check has ran
2025-09-05 06:08:01 -06:00
unified-ci-app[bot]
bb2321da26
Bump app build number to 669 (#9106)
Co-authored-by: Mattermost CI Bot <ci-bot@mattermost.com>
2025-09-05 12:36:29 +03:00
sabril
06057a423e
fix sorting test scripts and add dotenv (#9099) 2025-09-02 16:58:52 +08:00
Weblate (bot)
6ffdf79b7a
Translations update from Mattermost Weblate (#9097)
Automatic Merge
2025-09-01 17:34:07 +03:00
Felipe Martin
f50056f57b
MM-65085: Support Pre Shared Password on server connect (#9082)
* feat: add shared server password to server setup

* feat: allow editing the sever

* refactor: changed password -> secret, styling and tests

* e2e: draft e2e tests

* chore: lint fix

* feat: also send preauth secret header when using native share

* fix: removed unused server database migration

credentials are being stored in the keychain

* i18n: added missing english translations

* test(e2e): simplified connection tests

* test(e2e): rework

* refactor: remove setBearerToken

* chore: restore migrations the way it was

* chore: reverted file to original state

* chore: removed unneeded test and renamed password to secret

* chore: function version

* chore: updated forms i18n keys

* chore: remove if from test

* chore: unneeded variable

* fix: add missing key on object list

* refactor: swift keychain access to retrieve all credentials in one call

* revert: edit server screen

* refactor: credentials use getGenericCredential

* fix: objc code calling old method

* fix: added scroll to login screen

* chore: variable names

* fix: avoid inline styles

* fix: Improved appVersion positioning

* Update app/screens/server/form.tsx

Co-authored-by: Matthew Birtch <mattbirtch@gmail.com>

* feat: show error message on 403

* Revert "feat: show error message on 403"

This reverts commit f41630c767e10211adf1885321ceefd8a0931e32.

---------

Co-authored-by: Matthew Birtch <mattbirtch@gmail.com>
2025-09-01 11:24:15 +02:00
Elias Nahum
2c1d896e9b
update react-native-network-client (#9094) 2025-09-01 16:22:26 +08:00
Daniel Espino García
4978269156
Fix playbooks not getting updated by websocket (#9088) 2025-08-26 14:01:04 +02:00
Anonymous
4dd88ee6b6 Translated using Weblate (Indonesian)
Currently translated at 4.4% (61 of 1361 strings)

Translation: Mattermost/mattermost-mobile-v2
Translate-URL: https://translate.mattermost.com/projects/mattermost/mattermost-mobile-v2/id/
2025-08-25 15:12:00 +02:00
Anonymous
d251095fae Translated using Weblate (Hindi)
Currently translated at 13.3% (182 of 1361 strings)

Translation: Mattermost/mattermost-mobile-v2
Translate-URL: https://translate.mattermost.com/projects/mattermost/mattermost-mobile-v2/hi/
2025-08-25 15:12:00 +02:00
Hosted Weblate
e6c4d19f37 Update translation files
Updated by "Cleanup translation files" hook in Weblate.

Translation: Mattermost/mattermost-mobile-v2
Translate-URL: https://translate.mattermost.com/projects/mattermost/mattermost-mobile-v2/
2025-08-25 15:12:00 +02:00
Frank Paul Silye
3a335b96c0 Translated using Weblate (Norwegian Bokmål)
Currently translated at 98.9% (1348 of 1362 strings)

Translation: Mattermost/mattermost-mobile-v2
Translate-URL: https://translate.mattermost.com/projects/mattermost/mattermost-mobile-v2/nb_NO/
2025-08-25 15:12:00 +02:00
Daniel Espino García
8aa13c4e0a
Add bottom sheet for playbooks checklist items (#9065)
* Add bottom sheet for playbooks checklist items

* i18n extract

* Remove unneeded test case

* Add tests

* Address feedback

* Remove unneeded useCallback and add needed useMemo

* Address feedback

* Add missing translation string
2025-08-25 12:37:29 +02:00
Daniel Espino García
0c4a42a06a
Remove tand prevent double tap (#9078)
* Remove the t function and all wrong uses of preventDoubleTap

* Fix existing typo

* Fix tests

* Address comments

* Fix test
2025-08-25 12:03:01 +02:00
unified-ci-app[bot]
1965b4777d
Bump app build number to 666 (#9083)
Co-authored-by: Mattermost CI Bot <ci-bot@mattermost.com>
2025-08-22 12:12:31 +03:00
unified-ci-app[bot]
ebc39fd386
Bump app build and version number (#9080)
* Bump app build number to 665

* Bump app version number to 2.32.0

---------

Co-authored-by: Mattermost CI Bot <ci-bot@mattermost.com>
2025-08-20 15:06:21 +03:00
Daniel Espino García
a27c82da90
Refactor and cleanup of option item (#9067)
* Refactor and cleanup of option item

* Fix tests and minor cleanup

* Fix bug and address feedback
2025-08-19 14:01:56 +02:00
Daniel Espino García
2e5bbb9f62
Fix share screenshot on ios 26 (#9068)
* Fix share screenshot on ios 26

* Address copilot feedback

* Address more copilot comments
2025-08-19 09:04:37 +02:00
Rahim Rahman
882097a668
feat(MM-63937): fetch initial team data only on entry (#8894)
* feat(MM-63936): add mark function in performance metrics manager
* feat(MM-63563): fetch initial team data ONLY on entry
* remove all performance mark()
* revert changes to processEntryModels
* using processNextTeam to download team in sequence
* separate restDeferredAppEntryActions into two parts
* remove console.log
* fixed issue with conflict post.id
* regression from fetchPostsForUnreadChannels
* extracted deferred functions into deferred.ts
* missing mock
* extract combineChannelsData to it's own function
* remove isDelete
* use logDebug vs logInfo
* add logDebug and logWarning in the mocking
* add combineChannelsData test
* revert the use of logDebug
* spelling errors
* undo logDebug changes
* moving fetchMissingDirectChannelsInfo into setTimeout saved quite a bit of time when it comes to TTI
* changes to accommodate other recent changes
* keep the channelsMap smaller by moving delete_at.
* using for loop instead of recursive
* making this function more readable
* add jsdoc
* changes based on review
* team will not get omitted from the sidebar if there is an error
* fix test as well
* added a new test
* remove comments on categories
* add categories to fix failing test
* fix failing test
2025-08-18 10:06:15 -06:00
MArtin Johnson
7b6fe1e84a Translated using Weblate (Swedish)
Currently translated at 99.7% (1359 of 1362 strings)

Translation: Mattermost/mattermost-mobile-v2
Translate-URL: https://translate.mattermost.com/projects/mattermost/mattermost-mobile-v2/sv/
2025-08-18 15:32:02 +02:00
Hosted Weblate
1587dc3d92 Update translation files
Updated by "Cleanup translation files" hook in Weblate.

Translation: Mattermost/mattermost-mobile-v2
Translate-URL: https://translate.mattermost.com/projects/mattermost/mattermost-mobile-v2/
2025-08-18 15:32:02 +02:00
unified-ci-app[bot]
faf5e923f2
chore: Update NOTICE.txt file with updated dependencies (#9073)
Co-authored-by: unified-ci-app[bot] <121569378+unified-ci-app[bot]@users.noreply.github.com>
2025-08-18 13:11:35 +03:00
unified-ci-app[bot]
eb4609a890
Bump app build number to 662 (#9069)
Co-authored-by: Anka <runner@Mac-1755248560088.local>
2025-08-15 12:12:38 +03:00
Daniel Espino García
4f27a022c3
Make relatives times coherent with web (#9062)
* Make relatives times coherent with web

* Fix test
2025-08-12 14:28:25 +02:00
Daniel Espino García
71cec5a3e2
Purge leftover information in my channel table when purging playbooks (#9057)
* Purge leftover information in my channel table when purging playbooks

* Add comment

* Clear the sync ephemeral store on plugin disable
2025-08-12 14:27:52 +02:00
Daniel Espino García
d653d55cbc
Fix long name playbooks channel header (#9051)
* Fix long name playbooks channel header

* Address nitpick

* Fix unintended android change
2025-08-12 14:18:05 +02:00
Matthew Williams
f5ded51b02 Translated using Weblate (English (Australia))
Currently translated at 100.0% (1374 of 1374 strings)

Translation: Mattermost/mattermost-mobile-v2
Translate-URL: https://translate.mattermost.com/projects/mattermost/mattermost-mobile-v2/en_AU/
2025-08-11 15:23:46 +02:00
Rajat Dabade
abb8fc84e9
(IOS) Consistent component for upload item for share extension (#9030)
Co-authored-by: Mattermost Build <build@mattermost.com>
2025-08-11 16:56:46 +05:30
Daniel Espino García
a102b6147e
Add ellipsis to the checklist title (#9059) 2025-08-08 13:41:05 +02:00
unified-ci-app[bot]
464b15ffb0
Bump app build number to 661 (#9063)
Co-authored-by: Anka <runner@Mac-1754641802002.local>
2025-08-08 12:18:13 +03:00
Elias Nahum
e8a0be4589
Upgrade SQLite.Swift to 0.15.4 (#9061) 2025-08-08 07:09:51 +08:00
Guillermo Vayá
499198bd96
fix sort_order 0 being converted to MAX_INTEGER (#9050) 2025-08-06 18:12:37 +02:00
unified-ci-app[bot]
22118854a1
chore: Update NOTICE.txt file with updated dependencies (#9056)
Co-authored-by: unified-ci-app[bot] <121569378+unified-ci-app[bot]@users.noreply.github.com>
2025-08-05 11:14:06 +03:00
Amy Blais
9bf54d18f7
Update NOTICE.txt (#9055) 2025-08-05 10:54:08 +03:00
Elias Nahum
64dda92be2
Update package.json (#9053) 2025-08-05 10:21:33 +03:00
Rajat Dabade
1dce89c97e
Reschedule time picker should open with post's scheduled date time (#9035) 2025-08-04 19:22:35 +05:30