Commit graph

76 commits

Author SHA1 Message Date
Elias Nahum
7b75868101 Various fixes (#3078)
* MM-17588 Remove navigation component from stack

* MM-175986 Fix Clock Display Settings on iOS

* Fix markdown and team icon currentServerUrl

* Fix closing permalink logs out the user

* Fix file attachment document ref

* Fix applyTheme when changing a theme in the app

* Feedback review

* remove / when fetching the image on the markdown table on relative paths
2019-08-08 22:39:27 +08:00
Elias Nahum
da911a2b34
MM-17424 Setting to enable/disable fixed sidebar (#3060) 2019-08-02 13:53:48 -04:00
Jesús Espino
8887319324
Revert Guest Accounts feature (#3024)
* Revert "Automated cherry pick of #3019 (#3020)"

This reverts commit a0b021d21d.

* Revert "Adding guest accounts feature (#2990) (#3015)"

This reverts commit 60030defb8.
2019-07-23 20:55:15 +02:00
Jesús Espino
60030defb8
Adding guest accounts feature (#2990) (#3015)
* MM-15059: Restict the permissions for guests (#2791)

* MM-15057: Adding guest badge to identify guest users (#2774)

* MM-15057: Adding guest badge to identify guest users

* Adding Guest tags in the channel title

* Adding i18n translations

* Adding DM and GM guest warnings

* Fixing check-style

* Adding and fixing tests

* Adding i18n text

* Only showing the subtitle when there is enough space

* Addressing new design changes

* Fixing eslint

* Addressing PR comments

* Moving getChannelStats to the handleSelectChannel action

* Adding the guest info in android landscape channel headers

* simplified the guest warning text generation

* Fixing i18n

* Fixing leaving channel behavior for guests (#2989)

* Fixing leaving channel behavior for guests

* Fixing tests and adding a new one

* fixing typo

* Addressing PR comments

* Addressing PR comments

* Fixing tests
2019-07-22 23:46:15 +02:00
Mattermost Build
a4284666a3 Automated cherry pick of #3002 (#3004)
* Set footerColor the same as navBarBackgroundColor

* Oops, forgot __snapshots__
2019-07-20 09:17:32 +08:00
Elias Nahum
cdd7000361
MM-16398 Fix Team/Channel sidebar dots overlap last item (#2975)
* MM-16398 Fix Team/Channel sidebar dots overlap last item

* Feedback review and Tablet support

* Only center dots by width on iPhone X series devices
2019-07-17 11:30:12 -04:00
Miguel Alatzar
5838d5163f Wrap setting show true in requestAnimationFrame (#2964) 2019-07-09 10:51:11 -04:00
Miguel Alatzar
5eee2b7652
[MM-16139] [MM-16140] [MM-16141] Update the remaining screens/components (#2920)
* Update screens

* Update login tests

* Remove done

* Fix failing tests

* Update screens and components

* Check styles fix

* Update tests

* Prevent setState call after component unmounts

* Add empty setButtons func to dummy navigator

* Remove platform check

* Remove Platform import

* Update react-native-navigation version

* Add separate showModalOverCurrentContext function

* check-style fixes

* Remove overriding of AppDelegate's window

* Fix modal over current context animation

* Add showSearchModal navigation action

* Check-style fix

* Address review comments

* Update SettingsSidebar and children

* Update EditProfile screen

* Update SettingsSidebar

* Keep track of latest componentId to appear

* Track componentId in state to use in navigation actions

* Update FlaggedPosts and children

* Update RecentMentions

* Update Settings

* Store componentIds in ephemeral store

* Update AttachmentButton

* Remove unnecessary dismissModal

* Fix typo

* Upate NotificationSettings

* Update NotificationSettingsAutoResponder

* Update NotificationSettingsMentions

* Update NotificationSettingsMobile

* Update CreateChannel and children

* Update MoreChannels

* Update ChannelPeek and children

* Update ChannelNavBar and children

* Update ChannelPostList and children

* Update ChannelInfo and children

* Update ChannelAddMembers

* Update ChannelMembers

* Update EditChannel

* Fix setting of top bar buttons

* Update Channel screen and children

* Update PinnedPosts

* Update LongPost

* Update PostOptions

* Update PostTextboxBase

* Update EditPost

* Check-styles fix

* Update DisplaySettings

* Update Timezone

* Update SelectTimezone

* Update IntlWrapper and Notification

* Update InteractiveDialog and children

* Update ExpandedAnnouncementBanner

* Update ClientUpgradeListener

* Update MoreDirectMessages

* Update SelectorScreen

* Update UserProfile

* Update Thread

* Update About

* Update ImagePreview

* Update TextPreview

* Update AddReaction

* Update ReactionList and children

* Update Code

* Update TermsOfService

* Update Permalink

* Update Permalink

* Update ErrorTeamsList

* Update Search

* Remove navigator prop

* Fix setButtons calls

* Remove navigationComponentId

* Fix test

* Handle in-app notifs in global event handler

* Fix in-app notification handling

* Fix typo

* Fix tests

* Auto dismiss in-app notif after 5 seconds

* Fix typo

* Update overlay dismissal

* Animate in-app notif dismissal and allow gesture dismissal
2019-07-08 10:03:31 -07:00
Miguel Alatzar
51aac1e6e7 Merge branch 'master' into rnn-v2 2019-07-02 18:15:19 -07:00
Miguel Alatzar
150253d392
[MM-16012] [MM-16084] Update screens related to settings sidebar + update SearchResultPost screen and its children (#2913)
* Update screens

* Update login tests

* Remove done

* Fix failing tests

* Update screens and components

* Check styles fix

* Update tests

* Prevent setState call after component unmounts

* Add empty setButtons func to dummy navigator

* Remove platform check

* Remove Platform import

* Update react-native-navigation version

* Add separate showModalOverCurrentContext function

* check-style fixes

* Remove overriding of AppDelegate's window

* Fix modal over current context animation

* Add showSearchModal navigation action

* Check-style fix

* Address review comments

* Update SettingsSidebar and children

* Update EditProfile screen

* Update SettingsSidebar

* Keep track of latest componentId to appear

* Track componentId in state to use in navigation actions

* Update FlaggedPosts and children

* Update RecentMentions

* Update Settings

* Store componentIds in ephemeral store

* Update AttachmentButton

* Remove unnecessary dismissModal

* Fix typo

* Check-style fix

* Address review comments
2019-06-24 12:52:08 -07:00
Miguel Alatzar
913f05e131
[MM-16011] Update screens related to main sidebar (#2907)
* Update screens

* Update login tests

* Remove done

* Fix failing tests

* Update screens and components

* Check styles fix

* Update tests

* Prevent setState call after component unmounts

* Add empty setButtons func to dummy navigator

* Remove platform check

* Remove Platform import

* Update react-native-navigation version

* Add separate showModalOverCurrentContext function

* check-style fixes

* Remove overriding of AppDelegate's window

* Fix modal over current context animation

* Add showSearchModal navigation action

* Check-style fix

* Address review comments
2019-06-24 10:58:15 -07:00
Chris Duarte
4d9780da56 Ios accessibility fixes (#2842)
* UCHAT-4371 // MM-15771 - iOS - Larger Fonts Cut Off Text in menu and settings screens

revert padding right

* Update snapshot
2019-06-21 16:10:16 -04:00
Elias Nahum
3f925df9d9 MM-16392 Split view support & hide sidebar on tablets (#2898) 2019-06-21 14:10:30 -04:00
Miguel Alatzar
0f948f650d Merge branch 'master' into rnn-v2 2019-06-18 09:58:35 -07:00
Eli Yukelzon
056d5a91b7 MM-15486 - Archived channels appear incorrectly on mobile (#2882)
* properly separate archived channels from 'other'

* make sure fetch is performed to display full list

* reverted unneeded change

* corrected display behaviour

* code cleanup

* redux commit reference updated
2019-06-17 10:22:36 -04:00
Miguel Alatzar
7d67f1214e
[MM-16008] Update setNavigatorStyles and replace setOnNavigatorEvent (#2877)
* Update setNavigatorStyles

* Replace navigator.setOnNavigatorEvent and callbacks

* Update unit tests

* Save user notify props on componentWillUnmount

* Add TODOs about removing componentDidAppear/setNavigatorStyles

* check-styles fix

* Fix eslint errors
2019-06-14 08:14:26 -07:00
Elias Nahum
29240b9c6f
MM-16061 Keep unread channels in place on Tablets (#2865) 2019-06-06 15:15:40 -04:00
Elias Nahum
bb8f524983
MM-16070 Fix channel sidebar state while filtering (#2864) 2019-06-05 19:33:23 -04:00
Woolim Cho
b81cd49fb4 [MM-13879] Add Edit profile button to RHS menu and own profile pop-over (#2832)
* Add Edit Profile button to right panel menu

* Make user info of right panel menu opens the users own profile

* Add an Edit button of the users own profile

* handle transitions

* Add commandType to propTypes

* Update test codes

* add unit tests for user_profile

* Assign commandType manually

* Remove async, set delay to 0
2019-06-05 16:11:42 +08:00
Elias Nahum
ecfeee78a2 Allow drawer pan responder when switching teams (#2823) 2019-05-23 09:00:48 -07:00
Elias Nahum
f7f56e958b
MM-9494 & MM-13888 Tapping execute actions & interactive keyboard dismissal (#2799)
* MM-9494 & MM-13888 Tapping with the keyboard opened executes the action & iOS iteractive keyboard

* Fix tests

* feedback review

* add new line at the end of file

* feedback review and added todo list

* Track interactive dismiss keyboard and set scrollview bounds natively

* Fix snapshots

* Fastlane default to current branch when no BRANCH_TO_BUILD is set

* Set NODE_OPTIONS in ios build script

* Rebind scrollview when channel gets first set of posts

* Keep scrolling momentum on keyboard close

* Update react-native-keyboard-tracking-view

* Fix ScrollView offset with keyboard-tracking

* Fix offset while dragging the keyboard

* Allow action on channel drawer on tablets

* Fix typo

Co-Authored-By: Saturnino Abril <saturnino.abril@gmail.com>

* Fix indentation
2019-05-20 12:02:00 -04:00
Elias Nahum
2b4574885b
Keep the channel drawer opened on tablets (#2793)
* Keep the channel drawer opened on tablets

* update en.json after running mmjstool

* Set the channel drawer to width 220

* feedback review

* PM Review

* Fix snapshots
2019-05-16 20:40:32 -04:00
Elias Nahum
f36ee37402
Upgrade to RN 0.59.6 and dependencies (#2777)
* Upgrade to RN 0.59.6 and dependencies

* Remove channel loader unused style

* Update to the latest netInfo that fixes a crash

* Do not set default timezone with moment

* Use RN 0.59.8
2019-05-13 13:33:18 -04:00
scott lee davis
6cf8d1a9e8 MM-15442 Filtered list not showing bot account icon (#2787)
* handle channel.isBot undefined state gracefully

* Use Boolean for is isBot check

Co-Authored-By: Christopher Speller <crspeller@gmail.com>
2019-05-13 08:45:51 -07:00
Miguel Alatzar
45e5bae8da
Avoid possible reading of length property on undefined (#2783) 2019-05-10 09:34:23 -07:00
Saturnino Abril
e086d66ec2
[MM-13955] Add telemetry for Android (#2719)
* add markers for Android profiling

* update per comments

* Remove beta build flag

* update per comment, latest change on telemetry server and others

* rebase and fix merge conflicts, and update per comments

* update commit hash of mattermost-redux
2019-05-08 00:23:59 +08:00
Miguel Alatzar
10196d5fad
MM-14541 Fix search bar animation stutter in main search bar (#2672)
* Do not expand drawer on search start

* Add state.searching for determining showTeams

* Add leftComponent prop to SearchBar to render SwitchTeamsButton

* Update snapshot tests

* Use native driver when possible and fix start calls
2019-04-22 19:01:17 -07:00
Christopher Speller
ec9e46fb62
MM-13618 Adding bot tags. (#2669)
* Adding bot tags.

* Snapshot update.

* Moving bot tag to own component.

* Snapshots.

* Adding missing bot tags, fixing bot profile, allowing tap of bot username to open profile.

* Snapshots and tests.
2019-03-26 16:59:45 -07:00
Elias Nahum
41c675fd84
Set the correct channel display name when switching teams (#2625) 2019-03-05 11:56:24 -03:00
Elias Nahum
614e8e32ca
MM-13974 Missing translations (#2549)
* Missing translations

* update snapshots
2019-02-05 19:15:31 -03:00
Dean Whillier
da32c22c56
Enable tapping on channels when jump to textfield is focused. (#2535)
* Allow tapping on channels in the filtered list …

… when the keyboard is open. This option also allows tapping on non-interactive areas to still dismiss the keyboard.

* keyboard propery updates

- change ‘on-drag’ to ‘interractive’
- change ‘handled’ to ‘always’ to be more consistent with other uses of same property

* support multiple keyboard dismiss modes
2019-01-30 15:55:02 -05:00
Elias Nahum
5e1db3497f
LHS use getSortedFavoriteChannelIds instead of getFavoriteChannelIds (#2471) 2018-12-28 08:32:56 -03:00
Harrison Healey
317d26ed64 MM-13421 Fix channel sidebar sometimes using old permissions (#2450) 2018-12-12 09:38:57 -03:00
Harrison Healey
901a59a01b MM-13420 Always show the Unreads section in the channel list (#2451) 2018-12-12 09:37:12 -03:00
Elias Nahum
11497ab270
Hide Favorite channel section when there are not favorite channels (#2439) 2018-12-10 09:18:13 -03:00
Elias Nahum
b6eb57ae57
Fix team mention badge alignment on iOS (#2427) 2018-12-07 12:22:41 -03:00
Saturnino Abril
c2c517f3da make circular badge on jewel for single-digit mention (#2422) 2018-12-06 12:11:42 -05:00
Elias Nahum
ac3a614d8f Fix jewel in team sidebar for android (#2386) 2018-11-28 10:28:31 -05:00
Elias Nahum
68a3825d95
Update dependencies (#2316) 2018-11-18 17:54:06 -03:00
Chris Duarte
5c24375dae Reorganize sidebar channel items via pref (#1928)
* Reorganize sidebar channel items via pref
Add onItemPress


Add isModal prop


Add options modal for ungrouped sidebar


Filter zero item unreads from sections


Refactor unread filtering

Add SidebarSectionTypes to constants

Update mm-redux dep

Remove unused variable

* Fix lint errors. Update redux commit

* Add recent activity title

* Review feedback

* Fix issues after rebase

* Review feedback

* Change to use getAllDirectChannels

* Update redux library

* Fix lint error

* Update modal list snapshot
2018-11-09 13:06:21 -03:00
Elias Nahum
9dcf9e6a86
Show join teams option in the team sidebar when there are other joinable teams (#2293) 2018-10-31 14:07:59 -03:00
Elias Nahum
e6f70707cc
Allow channel drawer to close when showing the team list (#2290)
* Allow channel drawer to close when showing the team list

* prevent closing the sidebar when jump to is active

* Add proper header to drawer_layout.js
2018-10-31 13:40:22 -03:00
Elias Nahum
bfdd0f7b42
Add padding to tap effect for team list item (#2291) 2018-10-30 09:48:36 -03:00
Sudheer
7a65d83894
Use native transition on drawyerLayout component (#2278) 2018-10-19 01:56:29 +05:30
Sudheer
1b54e1ebe3
Fix for LHS populating you next to current user (#2263)
* Fix for LHS populating you next to current user

* Add test cases
 * Refactor to use avaiable props conditions in component
   instead of passing flags from connector
2018-10-15 21:00:11 +05:30
Sudheer
3eb66c591e
MM-12491 Fix archive channels staying in LHS (#2253)
* Add isArchived flag for all DM's and channels
 * Exclude search results from channel_list component to show
   results when isSearchResult flag is set
   This is to let user search for deactivated users from jumpto
2018-10-11 23:12:17 +05:30
Elias Nahum
29d975ceef Draft channel indicator to ignore message with whitespaces only (#2209) 2018-10-03 08:44:32 -04:00
Sudheer
46143df823
MM-12347 Fix crash of app when accessing jumpTo (#2205) 2018-10-02 22:51:59 +05:30
Elias Nahum
2567b7dc04
Add draft indicator to the channel item (#2150)
* Add draft indicator to the channel item

* Feedback review
2018-09-26 12:17:54 -03:00
Elias Nahum
452b97231d Remove bottom margin in the channel drawer (#2168) 2018-09-26 13:23:22 +08:00