1. 08 Jan, 2019 1 commit
  2. 18 Dec, 2018 1 commit
  3. 23 Nov, 2018 1 commit
    • Chetanya Kandhari's avatar
      MM-12400: Custom terms of service feature: add Re-Acceptance interval settings... · 8e3dd95f
      Chetanya Kandhari authored
      MM-12400: Custom terms of service feature: add Re-Acceptance interval settings and remove header and footer (#1971)
      
      * MM-12400: Custom terms of service feature Phase 2
      - Remove Footer text and title
      - Add reacceptance interval setting in the Admin Console
      - Update names as used in the redux PR
      - Remove redux actions to use BindActionCreators
      - Update styles
      - Update tests
      - Update reacceptance flag
      
      * MM-12413 (#3)
      
      * Remove fixed footer
      * Finish footer CSS changes
      * MM-12411 Update help texts
      * MM-12415 Remove Beta Labels
      * Fix check-style
      
      * Update terms of service page background colors
      Add colons in Admin Console settings
      
      * MM-12414 Remove redux hack
      
      * Fix check-style
      
      * Update styles
      
      * Update tests
      
      * Fix css height
      
      * review feedback
      8e3dd95f
  4. 07 Nov, 2018 1 commit
    • Michael Kochell's avatar
      [MM-10569] Invite links won't work in mobile browser when the user is asked if... · 5f6f5d51
      Michael Kochell authored
      [MM-10569] Invite links won't work in mobile browser when the user is asked if they want to download the app (#1919)
      
      * fixes issue with first-time mobile viewers being indirected to sign up page incorrectly
      
      get components under test
      
      fix eslint error and update snapshots
      
      * change onclick to use redirect url param instead of history.goBack()
      5f6f5d51
  5. 01 Nov, 2018 1 commit
  6. 30 Oct, 2018 1 commit
  7. 26 Oct, 2018 2 commits
  8. 24 Oct, 2018 1 commit
  9. 17 Oct, 2018 1 commit
  10. 12 Oct, 2018 1 commit
  11. 09 Oct, 2018 1 commit
  12. 03 Oct, 2018 1 commit
    • Jesse Hallam's avatar
      MM-12447: stop tracking focus for session expiry (#1817) · f5100101
      Jesse Hallam authored
      Detecting focus after a page reload across various platforms proved to be unreliable. Better to show the notification even if focussed than miss showing it at all.
      
      This is accompanied by a bug fix to ensure non-user-actions don't dismiss the session expiration (such as multi-tab logout or the logged in component realizing the user was never logged in in the first place).
      f5100101
  13. 28 Sep, 2018 1 commit
    • Chetanya Kandhari's avatar
      MM-12130: Create a new page for displaying terms of service (#1735) · af50cec6
      Chetanya Kandhari authored
      * MM-12130: Create a new page for displaying terms of service
      
      - Replace the Back Button with a Logout Button
      
      - Add default props
      
      Update shouldComponentUpdate
      
      - Make Mattermost navigate to this page if user is already logged in has not accepted TOS and TOS is enabled
      
      - Make Mattermost navigate to this page after logging in if user has not accepted TOS and TOS is enabled
      
      - Add Loading screen and test cases.
      
      - Handle Redirect while opening routes, App Navigation and login flow
      
      - Added new config fields for service terms
      
      - made service terms text field disabled if custom terms are disabled
      
      - Integrate API request for Agree and Disagree Actions
      
      - Use the currently logged in user instead of sending userId.
      
      - Updated service terms messages to indicate that it is a beta feature
      
      - Add tests
      
      * Add action for new API call for getServiceTerms
      Update tests accordingly
      
      * Add test and fix check-style
      
      * Update terms of service link
      
      * Minor Fixes
      
      * - Sent boolean for registerUserAction instead of string
      - Update tests
      
      * Remove Redirect Action
      
      * hid custom service terms setting if feature is not enabled
      
      * Update admin_definition.jsx
      
      * Fix check-style
      
      * check CustomTermsOfService in license
      
      *     Minor Fixes
          - Do not update terms seen by user when config is updated
          - Update terms Help text
          - Do not stop loaders just before redirecting to another page
          - Footer buttons and text on terms_of_service page are aligned to bottom
          - Update tests accordingly
      
      * Remove terms of service redirect from login controller
      af50cec6
  14. 27 Sep, 2018 1 commit
    • Jesse Hallam's avatar
      MM-12205: notify on session expiration (#1751) · 2643115f
      Jesse Hallam authored
      * fix missing key on login controller
      
      * dispatch logout vs. using Client4 directly
      
      This allows the Redux store and associated listeners to respond to the
      event vs. discovering it as a side effect of other requests failing.
      
      * refactor notifications to allow for more options
      
      * MM-12205: detect session expiration
      
      When logging out, identify if the cause was a session expiration, and effectively redirect to /login?extra=expired, triggering controller behaviour there to display a notification (and tweak the document title).
      
      * don't re-emit the notification once shown
      
      * track focus/blur and (re-show) notification only when not focussed
      
      This doesn't work 100% with the desktop app, where an initial load
      doesn't trigger the onFocus. We can't assume it's already focussed,
      though, since that could suppress a notification. Compromises.
      
      * fix linting issues
      
      * login --> log in
      
      * once the notification has been shown, don't unshow it on blur
      
      * track was logged via local storage instead
      
      * fix focusing issues and notification dismissal
      
      * preserve extra=expired interface with desktop app
      
      * fix linting and unit tests
      
      * tweak dismiss styling
      
      * fix linting, snapshot errors
      2643115f
  15. 21 Sep, 2018 1 commit
  16. 08 Aug, 2018 3 commits
  17. 01 Aug, 2018 1 commit
  18. 23 Jul, 2018 2 commits
  19. 22 Jun, 2018 1 commit
    • Jesse Hallam's avatar
      MM-10368: react-router subpath (#1348) · e8e1219d
      Jesse Hallam authored
      * use Link in Textbox
      
      Introduce react-router-enzyme-context to enable unit testing of same
      with `mount` vs. `shallow`.
      
      * leverage browserHistory in SystemUsersDropdown
      
      Note that the demotion modal isn't actually being shown at present: the
      transition of self from system admin to regular member is done without
      confirmation after a partial refactor last year.
      
      * leverage browserHistory in Authorize
      
      * leverage Link in SignupController
      
      * leverage browserHistory in UserSettingsSecurity
      
      * extract base path from config's SiteURL on logout
      
      * move __webpack_public_path__ into entry.js
      
      This ensures that the other imports aren't hoisted above the definition.
      Additionally re-export the public path back onto window.publicPath to
      cover development environments.
      
      * rely on window.basename in autolinkChannelMentions
      
      While globals should generally be avoided, this is one of only two
      places where `window.basename` is used. Moving it into the store and
      rewriting the text rendering to pass down (or wrap) the necessary state
      may be premature, given the pre-existing need for this variable to be
      global.
      
      * update getSiteURL to respect subpath
      
      Additionally leverage getSiteURL over accessing window.* directly.
      
      * strip any trailing slash before appending the ws pathname
      
      * lint fixes
      
      * use window.location.originw when SiteURL not defined
      e8e1219d
  20. 04 Jun, 2018 1 commit
  21. 16 May, 2018 1 commit
  22. 04 May, 2018 1 commit
  23. 30 Apr, 2018 1 commit
    • Jesse Hallam's avatar
      add eslint-plugin-header, and --fix all (#1140) · e76203ba
      Jesse Hallam authored
      * add eslint-plugin-header, and --fix all
      
      While the checking feature of this plugin seems to work great, its --fix
      will sometimes removing leading comments when the license header doesn't
      match. I've hand-edited the over-zealous removals, so this won't be an
      issue going forward except for new files with missing headers but
      leading comments.
      
      * fixes from latest master changes
      
      * latest changes from master
      e76203ba
  24. 28 Feb, 2018 1 commit
    • Jesse Hallam's avatar
      Remove mm_config and mm_license global state from webapp, phase 2 (PR #2) (#863) · 78180eb6
      Jesse Hallam authored
      * MM-9635: expunge global mm_config from switch channel provider
      
      * MM-9635: expunge global mm_config from the root components, except for globally exporting it
      
      * MM-9635: fix incorrectly required customDescriptionText in email signup component
      
      * MM-9635: expunge global mm_config from various action files
      
      * MM-9635: deduplicate config/license code loading
      
      This preserves semantics, except for allowing a `loadCurrentLocale` even if config hasn't
      loaded, since this is safe.
      78180eb6
  25. 21 Feb, 2018 1 commit
  26. 20 Feb, 2018 1 commit
    • Andre Vasconcelos's avatar
      PLT-7783: Migrate create_team/* to be pure and use Redux (#814) · 8af06ad5
      Andre Vasconcelos authored
      * Migrating create_team/* to Redux & added tests
      
      * Fixing redux actions & their respective implementations
      
      * Migrating create_team/* to Redux & added tests
      
      * Fixing redux actions & their respective implementations
      
      * Removing unnecessary index, adding new test (+4 squashed commits)
      Squashed commits:
      [281d56b] Fixing redux actions & their respective implementations
      [5f7cf89] Migrating create_team/* to Redux & added tests
      [9e3c885] Fixing redux actions & their respective implementations
      [f867af7] Migrating create_team/* to Redux & added tests
      
      Fixing redux actions & their respective implementations
      
      Fixing redux actions & their respective implementations
      
      Removing unnecessary index, adding new test
      
      * Sort conflicts & make team_url a pure component
      
      * Incorporating changes made in PR #822
      
      Making sure changes in [earlier commit](https://github.com/mattermost/mattermost-webapp/pull/822) are incorporated in this PR. Adjusted tests accordingly
      
      * Fixing style error
      
      removing unused import
      
      * binding handleFocus function, adding comments to propTypes
      
      * Removing global configs from tests, changing updateParent unit test
      8af06ad5
  27. 16 Feb, 2018 3 commits
    • Jesse Hallam's avatar
      Remove mm_config and mm_license global state from webapp (PR #7) (#828) · 0c1a5ca4
      Jesse Hallam authored
      * MM-8589: user_settings: switch bind to arrow functions
      
      * MM-8589: expunge global mm_(config|license) from user_settings components
      
      This also cleans up the `user_settings` directory structure, connecting
      various components to the store to access the configuration.
      
      * MM-8589: expunge global mm_config from sign up components
      
      * MM-8589: expunge global mm_config from webrtc component
      
      * MM-8589: expunge global mm_config from rhs root post component
      
      * MM-8589: expunge global mm_config from create post component
      
      * MM-8589: expunge global mm_config from get android app componen
      
      * MM-8589: expunge global mm_config from rhs comment component
      
      * MM-8589: expunge global mm_config from channel header component
      
      * MM-8589: expunge global mm_config from view image popover bar component
      
      * MM-8589: use the get(Config|License) selector
      
      * MM-8589: expunge unnecessary ownProps
      0c1a5ca4
    • Jesse Hallam's avatar
      Remove mm_config and mm_license global state from webapp (PR #1) (#816) · 014da091
      Jesse Hallam authored
      * MM-8589: change i18n/getLanguages to use store
      
      This also removes the caching of the available languages data structure,
      as it obviously needs to be able to change. It's not on a frequently
      used code path so the caching appears to (at least now) be unnecessary.
      
      * MM-8589: eliminate UserStore.getNoAccounts()
      
      No changes to the use of global variables here. Rather, I'm just pushing
      down an indirect use of same.
      
      * MM-8589: expunge global mm_(config|license) from claim components
      
      This also eliminates `LdapPasswordFieldName` as the server-side
      configuration does not exist.
      
      * MM-8589: clarify props passed to claim components
      
      * MM-8589: expunge unnecessary ownProps
      
      * MM-8589: use the get(Config|License) selector
      014da091
    • Jesse Hallam's avatar
      Remove mm_config and mm_license global state from webapp (PR #5) (#822) · d15a39b5
      Jesse Hallam authored
      * MM-8589: expunge global mm_config from sidebar right menu component
      
      * MM-8589: expunge global mm_config from search results component
      
      * MM-8589: expunge global mm_config from create team component
      
      * MM-8589: expunge global mm_config from sidebar components
      
      * MM-8589: expunge global mm_config from create comment component
      
      * MM-8589: expunge global mm_config from get ios app component
      
      * MM-8589: expunge global mm_config from sidebar component friends
      
      * MM-8589: expunge unnecessary ownProps
      
      * MM-8589: use the get(Config|License) selector
      d15a39b5
  28. 12 Feb, 2018 1 commit
  29. 08 Feb, 2018 1 commit
  30. 02 Feb, 2018 1 commit
  31. 01 Feb, 2018 1 commit
  32. 31 Jan, 2018 1 commit
  33. 26 Jan, 2018 1 commit
  34. 22 Jan, 2018 1 commit