51 Commits

Author SHA1 Message Date
Mirlan bdea28e42f [MM-12737] Migrate preference-related actions from user_actions.jsx to redux (#2320)
migrated settings and tutorial components, removed preference actions
2019-02-06 08:20:07 -03:00
Saturnino Abril cb1e3bbf9d fix JS warnings on props.restrictTeamInvite (#2316) 2019-02-01 17:13:54 +05:30
Joram Wilander 90a74314f8 Remove flux usages from email invite modal (#1954) 2018-11-02 13:45:34 -04:00
George Goldberg 538f41f4b8 MM-12815: Stop using permissions-deprecated config settings in web app (#1970)
* Remove RestrictTeamInvite.

* Do EnableOnlyAdminIntegrations

* Do EnableTeamCreation.

* Do AllowEditPost.

* Cleanup SelectTeam component use of permissions.
2018-10-31 08:41:08 +00:00
Joram Wilander 4a8210c185 Remove flux store usages from the tutorial (#1831) 2018-10-08 11:24:07 -04:00
Yusuke Nemoto 85912e3fc7 [MM-3736] Change HTML messages to Markdown style (#1576)
* Modify messages with <a> to markdown style

* Modify messages with <b> to markdown style

* Modify messages with <strong> to markdown style

* Modiry messages with <br> and <li> to markdown style

* Modify messages with many html tags to markdown style

* trailing spaces

* Remove unused messages with html tags

* Fix styles

* Fix rebase mistakes

* Remove unused message

* Update snapshots

* Fix test error

* Fix messages for search_bar

* Fix url for using subpath

* Fix relative path to getSiteURL
2018-09-05 21:09:47 +08:00
Jesse Hallam e76203baa0 add eslint-plugin-header, and --fix all (#1140)
* 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
2018-04-30 13:31:29 -04:00
Jesús Espino bab9af8137 replacing unicode character ’ with ascii character ' (#1049) 2018-04-06 17:40:19 -04:00
Jesse Hallam c3b1c2ff9b MM-9787: Transition [lr]hs open state to redux, fixing Safari race condition. (#991)
* move the [lr]hs open state into redux

This eliminates race conditions around toggling classes all over the
code base in an attempt to slide the various components around. It also
has the nice side effect of getting rid of doStrangeThings.

WebRTC remains in beta, and remains functional with these changes, but
the absolute minimum set of changes were made to integrate the old flux
store with the new state. This remains intentionally hacky, as the
medium-term vision is to rip this feature out and replace it as a
plugin.

* fix a rendering issue with PermalinkView

Now that opening the sidebar triggers a re-render (vs. just toggling
classes), the PermalinkView would incorrectly transition between valid
and invalid internal states even if the target permalink hadn't changed.
This resulted in a flashing when opening the sidebar, e.g. to view
flagged messages. This restricts the handling of a permalink event to
when the post id has actually changed.

* remove unused initTeamChangeActions in lhs actions
2018-03-27 09:49:57 -04:00
Jesse Hallam 27a5b77fb9 update eslint's comma-dangle rule to always-multiline. (#830)
* update eslint's `comma-dangle` rule to `always-multiline`

* Invoke `yarn fix` to adopt the updated eslint rules. No other changes are included.
2018-02-21 11:34:59 -05:00
Jesse Hallam 2e9baa6738 Remove mm_config and mm_license global state from webapp (PR #3) (#820)
* MM-8589: expunge global mm_config from navbar component

* MM-8589: expunge global mm_config from file_upload and related components

* MM-8589: expunge global mm_(config|license) from the tutorial component

* MM-8589: expunge global mm_config from channel view component

* MM-8589: expunge global mm_config from DoVerifyEmail component

* MM-8589: use the get(Config|License) selector

* MM-8589: expunge unnecessary ownProps
2018-02-16 06:00:29 -03:00
Jesse Hallam fb8979c52c ABC-216: fix tutorial progression (#716)
* ABC-216: fix tutorial progression

This change fixes a `===` comparison between a string an integer to
allow the second tutorial step to display. It also fixes the trigger
that increments the tutorial step to only fire on an explicit "next"
instead of twice on a click because of multiple registered event
handlers. This also means that the tutorial no longer advances on an
"escape", but requires being explicitly skipped or completed.

As part of the clean up, unify most handling of the tutorial step
preference constants.

* ABC-234: fix clicking on tutorial circles

The circles were effectively setting a screen state of `"1"` instead of
the expected `1`.

* ABC-216: switch to arrow functions
2018-02-06 14:59:46 -05:00
Christopher Speller 8e7709d9e0 Updating react-router to version 4. (#620) 2018-01-22 14:01:24 -08:00
Sudheer b6e1b36ae9 Change town-square strings to use constant (#558)
* Change town-square strings to use constant

* Fix rebase conflicts
2018-01-10 09:38:05 -05:00
Saturnino Abril cd62ffbb2a [webapp-perf] Change anonymous inline function into a defined arrow function (#484)
* change anonymous inline function into a defined arrow function

* add checks to refs before calling its function

* add check to hideHeaderOverlay
2018-01-09 11:40:49 +08:00
Saturnino Abril b004f464b9 update tutorial page (#304) 2017-11-16 01:44:10 +08:00
Christopher Speller d78d45d1ac Update client dependancies (#281)
* Updating most client dependancies

* Updating React
2017-11-13 09:31:37 -08:00
Christopher Brown bee85f245c Merge branch 'release-4.3' 2017-10-20 11:54:30 -05:00
Harrison Healey 282a6618c2 Fixed tutorial links 2017-10-16 17:04:35 -04:00
Asaad Mahmood 01bceb7eda PLT-6828 - Removing urls for links (#53)
* PLT-6828 - Removing urls for links

* Updating header sizes

* Fixing some conflicts

* Fixing minor issues with some links

* Pushing more fixes

* Updating dropdown items

* Updating span and divs to buttons
2017-10-16 18:55:15 +01:00
Saturnino Abril cc99e00d1d add tutorial page e2e test and cleanup initial patch (#148) 2017-10-11 15:42:31 -04:00
Saturnino Abril c41de179cd Reorganize imports and add eslint rules (#87)
* reorganize imports and add eslint rules

* rebase and fix conflicts
2017-10-06 01:50:05 +08:00
Chris d6f4821009 PLT-7579: fix broken css after tutorial (#28)
* fix broken css after tutorial

* eslint fixes
2017-09-12 15:16:32 -05:00
Corey Hulen 768b4ad2df Fixes issues with the tutorial (#6786)
* PLT-6907 Increased hit area for tutorial

* PLT-6907 Show the tutorial no matter what channel you're in

* Fixing eslint issue
2017-06-29 12:40:13 -07:00
Joram Wilander 8ab44b33db Move remaining actions over to use redux and v4 endpoints (#6720) 2017-06-26 08:16:57 -04:00