Commit graph

78 commits

Author SHA1 Message Date
Saturnino Abril
f88c2e2a00
[MM-13295] Make channel link clickable for user who's not member of the public channel (#2466)
* Make channel link clickable for user who's not member of the public channel

* update per review

* update per comment

* remove setChannelDisplayName
2019-02-20 01:45:04 +08:00
Chris Duarte
ffe6b9e2ef Deep linking based on channel url; Fix merge conflicts (#2542)
Code cleanup
2019-02-14 13:29:57 -05:00
Dean Whillier
7eb434b256 [MM 13934] Prevent blank mention keys from crashing the app (#2570)
* don’t match blank word boundaries

* test for blank mention keys

* Check for blank mention before looking for match

* account for multiple spaces as a blank mention
2019-02-13 15:05:52 -08:00
Elias Nahum
3db8604102 Add support for relative permalinks (#2555) 2019-02-08 22:54:26 +08:00
Harrison Healey
ff51501b0c
MM-11232 Fix table column width to better support wide tables (#2467)
* MM-11232 Fix table column width to better support wide tables

* Fix horizontal scrolling on Android
2019-01-07 13:53:04 -05:00
Elias Nahum
19f261a768
Fix copy markdown link (#2449) 2018-12-12 09:36:06 -03:00
Elias Nahum
736a955be8
Use post metadata to prevent scroll pop (#2304)
* Use post metadata to prevent scroll pop

* Fix not to fetch for reactions every time

* Update post-metadata mm-redux ref

* Update mattermost-redux to include post-metadata
2018-11-22 19:47:27 -03:00
Saturnino Abril
d8abeabd70 [MM-12353] Add feature to render jumbo emoji and unwrapped Emoji component with Text when rendering message containing emoji/s only (#2356)
* add feature to render jumbo emoji/s

* fix bottom clipping of emoji on Android

* updated per feedback
2018-11-22 11:56:27 -05:00
Elias Nahum
68a3825d95
Update dependencies (#2316) 2018-11-18 17:54:06 -03:00
Elias Nahum
ae629a455c
Update UX for post long press menu (#2325)
* Update UX for post long press menu

* Post menu feedback review
2018-11-14 17:29:09 -03:00
Chetanya Kandhari
68eff30eda [#MM-12410] Custom Terms of Service (#2234)
* [#MM-12410] Custom Terms of Service Modal.

- Create a new screen for terms of service
- Register it in app navigation
- Open it as a modal when login succeeds or app is opened when already logged in.
- Get terms of service and render it as markdown

* Refactor service terms to terms of service

* Show terms modal when launching channel instead of componentDidMount

* Remove footer text

* Close modal before logging out

* Use dismissAllModals instead od this.close

* Update header styles

* Update the back icon

* Add left icon conditinally based on os

* Update en.json

* - Integrate Accept/Reject API
- Refactor show navigator to util
- Remove title
- Code refactoring

* Handle Accept/Reject API errors

* Update package-lock

* - Show Alert to handle API error
- Handle API error for GetTerms error, Accept/Reject error and Reject success
- Changes in en.json
- Remove error banner
- Open terms modal in sso and experimental certificate

* Enable navigator buttons after getting terms

* Rename Ok to OK in Alert

* Add retry for API error

* Fix check-style

* Fix FailedNetworkAction Error Message

* - Use Close button instead of back button
- Update en.json

* Remove unused import

* Disable hashtags and atmentions in terms modal

* Enable close button when terms text fails to load

* Minor changes

* Fix show terms on sso login

* Handle restartApp event

* Add test cases

* Revert change to app/components/formatted_markdown_text.js

* Show the terms modal on the channel page

* Remove remaining references to showTermsOfService

* Disable Hashtags, AtMentions and ChannelLinks

* Update the props to markdown component

* Pass the text as literal to renderText

* Return the generated renderTexts

* Fix lint

* Render ~, #, @ with Channel link, Hashtags and At Mentions

* Fix failing tests
Revert unwanted changes

* Hide the channel page content before the terms are accepted

* Fix lint and failing tests

* Revert changes to hide channel while terms are not accepted

* Open modal in componentDidMount instead of constructor
Code refactoring
Disable back button on android

* Remove unused import

* No need to await for showModal

* No need to await for accept and reject

* Update flag for updateTermsOfServiceStatus to updateMyTermsOfServiceStatus
- as phase 2 redux PR was mered.

* Fix check-style

* Change opacity in terms of service text

- Fix tests

* Revert package-lock.json changes
2018-11-14 11:36:45 -03:00
Harrison Healey
9727476ef6 MM-12901 Improve handling of hashtags on Recent Mentions, Flagged Posts, and Permalink screens (#2329)
* MM-12901 Create showSearchModal action and use for hashtags

* MM-12901 Improve handling of hashtags on Recent Mentions, Flagged Posts, and Permalink screens
2018-11-09 20:43:22 -03:00
Elias Nahum
e25a1939fc
Set the file prefix in image_cache_manager (#2313) 2018-11-05 15:24:30 -03:00
Harrison Healey
a042cd043e
MM-12880 Properly link the next sibling following a combined text node (#2307) 2018-11-05 10:23:27 -05:00
Harrison Healey
78e5b99884
MM-5957 Add mention highlighting on mobile (#2277)
* Switch pullOutImages to use a NodeWalker

* Add markdown transformer to combine adjacent text nodes

* MM-5957 Add mention highlighting on mobile
2018-10-18 14:12:25 -04:00
Saturnino Abril
dd506d4c9f
fix issue that blocks adding test for thread screen (#2221) 2018-10-05 14:46:21 +08:00
Christopher Speller
cd38d8690f Switching broken image error text to icon. (#2156) 2018-09-28 10:28:40 +08:00
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