Commit graph

61 commits

Author SHA1 Message Date
Saturnino Abril
63196936d0
MM-12258 Update snapshots to only compare against the elements and not the bloated objects (#2140)
* update snapshots to only compare against the elements and not the bloated objects

* resolve conflicts to master
2018-09-21 16:07:37 +08:00
Elias Nahum
637ca9244a
Update RN to version 0.57.0 (#2131) 2018-09-20 19:05:41 -03:00
Saturnino Abril
b75aa36554 Fix build error on Hashtag component (#2134)
* fix build error on Hashtag component

* update commonmark-react-renderer
2018-09-18 12:27:41 -03:00
Harrison Healey
ecf25969cc Fix version of commonmark-react-renderer in package.json (#2136)
* Fix version of commonmark-react-renderer in package.json
2018-09-18 20:37:49 +05:30
Harrison Healey
578f204784 MM-10273 Add hashtag support (#2106)
* MM-10273 Add hashtag support

* Put hashtag search in a proper modal

* Change hashtag search style to match regular search

* Move Hashtag component and explicitly pass props

* Add unit tests for Hashtag component

* Fix merge conflict
2018-09-17 17:17:20 -03:00
Elias Nahum
b096ea0a03
Fix iOS tap on post (#2095) 2018-09-11 08:31:42 -03:00
Chris Duarte
26950abb61 Add deep linking support (#1805) 2018-07-31 08:43:54 -04:00
Elias Nahum
b47c7db4dc
Fix cropped images (#1936)
* Fix cropped images

* Unit tests
2018-07-20 13:34:46 -04:00
Harrison Healey
da8b5e92cc MM-10012 Added Markdown rendering to expanded announcement banner (#1861)
* MM-10012 Added Markdown rendering to expanded announcement banner

* Updated snapshots

* Re-added dismiss button to expanded announcement banner

* Updated 'Don't show again' button style'
2018-07-04 13:15:03 -04:00
Harrison Healey
14e13dd6b6
MM-10325 Add cell alignment to markdown tables (#1791) 2018-06-25 12:17:36 -04:00
Jesse Hallam
8372e95d4a add eslint-plugin-header, and --fix all (#1726) 2018-06-19 19:14:50 -04:00
Harrison Healey
787a46737c Fixed dev-mode error relating to adjacent images (#1731) 2018-06-08 14:16:48 -04:00
Elias Nahum
4841678213 Fix inline images in long posts (#1732) 2018-06-07 03:36:50 +08:00
Harrison Healey
861b46d605
MM-9547 Added CustomUrlSchemes option (#1718)
* MM-9547 Added CustomUrlSchemes option

* Switched mattermost-redux back to master
2018-06-04 10:25:34 -04:00
Harrison Healey
29d015bd32 Fixed Markdown links when SiteURL isn't configured (#1650) 2018-05-03 21:08:36 +08:00
Saturnino Abril
8a152ac1e7 convert test runner from mocha to jest (#1637) 2018-04-30 10:55:01 -04:00
Elias Nahum
006c5a08d7
Use local Images when possible (#1580)
* Fix advance settings android layout

* include react-native-image-gallery dependency

* ImageCacheManager

* Add support for isGif, isDocument, isVideo and purge to file utils

* Remove file fetch cache

* include progressive image component

* Refactor image previewer

* Add image preview support for open graph and embed images

* Cache user profile picture

* Fix post additional content images for android

* Preview markdown inline images

* Improve progressive image

* feedback review
2018-04-13 12:23:15 -03:00
Harrison Healey
1fd94c5ae0 Cherry pick fixes for Sentry issues (#1567)
* Fixed MATTERMOST-MOBILE-ANDROID-85 (#1565)

* Fixed MATTERMOST-MOBILE-ANDROID-87 (#1566)
2018-04-02 23:23:48 +03:00
Harrison Healey
082b7022af
MM-9709 Fixed max width of markdown list items (#1520)
* MM-9709 Fixed max width of markdown list items

* Removed unnecessary flex from MarkdownListItem container
2018-03-20 17:25:01 -04:00
enahum
d0d9103857 [MM-9374] Open Permalinks in app (#1449)
* [MM-9374] Open Permalinks in app

* Feedback review

* Upgrade mattermost-redux

* Fix eslint

* Navigation fixes

* Fixing style of merged lines
2018-03-07 14:48:31 +00:00
Harrison Healey
80c09b588d MM-9647 Replaced usage of preventDoubleTap with wrapWithPreventDoubleTap (#1471)
* MM-9467 Replaced usage of preventDoubleTap with wrapWithPreventDoubleTap

* MM-9467 Renamed wrapWithPreventDoubleTap to preventDoubleTap
2018-03-02 11:22:37 +00:00
Jesse Hallam
58b72302d6 update eslint's comma-dangle rule to always-multiline (#1457)
* update eslint's `comma-dangle` rule to `always-multiline`

* add check and fix scripts to package.json

* Invoke `yarn fix` to adopt the updated eslint rules. No other changes are included.
2018-02-23 09:06:02 -05:00
Harrison Healey
ede4d22f75 ICU-624 Added markdown tables (#1434)
* ICU-624 Added initial table rendering support

* ICU-624 Added full table view

* Added proper pluralization to +X more lines in code blocks

* ICU-624 Added support for images in tables

* Stopped using injectIntl for tables

* ICU-624 Updated commonmark-react-renderer

* ICU-624 Hid scroll indicator in collapsed table view

* Addressed feedback
2018-02-16 19:31:14 -03:00
Stephen Kiers
2444d0f57b
Icu 640 - Fixing RN Font sizes and issues with cutoff fonts (#1402)
* added arrow style functions to eslint

* added padding to text boxes to decrease chance of cutoff

* Removed fontSize prop from Emoji

* base sizes on stylesheet

* normalized font sizes across devices

* minor tweaks

* tweaks

* text to default

* text size relative too

* remove Margintop hack

* Final tweaks

* fixed func name

* fixed scale to always be based on portait mode

* re-added margintop hack

* set Text paddingBottom in markdown file

* Fix style names and setup

* fixed import

* reversed size of edit label

* fix eslint
2018-02-05 13:33:39 -07:00
Harrison Healey
62f7358807 Removed fontSize prop from Emoji (#1399) 2018-01-30 19:08:41 -03:00
Harrison Healey
d3a1c447ad ICU-596 Added support for relative image URLs (#1353) 2018-01-15 18:22:05 -03:00
Harrison Healey
9bc9ca6245 Don't try to open empty Markdown links (#1332) 2018-01-08 14:19:39 -03:00
Harrison Healey
2ad5dd9e26 RN-578 Properly aligned list items with indices above 10 (#1304) 2017-12-21 09:02:15 -03:00
enahum
19e6d66979
Have the Markdown component use the theme from redux (#1231) 2017-11-29 14:58:33 -03:00
Harrison Healey
3f6c38d872 Applied correct text colour to (edited) indicator on Android (#1219) 2017-11-28 19:49:43 -03: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
c69bf5a950
Remove unneded ownProps (#1177) 2017-11-21 12:35:03 -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
Chris Duarte
2f5201bac9 Add copy post/url/mention/code to tooltip menu (#1069)
* Add copy post/url/mention/code to tooltip menu

* Check for managedConfig.copyAndPasteProtection

* Reorder copy options
2017-10-31 13:42:56 -03:00
Chris Duarte
582db04da1 Force url's to be normalized (#1058)
* Force url's to be normalized

* Refactor and move behind config flag
2017-10-26 09:52:41 -07:00
Harrison Healey
a9489dcc5f Replace getTheme selector with one from mattermost-redux (#1013) 2017-10-12 08:45:17 -07: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
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
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
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
a0a1678939 RN-174 Added support for strikethrough text in markdown (#816) 2017-08-07 10:37:29 -04:00
enahum
dc8b9a04b1 RN-10 Ability to search Posts (#763)
* Fix offline indicator UI

* Add search screen with recent mentions functionality

* Fix make start

* Add autocomplete to the search box

* Fix search bar in other screens

* Get search results and scroll the list

* Add reply arrow to search result posts

* Search result preview and jump to channel

* Feedback review
2017-07-21 17:07:47 -04:00
Stan Chan
643925469b RN-38 Clicking on an at mention should open user profile (#728) 2017-07-10 18:09:15 -04:00
Harrison Healey
6432a16fb2 GH-671 Fixed entire link being made lower case (#688) 2017-06-28 12:09:47 -04:00
Harrison Healey
22b71797ce RN-109 Added ability to add styles to adjacent paragraphs (#654)
* RN-109 Added ability to add styles to adjacent paragraphs

* Updated yarn.lock
2017-06-19 18:51:14 -04:00
Chris Duarte
94c8cb1ff7 Can now long press on markdown links (#648)
* Can now long press on markdown links

* Review feedback
2017-06-19 14:51:13 -04:00
Harrison Healey
44f6321336 RN-187 Fixed right margin for block quotes (#638) 2017-06-16 09:41:36 -04:00
Harrison Healey
2eaf7a4cf2 RN-143 Fixed links being case sensitive on Android (#627) 2017-06-14 10:31:50 -04:00
Harrison Healey
84fe4733bc RN-74 Added channel links (#620)
* Updated AtMention component to match web app

* RN-74 Added channel links

* Updated yarn.lock
2017-06-13 10:01:25 -04:00
Harrison Healey
55fa467da9 RN-8 Added emoji and emoticon support (#616)
* RN-8 Added emoji and emoticon support

* Updated yarn.lock
2017-06-12 12:04:18 -04:00