Commit graph

1404 commits

Author SHA1 Message Date
Mattermost Build
46f683f28f
Markdown svg & image to respect size if available (#6030) (#6034)
(cherry picked from commit c9ce61d28b)

Co-authored-by: Elias Nahum <nahumhbl@gmail.com>
2022-03-07 15:36:58 -03:00
Elias Nahum
4d07f49933
Fix friendly date flaky test 2022-03-06 07:30:22 -03:00
Mylon Suren
b7a98dead9
[MM-39149] Only close sidebar when custom status is set successfully (#5988) 2022-02-21 08:24:04 -03:00
Elias Nahum
cef3295420
Fix when SVG uri does not return data in the url (#5973) 2022-02-15 21:32:28 -03:00
Elias Nahum
5ea470a235
V1 dependencies and bump to RN 0.67.2 (#5908)
* update dependencies

* eslint fixes

* Upgrade to RN 67

* update other deps

* Update to RN 0.67.2

* fix Android build (mmkv)

* Fix crash when root message is deleted from the thread screen

* Fix gif emoji playing at high speed on iOS ProMotion capable devices
2022-02-02 15:28:57 -03:00
Matei Oprea
586f9cfbb9
[MM-11997] - Date picker should re-open on previously selected date (#5634) 2021-12-15 21:00:45 +02:00
Elias Nahum
687469b0cf
Update dependencies (#5870)
* Update dependencies

* Remove storybook env type def

* fix android build
2021-12-15 16:44:35 +02:00
Elias Nahum
b7455853e5
MM-40530 Support SVG for markdown inline images (#5869)
* MM-40530 Support SVG for markdown inline images

* Update app/components/markdown/markdown_image/markdown_image.js

Co-authored-by: Daniel Espino García <larkox@gmail.com>

Co-authored-by: Daniel Espino García <larkox@gmail.com>
2021-12-15 16:43:45 +02:00
Elias Nahum
3e0ad378f1
Fix android broken build cause by rudderstack (#5856)
* Fix android broken build cause by rudderstack

* update dependencies
2021-11-30 11:39:12 +02:00
Elias Nahum
1b285dac49
[MM-40160] Crt gallery fix (#5833)
* Fix Gallery crash

* fix file type icons

* memoize gallery files
2021-11-22 15:17:18 +02:00
Elias Nahum
a570fdea24
replace account-group-outline with account-multiple-outline compass icon (#5826) 2021-11-11 16:22:54 -03:00
Jesús Espino
8ef65d8b24
Voicechannels (#5753)
* Some extra work on voice channels interface

* Fixing some TODOs

* Improving styling of call in channel

* Improve calls monitoring

* Replacing some of the fontawesome icons with the compass ones

* Improving the layout

* Migrating to webrtc2 for unified plan

* Add screen on and off behavior

* Adding incall manager plugin

* Moving everything into the products/calls folder

* Make products modules routes relatives

* Make products modules routes @mmproducts

* Removing initiator parameter

* Removing trickle parameter

* Simplifying code

* Removing underscore from private variables

* Removing underscore from private things

* More simplifications

* More simplifications

* More simplifications

* Changing sha sum for mmjstool

* Fixing typo

* Migrating simple-peer to typescript

* Migrating simple-peer to typescript

* Improving the size of the screen share

* Adding feature flag to disable the calls feature in mobile

* Fixing some tests

* Removing obsolte tests

* Added call ended support for the post messages

* Fixing some warnings in the tests

* Adding JoinCall tests

* Adding CallMessage tests

* Adding CurrentCall unit tests

* Adding CallAvatar unit tests

* Adding FloatingCallContainer unit tests

* Adding StartCall unit tests

* Adding EnableDisableCalls unit tests

* Adding CallDuration tests

* Improving CallDuration tests

* Adding CallScreen unit tests

* Adding CallOtherActions screen tests

* Fixing some dark theme styles

* Fixing tests

* More robustness around connecting/disconnecting

* Adding FormattedRelativeTime tests

* Adding tests for ChannelItem

* Adding tests for ChannelInfo

* Adding selectors tests

* Adding reducers unit tests

* Adding actions tests

* Removing most of the TODOs

* Removing another TODO

* Updating tests snapshots

* Removing the last TODO

* Fixed a small problem on pressing while a call is ongoing

* Remove all the inlined functions

* Replacing usage of isLandscape selector with useWindowDimensions

* Removed unnecesary makeStyleSheetFromTheme

* Removing unneded  properties from call_duration

* Fixing possible null channels return from getChannel selector

* Moving other inlined functions to its own constant

* Simplifiying enable/disable calls component

* Improving the behavior when you are in the call of the current channel

* Adding missing translation strings

* Simplified a bit the EnableDisableCalls component

* Moving other inlined functions to its own constant

* Updating snapshots

* Improving usage of makeStyleSheetFromTheme

* Moving data reformating from the rest client to the redux action

* Adding calls to the blocklist to the redux-persist

* Fixing tests

* Updating snapshots

* Update file icon name to the last compass icons version

* Fix loading state

* Only show the call connected if the websocket gets connected

* Taking into consideration the indicator bar to position the calls new bars

* Making the MoreMessagesButton component aware of calls components

* Updating snapshots

* Fixing tests

* Updating snapshot

* Fixing different use cases for start call channel menu

* Fixing tests

* Ask for confirmation to start a call when you are already in another call

* Update app/products/calls/components/floating_call_container.tsx

Co-authored-by: Elias Nahum <nahumhbl@gmail.com>

* Memoizing userIds in join call

* Applying suggestion around combine the blocklist for calls with the one for typing

* Adding explicit types to the rest client

* Removing unneeded permission

* Making updateIntervalInSeconds prop optional in FormattedRelativeTime

* Making updateIntervalInSeconds prop optional in CallDuration

Co-authored-by: Elias Nahum <nahumhbl@gmail.com>
2021-11-11 11:32:39 +01:00
Carrie Warner (Mattermost)
fae944c208
Updated Jump to to match webapp (#5797)
Co-authored-by: Mattermod <mattermod@users.noreply.github.com>
2021-11-03 11:13:11 -03:00
Elias Nahum
d502a83b74
fix replaceAll with replace as is not available on some JSC (#5801) 2021-11-02 04:13:41 -03:00
Elias Nahum
8287e620d8
Upgrade to rn 0.66.1 (#5727)
* Upgrade to rn 0.66.0

* Add keys to re-render post list and channel list

* Finish dep updates and rn to 0.66.1

* upgrade more dependencies

* Fix select_server tests
2021-10-31 13:57:07 -03:00
Daniel Espino García
76284a78d5
MM-34194 Add multiselect to Apps Forms (#5400)
* Add multiselect to Apps Forms

* Address feedback

* Add selected information and change button name

* Fix styles

* Add missing semicolon and change currentList to currentSelected.

* Address UX feedback

* Fix test

* Address feedback

* Fix snapshots

* Potential fix for flaky test

* Fix iOS back button

* Address feedback

* Fix tests

* Add separator and scroll to bottom on selected items

* Use setTimeout for scroll and also scroll on unselected

* Fix lint

* Fix tsc

* Fix tests
2021-10-27 11:35:11 +02:00
Joseph Baylon
3ddc34d737
Detox/E2E: Fix failures due to recent features (#5755) 2021-10-24 19:00:37 -07:00
Elias Nahum
dd866ffeb8
Fix iOS paste screenshot (#5785) 2021-10-24 16:51:24 -03:00
Elias Nahum
e5142f8524
Fix Post Input and drawers gesture conflict (#5762) 2021-10-18 17:55:25 -03:00
Anurag Shivarathri
789cf9ab54
MM-39348 CRT crash (#5759)
* Cancelling animation frame on unmounting the component

* avoid calling cancel animation twice

* Update app/components/post_draft/post_draft.js

Co-authored-by: Elias Nahum <nahumhbl@gmail.com>

Co-authored-by: Elias Nahum <nahumhbl@gmail.com>
2021-10-18 14:26:33 -03:00
Elias Nahum
f8baaf8505
MM-39337 set allowFontScaling to TextInput components (#5751) 2021-10-14 13:42:09 -03:00
Anurag Shivarathri
856d8bd05f
MM-34842 global threads options (#5630)
* fixes MM-37294 MM-37296 MM-37297

* Added conditions to check for post & thread existence

* Update app/mm-redux/selectors/entities/threads.ts

Co-authored-by: Kyriakos Z. <3829551+koox00@users.noreply.github.com>

* type fix

* Never disabling Mark All as unread

* Added follow/unfollow message for not yet thread posts

* Test case fix for mark all as unread enabled all the time

* Removed hardcoded condition

* Fixed MM-37509

* Updated snapshot for sidebar

* Global thread actions init

* Added options

* Update post_options.js

* Test cases fix

* Added border bottom for each thread option

* Update test case

* Reverting snapshot

* Updated snapshot

* Moved options to screens & removed redundants translations

* Reusing post_option for thread_option

* Component name changed to PostOption from ThreadOption

* Snapshot updated

* Removed factory

* Update app/screens/thread_options/index.ts

Co-authored-by: Elias Nahum <nahumhbl@gmail.com>

* Update app/screens/thread_options/index.ts

Co-authored-by: Elias Nahum <nahumhbl@gmail.com>

Co-authored-by: Kyriakos Z. <3829551+koox00@users.noreply.github.com>
Co-authored-by: Mattermod <mattermod@users.noreply.github.com>
Co-authored-by: Elias Nahum <nahumhbl@gmail.com>
2021-10-11 13:24:38 +05:30
Shaz Amjad
a3c00f59d6
Local only collapse state for mobile (#5721) 2021-10-08 09:32:31 -03:00
Shaz Amjad
000caf09e9
Hides favourites category if empty (#5722) 2021-10-08 09:32:19 -03:00
Shaz Amjad
bd74310f29
Cancel button restored (#5725) 2021-10-08 09:31:56 -03:00
Anurag Shivarathri
a81b56212e
MM-38784, MM-38409 New messages line in threads screen & Pull to refresh for global threads screen (#5690)
* New messages line in threads & Pull to refresh for global threads

* Updated snapshot

* Using postlist's RefreshControl component

* Updated threadlist snapshot

* Reverting snapshot

* Updated Snapshots

* Snapshots updated

* Added 'thread last viewed at' to handle new messages line correctly

* Lint fix

* Updated snapshots

* Reverted comparision check

* Remove unused code

* Batching actions

* Do not add new message line for self messages

Co-authored-by: Mattermod <mattermod@users.noreply.github.com>
2021-10-07 15:14:34 +05:30
Claudio Costa
5260e252a4
Show confirm modal for at here mentions (#5678) 2021-10-05 15:27:25 +02:00
Elias Nahum
523777a207
Use @mattermost/react-native-paste-input to allow pasting of images & files (#5703)
* Use @mattermost/react-native-paste-input to allow pasting of images & files

* upgrade @mattermost/react-native-paste-input
2021-09-30 09:34:57 -03:00
Shaz Amjad
b36dbf9b34
[MM-38683] Android Initialisation Bug + BottomSheet Correction (#5685)
* Fixes various init bugs for android

* Ignores Type Error

* MM-38683: Removes 'cancel' button.

* MM-38683: Removes some 'hideCancel' props.

* Android bottom margin

* Update options modal style

Co-authored-by: Martin Kraft <martin@upspin.org>
Co-authored-by: Elias Nahum <nahumhbl@gmail.com>
2021-09-28 11:28:20 -03:00
Daniel Espino García
3668cb62d3
MM-34811 Add plugin oauth support (#5395)
* Add plugin oauth support

* Fix types

* Switch go to screen by show modal

* Add content width metadata to show correctly the sites

* Remove unneeded metadata

* Fix tsc

* Fix lint

Co-authored-by: Mattermod <mattermod@users.noreply.github.com>
2021-09-27 18:17:56 +02:00
Daniel Espino García
a2ed6ba3bd
Sync with App Command Parser with Webapp (#5631)
* Sync with App Command Parser with Webapp

* Add i18n

* Patch flaky test
2021-09-27 14:54:32 +02:00
Daniel Espino García
dd36545079
[MM-36041] Ensure post options and app commands always have the bindings for its channel (#5563)
* Ensure post options always have the bindings for its channel

* Mimic webapp model

* Address feedback

* Add return to validate bindings

* Address feedback

* Use empty bindings constant to avoid rerenderings

Co-authored-by: Michael Kochell <6913320+mickmister@users.noreply.github.com>
2021-09-24 10:32:58 -04:00
Daniel Espino García
6dbb537f22
Open forms in bindings on all locations (#5665) 2021-09-24 09:34:40 -03:00
Elias Nahum
ada6be9b7a
Update dependencies (#5686)
* Update dependencies

* Fix unsigned builds
2021-09-22 13:54:12 -03:00
Daniel Espino García
c753be5bfe
Sync binding filtering with webapp (#5655)
* Sync binding filtering with webapp

* Add return types and use variable instead of updating actions

* Allow bindings with no call but form with calls
2021-09-21 09:08:35 +02:00
Shaz Amjad
64223efafe
MM-28474: Custom Sidebar Categories (#5460)
* Further cleanup and fixes

Tests clean-up

Tests fixed?

Plays nicely with threads

Tests fixed

Fixes ESR and show experimental flags

Failing test fixed

DM Fix

WIP: Bottom bar UX

Fixes for unreads

Failing test

Always show current channel

Create a channel in a category!

* Unreads on top

* Various fixes

* Improves category collapsing

* Passes correct ID through

* Tests cleanup

* Redo unreads and unread-button

* Reverts to just using ids

* More unreads back to using ids

* Uses appropriate selectors for pref updates

* Unreads sorted by recency

* Fixes test for recency

* Fixes re-rendering bug

* Code review updates, websocket event debounced
2021-09-20 14:11:57 -04:00
Daniel Espino García
69a65067c3
Remove all checks for minimum versions previous to 5.31 (#5572)
* Remove all checks for minimum versions previous to 5.31

* Fix tests

* Fix bad merge

* Address feedback

* Patch flaky test
2021-09-06 12:57:24 +02:00
Dean Whillier
fb8238ab0b
[MM-37553] Update default themes (#5648)
* new themes and theme type updates

* update theme processing

port newer functionality from webapp

* update theme UI

including new svg-based thumbnail

* lint fixes

* update snapshots and tests

* update theme tile border approach

* remove unused path component

* remove old variable typo

* remove old variable type from theme type

* lint and snapshot updates

* update snapshots
2021-09-03 10:50:24 -04:00
Elias Nahum
4d9940ea91
Do not resize images to upload (#5661) 2021-09-02 08:42:42 -04:00
Kyriakos Z
8a2a45fd74
MM-35017: participants ordering and inclusion (#5654)
Participants no longer include the thread starter,
thread starter is included only if the user has replied.

This commit changes the ordering of participants to reverse so that the
latest replier is placed first and so forth.

Also the thread starter is not included in the channel view, but is
included in the global threads view.
2021-09-01 17:26:53 -04:00
Dean Whillier
c6cf1f480d
[MM-37686] Invert colours for teams button to "fix" starkness on light backgrounds (#5649)
* invert colours for teams button

"fixes" the starkness of the button when using a light sidebar background colour

* update snapshots

* white background for team image
2021-09-01 17:02:28 -04:00
Elias Nahum
8e3044385b
MM-38065 Render system messages for guest added or joined a channel (#5639) 2021-09-01 14:32:48 -04:00
Elias Nahum
52a3e22a8d
Fix upside down loading message text while scrolling the post list (#5647) 2021-08-31 09:41:34 -04:00
Elias Nahum
742d7ae7ba
[MM-38035, MM-35883, MM-38067, MM-36939, MM-36039] Multiple Fixes (#5636) 2021-08-26 21:32:29 -04:00
Daniel Espino García
c29cdef21c
[MM-36758] Fix filter and locations (#5567)
* Fix filter and locations

* Fix lint

* Only fetch form on final commands and some other minor fixes

* Fix tests
2021-08-26 10:40:22 +02:00
Claudio Costa
846aa759b2
[MM-31257] Bump max allowed file uploads per post (#5552)
* Bump max allowed file uploads per post

* Update error string
2021-08-24 18:23:38 +02:00
Claudio Costa
7f69a1adf9
Remove Posts.ParentId (#5541) 2021-08-18 16:39:42 +02:00
Daniel Espino García
c1e5582cc0
Fix interactive message submit button by adding a default when none is defined (#5551)
Co-authored-by: Mattermod <mattermod@users.noreply.github.com>
2021-08-17 13:12:33 +02:00
Daniel Espino García
b7fcda3956
[MM-34415, MM-34808, MM-34572, MM-34385, MM-32445, MM-31525] Handle user and channel provider from the app parser (#5503)
* Handle user and channel provider from the app parser

* Do not process mapStateToProps on appsTakeOver

* Fix tsc

* Address feedback

* Fix broken reference

* Address feedback and fix tests

* Fix i18n

* Use instantiated teamID on parser context

* Address feedback

* Fix test

* Address feedback

Co-authored-by: Mattermod <mattermod@users.noreply.github.com>
2021-08-17 10:45:49 +02:00
Matthew Birtch
2df9642456
updated threads illustration SVG to align with new branding (#5619)
* updated threads illustration SVG to align with new branding

* fixed issue with svg on android
2021-08-15 10:41:58 -04:00