Commit graph

45 commits

Author SHA1 Message Date
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
Carlos Tadeu Panato Junior
b7eeea3808 [RN-112] Update the formatting of markdown block quotes (#538)
* RN-112 - Update the formatting of markdown block quotes

* update style definitions

* update per review
2017-05-29 09:56:00 -04:00
Harrison Healey
5f49c11497 RN-124 Improved text flow in markdown paragraphs and headers (#574) 2017-05-26 17:05:25 -04:00
enahum
844c654fda Update RN to 0.44.0 and project dependencies (#546) 2017-05-16 21:13:44 -04:00
Asaad Mahmood
9e90884fce Multiple UI improvements (#512)
* Multiple UI improvements

* RN-107 - Adding margin in more channels modal

* RN-108 - Updating center channel overlay
2017-04-30 13:32:26 -03:00
enahum
cdff304be1 RN-64 Ability to open the app in offline mode (#479) 2017-04-13 11:57:19 -03:00
Harrison Healey
43e4c5e2f2 PLT-5860 Updated copyright date (#476) 2017-04-10 11:33:35 -03:00
enahum
422474a0d2 * Fix markdown issue with renderHardBreak's (#438)
* Fix issue when tapping on a push notification
* Fix splash screen dismissal
2017-03-30 23:44:52 -03:00
Harrison Healey
d482ae184d Made HTML in posts render as plain text (#409) 2017-03-27 18:51:37 -03:00
enahum
23fa46fad6 Various UI fixes (#398)
* PLT-6001 Fix right margin on markdown lists

* PLT-6036 Fix post commented on spacing

* PLT-5902 Close keyboard when drawer opens
2017-03-26 22:23:09 -03:00
Harrison Healey
305929012f PLT-5494 Added at mention detection (#366) 2017-03-20 18:03:41 -03:00
Harrison Healey
07af08b74a PLT-5717 Initial markdown support (#354)
* Added CommonMark-based post rendering

* Fixed text wrapping in most block elements

* Fixed paragraphs not being rendered as children of lists

* Replaced markdown images with a placeholder

* Fixed font colour in code spans
2017-03-20 16:27:33 -03:00