mattermost-mobile/app/components
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
..
announcement_banner Update unit test: use default theme, snapshot on wrapped elements and removal of unnecessary adapter (#2171) 2018-10-01 15:11:00 +08:00
at_mention MM-11968 Fix uppercase at mentions (#2082) 2018-09-06 14:46:23 -03:00
autocomplete MM-12952 Avoid iOS autocorrect from overriding autocomplete values (#2335) 2018-11-13 19:46:31 -03:00
channel_intro Add t() translation mark to i18nable strings and update translations (#2026) 2018-09-21 11:25:38 -03:00
channel_link refactor ChannelLink and add test into it (#2280) 2018-10-19 08:59:33 -03:00
channel_loader Sidebars improvement (#1787) 2018-06-26 01:17:53 +05:30
client_upgrade_listener Slide up panel for reaction list (#2285) 2018-11-02 13:21:43 -03:00
combined_system_message Add t() translation mark to i18nable strings and update translations (#2026) 2018-09-21 11:25:38 -03:00
custom_list Refactor CustomList to use Section and Flat Lists (#2332) 2018-11-13 18:16:57 -05:00
edit_channel_info Refactor CustomList to use Section and Flat Lists (#2332) 2018-11-13 18:16:57 -05:00
emoji Set the file prefix in image_cache_manager (#2313) 2018-11-05 15:24:30 -03:00
emoji_picker Slide up panel for reaction list (#2285) 2018-11-02 13:21:43 -03:00
error_list add eslint-plugin-header, and --fix all (#1726) 2018-06-19 19:14:50 -04:00
error_text MM-12301 Add padding for error text on edit profile screen (#2214) 2018-10-03 15:06:42 -03:00
failed_network_action Add t() translation mark to i18nable strings and update translations (#2026) 2018-09-21 11:25:38 -03:00
file_attachment_list Fix Android image preview (#2323) 2018-11-09 16:20:08 -05:00
file_upload_preview Properly handle max file size (#2248) 2018-10-11 14:11:05 -03:00
layout/keyboard_layout MM-12424 Remove unused props from KeyboardLayout and simplify methods (#2203) 2018-10-02 17:12:21 -04:00
load_more_posts Add t() translation mark to i18nable strings and update translations (#2026) 2018-09-21 11:25:38 -03:00
markdown [#MM-12410] Custom Terms of Service (#2234) 2018-11-14 11:36:45 -03:00
message_attachments Fix when message have multiple actions (#2331) 2018-11-09 18:38:58 -05:00
offline_indicator Slide up panel for reaction list (#2285) 2018-11-02 13:21:43 -03:00
options_context Fix post background color from getting stuck (#2126) 2018-09-15 19:27:49 -03:00
post Add t() translation mark to i18nable strings and update translations (#2026) 2018-09-21 11:25:38 -03:00
post_add_channel_member Add t() translation mark to i18nable strings and update translations (#2026) 2018-09-21 11:25:38 -03:00
post_attachment_opengraph Set the file prefix in image_cache_manager (#2313) 2018-11-05 15:24:30 -03:00
post_body Do not show the option to copy post if there is no text (#2240) 2018-10-10 08:43:49 -03:00
post_body_additional_content Set the file prefix in image_cache_manager (#2313) 2018-11-05 15:24:30 -03:00
post_header Fix Posts cutoff (#2071) 2018-09-04 11:53:15 -03:00
post_list MM-12901 Improve handling of hashtags on Recent Mentions, Flagged Posts, and Permalink screens (#2329) 2018-11-09 20:43:22 -03:00
post_profile_picture Auto responder feature (#1500) 2018-06-22 13:09:37 -04:00
post_textbox Properly handle max file size (#2248) 2018-10-11 14:11:05 -03:00
profile_picture Make profile camera icon use theme.centerChannelBg for background (#2035) 2018-08-27 17:52:37 -04:00
progressive_image Set the file prefix in image_cache_manager (#2313) 2018-11-05 15:24:30 -03:00
radio_button Add t() translation mark to i18nable strings and update translations (#2026) 2018-09-21 11:25:38 -03:00
reactions Slide up panel for reaction list (#2285) 2018-11-02 13:21:43 -03:00
refresh_list add eslint-plugin-header, and --fix all (#1726) 2018-06-19 19:14:50 -04:00
retry_bar_indicator add eslint-plugin-header, and --fix all (#1726) 2018-06-19 19:14:50 -04:00
root MM-11603 Add a retry screen when fetching teams fails (#2085) 2018-09-06 20:35:50 -03:00
safe_area_view Slide up panel for reaction list (#2285) 2018-11-02 13:21:43 -03:00
search_bar Update RN to version 0.57.0 (#2131) 2018-09-20 19:05:41 -03:00
show_more_button Update unit test: use default theme, snapshot on wrapped elements and removal of unnecessary adapter (#2171) 2018-10-01 15:11:00 +08:00
sidebars Reorganize sidebar channel items via pref (#1928) 2018-11-09 13:06:21 -03:00
slide_up_panel Slide up panel for reaction list (#2285) 2018-11-02 13:21:43 -03:00
start Slide up panel for reaction list (#2285) 2018-11-02 13:21:43 -03:00
status_bar add eslint-plugin-header, and --fix all (#1726) 2018-06-19 19:14:50 -04:00
status_icons add eslint-plugin-header, and --fix all (#1726) 2018-06-19 19:14:50 -04:00
team_icon Set the file prefix in image_cache_manager (#2313) 2018-11-05 15:24:30 -03:00
user_status add opacity of 0.3 to circle stroke of offline status (#2233) 2018-10-09 20:46:49 +08:00
app_icon.js add eslint-plugin-header, and --fix all (#1726) 2018-06-19 19:14:50 -04:00
attachment_button.js Capture video in high quality (#2287) 2018-10-27 00:49:04 -03:00
badge.js add eslint-plugin-header, and --fix all (#1726) 2018-06-19 19:14:50 -04:00
button.js add eslint-plugin-header, and --fix all (#1726) 2018-06-19 19:14:50 -04:00
channel_icon.js MM-12491 Fix archive channels staying in LHS (#2253) 2018-10-11 23:12:17 +05:30
checkmark.js add eslint-plugin-header, and --fix all (#1726) 2018-06-19 19:14:50 -04:00
conditional_touchable.js add eslint-plugin-header, and --fix all (#1726) 2018-06-19 19:14:50 -04:00
deleted_post.js add eslint-plugin-header, and --fix all (#1726) 2018-06-19 19:14:50 -04:00
flag_icon.js add eslint-plugin-header, and --fix all (#1726) 2018-06-19 19:14:50 -04:00
formatted_date.js add eslint-plugin-header, and --fix all (#1726) 2018-06-19 19:14:50 -04:00
formatted_markdown_text.js [MM-11274 & MM-10797] Add profile pop-up to combined system messages and fix it's translation issue (#1926) 2018-07-20 03:53:23 -04:00
formatted_text.js fix warnings in running jest test (#2087) 2018-09-07 23:05:35 +08:00
formatted_time.js Fix Android timestamp when timezone is not enabled (#1982) 2018-08-08 14:24:26 -04:00
loading.js add eslint-plugin-header, and --fix all (#1726) 2018-06-19 19:14:50 -04:00
no_results.js add eslint-plugin-header, and --fix all (#1726) 2018-06-19 19:14:50 -04:00
paper_plane.js add eslint-plugin-header, and --fix all (#1726) 2018-06-19 19:14:50 -04:00
post_list_retry.js add eslint-plugin-header, and --fix all (#1726) 2018-06-19 19:14:50 -04:00
post_separator.js add eslint-plugin-header, and --fix all (#1726) 2018-06-19 19:14:50 -04:00
remove_markdown.js MM-10012 Added Markdown rendering to expanded announcement banner (#1861) 2018-07-04 13:15:03 -04:00
reply_icon.js add eslint-plugin-header, and --fix all (#1726) 2018-06-19 19:14:50 -04:00
swiper.js Prevent drawer from swiping to teams when jump to channel is focused (#1902) 2018-07-09 18:32:48 -04:00
text_input_with_localized_placeholder.js Update RN to version 0.57.0 (#2131) 2018-09-20 19:05:41 -03:00
tooltip.js MM-10717: Update longpress buttons when add reaction, edit post, or d… (#1779) 2018-06-21 08:43:17 -04:00
vector_icon.js add eslint-plugin-header, and --fix all (#1726) 2018-06-19 19:14:50 -04:00
video_controls.js add eslint-plugin-header, and --fix all (#1726) 2018-06-19 19:14:50 -04:00