Commit Graph

663 Commits

Author SHA1 Message Date
Javier Aguirre
4198b41449 Refactor using generic item toggleMap function (#6791) 2022-11-28 15:18:18 +01:00
Javier Aguirre
4b18df8325 Refactor multiselect code (#6790)
* Remove unneeded multiselect code

* Moving to functional setState for multiselect

* Spliting into index and component for the screen
2022-11-28 11:50:42 +01:00
Christopher Poile
89b94d0188 MM-48287 - Calls: Select and send emoji reactions (#6781)
* add emoji reactions in mobile

* use StyleSheet.create

* PR comment

* prefer no inline functions

* Revert "prefer no inline functions"

This reverts commit b3c4627dac.
2022-11-25 12:17:06 -05:00
Anurag Shivarathri
5dd3121bbc [Gekidou MM-43527] Add threads item to the channel switcher (#6657)
* Threads item in channel switcher

* Misc

* Updated test & renamed type

* Reverted unwanted changes

* Changed thread text to i18n

* feedback fix

* Merge conflict steps

* Merge fix

* test fix

* Added onPress to the dependencies

* Moved the term matching logic to the useMemo block

* Misc

Co-authored-by: Mattermod <mattermod@users.noreply.github.com>
2022-11-25 18:51:04 +05:30
Christopher Poile
a300cc651e MM-48286 - Calls: Emoji reactions, display incoming reactions (#6780) 2022-11-25 12:21:45 +01:00
Daniel Espino García
fe52fcaab6 Add terms of service (#6777)
* Add terms of service

* Add i18n

* Fix test

* Address feedback

* Address ux feedback

* Update texts

* Avoid Review to show on top of ToS

Co-authored-by: Daniel Espino <danielespino@MacBook-Pro-de-Daniel.local>
2022-11-24 19:58:56 +01:00
Daniel Espino García
5fae120826 Add support for review app (#6772)
* Add app review

* Use overlay instead of modal

* Add fixes for ios

* i18n-extract

* Add to milliseconds function

* Address review feedback

* Add try to queryGlobalValue

* added app review illustration

* add feedback illustration

* Add animations and feedback bot message

* Restrict reviews to build environment variable

* Fix bug with "dont ask anymore"

* Add check for only supported servers

* Add missing change

* Use for await

Co-authored-by: Daniel Espino <danielespino@MacBook-Pro-de-Daniel.local>
Co-authored-by: Matthew Birtch <mattbirtch@gmail.com>
2022-11-24 18:52:15 +01:00
Javier Aguirre
81dcfc817b Move User list to a component (#6783)
* Move user list to a component

* added tests to see that several situations render
2022-11-23 19:08:22 +01:00
Christopher Poile
068549a285 MM-46055: Fix toast position after copying link in ChannelInfo screen (#6703) 2022-11-23 13:32:34 +01:00
Javier Aguirre
ac8a18bbfb [MM-43844][MM-42809] Integration Selector (#6716)
* Activating screens

* Registering the screen

* Adding default themes for components

* Porting items rows, WIP

* WIP Custom List

* Pasting old code to integration_selector, WIP

* No TS errors on components

* Adding selector options

* fix types

* Adding state with hooks

* Page loading with no results

* fix search timeout

* Getting channels, not painting them yet

* searching for profiles

* tuning user and channel remote calls

* Fix radioButton error

* channels being loaded

* rendering options

* Rendering users

* Preparing search results

* Added onPress events for everybody!

* single select working for all selectors

* Remove dirty empty data fix

* remove unused data on custom list row

* fic touchableOpacity styling

* Adding extra info to userlistRow

* Search results (channels and users)

* filter options!

* Adding i18n

* Adding username as name

* move code to effects

* fix typing onRow

* multiselect selection working, missing a "Done" button

* commenting out the selector icons, moving selected options to func

* Added button for multiselect submit

* Fixing data types on selector

* 💄 data sources check

* cleaning custom_list_row

* Fix onLoadMore bug

* ordering setLoading

* eslinting all the things

* more eslint

* multiselect

* fix autocomplete format

* FIx eslint

* fix renderIcon

* fix section type

* actions not being used

* now we have user avatars

* Fix icon checks on multiselect

* handling select for multiple selections

* Moving to its respective folders

* components should render

* Added some test cases

* Multiple fixes from @mickmister feedback

* changing lock icon to padlock on channel row

* Fix children lint errors

* fix useEffect function eslint error

* Adding useCallback to profiles, channels and multiselections

* Fixing @larkox suggestions

* type checking fixes

* Fix onLoadMore

* Multiple hook and functionality fixes

* 🔥 extraData and setting loading channels better

* fix teammate display

* Fix multiselect button selection

* Fix returning selection to autocomplete selector

* Using typography

* Updating snapshots due to typography changes

* removing UserListRow, modifying the existing one

* Extract key for data sources

* Multiselect selection refactor

* fix setNext loop

* refactoring searchprofiles and channels

* Using refs for next and page

* Callback and other fixes

* Multiple fixes

* Add callback to multiselect selected items

* integration selector fixes

* Filter option search

* fix useCallback, timeout

* Remove initial page, fix selection data type

Co-authored-by: Michael Kochell <6913320+mickmister@users.noreply.github.com>
2022-11-23 11:17:47 +01:00
Anurag Shivarathri
d20da35205 [Gekidou MM-46585] Message Priority (Phase 2 - setting message priority) (#6656) 2022-11-23 10:22:05 +01:00
Javier Aguirre
da31c9c3cf [MM-48515] Reuse ChannelListRow component to make it selectable maintaining compatibility (#6778)
* Moving ChannelListRow to component

* selectable
2022-11-22 10:00:20 +01:00
Shivashis Padhi
4bacba92bb [MM-47384] Make openid, google, office365 oauth free (#6755) 2022-11-22 06:43:18 +02:00
Joseph Baylon
bcca6be0af Detox/E2E: Search Messages e2e tests in Gekidou (#6756)
* Detox/E2E: Search Messages e2e tests in Gekidou

* Migrate to Detox 20

* Fix detoxrc

* Fix assertion for search messages
2022-11-21 12:58:51 -08:00
Elias Nahum
2a6bb1ddc1 [Gekidou] Show alert message when server is unsupported (#6764)
* Show alert message when server is unsupported

* set server min required version to 5.26.2
2022-11-18 12:18:11 +02:00
Daniel Espino García
e2bd4fbf51 Add announcement banner (#6728)
* Add announcement banner

* Move config to its own table

* Add new config behaviour to iOS share extensions

* Fix test

* Add style changes

* Minor style fixes

* Address design feedback

* Address feedback

* Only render the announcement banner if container if licensed

Co-authored-by: Daniel Espino <danielespino@MacBook-Pro-de-Daniel.local>
2022-11-17 19:13:20 +01:00
Mylon Suren
e729ffce7a [MM-47481] Remove Unread Channels From Channels Switcher (#6717)
* Remove unread channels from find channels list

* remove dead code
2022-11-16 16:54:57 -05:00
Christopher Poile
ac75a07d4b MM-48447 - Calls: guard against possible bad response from server (null) (#6769)
* guard against possible bad response from server (null)

* lock it down with a test
2022-11-15 21:44:32 +02:00
Elias Nahum
0917baa714 Check that Sentry is enabled and set (#6763) 2022-11-12 13:48:50 +04:00
Jason Frerich
41b594f5a9 [Gekidou - MM-48279] Remove the team picker when a member of only one team (#6751) 2022-11-11 17:23:55 -06:00
Avinash Lingaloo
987d024708 Gekidou Sentry Installation (#6726)
* Sentry - Clean Install

* Update config.yml

* update CI to install Sentry CLI

* update CI to install Sentry CLI

* Squashed commit of the following:

commit e1996e59de
Merge: 87cc8d6f2 2e8352f3e
Author: Avinash Lingaloo <avinashlng1080@gmail.com>
Date:   Fri Nov 4 20:59:29 2022 +0400

    Merge branch 'android-pr-sentry-clean' of https://github.com/mattermost/mattermost-mobile into android-pr-sentry-clean

commit 2e8352f3e1
Author: Elias Nahum <nahumhbl@gmail.com>
Date:   Fri Nov 4 15:48:24 2022 +0200

    update CI to install Sentry CLI

commit 87cc8d6f2b
Author: Elias Nahum <nahumhbl@gmail.com>
Date:   Fri Nov 4 15:48:24 2022 +0200

    update CI to install Sentry CLI

commit 8dca885a02
Author: Avinash Lingaloo <avinashlng1080@gmail.com>
Date:   Fri Nov 4 16:48:47 2022 +0400

    Update config.yml

commit 684bbb4aef
Author: Mylon Suren <23694620+mylonsuren@users.noreply.github.com>
Date:   Thu Nov 3 11:37:58 2022 -0400

    Remove down arrow next to team name and make team name unclickable (#6715)

commit 88ff8fac30
Author: Jason Frerich <jason.frerich@mattermost.com>
Date:   Wed Nov 2 19:35:23 2022 -0500

    [Bug] Emit boolean with "of" operator (#6729)

commit debcc99480
Author: Jason Frerich <jason.frerich@mattermost.com>
Date:   Wed Nov 2 12:15:54 2022 -0500

    [Gekidou MM-48006] Show keyboard when select a modifier (#6714)

* Delete @sentry+react-native+4.6.1.patch

* correction from PR review

* Add logError to DatabaseManager

* removes sentry context from android build job

* removes team+channel data

* shift active server listener to home/index

* Revert "shift active server listener to home/index"

This reverts commit 75e26faadd.

* refactor after PR Review

Co-authored-by: Elias Nahum <nahumhbl@gmail.com>
2022-11-11 22:48:38 +04:00
Elias Nahum
25ddc894f2 Fix more messages bar on iOS without insets (#6752) 2022-11-11 20:47:25 +02:00
Daniel Espino García
1aa4188f8e Move config to its own database table (#6744)
* Move config to its own database table

* Address feedback

* Fix test

* Revert minimum version related changes
2022-11-11 21:20:42 +04:00
Jason Frerich
b078efe84f [Gekidou MM-48281] Fix issue with single image result extending to full height of the image (#6750) 2022-11-10 10:56:35 -06:00
Elias Nahum
57ae3bbc7b fix pods 2022-11-09 00:36:57 +02:00
Elias Nahum
ae0eb43793 [Gekidou] EMM fixes (#6730) 2022-11-08 22:49:39 +02:00
Christopher Poile
7038a17ef4 MM-48000: Call started in another client creates a CurrentCall on mobile client (#6708)
* move creating/leaving currentCall into the connection; refactoring

* refactoring; two-stage connecting so existing screen stream can be saved

* better separation of concerns

* change warning to debug

* use getServerDatabase instead of getActiveServerDatabase

* fix bugs

* PR comments
2022-11-08 14:45:10 -05:00
Jason Frerich
23194034da [Gekidou MM-47765] Add horizontal padding to empty results (#6745) 2022-11-08 12:54:57 -06:00
Daniel Espino García
579eb2d4cd Remove no longer needed todos (#6748) 2022-11-08 20:33:22 +02:00
Julian Mondragon
00914016b8 Merge branch 'gekidou' of https://github.com/mattermost/mattermost-mobile into MM-39720 2022-11-08 11:09:15 -05:00
Christopher Poile
8374d7e87f MM-47004 - Calls: Client-side errors for microphone permissions (#6669)
* call error bar for microphone permissions; global permissions state

* i18n

* refactor permissionErrorBar component, PR comments

* add module dependency's mocks for tests

* fix error bar height

* change permissions error text

* working on 46999 redo audio handling -- will revert

* Revert "working on 46999 redo audio handling -- will revert"

This reverts commit 87bafc452c6ad6e1d7ae79ce78a0f2b461c2f150.

* only get voice track when we have mic permissions

* Android: enable mic when permissions are granted
2022-11-08 10:52:52 -05:00
Javier Aguirre
cc5331f2ba The value wasn't unique (#6731) 2022-11-08 10:27:52 +02:00
Christopher Poile
7f5dc3c718 MM-47763 - Calls: "who is speaking" state (#6721)
* move voiceOn to the currentCall state

* simplify

* prefer no inline fns
2022-11-07 17:11:40 -05:00
Christopher Poile
e38e547ce2 MM-45972 - Calls: test ws messages when app is in background (#6720)
* update current call on reconnect

* move loadConfigAndCalls above deferredAppEntryActions
2022-11-07 16:29:59 -05:00
Matthew Birtch
1d4806d7b0 udpated theme color and position of unread dot and adjusted border radius on selected team (#6738) 2022-11-07 05:09:17 +02:00
Matthew Birtch
8e6c452256 change generic file icon to paperclip icon (#6739) 2022-11-07 05:09:03 +02:00
Elias Nahum
d8504b822c Update denim theme link color (#6733) 2022-11-04 20:57:12 +04:00
Julian Mondragon
46b4d46e56 MM-39720_Invite People - phase 1
intl character
2022-11-03 12:16:20 -05:00
Mylon Suren
684bbb4aef Remove down arrow next to team name and make team name unclickable (#6715) 2022-11-03 17:37:58 +02:00
Julian Mondragon
51329fb36c MM-39720_Invite People - phase 1
address feedback
2022-11-03 10:15:28 -05:00
Jason Frerich
88ff8fac30 [Bug] Emit boolean with "of" operator (#6729) 2022-11-02 19:35:23 -05:00
Julian Mondragon
eef43619fc MM-39720_Invite People - phase 1
Plus menu separator
2022-11-02 13:51:17 -05:00
Jason Frerich
debcc99480 [Gekidou MM-48006] Show keyboard when select a modifier (#6714) 2022-11-02 12:15:54 -05:00
Julian Mondragon
647cd4c9c2 MM-39720_Invite People - phase 1 2022-10-31 18:12:03 -05:00
Daniel Espino García
f033a28eb2 Make so Autocomplete opens when we use the at quick action (#6613)
* Make so Autocomplete opens when we use the at quick action

* Open keyboard when the quick action is pressed
2022-10-31 18:02:44 +01:00
Jason Frerich
b58b425909 [Gekidou - MM-47656] Members List UI Changes (#6698) 2022-10-31 09:44:04 -05:00
Daniel Espino García
bb0322321e Fetch and store bindings (#6660)
* Fetch and store bindings

* Fix navigate and form opening
2022-10-28 17:08:28 -04:00
Guillermo Vayá
fd7ab546e0 don't bold muted channels (#6713) 2022-10-28 10:53:29 -03:00
Anurag Shivarathri
04c3533b95 [Gekidou MM-47224] Don’t show in app notifications for the active thread (#6704)
* Conditions fix

* Comments fix
2022-10-28 10:04:58 -03:00
Jason Frerich
d26d000ce3 [Gekidou MM-47999, MM-48005] Remove unusable modifiers, default team picker to current team (#6709)
* add showMore component only when exceeding 4 modifier elements

* rename variable

* When the user switches teams, default search screen to to that team
2022-10-28 10:04:30 -03:00