Commit graph

2671 commits

Author SHA1 Message Date
Martin Mičuda
f29a58cf4a Translated using Weblate (Czech)
Currently translated at 100.0% (1208 of 1208 strings)

Translation: Mattermost/mattermost-mobile-v2
Translate-URL: https://translate.mattermost.com/projects/mattermost/mattermost-mobile-v2/cs/
2025-01-20 14:38:11 +01:00
Konstantin
728eeca769 Translated using Weblate (Russian)
Currently translated at 99.1% (1198 of 1208 strings)

Translation: Mattermost/mattermost-mobile-v2
Translate-URL: https://translate.mattermost.com/projects/mattermost/mattermost-mobile-v2/ru/
2025-01-20 14:38:11 +01:00
ThrRip
6e9f5c40e7 Translated using Weblate (Chinese (Simplified Han script))
Currently translated at 100.0% (1192 of 1192 strings)

Translation: Mattermost/mattermost-mobile-v2
Translate-URL: https://translate.mattermost.com/projects/mattermost/mattermost-mobile-v2/zh_Hans/
2025-01-20 14:38:11 +01:00
unified-ci-app[bot]
46b6d0a513
chore: Update NOTICE.txt file with updated dependencies (#8499)
Co-authored-by: unified-ci-app[bot] <121569378+unified-ci-app[bot]@users.noreply.github.com>
2025-01-20 12:13:23 +02:00
unified-ci-app[bot]
2580eccab9
Bump app build and version number (#8497)
* Bump app build number to 595

* Bump app version number to 2.25.0

---------

Co-authored-by: Anka <runner@Mac-1737356984917.local>
2025-01-20 09:50:35 +02:00
Joram Wilander
0663d39365
Add tests to index, group and users websocket actions (#8486)
* test: Add tests for websocket index actions

* test: Add tests for websocket group actions

* test: Add tests for websocket users actions

* Fix missing import in index.test.ts

* Fix type in test after main merge

* Fix tests after main merge

* Updates per review feedback

* Remove unused import
2025-01-17 14:25:12 -05:00
unified-ci-app[bot]
36bbaf3cad
Bump app build number to 594 (#8491)
Co-authored-by: Anka <runner@Mac-1737103065399.local>
2025-01-17 16:18:54 +02:00
Daniel Espino García
438edd96f6
Fix edit attachments (#8468)
* Fix edit attachments

* Address feedback
2025-01-17 12:41:14 +01:00
Daniel Espino García
592b3805f1
Fix timezone crash (#8485)
* Fix timezone crash by adding all timezones to the polyfill

* update snapshots; be careful about undefined: diff on local vs CI

* one more that's different locally vs CI

* i18n

---------

Co-authored-by: Christopher Poile <cpoile@gmail.com>
2025-01-16 17:29:57 -05:00
Elias Nahum
d1d3fda83a
Request metrics improvements (#8420)
* Network metrics

* update network-client ref

* fix unit tests

* missing catch error parsing

* Replace API's to fetch all teams and channels for a user
Update groupLabel to use a type definition
Include effective Latency and Average Speed in the metrics
Include parallel and sequential request counts

* update network library and fix tests

* feat(MM-61865): send network request telemetry data to the server (#8436)

* feat(MM-61865): send network info telemetry data

* unit testing

* fix latency vs effectiveLatency

* cleanup test

* fix failing tests

* fix spelling error

* fix failing test

* more cleanup

* fix: improve parallel requests calculation (#8439)

* fix: improve parallel requests calculation

* fix test issue

* multiple parallelGroups testing

* calculateAverageSpeedWithCategories test

* categorizedRequests in it's own describe

* clean up duplicate tests

* check for when groupLabel is non-existent

* a case when groupLabel is non-existent

* more testing with effective latency.

* resolveAndFlattenModels with a capital F

* add try..catch within resolveAndFlattenModels

* update groupLabel to fix failing lint

* fix linting issue due to unknown group label

* forgot to push changes

* fix the indentation problem again

* add env var option for COLLECT_NETWORK_METRICS

---------

Co-authored-by: Rahim Rahman <rahim.rahman@mattermost.com>
Co-authored-by: Mattermost Build <build@mattermost.com>
2025-01-16 13:55:29 -07:00
Joram Wilander
a314c6059f
Add tests for actions/websocket/teams (#8479) 2025-01-16 15:21:30 -05:00
Daniel Espino García
7f9d393f3b
Fix package lock identation (#8484) 2025-01-16 17:26:04 +01:00
Elias Nahum
2f3dfbbbfa
Update dependencies and upgrade to RN 0.76.5 (#8421)
* update dev deps

* partial update dependencies

* update watermelondb

* update rn to 0.76.5, expo to 52.0.18 and others

* upgrade android firebase

* upgrade detox deps

* fix package-lock.json

* update emm and paste-input

* update turbo-log

* update network library

* fix tests

* review feedback

* fix Keyboard blocking signIn button

* Fall back to iphone 14 iOS 17.2 simulator as app crashes on iOS 17.4

* changes in deleteCredentialsForServer is causing a crash

* withOptions x2 clearly is wrong

* re-add cli-platform-apple fix

* fix: RN 0.76.5 issue with bottom sheet disappearing (#8478)

* experiment, using view vs BottomSheetView

* revert previous & try disabling enableDynamicSizing

* revert an unintended removal

---------

Co-authored-by: yasserfaraazkhan <attitude3cena.yf@gmail.com>
Co-authored-by: Mattermost Build <build@mattermost.com>
Co-authored-by: Rahim Rahman <rahim.rahman@mattermost.com>
2025-01-16 07:11:32 -07:00
kondo
52e05fba13
MM-62411 Retrying SSO does not trigger a redirect (#8458)
* The server url is being registered as invalid.
Even if the URL is valid upon retry, it is still being registered as invalid.

* Delete unnecessary import

* Delete serverUrl

* Delete serverUrl props on test
2025-01-16 13:02:23 +01:00
Daniel Espino García
4b068889e7
Add some improvements to thread handling (#8407)
* Add some improvements to thread handling

* Add missing changes

* Android changes

* iOS changes

* Avoid copys

* Refactor getReplyAt
2025-01-16 11:48:28 +01:00
yasserfaraazkhan
0ad2679595
Add android detox apk build workflow (#8405) 2025-01-16 12:26:10 +05:30
Joram Wilander
6ffc24a1fd
Add tests for queries/app/servers (#8477) 2025-01-15 14:43:01 -05:00
Guillermo Vayá
805c14af6d
fix spacing between bookmarks, align + icon (#8476) 2025-01-15 14:50:40 +01:00
Joram Wilander
263dddd22a
MM-59585 Add tests for utils/url (#8462)
* Add tests for utils/url

* Update per review feedback
2025-01-13 19:55:44 -05:00
Joram Wilander
cdbb9ebfd7
Add tests for actions/websocket/event (#8470) 2025-01-13 19:19:00 -05:00
Joram Wilander
e6c19637b9
Add tests for actions/websocket/posts (#8465) 2025-01-13 19:18:42 -05:00
Guillermo Vayá
fff6788e94
View custom profile attributes (#8460)
* feat: Add custom attributes section to user profile
2025-01-13 20:38:14 +01:00
Rajat Dabade
84eded1bde
Mobile drafts (#8280)
* refactor: started with draft, done until new tabs for draft

* refactor: change the query and added the screen for draft

* added condition for fetching draft for channel delete or not

* refactor: added draft screen

* linter fixes

* Added draft post component

* added avatar and header display name for the draft post list

* added channel info component

* channel info completed

* proper naming

* added image file markdown acknowledgement support

* draft actions

* Fix the draft receiver in drafts

* separated send message handler

* Done with send drafts

* done with delete drafts

* change save to send draft

* handle lengthy message with show more button

* done with persistent message edit, send and delete drafts

* added alert for sending message

* added update at time for the drafts

* en.json extract fix

* Updated dependencies for useCallback

* refactor: added drafts list to animated list

* added swipeable component and delete conformation for drafts

* done with rendering of images in markdown for drafts

* en.json issue fixed

* fix en.json issue

* refactor: en.json fix

* addressed review comments

* updated image metadata handling code

* linter fixes

* added the empty draft screen

* linter fix

* style fix

* back button an android takes to the channel list page

* en.json fix

* draft actions theme compatible

* CSS fix for draft channel_info and avatar component

* removed the badge icon and change font style drafts

* fix send alert sender name for GMs

* updated snapshot

* added testId to the drafts components

* updated send draft test id

* clicking on draft takes to the channel

* Added toptip for draft tours

* intl extract

* Rebase to main and reverted local testing changes

* Added tooltip for drafts

* addressed review comments

* reset navigation when click on a draft in draft tabs

* fix the theme issue and navigation issue

* reverted back the draft click navigation changes

* observing draft when hitting back button

* removed the unwanted animiation

* updated regex for parsing markdown

* removed unnecessary checks and change folder name

* removed react memo and merge unwanted observes function

* removed unnecessary comments

* changed the name for observing and querying draft function

* removed memo from component level

* Text to FormattedText component

* Text to formatted text, change image name

* added confirmation modal for deleting draft from bottomsheet

* using common send_handler for both draft and post

* removed magic number for tooltip and bottomsheet

* renamed channel_info to draft_post_header

* text to formattedText for Edit drafts

* removed unnecessary changes

* minor fixes

* mounting draft only when there is draft

* map to reduce

* renamed SwipeableDraft to DraftSwipeAction

* name fixes

* isValidUrl to isParsableUrl and added test

* added test and addressed minor review comments

* added inline component for the duplicate code

* inlt fixes

* clearDraft is not optional

* optimised categories_list.tsx component

* Swipeable to ReanimatedSwipeable, TouchableWithoutFeedback to Pressable and folder name changes

* Added comment and disabled eslint rule for showing warning

* fixed component file name

* minor'

* Removed deprecated Animated createAnimatedComponent flatlist

* added test for missing protocol check

* import change for SwipeableMethod

* active tab for tablet view

* Updated the drafts icons

* Updated compass-icon version to v0.1.48

---------

Co-authored-by: Mattermost Build <build@mattermost.com>
2025-01-13 18:40:03 +05:30
unified-ci-app[bot]
ffbca2889a
Bump app build number to 592 (#8467)
Co-authored-by: Anka <runner@Mac-1736497995177.local>
2025-01-10 11:10:05 +02:00
Rahim Rahman
8b5c50e6e8
test(MM-59431): file.ts unit test (#8424)
* test(MM-59431): file.ts unit test

* get to 100% coverage

* add regression proof for some callback methods in uploadFile

* add unhappy path
2025-01-08 20:19:24 -07:00
Joram Wilander
e15e7d3a57
Add tests for utils/user (#8453) 2025-01-08 15:30:48 -05:00
Joram Wilander
38e7901660
MM-59684 Add tests for client/websocket (#8452)
* Add tests for client/websocket

* Updates per review feedback
2025-01-08 12:38:44 -05:00
Joram Wilander
d1e3048bc7
MM-59433 Add unit tests to actions/remote/retry (#8445)
* Add unit tests to actions/remote/retry

* Factor out some common test variables

* add some other test

---------

Co-authored-by: Rahim Rahman <rahim.rahman@mattermost.com>
2025-01-08 12:30:16 -05:00
Joram Wilander
86727fec71
MM-59583 Add tests for utils/theme (#8455)
* Add tests for utils/theme

* Imprve some test names

* Combine all tests for getKeyboardAppearanceFromTheme under one describe
2025-01-08 11:59:52 -05:00
Joram Wilander
1bb024e202
Add tests for utils/server (#8456) 2025-01-08 09:41:02 -05:00
Joram Wilander
4fedb846bc
MM-59683 + more - Add tests to client/rest (#8447)
* Add tests to client/rest/users

* Add tests to client/rest/channels

* Add tests to client/rest/posts

* Add tests to client/rest/teams

* Add tests to client/rest/general

* Minor clean-up

* Add tests to client/rest/file

* Add tests to client/rest/threads

* Add tests to client/rest/emojis

* Add tests to client/rest/integrations

* Add tests to client/rest/categories

* Add tests to client/rest/groups

* Add tests to client/rest/channel_bookmark

* Add tests to client/rest/preferences

* Add tests to client/rest/tos

* Add tests to client/rest/nps and client/rest/plugins

* Minor clean-up

* Fix type error with proper client.searchFiles definition

* add more test to cover 100%

* add teamId test

* improve users test

---------

Co-authored-by: Rahim Rahman <rahim.rahman@mattermost.com>
2025-01-07 08:23:28 -05:00
Joram Wilander
2307985539
MM-59600 Add unit tests to utils/opengraph (#8444)
* Add unit tests to utils/opengraph

* exporting only for tests

---------

Co-authored-by: Rahim Rahman <rahim.rahman@mattermost.com>
2025-01-06 15:30:48 -05:00
Joram Wilander
72ccd763e6
MM-62394 Add unit tests to utils/message_attachment (#8443)
* Add unit tests to utils/message_attachment

* keep some functions "private"

---------

Co-authored-by: Rahim Rahman <rahim.rahman@mattermost.com>
2025-01-06 12:13:52 -05:00
Frank Paul Silye
b7635dc46a Translated using Weblate (Norwegian Bokmål)
Currently translated at 98.4% (1173 of 1192 strings)

Translation: Mattermost/mattermost-mobile-v2
Translate-URL: https://translate.mattermost.com/projects/mattermost/mattermost-mobile-v2/nb_NO/
2025-01-06 13:06:18 +00:00
unified-ci-app[bot]
5ce4f490b1
Bump app build number to 591 (#8446)
Co-authored-by: Anka <runner@Mac-1735892971448.local>
2025-01-03 11:08:34 +02:00
unified-ci-app[bot]
c0cf5818b7
Bump app build number to 589 (#8440)
Co-authored-by: Anka <runner@Mac-1735287273517.local>
2024-12-31 17:15:09 +01:00
Jihyeon Gim
798bdcd191 Translated using Weblate (Korean)
Currently translated at 89.5% (1067 of 1192 strings)

Translation: Mattermost/mattermost-mobile-v2
Translate-URL: https://translate.mattermost.com/projects/mattermost/mattermost-mobile-v2/ko/
2024-12-30 14:24:13 +00:00
Jihyeon Gim
501c2fc447 Translated using Weblate (Korean)
Currently translated at 89.5% (1067 of 1192 strings)

Translation: Mattermost/mattermost-mobile-v2
Translate-URL: https://translate.mattermost.com/projects/mattermost/mattermost-mobile-v2/ko/
2024-12-30 14:24:13 +00:00
Jihyeon Gim
f2116dfe1d Translated using Weblate (Korean)
Currently translated at 89.5% (1067 of 1192 strings)

Translation: Mattermost/mattermost-mobile-v2
Translate-URL: https://translate.mattermost.com/projects/mattermost/mattermost-mobile-v2/ko/
2024-12-30 14:24:13 +00:00
Jihyeon Gim
c27dbc0efd Translated using Weblate (Korean)
Currently translated at 89.5% (1067 of 1192 strings)

Translation: Mattermost/mattermost-mobile-v2
Translate-URL: https://translate.mattermost.com/projects/mattermost/mattermost-mobile-v2/ko/
2024-12-30 14:24:13 +00:00
Jihyeon Gim
ecd3bd2376 Translated using Weblate (Korean)
Currently translated at 89.5% (1067 of 1192 strings)

Translation: Mattermost/mattermost-mobile-v2
Translate-URL: https://translate.mattermost.com/projects/mattermost/mattermost-mobile-v2/ko/
2024-12-30 14:24:13 +00:00
Jihyeon Gim
3cea350ba8 Translated using Weblate (Korean)
Currently translated at 89.5% (1067 of 1192 strings)

Translation: Mattermost/mattermost-mobile-v2
Translate-URL: https://translate.mattermost.com/projects/mattermost/mattermost-mobile-v2/ko/
2024-12-30 14:24:13 +00:00
Jihyeon Gim
db48c5eaf2 Translated using Weblate (Korean)
Currently translated at 89.5% (1067 of 1192 strings)

Translation: Mattermost/mattermost-mobile-v2
Translate-URL: https://translate.mattermost.com/projects/mattermost/mattermost-mobile-v2/ko/
2024-12-30 14:24:13 +00:00
Weblate (bot)
7a88bf4895
Translations update from Mattermost Weblate (#8438)
Automatic Merge
2024-12-23 14:48:31 +02:00
unified-ci-app[bot]
dca341e625
Bump app build number to 588 (#8437)
Co-authored-by: Anka <runner@Mac-1734684035963.local>
2024-12-20 12:55:53 +01:00
Daniel Espino García
32453b320c
Fix interactive dialog number handling (#8431) 2024-12-19 09:45:03 +01:00
Daniel Espino García
d75cbcde7f
Fix interactive dialogs not showing (#8427)
* Fix interactive dialogs not showing

* Use conditionals
2024-12-18 15:54:08 -05:00
Rahim Rahman
61ccc959cf
chore: add .aider* to gitignore (#8425) 2024-12-18 11:35:39 -07:00
Joram Wilander
663cda2b77
MM-59652 Add unit tests to actions/websocket/channel (#8417)
* Add unit tests to actions/websocket/channel

* Updates per review feedback
2024-12-18 08:19:37 -05:00
Elias Nahum
fb57c423c7
Network metrics (#8390)
* Network metrics

* update network-client ref

* fix unit tests

* missing catch error parsing

* add client tracking unit tests

* fix typos
2024-12-17 19:51:26 +08:00