Commit graph

365 commits

Author SHA1 Message Date
Harrison Healey
33bf655a8c RN-472 Fixed undefined post error in SearchPreview screen (#1217)
* RN-472 Fixed undefined post error in SearchPreview screen

* Moved SearchPreview container style into StyleSheet
2017-11-28 20:31:54 -03:00
Harrison Healey
3f6c38d872 Applied correct text colour to (edited) indicator on Android (#1219) 2017-11-28 19:49:43 -03:00
Chris Duarte
f5d77fcebc Add Channel Info Edit options to ChannelInfo screen (#1189)
* Add Channel Info Edit options to ChannelInfo screen

Refactor CreateChannel to CreateChannel and ChannelInfo

Add EditChannel screen

add updateChannelRequest

display header option only if channel is DM or GM

Add editing prop to ChannelInfo

Add saving state to ChannelInfo

Clean up EditChannel and change saving to updating

Add channel name (url) field in EditChannel

Clean up enableRightButton logic for EditChannel

Add error handling for EditChannel fields

Remove leftButton declaration from EditChannel

Add wrapWithPreventDoubleTap to click handlers in ChannelInfo

Move channel info to parent component (CreateChannel)

Add editing support for channel info in parent component

Remove ownProps from connected components

Remove passing parent props using the spread operator

* Strip out channel url field from EditChannel

* Comment out channelUrl textInput ref

Make eslint happy

* Remove injectIntl in favor of intl context props

* Add mobile prefix to json string

* Remove unnecessary actions declaration in ChannelInfo

* Refactor creating | editing to saving

* Safe check refs when blurring in ChannelInfo

* pass channelType for displayingHeaderOnly in EditChannelInfo

* Refactor ChannelInfo component to EditChannelInfo

* pass 1to1 props instead of object

* Add required to certain props in EditChannelInfo

* Use Stylesheet for container styles

* Add InvalidPermission method when updating channel

* Clean up onDisplayNameChangeText and safe check scrollToEnd

* Add {deviceWidth, deviceHeight} from redux

* Remove style.navTitle

* Add wrapper methods for delete and leave channel

* remove alertErrorIfInvalidPermissions

* Fix mobile localization strings to use prefix mobile.-

* Add TODO for channel URL
2017-11-28 19:48:51 -03:00
Chris Duarte
e6869dd760 Fix slash command for post comment (#1221) 2017-11-28 17:43:12 -05:00
enahum
df61ec5552 Fix autocomplete position in search screen (#1218)
* Fix autocomplete position in search screen

* Remove autocomplete for slash commands and emojis in search
2017-11-28 17:42:56 -05:00
Chris Duarte
18a5535205 Defensive fix for post list scrollToIndex (#1223) 2017-11-28 16:51:06 -03:00
enahum
4caa3cb470 Fix weird colors in radio buttons (#1214) 2017-11-28 09:37:47 -05:00
Harrison Healey
c71b116c71 RN-173 Added support for Markdown images (#1202)
* RN-173 Added support for Markdown images

* RN-173 Added proper alt text when image fails to load

* Changed (edited) indicator not add itself as a child of an image

* RN-173 Removed space between an image and the following text

* Made sure MarkdownImage is mounted when setState is called

* Fixed images in links having their location overwritten

* Made images work in links

* Fixed uppercase links not working on Android

* Added vertical margin around images

* RN-173 Added styling for markdown image error text

* RN-173 Added error when image exceeds max dimensions on Android
2017-11-28 11:00:28 -03:00
enahum
ac2b38cb3b
Track analytics for start time, channel and team switching (#1192)
* Track analytics for start time, channel and team switching

* Update analytics to include currentUserId and ip 0.0.0.0

* Include diagnostic id with every segment request

* feedback review
2017-11-28 10:33:46 -03:00
enahum
e24988ca51
Fix Android: Text typed in Jump to... and Search box color (#1209) 2017-11-28 10:31:49 -03:00
enahum
87261e9a59
Make layout compatible with iPhone X (#1205)
* Make layout compatible with iPhone X

* feedback review
2017-11-28 09:04:53 -03:00
enahum
dbe3fab980 Fix channels category in jump to filter (#1207) 2017-11-27 16:02:11 -05:00
enahum
f74b8e685d
Channel Peek (#1203)
* Channel Peek

* feedback review
2017-11-27 17:35:32 -03:00
enahum
b27a1f8e0b
Fix the ability to send the post when an upload failed (#1195) 2017-11-24 20:25:53 -03:00
Harrison Healey
dc90ce46ae RN-483 Ensured switch statements used for i18n have a default case (#1196)
* RN-483 Ensured switch statements used for i18n have a default case

* Made VectorIcon use a PureComponent
2017-11-24 20:25:21 -03:00
enahum
36c9913f79
reset newMessagesIndex (#1199) 2017-11-24 20:25:01 -03:00
Martin Kraft
5d4c4ce860 RN-518: Changes placement of swiper nav dots. (#1200) 2017-11-24 09:46:21 -03:00
enahum
b761872c59 Fix reset to channel view when push notification is tapped (#1201) 2017-11-23 18:48:50 -05:00
Chris Duarte
be682240f4 Add slash command support (#1190)
* Add slash command support

* Review feedback

* Review feedback 2

* Update to latest redux

* Fix tests
2017-11-23 14:25:03 -03:00
enahum
f651cac583
Fix more dms screen (#1193) 2017-11-22 12:24:12 -03:00
enahum
ee3f0500f2 Fix search auto focus on iOS (#1176) 2017-11-21 11:40:02 -05:00
enahum
92bc6e73ee Fix document library (#1182) 2017-11-21 10:53:02 -05:00
Chris Duarte
aa61391436 Fix add reaction shortcut in post reply (#1174) 2017-11-21 10:38:20 -05:00
enahum
c69bf5a950
Remove unneded ownProps (#1177) 2017-11-21 12:35:03 -03:00
enahum
20412ae803
Add preview support for rtf files (#1180) 2017-11-21 12:30:51 -03:00
Chris Duarte
e345ee1e7b Add recently used section (#1136)
* Add recently used section and section icons

* Improve section scrolling indication

* Modify Makefile and use onMomentumScrollEnd

* Make sure top section maintains highlight when scrolled to top

* Sort emojis by startsWith then includes when filtering
2017-11-21 10:20:09 -05:00
enahum
bc1554e1bd
Add Document and Video previews (#1170)
* Video file previewer

* Document preview support

* Fix tests

* Feedback review

* feedback review 2

* feedback review 3

* Fix video_controls copyright

* Fix mime undefined
2017-11-20 18:28:20 -03:00
Martin Kraft
7fb4b4f8ed RN-359: Adds edited indicator to post. (#1171)
* RN-359: Adds '(edited)' indicator to post.

* RN-359: Formatting.
2017-11-20 13:24:22 -05:00
Carsten Pfeiffer
7272f47485 Request image quality 1 (=100%) to avoid scaling (and failing with OOME) (#1157) (#1169) 2017-11-17 09:25:45 -05:00
enahum
e7f8388fe1
Fix iOS post context menu (#1165) 2017-11-16 20:33:18 -03:00
enahum
a65811e088
Sync read channels across devices/apps (#1164) 2017-11-16 20:33:03 -03:00
Harrison Healey
7014c6035e Removed unused component (#1163) 2017-11-16 20:32:43 -03:00
enahum
fd20be4bbf
Add the ability to retry the connection (#1161) 2017-11-16 20:32:27 -03:00
Harrison Healey
350a78c616 RN-376 Removed code that made search bar focus itself after animations (#1152)
* RN-376 Removed code that made search bar focus itself after animations

* Used StyleSheet to pass styles into search components
2017-11-15 09:56:26 -03:00
Harrison Healey
70a1a92d06 Updated borders on autocomplete to wrap entire list (#1149)
* Updated borders on autocomplete to wrap entire list

* Reverted accidental changes to search autocomplete position
2017-11-14 19:13:03 -06:00
Harrison Healey
e98e22600e RN-465 Fixed emoji autocomplete removing spaces before emoji (#1150) 2017-11-14 19:06:55 -06:00
Martin Kraft
002a5b8acd RN-44: Adds flag SVG to post header. (#1004)
* Adds flag SVG to post header.

* RN-44: Pushes flagged post icon up.
2017-11-14 09:49:38 -05:00
Harrison Healey
df5f7a0059 Increased clickable area around send post button (#1139)
* Increased clickable area around send post button

* Fixed attachment icon not staying at the bottom when the post textbox gets taller
2017-11-13 18:43:31 -03:00
enahum
49899b2a00
Improve performance on post textbox (#1138) 2017-11-13 18:36:24 -03:00
enahum
c9fd1ac97d Scroll to search result in preview (#1129)
* Scroll to search result in preview

* Fix uni test

* Feedback review

* Remove listeners for mattermostManaged

* Remove specific event listeners for mattermostManaged
2017-11-13 11:55:26 -05:00
enahum
d7622eb7a4 RN-360 Add support for interactive message buttons (#1131) 2017-11-13 10:52:43 -06:00
enahum
a299cdb5c5
Network detection by pinging Mattermost server (#1130) 2017-11-13 13:51:24 -03:00
enahum
2792e3bab1 Fix badge render (#1134) 2017-11-13 10:44:35 -06:00
Harrison Healey
8e960f0257 RN-472 Improved handling of deleted search results (#1119) 2017-11-12 08:34:39 -03:00
enahum
380f5d884a
RN-466 DND status support (#1115)
* DND status support

* Feedback review
2017-11-10 12:51:33 -03:00
Harrison Healey
bc4df84519 RN-471/RN-484 Fixed null pointer exceptions caused by ScrollViews (#1116)
* RN-471 Fixed null pointer from Swiper scroll view

* RN-484 Added null check to ImagePreview scroll view
2017-11-09 18:48:37 -03:00
enahum
b649dada6f RN-13 Scroll to New messages indicator (#1110) 2017-11-09 08:50:04 -06:00
enahum
2a6b49cdfa Close Thread view when the root post has been deleted (#1114) 2017-11-09 09:22:48 -05:00
Harrison Healey
58efa5863b RN-435 Fixed Loading messages... message not appearing (#1104)
* RN-435 Fixed Loading Messages... message not appearing

* Made capitalization of Loading messages... more consistent

* Fixed ignored eslint warning

* Removed outdated FIXME comment

* Removed unnecessary view
2017-11-08 15:55:11 -03:00
Harrison Healey
1817de589a Changed PostProfilePicture to be a PureComponent (#1105)
* Changed PostProfilePicture to be a PureComponent

* Updating style
2017-11-08 09:19:27 -06:00