Commit graph

2570 commits

Author SHA1 Message Date
Daniel Espino García
e0992c0bf6
Add test notification tool (#8271)
* Add test notification menu

* Reduce the minimum version for testing purposes

* Address feedback

* Add missing strings

* Address feedback

* Fix snapshots

* Bump version limit and use correct link

* Fix tests

* Fix URL issues
2024-11-11 10:22:57 +01:00
Rahim Rahman
83189afa88
fix(MM-60638): Insecure File Provider Paths (#8294) 2024-11-08 08:28:19 -07:00
unified-ci-app[bot]
d27d56f102
Bump app build number to 572 (#8321)
Co-authored-by: runner <runner@Mac-1731051082886.local>
2024-11-08 07:51:29 -05:00
Jesse Hallam
09697c5a8b
bump Ruby verison (#8315) 2024-11-07 12:34:24 -04:00
Daniel Espino García
2649b4b63a
Remove app alias for imports (#8314) 2024-11-07 08:34:49 +08:00
Elias Nahum
d7e54999c9
fix iPad split screen (#8317) 2024-11-07 08:30:54 +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
Weblate (bot)
7eec0ff44d
Translations update from Mattermost Weblate (#8311)
Automatic Merge
2024-11-04 14:47:18 +01: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
unified-ci-app[bot]
2a02a61b6b
Bump app build number to 571 (#8307)
Co-authored-by: runner <runner@Mac-1730449069657.local>
2024-11-01 08:04:25 -04: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
dependabot[bot]
4ee91dc81b
Bump rexml from 3.3.7 to 3.3.9 in /fastlane (#8297)
Bumps [rexml](https://github.com/ruby/rexml) from 3.3.7 to 3.3.9.
- [Release notes](https://github.com/ruby/rexml/releases)
- [Changelog](https://github.com/ruby/rexml/blob/master/NEWS.md)
- [Commits](https://github.com/ruby/rexml/compare/v3.3.7...v3.3.9)

---
updated-dependencies:
- dependency-name: rexml
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-10-30 09:57:51 +08: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
Weblate (bot)
3a712350a8
Translations update from Mattermost Weblate (#8292)
* Translated using Weblate (Ukrainian)

Currently translated at 74.1% (879 of 1186 strings)

Translation: Mattermost/mattermost-mobile-v2
Translate-URL: https://translate.mattermost.com/projects/mattermost/mattermost-mobile-v2/uk/

* Translated using Weblate (Ukrainian)

Currently translated at 74.1% (879 of 1186 strings)

Translation: Mattermost/mattermost-mobile-v2
Translate-URL: https://translate.mattermost.com/projects/mattermost/mattermost-mobile-v2/uk/

* Translated using Weblate (Polish)

Currently translated at 100.0% (1186 of 1186 strings)

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

* Translated using Weblate (Ukrainian)

Currently translated at 74.1% (879 of 1186 strings)

Translation: Mattermost/mattermost-mobile-v2
Translate-URL: https://translate.mattermost.com/projects/mattermost/mattermost-mobile-v2/uk/

* Translated using Weblate (Ukrainian)

Currently translated at 74.1% (879 of 1186 strings)

Translation: Mattermost/mattermost-mobile-v2
Translate-URL: https://translate.mattermost.com/projects/mattermost/mattermost-mobile-v2/uk/

* Translated using Weblate (Ukrainian)

Currently translated at 74.1% (879 of 1186 strings)

Translation: Mattermost/mattermost-mobile-v2
Translate-URL: https://translate.mattermost.com/projects/mattermost/mattermost-mobile-v2/uk/

* Translated using Weblate (Ukrainian)

Currently translated at 76.4% (907 of 1186 strings)

Translation: Mattermost/mattermost-mobile-v2
Translate-URL: https://translate.mattermost.com/projects/mattermost/mattermost-mobile-v2/uk/

* Translated using Weblate (Ukrainian)

Currently translated at 76.4% (907 of 1186 strings)

Translation: Mattermost/mattermost-mobile-v2
Translate-URL: https://translate.mattermost.com/projects/mattermost/mattermost-mobile-v2/uk/

* Translated using Weblate (Ukrainian)

Currently translated at 77.7% (922 of 1186 strings)

Translation: Mattermost/mattermost-mobile-v2
Translate-URL: https://translate.mattermost.com/projects/mattermost/mattermost-mobile-v2/uk/

* Translated using Weblate (Ukrainian)

Currently translated at 77.7% (922 of 1186 strings)

Translation: Mattermost/mattermost-mobile-v2
Translate-URL: https://translate.mattermost.com/projects/mattermost/mattermost-mobile-v2/uk/

* Translated using Weblate (Ukrainian)

Currently translated at 82.4% (978 of 1186 strings)

Translation: Mattermost/mattermost-mobile-v2
Translate-URL: https://translate.mattermost.com/projects/mattermost/mattermost-mobile-v2/uk/

* Translated using Weblate (Ukrainian)

Currently translated at 83.0% (985 of 1186 strings)

Translation: Mattermost/mattermost-mobile-v2
Translate-URL: https://translate.mattermost.com/projects/mattermost/mattermost-mobile-v2/uk/

* Translated using Weblate (Turkish)

Currently translated at 100.0% (1186 of 1186 strings)

Translation: Mattermost/mattermost-mobile-v2
Translate-URL: https://translate.mattermost.com/projects/mattermost/mattermost-mobile-v2/tr/

* Translated using Weblate (Norwegian Bokmål)

Currently translated at 98.0% (1163 of 1186 strings)

Translation: Mattermost/mattermost-mobile-v2
Translate-URL: https://translate.mattermost.com/projects/mattermost/mattermost-mobile-v2/nb_NO/

* Translated using Weblate (Chinese (Simplified Han script))

Currently translated at 100.0% (1186 of 1186 strings)

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

* Translated using Weblate (Norwegian Bokmål)

Currently translated at 98.0% (1163 of 1186 strings)

Translation: Mattermost/mattermost-mobile-v2
Translate-URL: https://translate.mattermost.com/projects/mattermost/mattermost-mobile-v2/nb_NO/

---------

Co-authored-by: Arsenii Potapov <arch130troll@gmail.com>
Co-authored-by: Serhii Khomiuk <sergiy.khomiuk@gmail.com>
Co-authored-by: master7 <marcin.karkosz@rajska.info>
Co-authored-by: Kaya Zeren <kayazeren@gmail.com>
Co-authored-by: Frank Paul Silye <frankps@gmail.com>
Co-authored-by: ThrRip <coding@thrrip.space>
Co-authored-by: Tom De Moor <tom@controlaltdieliet.be>
2024-10-29 08:57:25 +01:00
dependabot[bot]
ac6bdd8a8a
Bump rexml from 3.3.5 to 3.3.9 (#8295) 2024-10-29 08:22:11 +08: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
unified-ci-app[bot]
c5171418b6
Bump app build number to 569 (#8286)
Co-authored-by: runner <runner@Mac-1729845732528.local>
2024-10-25 08:43:30 -04: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
Rahim Rahman
9338a1c479
chore: exhaustive-deps eslint rules from 'off' to 'warn' (#8272) 2024-10-21 09:06:28 -06:00
Weblate (bot)
7484583865
Translations update from Mattermost Weblate (#8277)
Automatic Merge
2024-10-21 16:44:34 +02:00
unified-ci-app[bot]
e5a7c91f1f
Bump app build and version number (#8269)
* Bump app build number to 568

* Bump app version number to 2.22.0

---------

Co-authored-by: runner <runner@Mac-1729252885614.local>
2024-10-18 08:39:18 -04:00
unified-ci-app[bot]
bfa1d93deb
Bump app build number to 567 (#8268)
Co-authored-by: runner <runner@Mac-1729240293461.local>
2024-10-18 08:29:38 -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
unified-ci-app[bot]
c6583b7f90
chore: Update NOTICE.txt file with updated dependencies (#8258)
Co-authored-by: unified-ci-app[bot] <121569378+unified-ci-app[bot]@users.noreply.github.com>
2024-10-15 08:39:53 -04:00
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
Rahim Rahman
e7d597f70e
test: mitmproxy + low bandwidth + automated QA using detox (#8202)
* experimental github action

* start mtmproxy then kill it

* suspend test for now

* dont need to be in a PR to trigger

* trying again with mitmdump

* where is .mitmproxy folder?

* run with +e

* not sure why exit code 1

* if this is a better path

* let's try killing using trap?

* trying a different path

* maybe using ~  would work?

* looking at output to networksetup command

* minor mistake

* throttling bandwidth

* lets try with sudo

* missing sudo

* using mitmdump

* remove spaces

* tried diff path

* change to the proper file

* upload artifacts

* install cert

* added cert to simulator

* getting simulator UDID

* proper scoped var

* using github outputs

* getenv doesn't have IOS_SIMULATOR_UDID

* using echo command

* maybe forgot to scope outputs

* lets run the command directly

* changed to iPhone 14

* let me see all the devices

* try something new

* rearrange my steps to get cert

* getenv booted

* remove too many outputs

* using mm mobile test server

* tie it all together with detox test

* removed dependency for another job

* put dependency on a job

* simplify process even more

* add github-token on download artifact

* add run-id, hopefully that's what needed to download

* incorrect speed for download

* update to the correct dummynet syntax

* proper mitmdump flow report

* update allow-hosts

* commenting out mitmdump for now

* back to rahim-experiments

* overly commented out

* cacert not --ca-cert

* maybe i allow the wrong host?

* maybe i just forgotr to kill mitmdump after I'm done?

* using pm2

* reinstate jobs. and longer timeout for detox

* need sudo

* recording videos and limiting to 1 test

* just want to run 1 test.

* back to experimenting

* using wget

* test using chrome

* using chrome and add delay

* ok test again with detox

* go back to testing all server_login

* compare booted simulators

* few more experiments

* no \

* using github_outputs

* using fromJSON

* too many $

* can i do this another way?

* two runs to get the it assigned

* try again

* .

* trying to access devices array

* try again

* using jq

* keep it simple

* might not need outputs

* forgot pipe

* will this work?

* will first element of an array works

* see if we got the udid

* did we get it wrong?

* will this work?

* let's assign?

* we have to put into string

* ok 1 more

* will it have quotes?

* echo in an echo

* is this working?

* let's hope this works.

* it's actually using 17.4 iPhone 14 not 17.0

* broke because i add &

* removed failed step

* lowering ping and going back to 10 parallel test

* double-up ONE_SEC to see if tests will pass

* why curl failed after?

* getting more data from failures

* let's get more logs with pm and mitmdump

* more logging and improvement

* silly error!

* problem with throttling, let's figure out where we can improve

* increase timeout for low-bandwidth

* increased delay + run all tests

* lets see if this will be better for throttling

* try set +e to see if it will return failure

* check disk space.

* deleting zip and trash to free up space.

* try to do pfctl twice to see if that would help

* making bandwidth-throttling a composite action

* would 5 seconds make a diff?

* add shell

* throttle bandwidth experiment

* fix quick problem

* 5s sleep, and throttling at the right time

* the throttling was working better earlier.

* add a flush in between

* no exit, see if it works well

* trying continue-on-error

* resetting with continue-on-error vs checking for if steps before worked

* adding flush before throttling to see if it makes a diff

* put it back where we think is the best spot

* change timeout to 60 and some cleanup

* forgot a simple $

* move network throttling again to see if this is better?

* rearranging

* move throttling back to where it used to work well
making bandwidth-throttling action taking inputs

* forgot shell

* inputs not input, and continue-on-error

* getting host from site_1_url

* update the sed script

* move more steps into composite action file

* add shell

* add more shell

* action cleanup

* see if our reset network setting works

* delete unused files

* more clean up

* wrong indentation

* wrong context

* see if not having low bandwidth enabled would cause stuff to break

* will it fail on non-existent step name?

* things are failing after proxy started

* start using low_bandwidth_mode input

* incorrect use of curly bracket

* low_bandwidth_mode vs low_bandwidth

* correcting the use of curly bracket in if check

* low_bandwidth_mode correction

* why would https:// makes a diff?

* just going to start pm2 after stopping

* move things around again

* some more re-arranging

* exit 1

* rearranged too much

* clean up

* start-proxy action

* incorrect variable name

* use test_server_url instead

* reverting back to original

* use pull_request

* using env var prepend

* using existing artifact

* not in ""

* not going to prepend anymore

* incorrectly removed input instead of env

* close to final

* using original e2e-detox-template

* timeout-minutes need to be higher for low_bandwidth.

* using label instead of push to branch

* add check-label

* remove unneeded test

* renamed ci.yml back to original

* different way to remove label
remove experiment files
reinstate ci.yml

* remove experiment file

* see label again

* output labels

* another experiment

* test again

* fix issue when checking for low bandwidth

* revert changes to package.json in detox/

* changed download to upload in the description

* changes based on review

* add github.event.label.name to the group "id" per @mvitale1989 suggestion

---------

Co-authored-by: Mattermost Build <build@mattermost.com>
2024-10-14 07:56:52 -06:00
Weblate (bot)
b2240e37f5
Translations update from Mattermost Weblate (#8259)
Automatic Merge
2024-10-14 15:14:33 +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