Mattermost Build
73b42c4a96
[MM-63481] Don't substract keyboard height in Android as it was already substracted ( #8697 ) ( #8707 )
...
* don't substract keyboard height in Android as it was already substracted
(cherry picked from commit 60d4e95229 )
Co-authored-by: Guillermo Vayá <guillermo.vaya@mattermost.com>
2025-03-21 11:52:22 +01:00
Mattermost Build
fa550da96a
Make attachments and app bindings more robust yet secure ( #8570 ) ( #8698 )
...
* Make attachments and app bindings more robust yet secure
* Fix tests
* i18n extract
* Address feedback
---------
Co-authored-by: Mattermost Build <build@mattermost.com>
(cherry picked from commit 782b1c69a8 )
Co-authored-by: Daniel Espino García <larkox@gmail.com>
2025-03-21 08:01:13 +02:00
Mattermost Build
776a656667
Do not use extra keyboard on Android ( #8651 ) ( #8661 )
...
(cherry picked from commit 915692d828 )
Co-authored-by: Elias Nahum <nahumhbl@gmail.com>
2025-03-12 10:52:20 +08:00
Mattermost Build
f830338640
Automated cherry pick of #8646 ( #8662 )
...
* MM-62896 Keyboard blocks input (#8646 )
* WIP
* fix keyboard blocking text input for interactive dialog
* do not use extra keyboard and windowSoftInputMode:adjustNothing on Android 10 and under
---------
Co-authored-by: Devin Binnie <devin.binnie@mattermost.com>
(cherry picked from commit 1c8770c74d )
* Bump the github-actions-updates group across 5 directories with 6 updates (#8613 )
Bumps the github-actions-updates group with 1 update in the /.github/actions/prepare-android-build directory: [actions/checkout](https://github.com/actions/checkout ).
Bumps the github-actions-updates group with 1 update in the /.github/actions/prepare-ios-build directory: [actions/cache](https://github.com/actions/cache ).
Bumps the github-actions-updates group with 2 updates in the /.github/actions/prepare-mobile-build directory: [actions/cache](https://github.com/actions/cache ) and [ruby/setup-ruby](https://github.com/ruby/setup-ruby ).
Bumps the github-actions-updates group with 2 updates in the /.github/actions/prepare-node-deps directory: [actions/cache](https://github.com/actions/cache ) and [actions/setup-node](https://github.com/actions/setup-node ).
Bumps the github-actions-updates group with 4 updates in the /.github/workflows directory: [actions/checkout](https://github.com/actions/checkout ), [ruby/setup-ruby](https://github.com/ruby/setup-ruby ), [actions/upload-artifact](https://github.com/actions/upload-artifact ) and [github/codeql-action](https://github.com/github/codeql-action ).
Updates `actions/checkout` from 3.3.0 to 4.2.2
- [Release notes](https://github.com/actions/checkout/releases )
- [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md )
- [Commits](ac59398561...11bd71901b )
Updates `actions/cache` from 4.0.2 to 4.2.1
- [Release notes](https://github.com/actions/cache/releases )
- [Changelog](https://github.com/actions/cache/blob/main/RELEASES.md )
- [Commits](0c45773b62...0c907a75c2 )
Updates `actions/cache` from 4.0.2 to 4.2.1
- [Release notes](https://github.com/actions/cache/releases )
- [Changelog](https://github.com/actions/cache/blob/main/RELEASES.md )
- [Commits](0c45773b62...0c907a75c2 )
Updates `ruby/setup-ruby` from 1.180.0 to 1.221.0
- [Release notes](https://github.com/ruby/setup-ruby/releases )
- [Changelog](https://github.com/ruby/setup-ruby/blob/master/release.rb )
- [Commits](ff740bc00a...32110d4e31 )
Updates `actions/cache` from 4.0.2 to 4.2.1
- [Release notes](https://github.com/actions/cache/releases )
- [Changelog](https://github.com/actions/cache/blob/main/RELEASES.md )
- [Commits](0c45773b62...0c907a75c2 )
Updates `actions/setup-node` from 4.0.2 to 4.2.0
- [Release notes](https://github.com/actions/setup-node/releases )
- [Commits](60edb5dd54...1d0ff469b7 )
Updates `actions/checkout` from 3 to 4
- [Release notes](https://github.com/actions/checkout/releases )
- [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md )
- [Commits](ac59398561...11bd71901b )
Updates `ruby/setup-ruby` from 1.180.0 to 1.221.0
- [Release notes](https://github.com/ruby/setup-ruby/releases )
- [Changelog](https://github.com/ruby/setup-ruby/blob/master/release.rb )
- [Commits](ff740bc00a...32110d4e31 )
Updates `actions/upload-artifact` from 4.3.1 to 4.6.0
- [Release notes](https://github.com/actions/upload-artifact/releases )
- [Commits](https://github.com/actions/upload-artifact/compare/v4.3.1...65c4c4a1ddee5b72f698fdd19549f0f0fb45cf08 )
Updates `github/codeql-action` from 2 to 3
- [Release notes](https://github.com/github/codeql-action/releases )
- [Changelog](https://github.com/github/codeql-action/blob/main/CHANGELOG.md )
- [Commits](https://github.com/github/codeql-action/compare/v2...v3 )
---
updated-dependencies:
- dependency-name: actions/checkout
dependency-type: direct:production
update-type: version-update:semver-major
dependency-group: github-actions-updates
- dependency-name: actions/cache
dependency-type: direct:production
update-type: version-update:semver-minor
dependency-group: github-actions-updates
- dependency-name: actions/cache
dependency-type: direct:production
update-type: version-update:semver-minor
dependency-group: github-actions-updates
- dependency-name: ruby/setup-ruby
dependency-type: direct:production
update-type: version-update:semver-minor
dependency-group: github-actions-updates
- dependency-name: actions/cache
dependency-type: direct:production
update-type: version-update:semver-minor
dependency-group: github-actions-updates
- dependency-name: actions/setup-node
dependency-type: direct:production
update-type: version-update:semver-minor
dependency-group: github-actions-updates
- dependency-name: actions/checkout
dependency-type: direct:production
update-type: version-update:semver-major
dependency-group: github-actions-updates
- dependency-name: ruby/setup-ruby
dependency-type: direct:production
update-type: version-update:semver-minor
dependency-group: github-actions-updates
- dependency-name: actions/upload-artifact
dependency-type: direct:production
update-type: version-update:semver-minor
dependency-group: github-actions-updates
- dependency-name: github/codeql-action
dependency-type: direct:production
update-type: version-update:semver-major
dependency-group: github-actions-updates
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
---------
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: Elias Nahum <nahumhbl@gmail.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-03-12 10:41:02 +08:00
Mattermost Build
dba4aef5fd
Fix MM-61975 ( #8459 ) ( #8599 )
...
* Fix MM-61975
* Add missing strings
* Ensure the app gets logged out after not accepting the ToS
* Fix i18n and add comment
* Fix tests and address feedback
* Check for the right value coming from status
* Update texts
(cherry picked from commit 779fe31c3b )
Co-authored-by: Daniel Espino García <larkox@gmail.com>
2025-02-18 09:49:07 +02:00
Mattermost Build
747982afcb
2.25 fixes ( #8578 ) ( #8581 )
2025-02-11 17:29:23 +08:00
Mattermost Build
7872b619b2
[MM-62898] Reset filter when changing team ( #8564 ) ( #8577 )
...
* refactor: Improve search team change handling and filter removal
* fix: revert package.resolved
* add test file
* extract regex and fix formatting of useCallback
* improve tests
* fix style
(cherry picked from commit d0073617ed )
Co-authored-by: Julien Tant <785518+JulienTant@users.noreply.github.com>
2025-02-10 16:53:40 -07:00
Elias Nahum
ee66890d32
MM-62915 and MM-62919 ( #8568 )
2025-02-08 07:17:15 +08:00
Joram Wilander
c804a1a589
MM-59445 + others - Add tests for channel bookmarks, systems, apps and tos files in remote/actions ( #8558 )
2025-02-07 23:57:17 +08:00
Elias Nahum
f2383f8bc5
Fix Android keyboard gap using navigation events ( #8565 )
2025-02-06 11:18:05 +01:00
Julien Tant
fb9760151c
[MM-60405] Crossteam search ( #8411 )
...
* Add new team picker for search
* try fix result header
* fix style
* add test for team picker
* add some tests
* add tests on team list and team list item
* hide All Teams search behind FF
* use style variable for separator
* ALL TEAMS does not have a search history
* Update app/components/team_list/index.test.tsx
Co-authored-by: Elias Nahum <nahumhbl@gmail.com>
* move ALL_TEAMS_ID to a constant file
* memoize the construction of team list to prevent useless allocation
* combine pushes
* move style to stylesheet
* revert changes to Package.resolved
* improve team list index tests
* add test to ensure team picker does not show for just one team
* add test to ensure the file icon filter only shows when i'm on the file tab
* improve jsx readability by making the if test positive
* add test to make sure team picket does not show if there's only one team
* test: remove snapshot and add expect that separator exists in index 0 but index 1 (#8474 )
* Trigger Build
---------
Co-authored-by: Elias Nahum <nahumhbl@gmail.com>
Co-authored-by: Mattermost Build <build@mattermost.com>
Co-authored-by: Rahim Rahman <rahim.rahman@mattermost.com>
2025-02-05 13:46:38 -07:00
Elias Nahum
1207b0e0cd
Fix plus menu on home screen ( #8560 )
...
* fix plus menu on home screen
* fix snapshot tests
* Update index.test.tsx.snap
* Update index.test.tsx.snap
2025-02-05 10:50:04 +01:00
Elias Nahum
762bbabfa0
Fix android keyboard area when switching apps ( #8554 )
2025-02-05 08:12:57 +08:00
Daniel Espino García
c8f42ee67e
Add the Component Library to the app ( #8319 )
...
* Add the Component Library to the app
* fix i18n
---------
Co-authored-by: Elias Nahum <nahumhbl@gmail.com>
2025-02-04 13:32:55 +01:00
Daniel Espino García
46f1cf3969
Check file id instead of metadata for file removal ( #8549 )
2025-02-03 15:02:28 +01:00
Joram Wilander
84f2a7d1f7
test: Add tests for AppsManager ( #8545 )
2025-02-03 08:56:46 -05:00
Joram Wilander
61ad688277
test: Add tests for NavigationStore ( #8541 )
2025-02-03 08:56:16 -05:00
Joram Wilander
fe2cc0673d
test: Add tests for launch.ts initialization logic ( #8547 )
2025-02-03 08:22:16 -05:00
Elias Nahum
a1da0a720f
fix: remove from channel ( #8539 )
2025-01-31 10:09:46 -07:00
Joram Wilander
6f8d6632b6
MM-59761 Add tests for i18n functionality ( #8510 )
...
* test: Add tests for i18n functionality
* Remove test causing i18n ci check failure
2025-01-31 09:30:42 -05:00
Joram Wilander
444364b63c
test: Add entry query function tests ( #8534 )
2025-01-31 08:22:11 -05:00
Guillermo Vayá
8782f4e3a4
[MM-62777] Fix errors being nested. Make MFA code more resilient to this situation ( #8531 )
...
* Fix errors being nested. Make code more resilient to this situation
* address review comments
* code review comment
2025-01-31 08:31:15 +02:00
Joram Wilander
1cc6e7c3de
MM-59790 Add tests for team queries ( #8527 )
...
* test: Add tests for team queries
* Factor our common test variables
* Updates per review feedback
2025-01-30 08:26:26 -05:00
Joram Wilander
fe2b96bcd4
test: Add tests for role queries ( #8532 )
2025-01-30 08:26:08 -05:00
Joram Wilander
0565a687c5
test: Add tests for push notifications module ( #8535 )
2025-01-30 08:25:44 -05:00
Rahim Rahman
dc45bcb4a6
fix(MM-62461): uploading image attachment shows new message ( #8528 )
...
* fix(MM-62461): uploading image attachment shows new message
* remove console.logs
* clean up unit test
* clean up unneeded unit tests
2025-01-29 22:44:40 -07:00
Joram Wilander
1d254d4529
MM-59787 Add tests for preference query functions ( #8530 )
...
* test: Add tests for preference query functions
* sync test changes
---------
Co-authored-by: Rahim Rahman <rahim.rahman@mattermost.com>
2025-01-29 17:10:21 -05:00
Joram Wilander
0bac4b96f0
Fix flaky client/rest/general/ping test ( #8533 )
2025-01-29 13:33:34 -05:00
Guillermo Vayá
8fae132afa
fix loop ( #8524 )
2025-01-29 13:25:00 +01:00
Joram Wilander
4187e9f81a
MM-59741 + others - Add tests for remaining app/hooks files ( #8517 )
...
* test: Add tests for useHandleSendMessage hook
* test: Add tests for header hooks
* test: Add tests for device hooks
* test: Add tests for useChannelSwitch hook
* test: Add tests for useTeamSwitch hook
* test: Add tests for useInputPropagation hook
* test: Add tests for useWhyDidYouUpdate hook
* test: Add tests for useFreeze hook
* test: Add tests for useAutocompleteDefaultAnimatedValues hook
* test: Add tests for usePersistentNotificationProps hook
* test: Add tests for useFetchingThreadState hook
* test: Add tests for useBackNavigation hook
* test: Add tests for useShowMoreAnimatedStyle hook
* test: Add tests for useTeamsLoading hook
* test: Add tests for useNavButtonPressed hook
* test: Add tests for useDidUpdate hook
* test: Add tests for useAppBinding hook
* Fix type error and test
2025-01-28 08:51:50 -05:00
Joram Wilander
3ef637ff9d
MM-59426 Add tests for entry common functions ( #8515 )
...
* test: Add tests for entry common functions
* increase functions coverage to 80%
---------
Co-authored-by: yasserfaraazkhan <attitude3cena.yf@gmail.com>
2025-01-28 08:09:43 -05:00
Joram Wilander
6a96ca52ad
test: Add tests for session manager ( #8504 )
2025-01-28 08:09:15 -05:00
Rajat Dabade
1bd2e0b665
MM-62726 fix the active label color for channel and thread ( #8523 )
...
* MM-62726 fix the active label color for channel and thread
* Updated snapshot
2025-01-28 14:43:45 +05:30
Elias Nahum
0364a9d197
Fix broken windows ( #8406 )
...
* MM-62043 fix image dimensions when iPad screen size changes
* MM-61951 fix share feedback screen layout
* MM-62100 fix download video on playback error
2025-01-28 09:58:48 +08:00
Rahim Rahman
11022322d6
fix(MM-60645): missing bookmark emoji ( #8518 )
...
* fix(MM-60645): missing bookmark emoji
* add test
2025-01-27 11:01:08 -07:00
Daniel Espino García
25919131fc
Fix styles for add people ephemeral message ( #8494 )
2025-01-22 13:12:59 +01:00
yasserfaraazkhan
2830d06fc2
E2E: Mobile Drafts tests cases ( #8469 )
2025-01-22 04:02:14 +05:30
Claudio Costa
44bce6c319
[MM-59773] Add unit tests for Calls ( #8480 )
...
* Unit tests for app/products/calls/observers
* Unit tests for app/products/calls/actions
* Unit tests for app/products/calls/client
* Unit tests for app/products/calls/connection
* Unit tests for app/products/calls/connection/websocket_event_handlers.ts
* Unit tests for app/products/calls/connection/connection.ts
* Unit tests for app/products/calls/state/actions.ts
* Unit tests for app/products/calls/utils.ts
* Unit tests for app/products/calls/alerts.ts
* Unit tests for app/products/calls/calls_manager.ts
* Unit tests for app/products/calls/hooks.ts
* Factor out force logout error
* Reduce use of 'as jest.Mock'
* Add test case
* Use constants
* Better naming
* Fix types after merge
* Fix test
2025-01-21 12:02:03 -06:00
Joram Wilander
681585d5db
test: Add websocket manager tests ( #8496 )
2025-01-21 08:42:35 -05:00
Joram Wilander
575a689407
Add tests to remaining actions/websocket files ( #8495 )
...
* test: Add comprehensive tests for websocket roles actions
* test: Add comprehensive tests for websocket category actions
* test: Add comprehensive tests for websocket preferences actions
* test: Add comprehensive tests for websocket threads actions
* test: Add comprehensive tests for websocket reactions actions
* test: Add comprehensive tests for websocket system actions
* test: Add comprehensive tests for websocket integrations actions
2025-01-21 08:42:09 -05:00
Joram Wilander
e8ed761d30
MM-59740 + others - Add tests for various files in hooks/ ( #8448 )
...
* Add tests for hooks/android_back_handler
* Add tests for hooks/gallery
* Add tests for hooks/files
* Add tests for hooks/emoji_category_bar
* Add tests for hooks/markdown
* Increase more coverage for hooks/gallery.ts
---------
Co-authored-by: yasserfaraazkhan <attitude3cena.yf@gmail.com>
2025-01-21 08:41:52 -05: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
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
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
Joram Wilander
6ffc24a1fd
Add tests for queries/app/servers ( #8477 )
2025-01-15 14:43:01 -05:00