Commit graph

2524 commits

Author SHA1 Message Date
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
Daniel Espino García
94a7231a05
Add fixes for xCode 16 changes (#8254) 2024-10-11 17:02:45 +02:00
unified-ci-app[bot]
0549a51e38
Bump app build number to 566 (#8253)
Co-authored-by: runner <runner@Mac-1728635924924.local>
2024-10-11 08:02:58 -04: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
unified-ci-app[bot]
1c299c4c7a
Bump app build number to 563 (#8243)
Co-authored-by: runner <runner@Mac-1728031584864.local>
2024-10-04 08:51:25 -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
Weblate (bot)
197e251e0f
Translations update from Mattermost Weblate (#8238)
Automatic Merge
2024-09-30 14:44:33 +02:00
unified-ci-app[bot]
4a19e07ed9
Bump app build number to 561 (#8233)
Co-authored-by: runner <runner@Mac-1727425978022.local>
2024-09-27 08:30:15 -04:00
Elias Nahum
629683a310
update mobile app version in package-lock.json 2024-09-26 06:40:46 +08:00
lindalumitchell
35b68654f7
Update autocomplete.e2e.ts (#8231)
Removed references to now-closed issue https://mattermost.atlassian.net/browse/MM-50351
2024-09-23 21:21:15 -07:00
Weblate (bot)
250f8d04f6
Translations update from Mattermost Weblate (#8230)
Automatic Merge
2024-09-23 14:44:33 +02:00
unified-ci-app[bot]
d67199ee2d
Bump app build number to 560 (#8229)
Co-authored-by: runner <runner@Mac-1726821919831.local>
2024-09-20 08:10:27 -04:00
unified-ci-app[bot]
a4c346e8d8
Bump app build and version number (#8226)
* Bump app build number to 559

* Bump app version number to 2.21.0

---------

Co-authored-by: runner <runner@Mac-1726744671843.local>
2024-09-19 07:55:33 -04:00
lindalumitchell
8e27dcacec
Update message_reply.e2e.ts (#8225)
Remove outdated note ` -- KNOWN ISSUE: MM-50206`
2024-09-18 17:29:44 +08:00
lindalumitchell
152cdc5130
Update message_draft.e2e.ts (#8224)
Removed reference to fixed issue ` -- KNOWN ISSUE: MM-50298`.
2024-09-18 17:28:31 +08: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
Weblate (bot)
af31eed17c
Translations update from Mattermost Weblate (#8222)
Automatic Merge
2024-09-16 13:44:33 +02:00
Elias Nahum
c0f3cff531
Remove axios and detox from package.json in the root folder (#8219)
* Remove axios and detox from package.json in the root folder

* fix ts
2024-09-16 10:51:43 +08:00
Elias Nahum
991cecdeb3
Fix iPad split view (#8199)
* Fix iPad split view

* remove unused type def
2024-09-16 10:49:46 +08:00
unified-ci-app[bot]
20e0638a1f
Bump app build number to 558 (#8221)
Co-authored-by: runner <runner@Mac-1726216990647.local>
2024-09-13 08:18:23 -04:00
dependabot[bot]
cc1169c655
Bump serve-static from 1.15.0 to 1.16.2 (#8218)
Bumps [serve-static](https://github.com/expressjs/serve-static) from 1.15.0 to 1.16.2.
- [Release notes](https://github.com/expressjs/serve-static/releases)
- [Changelog](https://github.com/expressjs/serve-static/blob/v1.16.2/HISTORY.md)
- [Commits](https://github.com/expressjs/serve-static/compare/v1.15.0...v1.16.2)

---
updated-dependencies:
- dependency-name: serve-static
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-09-13 07:45:15 +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
Weblate (bot)
3a6f9809b7
Translations update from Mattermost Weblate (#8210)
* Translated using Weblate (Polish)

Currently translated at 100.0% (1183 of 1183 strings)

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

* Translated using Weblate (Turkish)

Currently translated at 100.0% (1183 of 1183 strings)

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

* Translated using Weblate (Dutch)

Currently translated at 100.0% (1183 of 1183 strings)

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

* 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/

* Translated using Weblate (Turkish)

Currently translated at 100.0% (1183 of 1183 strings)

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

---------

Co-authored-by: master7 <marcin.karkosz@rajska.info>
Co-authored-by: Kaya Zeren <kayazeren@gmail.com>
Co-authored-by: Tom De Moor <tom@controlaltdieliet.be>
2024-09-09 16:25:47 +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
Daniel Espino García
f864947c7c
Remove unneeded permissions (#8201)
Co-authored-by: Mattermost Build <build@mattermost.com>
2024-09-06 16:25:38 +02:00
unified-ci-app[bot]
f45a7905fe
Bump app build number to 557 (#8207)
Co-authored-by: runner <runner@Mac-1725612120421.local>
2024-09-06 08:35:51 -04: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
Weblate (bot)
2e46f6c015
Translations update from Mattermost Weblate (#8198)
* Translated using Weblate (German)

Currently translated at 100.0% (1183 of 1183 strings)

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

* Translated using Weblate (Chinese (Simplified))

Currently translated at 100.0% (1183 of 1183 strings)

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

* Translated using Weblate (Russian)

Currently translated at 99.8% (1181 of 1183 strings)

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

* Translated using Weblate (Swedish)

Currently translated at 100.0% (1183 of 1183 strings)

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

* Translated using Weblate (Japanese)

Currently translated at 100.0% (1183 of 1183 strings)

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

* Translated using Weblate (Russian)

Currently translated at 100.0% (1183 of 1183 strings)

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

* Translated using Weblate (Croatian)

Currently translated at 43.4% (514 of 1183 strings)

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

---------

Co-authored-by: jprusch <rs@schaeferbarthold.de>
Co-authored-by: ThrRip <coding@thrrip.space>
Co-authored-by: ja49619 <ja49619@gmail.com>
Co-authored-by: MArtin Johnson <martinjohnson@bahnhof.se>
Co-authored-by: kaakaa <stooner.hoe@gmail.com>
Co-authored-by: Milo Ivir <mail@milotype.de>
2024-09-02 17:43:35 +02:00
Elias Nahum
ad54f53df6
update network-client to fix ssl error (#8194) 2024-08-30 13:35:50 -04:00
Harrison Healey
a41f1a867d
MM-55972/MM-59809 Update Markdown library to improve handling of tables (#8137)
* MM-59972/MM-59809 Update Markdown library to improve handling of tables

* Change Commonmark back to the published version of our fork

* Actually use the new version
2024-08-30 21:26:18 +08:00
unified-ci-app[bot]
94a6b9bcb1
Bump app build number to 555 (#8189)
Co-authored-by: runner <runner@Mac-1725007804168.local>
2024-08-30 08:20:59 -04: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
Joram Wilander
16b4ec8b60
Add unit tests for actions/local/user (#8170) 2024-08-26 08:22:58 -04:00
Joram Wilander
ee5a84ddc7
Add unit tests for actions/local/thread (#8169) 2024-08-26 08:22:37 -04:00
Weblate (bot)
5d0e55b46c
Translations update from Mattermost Weblate (#8149)
* Translated using Weblate (German)

Currently translated at 100.0% (1181 of 1181 strings)

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

* Translated using Weblate (Polish)

Currently translated at 100.0% (1181 of 1181 strings)

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

* Translated using Weblate (Russian)

Currently translated at 100.0% (1181 of 1181 strings)

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

* Translated using Weblate (Dutch)

Currently translated at 100.0% (1181 of 1181 strings)

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

* Translated using Weblate (English (Australia))

Currently translated at 100.0% (1181 of 1181 strings)

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

* Translated using Weblate (Swedish)

Currently translated at 100.0% (1181 of 1181 strings)

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

* Translated using Weblate (Swedish)

Currently translated at 100.0% (1181 of 1181 strings)

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

---------

Co-authored-by: jprusch <rs@schaeferbarthold.de>
Co-authored-by: master7 <marcin.karkosz@rajska.info>
Co-authored-by: Konstantin <eleferen@gmail.com>
Co-authored-by: Tom De Moor <tom@controlaltdieliet.be>
Co-authored-by: Matthew Williams <Matthew.Williams@outlook.com.au>
Co-authored-by: MArtin Johnson <martinjohnson@bahnhof.se>
2024-08-26 13:48:21 +02:00
Daniel Espino García
8eba95ad5c
Quick fix for post input not capitalizing the start of sentences (#8168) 2024-08-26 10:48:44 +02:00