Commit graph

420 commits

Author SHA1 Message Date
Harrison Healey
e1547678f3 RN-268 Fixed teams list not always rerendering when team member changes (#970)
* RN-268 Fixed teams list not always rerendering when team member changes

* Removed unused prop from ChannelDrawer

* RN-268 Passed fewer props into TeamsListItem
2017-10-02 16:03:13 -03:00
enahum
874edb4d2a Fix blank screen when user has no teams (#965) 2017-10-02 16:03:13 -03:00
Harrison Healey
edf1c9a8d5 RN-364 Fixed switch teams button rendering with only one team (#964) 2017-10-02 16:03:13 -03:00
Harrison Healey
9a2a645208 Fixed drawer rendering empty if the user is only on one team (#963) 2017-10-02 16:03:13 -03:00
enahum
fb773f04cb Multiple performance improvements (#956)
* Update fastlane

* Multiple performance improvements

* Feedback review

* Feedback review
2017-10-02 16:03:13 -03:00
enahum
c3726b316d Fix post additional content (#962)
* Fix post additional content

* Feedback review
2017-10-02 16:03:13 -03:00
enahum
7289fedea7 Fix SSO login (#960) 2017-10-02 16:03:13 -03:00
enahum
86c697aa55 Fix image preview initial scroll (#959) 2017-10-02 16:03:13 -03:00
enahum
0a7b297a6f Fix android search autocomplete (#958) 2017-10-02 16:03:13 -03:00
enahum
2682d37e4e RN-320 Tapping enter in channel header/purpose keeps the keyboard open (#961) 2017-10-02 16:03:13 -03:00
Harrison Healey
de52469825 Added selector for getting sorted teams list (#954) 2017-10-02 16:03:13 -03:00
Harrison Healey
8c86a95f19 RN-349 Mark channel as read when switching teams and opening the app (#953)
* RN-349 Mark current channel as read when opening the app

* RN-349 Mark channels as read when switching teams

* Moved markChannelAsRead into handleTeamChange action
2017-10-02 16:03:13 -03:00
enahum
271a757505 Refactor channel swiper (#933)
* Refactor channel swiper

* Feedback review

* clean up

* another feedback review

* Remove unnecessary props

* clean up initialState
2017-09-25 14:40:30 -03:00
enahum
e31d1834f6 Show full date on search results (#934) 2017-09-25 10:21:06 -04:00
Harrison Healey
98abbd6dca RN-345 Additional improvements to channel switching (#926)
* RN-345 Only show refreshing indicator when channel is actually refreshing

* Added getCurrentLocale selector

* Added SwitchTeams component to channel drawer to reduce rerenders

* Reduced number of props passed from ChannelsList into children

* Removed unused prop from FilteredList

* Moved visible post calculation out of render function

* Don't set the channel to loading when not switching channels

* Added most of channel view state to blacklist
2017-09-22 11:48:30 -07:00
Harrison Healey
05bfc04ec9 Fixed post draft selectors returning null (#932) 2017-09-22 11:23:42 -07:00
enahum
757387a4de Only load post body additional content when needed (#927)
* Only load post body additional content when needed

* Feedback review
2017-09-22 08:04:29 -07:00
Harrison Healey
a09e1ebcc1 Revert changes that select channel before channel drawer is closed (#930) 2017-09-22 11:16:56 -03:00
Chris Duarte
9a5e7ac541 RN-337 Enable GIF support in image preview (#928) 2017-09-22 11:15:44 -03:00
enahum
a5eecb9fb3 Fix channel_updated WS event (#924) 2017-09-22 11:10:43 -03:00
Chris Duarte
e4b86518a9 RN-342 Refactor post textbox component (#915)
* RN-342 Refactor post textbox component

* Rebase

* Review feedback
2017-09-20 16:40:40 -04:00
enahum
4995a76f2c Add Landscape support for both platforms (#909)
* Landscape support

* Fix image rotation on Android

* Fix landscape mode for login and login options

* Fix previewer will receive props

* Move device dimensions and others to redux

* Fix unit tests

* Include orientation and tablet in the store
2017-09-20 12:54:24 -07:00
enahum
59762e4fac Use mattermost-redux favorite and unfavorite actions (#921) 2017-09-20 10:39:25 -07:00
enahum
2f631ef726 Fix status bar black on black in Android (#922) 2017-09-20 10:13:35 -07:00
Chris Duarte
8694f59e80 RN-335 Reaction shortcut (#920)
* RN-335 Reaction shortcut

* Review feedback
2017-09-20 11:08:17 -04:00
enahum
da28fa18e4 Fix about title (#918) 2017-09-19 12:55:52 -03:00
Harrison Healey
96da38ed14 RN-345 Optimizing channel switching and general improvements (#914)
* Reduced re-renders of Channel screen

* Switched some components to be PureComponents

* Stopped waiting for drawer to close to switch channels

* Fixed post list being stuck loading

* Fixed incorrectly removed ref

* Removed loader from channel post list

* Removed unused prop

* Re-added ChannelDrawer.swiperIndex

* Changed ChannelPostTextbox to only require a single draft

* Re-enable InteractionManager on ChannelDrawer

* Fixed ChannelDrawer.joinChannel and removed duplicated code

* Moved getting device dimensions into render method

* Switched ChannelsList to be a PureComponent
2017-09-18 17:39:21 -03:00
enahum
33072941f3 RN-351 Remove extra "for" in mobile notification screen (#913) 2017-09-18 14:33:39 -04:00
enahum
0628cbc693 Upgrade to RN 0.48.3 (#911)
* Upgrade to RN 0.48.1

* Update deps to be exact

* Fix tests

* Remove unneeded code from setup and add socketcluster dep

* Fix drawer pan issue

* Fix bridge issues on iOS

* Upgrade to RN 0.48.3

* Search to use RN SectionList
2017-09-18 12:01:47 -04:00
enahum
acc7fedd0e Fix saving Android notification preferences (#907) 2017-09-14 16:54:20 -03:00
enahum
446c90f371 Show pull to retry if the offline indicator is not showing (#905) 2017-09-14 08:43:50 -03:00
enahum
8c3c83e346 Show connecting indicator after two failed attempts (#904) 2017-09-14 08:43:32 -03:00
Harrison Healey
612da49697 RN-189/RN-241 Updated emoji appearance (#898)
* Removed Emoji padding prop

* Reduced emoji size on Android

* RN-189 Fixed aspect ratio for wide emojis

* Removed margins from headers which didn't actually work

* RN-189 Fixed aspect ratio for tall emojis

* Adjusted line height so emojis don't cause uneven spacing on iOS

* Further reduced emoji size on Android

* Slightly adjusted vertical alignment of emojis

* Added hack to get vertical alignment of emojis looking better
2017-09-13 11:33:13 -04:00
enahum
19502f9aaa RN-344 open push notifications faster (#899) 2017-09-13 12:00:33 -03:00
enahum
e0cfefcdff RN-138 Android notification preferences (#889)
* Fix Android and iOS flow

* Own review

* RN-138 Android notification preferences

* Feedback review

* Feedback review 2
2017-09-13 12:00:16 -03:00
enahum
7aebcbd52e Link Previews (#890)
* Link previews, Image previews and YouTube

* Install cocoapods dependencies
2017-09-12 15:06:19 -03:00
enahum
adbaead58e RN-321 Update Settings and Notifications UX/UI Screens (#879)
* Fix Android and iOS flow

* Own review

* RN-321 Update Settings and Notifications UX/UI Screens

* Fix style for separator in android modals

* Feedback review
2017-09-08 15:38:50 -03:00
enahum
97969717fa Release 1.2 (#883)
* RN-73 Fixed code block text colour being incorrect (#868)

* RN-220 Add "in:" and "from:" search modifiers (#869)

* Fix search and search preview

* Add "in:" and "from:" search modifiers

* Version Bump to 49 (#875)

* Version Bump to 49 (#876)

* Update minimum server version (#878)

* translations PR 20170905 (#882)
2017-09-05 16:13:33 -03:00
Harrison Healey
3ac7b48adc RN-289 Sentry integration (#873)
* Added JS code for Sentry

* Removed leftover initializeSentry call

* Added SentryOptions config setting

* Added native components for react-native-exception-handler

* Removed default props from ErrorText

* Moved where Sentry is initialized

* Added ios/sentry.properties to .gitignore

* Added linking react-native-sentry to Fastlane

* Fixed fastlane to include newlines in sentry.properties

* Moved to manually link react-native-sentry

* Captured redux errors with Sentry

* Redid how Sentry is optionally compiled to be simpler

* Added Sentry middleware to create redux breadcrumbs

* Added Sentry tags for server version

* Initialize Sentry when testing

* Fixed string replacement for SentryEnabled in fastlane

* Added react-native-sentry to NOTICE.txt
2017-09-01 14:50:17 -03:00
Chris Duarte
220fb588b9 RN-80 Add ability to download files (#866)
* RN-80 Add ability to download files

* Add android permission check and toasts

* Add check for ability to download from config
2017-09-01 12:11:49 -03:00
enahum
60087e6b4d Enable replying from the push notification (#871)
* Enable replying from the push notification

* Fix Android and iOS flow

* Own review
2017-08-29 12:16:34 -03:00
Chris Duarte
bffc75f8d1 RN-223 Emoji picker for adding new emoji reactions (#854)
* RN-223 Emoji picker for adding new emoji reactions

* Remove redundant setServerVersion and fetch custom emojis on reset

* Review feedback

* Review feedback 2

* Review feedback 3

* Review feedback 4

* Change aliases to array and add header to image source

* Remove aliases from custom emojis
2017-08-23 15:29:09 -03:00
enahum
b8d8be78d5 Fetch images using APIv4 (#862) 2017-08-22 22:23:10 -03:00
Harrison Healey
a291fdc933 RN-74 Added updated markdown code block view (#855)
* RN-74 Added updated markdown code block view

* Set default channelIsLoading prop to PostList

* RN-74 Fixed uneven line numbers on Android

* RN-74 Prevented double tapping on markdown code blocks
2017-08-21 11:40:42 -03:00
enahum
86261dad30 RN-303 fix small screen error overlap (#857)
* RN-303 fix small screen error overlap

* feeback review
2017-08-18 12:19:21 -04:00
enahum
cd5fb71681 Appconfig support for iOS and Android (#856)
* AppConfig support for iOS

* AppConfig support for Android

* Fix typo

* Java feedback review
2017-08-18 12:19:00 -04:00
Harrison Healey
2b33618f31 Reverted change to keyboardShouldPersistTaps for post list (#858) 2017-08-17 22:44:17 -03:00
Harrison Healey
57c602eb79 RN-113/RN-114 Updated markdown styles for lists and code (#851)
* RN-114 Updated markdown list style

* RN-113 Updated code font
2017-08-17 00:43:11 -03:00
Harrison Healey
c6ae1090f7 Changed makeStyleSheetFromTheme to take a function that returns a plain object (#852)
* Changed makeStyleSheetFromTheme to take a function that returns a plain object

* Fixed style issues
2017-08-15 18:26:55 -03:00
Harrison Healey
321a2bf576 RN-283 Properly render uppercase theme colours (#849) 2017-08-11 16:45:27 -04:00