mattermost-mobile/app
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
..
actions MM-12901 Improve handling of hashtags on Recent Mentions, Flagged Posts, and Permalink screens (#2329) 2018-11-09 20:43:22 -03:00
components [#MM-12410] Custom Terms of Service (#2234) 2018-11-14 11:36:45 -03:00
constants Reorganize sidebar channel items via pref (#1928) 2018-11-09 13:06:21 -03:00
i18n Show local notification when replying to PN fails (#2142) 2018-09-21 00:58:21 +08:00
mattermost_bucket add eslint-plugin-header, and --fix all (#1726) 2018-06-19 19:14:50 -04:00
mattermost_managed MM-11477 Attempt to capture uncaught redux errors as Sentry breadcrumbs (#1974) 2018-08-07 10:32:04 -04:00
notification_preferences add eslint-plugin-header, and --fix all (#1726) 2018-06-19 19:14:50 -04:00
push_notifications Show local notification when replying to PN fails (#2142) 2018-09-21 00:58:21 +08:00
reducers Fix when message have multiple actions (#2331) 2018-11-09 18:38:58 -05:00
screens [#MM-12410] Custom Terms of Service (#2234) 2018-11-14 11:36:45 -03:00
selectors [MM-12550] Fix hangup on permalink view when user deleted the post in it (#2228) 2018-10-08 23:13:41 +08:00
store Slide up panel for reaction list (#2285) 2018-11-02 13:21:43 -03:00
styles add eslint-plugin-header, and --fix all (#1726) 2018-06-19 19:14:50 -04:00
utils Refactor CustomList to use Section and Flat Lists (#2332) 2018-11-13 18:16:57 -05:00
app.js do not wait for rehydration is credentials are false (#2312) 2018-11-05 15:25:35 -03:00
fetch_preconfig.js Fix prefetch (#2330) 2018-11-09 19:04:17 -03:00
initial_state.js Add deep linking support (#1805) 2018-07-31 08:43:54 -04:00
mattermost.js Hide warnings caused by React Native (#2202) 2018-10-02 09:23:22 -04:00