mattermost-mobile/app/utils
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
..
channel Unify Is Read Only logic to avoid code repetition and improve redability (#8720) 2025-04-06 17:50:19 +02:00
deep_link Remove tand prevent double tap (#9078) 2025-08-25 12:03:01 +02:00
document Secure Files and preview PDF inline (#8844) 2025-06-19 15:30:56 +08:00
draft Remove tand prevent double tap (#9078) 2025-08-25 12:03:01 +02:00
emoji Remove tand prevent double tap (#9078) 2025-08-25 12:03:01 +02:00
file Viewing Files in Edit mode in mobile with ability to delete and save (#8918) 2025-06-20 01:03:57 +05:30
gallery Refactor gallery gestures (#8752) 2025-07-22 14:00:57 +08:00
general Channel banner display (#8735) 2025-04-08 11:15:18 +05:30
images Refactor gallery gestures (#8752) 2025-07-22 14:00:57 +08:00
markdown use the actual url in the metadata if there is an image proxy being used (#8852) 2025-05-20 05:52:42 +08:00
navigation Remove tand prevent double tap (#9078) 2025-08-25 12:03:01 +02:00
notification add unit tests to app/utils/notification (#8140) 2024-08-29 00:04:12 +08:00
permalink add unit tests to app/utils/permalink (#8141) 2024-08-29 00:03:25 +08:00
post Remove tand prevent double tap (#9078) 2025-08-25 12:03:01 +02:00
post_list Add model mocks to TestHelper (#8715) 2025-03-28 09:40:08 +01:00
role Add utils/role unit tests (#8266) 2024-10-18 06:30:34 +08:00
scheduled_post Feature schedule posts (#8509) 2025-04-14 22:08:59 +05:30
search Add utils/search unit tests (#8267) 2024-10-18 06:29:49 +08:00
server Add tests for utils/server (#8456) 2025-01-08 09:41:02 -05:00
snack_bar Add Playbooks read-only support for mobile devices (#8978) 2025-07-14 09:21:37 +02:00
svg Gekidou MultiServers second part (#5963) 2022-02-17 10:42:06 -03:00
tap Remove tand prevent double tap (#9078) 2025-08-25 12:03:01 +02:00
theme MM-59583 Add tests for utils/theme (#8455) 2025-01-08 11:59:52 -05:00
thread Better handle threads sync (#8641) 2025-03-19 09:23:22 +01:00
url MM-65085: Support Pre Shared Password on server connect (#9082) 2025-09-01 11:24:15 +02:00
user Remove tand prevent double tap (#9078) 2025-08-25 12:03:01 +02:00
apps.test.ts fix issues found by sonarqube (#8095) 2024-07-18 09:40:47 +08:00
apps.ts Make attachments and app bindings more robust yet secure (#8570) 2025-03-14 12:02:32 +01:00
buttonStyles.test.ts Add Report a Problem functionality (#8605) 2025-04-24 11:12:55 +02:00
buttonStyles.ts Standardize tags and chips through the app (#8856) 2025-06-11 10:11:05 +02:00
categories.test.ts Add model mocks to TestHelper (#8715) 2025-03-28 09:40:08 +01:00
categories.ts Add unit tests to Utils buttonStyles and categories (#8015) 2024-06-14 17:11:36 +08:00
config.test.ts Add unit tests to utils config, datetime, error_handling, errors and files (#8018) 2024-06-15 01:29:03 +08:00
config.ts Fix race condition when the same websocket gets initialized twice (#7185) 2023-03-07 19:11:28 +01:00
custom_profile_attribute.ts [MM-62565] DB only custom profile attributes and fields (#8739) 2025-04-09 15:35:27 +02:00
datetime.test.ts Feature schedule posts (#8509) 2025-04-14 22:08:59 +05:30
datetime.ts Feature schedule posts (#8509) 2025-04-14 22:08:59 +05:30
error_handling.test.ts Add unit tests to utils config, datetime, error_handling, errors and files (#8018) 2024-06-15 01:29:03 +08:00
error_handling.ts Remove tand prevent double tap (#9078) 2025-08-25 12:03:01 +02:00
errors.test.ts [MM-62777] Fix errors being nested. Make MFA code more resilient to this situation (#8531) 2025-01-31 08:31:15 +02:00
errors.ts [MM-62777] Fix errors being nested. Make MFA code more resilient to this situation (#8531) 2025-01-31 08:31:15 +02:00
files.test.ts Secure Files and preview PDF inline (#8844) 2025-06-19 15:30:56 +08:00
files.tsx Secure Files and preview PDF inline (#8844) 2025-06-19 15:30:56 +08:00
font_family.test.ts Add Playbooks read-only support for mobile devices (#8978) 2025-07-14 09:21:37 +02:00
font_family.ts added utils unit tests (#8040) 2024-07-05 07:17:09 +08:00
groups.test.ts added utils unit tests (#8040) 2024-07-05 07:17:09 +08:00
groups.ts [Gekidou] Groups + group-memberships deferred fetch (#6370) 2022-07-07 12:20:06 +02:00
helpers.test.ts Add set due date functionality to playbooks (#9091) (#9126) 2025-09-12 17:52:35 +03:00
helpers.ts Add set due date functionality to playbooks (#9091) (#9126) 2025-09-12 17:52:35 +03:00
integrations.test.ts added utils unit tests (#8040) 2024-07-05 07:17:09 +08:00
integrations.ts Fix interactive dialog number handling (#8431) 2024-12-19 09:45:03 +01:00
key_mirror.test.ts added utils unit tests (#8040) 2024-07-05 07:17:09 +08:00
key_mirror.ts MM-35115 [Gekidou] Login flow - Email and Password (#5402) 2021-06-18 00:57:40 -04:00
log.test.ts Add Report a Problem functionality (#8605) 2025-04-24 11:12:55 +02:00
log.ts Update dependencies (#8721) 2025-04-07 09:30:06 +08:00
mattermost_managed.test.ts added utils unit tests (#8040) 2024-07-05 07:17:09 +08:00
mattermost_managed.ts Upgrade RN as well as update or replace other dependencies (#8011) 2024-06-19 09:33:45 +08:00
message_attachment.test.ts Make attachments and app bindings more robust yet secure (#8570) 2025-03-14 12:02:32 +01:00
message_attachment.ts Make attachments and app bindings more robust yet secure (#8570) 2025-03-14 12:02:32 +01:00
mix.test.ts added utils unit tests (#8040) 2024-07-05 07:17:09 +08:00
mix.ts Remove watermelondb limitation on updating an already updated model (#7067) 2023-02-03 17:11:57 +02:00
opengraph.test.ts MM-59600 Add unit tests to utils/opengraph (#8444) 2025-01-06 15:30:48 -05:00
opengraph.ts MM-59600 Add unit tests to utils/opengraph (#8444) 2025-01-06 15:30:48 -05:00
permalink_sync.test.ts Ability to show attachment if the permalink post contains attachments. (#9101) (#9121) 2025-09-12 11:23:23 +03:00
permalink_sync.ts Ability to show attachment if the permalink post contains attachments. (#9101) (#9121) 2025-09-12 11:23:23 +03:00
push_proxy.test.ts added utils unit tests (#8040) 2024-07-05 07:17:09 +08:00
push_proxy.ts capitalize back the alert text 2023-10-18 21:06:12 +02:00
reviews.test.ts added utils unit tests (#8040) 2024-07-05 07:17:09 +08:00
reviews.ts Upgrade RN as well as update or replace other dependencies (#8011) 2024-06-19 09:33:45 +08:00
saml_challenge.ts Mobile-side for MM-65084 (#9115) (#9169) 2025-09-30 09:25:21 +03:00
security.test.ts added utils unit tests (#8040) 2024-07-05 07:17:09 +08:00
security.ts Remove uneeded database migrations (#6985) 2023-01-19 16:56:30 +01:00
sentry.test.ts Update dependencies and upgrade to RN 0.76.5 (#8421) 2025-01-16 07:11:32 -07:00
sentry.ts Update dependencies and upgrade to RN 0.76.5 (#8421) 2025-01-16 07:11:32 -07:00
share_logs.test.ts Add Report a Problem functionality (#8605) 2025-04-24 11:12:55 +02:00
share_logs.ts Add Report a Problem functionality (#8605) 2025-04-24 11:12:55 +02:00
strings.test.ts added utils unit tests (#8040) 2024-07-05 07:17:09 +08:00
strings.ts added utils unit tests (#8040) 2024-07-05 07:17:09 +08:00
time.test.ts Feature schedule posts (#8509) 2025-04-14 22:08:59 +05:30
time.ts Feature schedule posts (#8509) 2025-04-14 22:08:59 +05:30
timezone.test.ts added utils unit tests (#8040) 2024-07-05 07:17:09 +08:00
timezone.ts remove usages of isTimeZoneEnabled (#7769) 2024-01-30 13:22:55 +01:00
types.ts Add model mocks to TestHelper (#8715) 2025-03-28 09:40:08 +01:00
typography.test.ts added utils unit tests (#8040) 2024-07-05 07:17:09 +08:00
typography.ts added utils unit tests (#8040) 2024-07-05 07:17:09 +08:00