mattermost-mobile/app/screens
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
..
about Fix About dialog layout (#1985) 2018-08-09 08:32:47 -04:00
add_reaction add eslint-plugin-header, and --fix all (#1726) 2018-06-19 19:14:50 -04:00
channel [#MM-12410] Custom Terms of Service (#2234) 2018-11-14 11:36:45 -03:00
channel_add_members Refactor CustomList to use Section and Flat Lists (#2332) 2018-11-13 18:16:57 -05:00
channel_info MM-12901 Improve handling of hashtags on Recent Mentions, Flagged Posts, and Permalink screens (#2329) 2018-11-09 20:43:22 -03:00
channel_members Refactor CustomList to use Section and Flat Lists (#2332) 2018-11-13 18:16:57 -05:00
channel_peek Use defaultProps to ensure postIds prop exists for ChannelPeek (#2159) 2018-09-25 11:47:28 -03:00
client_upgrade Slide up panel for reaction list (#2285) 2018-11-02 13:21:43 -03:00
clock_display Add t() translation mark to i18nable strings and update translations (#2026) 2018-09-21 11:25:38 -03:00
code Sidebars improvement (#1787) 2018-06-26 01:17:53 +05:30
create_channel Refactor CustomList to use Section and Flat Lists (#2332) 2018-11-13 18:16:57 -05:00
edit_channel Add t() translation mark to i18nable strings and update translations (#2026) 2018-09-21 11:25:38 -03:00
edit_post Add t() translation mark to i18nable strings and update translations (#2026) 2018-09-21 11:25:38 -03:00
edit_profile MM-12301 Add padding for error text on edit profile screen (#2214) 2018-10-03 15:06:42 -03:00
entry remove backgroundColor from styles.video of Android share extension that's causing app to crash (#2119) 2018-09-14 09:10:10 -03:00
error_teams_list [#MM-12410] Custom Terms of Service (#2234) 2018-11-14 11:36:45 -03:00
expanded_announcement_banner Add t() translation mark to i18nable strings and update translations (#2026) 2018-09-21 11:25:38 -03:00
flagged_posts MM-12901 Improve handling of hashtags on Recent Mentions, Flagged Posts, and Permalink screens (#2329) 2018-11-09 20:43:22 -03:00
forgot_password MM-12258 Update snapshots to only compare against the elements and not the bloated objects (#2140) 2018-09-21 16:07:37 +08:00
image_preview MM-12923 Fix Downloading message on cancelling downloads (#2337) 2018-11-14 08:23:35 -03:00
login Missing translations on login screen (#2227) 2018-10-08 12:26:12 -03:00
login_options Fixed warnings on login screen (#1949) 2018-07-28 14:25:27 +08:00
long_post MM-10273 Add hashtag support (#2106) 2018-09-17 17:17:20 -03:00
menu_action_selector Refactor CustomList to use Section and Flat Lists (#2332) 2018-11-13 18:16:57 -05:00
mfa Fix KeyboardAvoidView for android (#2226) 2018-10-09 11:54:31 -03:00
more_channels Refactor CustomList to use Section and Flat Lists (#2332) 2018-11-13 18:16:57 -05:00
more_dms Refactor CustomList to use Section and Flat Lists (#2332) 2018-11-13 18:16:57 -05:00
notification MM-10717: Update longpress buttons when add reaction, edit post, or d… (#1779) 2018-06-21 08:43:17 -04:00
options_modal Reorganize sidebar channel items via pref (#1928) 2018-11-09 13:06:21 -03:00
permalink [#MM-12410] Custom Terms of Service (#2234) 2018-11-14 11:36:45 -03:00
reaction_list Fix reaction list header item border (#2317) 2018-11-05 11:23:58 -03:00
recent_mentions MM-12901 Improve handling of hashtags on Recent Mentions, Flagged Posts, and Permalink screens (#2329) 2018-11-09 20:43:22 -03:00
root add eslint-plugin-header, and --fix all (#1726) 2018-06-19 19:14:50 -04:00
search Fix regression when scrolling in search screen (#2339) 2018-11-14 10:51:29 -03:00
select_server Slide up panel for reaction list (#2285) 2018-11-02 13:21:43 -03:00
select_team [#MM-12410] Custom Terms of Service (#2234) 2018-11-14 11:36:45 -03:00
settings Fix update keywords field on Android (#2229) 2018-10-09 11:56:35 -03:00
sso Hook the onMessage event only when needed (#2271) 2018-10-18 12:11:48 -03:00
table add eslint-plugin-header, and --fix all (#1726) 2018-06-19 19:14:50 -04:00
table_image add eslint-plugin-header, and --fix all (#1726) 2018-06-19 19:14:50 -04:00
terms_of_service [#MM-12410] Custom Terms of Service (#2234) 2018-11-14 11:36:45 -03:00
text_preview add eslint-plugin-header, and --fix all (#1726) 2018-06-19 19:14:50 -04:00
thread [#MM-12410] Custom Terms of Service (#2234) 2018-11-14 11:36:45 -03:00
timezone add protection (emoty object) when accessing id after declaring an object. (#1970) 2018-08-07 08:11:50 -04:00
user_profile [#MM-12410] Custom Terms of Service (#2234) 2018-11-14 11:36:45 -03:00
index.js [#MM-12410] Custom Terms of Service (#2234) 2018-11-14 11:36:45 -03:00