Commit Graph

113 Commits

Author SHA1 Message Date
Stuart Taylor
3131c55782 feat(Profile): Reactify profile page (#16743)
* feat(Profile): Reactify profile page

* chore(tidyup): Remove console.log

* fix(timeline): Remove legacy challenges from Timeline render

* fix(style): Remove underline on a:hover
2018-02-19 14:32:14 -06:00
Stuart Taylor
24ef69cf7a feat(settings): Expand Settings page functionality (#16664)
* fix(layout): Fix Settings layout in firefox

* chore(availableForHire): Remove available for hire setting

* feat(helpers): Use helper components for Settings layout

* fix(map): Fix undefined lang requested

* feat(settings): Expand Settings page functionality

* chore(pledge): Remove pledge from Settings

* fix(about): Adjust AboutSettings layout

* fix(portfolio): Improve PortfolioSettings layout

* fix(email): Improve EmailSettings layout

* fix(settings): Align save buttons with form fields

* fix(AHP): Format AHP

* fix(DangerZone): Adjust DangerZone layout

* fix(projectSettings): Change Button Copy

* fix(CertSettings): Fix certificate claim logic

* chore(lint): Lint
2018-02-16 17:18:53 -06:00
Berkeley Martinez
ae3ccdd672 fix(user/settings): Add theme server validations 2018-01-30 17:14:33 -08:00
Berkeley Martinez
2bb27e8dc6 feat(Flash): Get flash messages on load 2018-01-18 15:20:54 -08:00
Berkeley Martinez
0af881a177 feat(User): Add remove getMessages method
We'll use this api to get flash messages on the front end up
2018-01-18 15:20:54 -08:00
Berkeley Martinez
296387d67e fix(User): Move login logic into user model 2018-01-02 23:38:01 +05:30
Berkeley Martinez
c5420229e4 fix(User.confirm): Overwrite confirm w/ custom method
Reduce db calls, implement old logic
2018-01-02 23:38:01 +05:30
Berkeley Martinez
07f30427cb feat(User/Auth): Use stand alone auth token 2018-01-02 23:38:01 +05:30
Berkeley Martinez
bf196d37ff fix(User): Add isSignUp logic
emailVerfied field no longer indicates a new user.
2018-01-02 23:38:01 +05:30
Berkeley Martinez
e60ff3775b fix(User): Unify old remove save hook with before save
Since we are no longer using remote api to create accounts those hooks
are useless. Unifying them will ensure they apply to all
save/update/creates
2018-01-02 23:38:01 +05:30
Berkeley Martinez
5ea434c429 fix(User): Email is off the constructor 2018-01-02 23:38:01 +05:30
Berkeley Martinez
0682ef33db fix(User.requestAuthEmail): Conditionally check for email availibility
Only check if email is available if it is not already associated with
this account
2018-01-02 23:38:01 +05:30
Berkeley Martinez
60e2baf307 feat(User): Refactor wait period logic 2018-01-02 23:38:01 +05:30
Berkeley Martinez
b6f621fee3 fix(User.updateEmail): Reduce code logic. defer promises 2018-01-02 23:38:01 +05:30
Berkeley Martinez
750c9f1eab fix(passwordless): Reduce db calls, run in parallel
Adds validations, reduces the number of database calls, separates
concers. reduces logic
2018-01-02 23:38:01 +05:30
Berkeley Martinez
44c2eb65d5 refactor(User): Make requestAuthEmail into instance method 2018-01-02 23:38:01 +05:30
Berkeley Martinez
412fddd065 fix(models/User): Remove dup before create 2018-01-02 23:38:01 +05:30
Berkeley Martinez
2e410330f1 Feat(Challenges): no js preview (#16149)
* fix(files): Decouple files from challenges

* feat(server/react): Remove action logger

use redux remote devtools instead!

* feat(Challenges): Disable js on edit, enable on execute

* feat(Challenge/Preview): Show message when js is disabled

* refactor(frameEpic): Reduce code by using lodash

* feat(frameEpic): Disable js in preview by state

* feat(frameEpic): Colocate epic in Challenges/redux

* refactor(ExecuteChallengeEpic): CoLocated with Challenges

* refactor(executeChallengesEpic): Separate tests from main logic

* feat(Challenge/Preview): Update main on edit

* feat(frameEpuc): Replace frame on edit/execute

This allows for sandbox to work properly

* fix(Challenges/Utils): Require utisl

* revert(frameEpic): Hoist function to mount code in frame

* fix(frameEpic): Ensure new frame is given classname

* feat(executeChallenge): Update main on code unlocked

* fix(frameEpic): Filter out empty test message

* fix(Challenge/Preview): Remove unnessary quote in classname

* feat(codeStorageEpic): Separate localstorage from solutions loading

* fix(fetchUser): Merge user actions into one

prefer many effects from one action over one action to one effect

* fix(themes): Centralize theme utils and defs

* fix(entities.user): Fix user reducer namespacing

* feat(frame): Refactor frameEpic to util

* feat(Challenges.redux): Should not attempt to update main from storage

* fix(loadPreviousChallengeEpic): Refactor for RFR

* fix(Challenges.Modern): Show preview plane
2017-12-07 18:13:19 -06:00
Mrugesh Mohapatra
885d5916c0 fix: Update email action should hit API 2017-12-07 00:00:02 +05:30
Mrugesh Mohapatra
af43360027 fix(auth): Add keyword in email support for passwordless 2017-11-29 23:11:24 +05:30
Berkeley Martinez
69fa4b3098 Merge pull request #15892 from raisedadead/feat/lb3-upgrade
feat(LoopBack): Upgrade to LoopBack 3
2017-11-27 13:33:01 -08:00
Mrugesh Mohapatra
187dbdfc92 fix(models): Update remote method definitions 2017-11-16 11:34:50 +05:30
Mrugesh Mohapatra
e652ad934a fix: Email should be switched before confirm 2017-11-01 01:43:22 +05:30
Mrugesh Mohapatra
5e61fd53d1 fix(user): Add update new-email placeholder property 2017-10-28 00:24:27 +05:30
Mrugesh Mohapatra
9ccfe4f72c refactor: Update methods to sensible names 2017-10-28 00:24:27 +05:30
Mrugesh Mohapatra
2a3703b95a fix(user): Add LoopBack email validation once again
Earlier we did not need emails for everyone, this is not the case
anymore. We now require emails, and all other auth mechanisms are
now deprecated for new users.
2017-10-28 00:24:27 +05:30
Mrugesh Mohapatra
fe059c224e fix(User): Naming convention updates 2017-10-28 00:24:26 +05:30
Mrugesh Mohapatra
d77e9fd411 fix(user): Remove remote method on user create 2017-09-17 15:27:45 +05:30
Mrugesh Mohapatra
5e86b25a69 fix(auth): Remove reset password endpoint 2017-09-17 14:54:48 +05:30
Mrugesh Mohapatra
ab93109828 fix(auth): Fix merge errors from rebase 2017-09-01 17:32:58 -07:00
Mrugesh Mohapatra
2321f7b326 feat(server): Add URL utils to compute server URL, HOST, PORT, etc. 2017-09-01 17:32:20 -07:00
Mrugesh Mohapatra
d313ab68e4 fix(email): Error messages for updateEmail API 2017-09-01 17:23:40 -07:00
Mrugesh Mohapatra
3f332fc1f0 fix: Add error handling and refactoring of Observable methods 2017-09-01 17:21:02 -07:00
Mrugesh Mohapatra
a426ff7ef9 fix(email): allow sender email var for development
Allows setting the SES_ID, SES_SECRET and EMAIL_SENDER values
2017-09-01 17:21:02 -07:00
Mrugesh Mohapatra
0ce30409c0 refactor(code): cleanup and rebase 2017-09-01 17:21:02 -07:00
Mrugesh Mohapatra
5c56a1e78c Update email views and notifications 2017-09-01 17:15:26 -07:00
Mrugesh Mohapatra
f3804bb553 chore(passwordless): Update to freeCodeCamp 2017-09-01 17:15:26 -07:00
Mrugesh Mohapatra
b32e2102ac Remove reset-password logic 2017-09-01 17:15:26 -07:00
Mrugesh Mohapatra
239313cb0b Remove sign up page and update button styles 2017-09-01 17:15:26 -07:00
Mrugesh Mohapatra
fd442c55bb Remove error catch and use update method 2017-09-01 17:15:26 -07:00
Mrugesh Mohapatra
26c1389c3a Donot render per request email 2017-09-01 17:15:26 -07:00
Mrugesh Mohapatra
19e5ff537e Fix indenting and remove isDev from wait time. 2017-09-01 17:15:26 -07:00
Mrugesh Mohapatra
e006f5c97d Optimize code and streamline flow.
- Optimize code and streamline flow.
- Add return statements for error display.
- Invalidate status vars and TTLs on User Model.
- Build Observable for findOrCreate
2017-09-01 17:15:26 -07:00
Mrugesh Mohapatra
f8c818e7e7 Implement passwordless login
* Created a new rest API to create and save a temporary token that
  can be exchanged for a access token.
* Updated the sign in view
* Add email template for sign in links
* Add route to request a access token and login user
* Make the email views conistent
2017-09-01 17:14:43 -07:00
Timo
dcfe18d5d5 refactor: Replace .com with .org 2017-08-26 00:07:44 +02:00
Berkeley Martinez
2fcd976700 fix(signup): signup auth (#15628)
* fix(models.user): Colocate all user methods

Moved user methods/extensions into one file. Tracked down `next method
called more than once` error and setting headers after their sent. Let
regular error handler handle api errors as well.

* feat(server.auth): Disable github account creation

We are no longer allowing account creation through github

* refactor(Auth): Move user identity link into models dir

* feat(Disable link account login): This removes the ability to use a linked account t

* feat(errorhandlers): Add opbeat, filter out handled error
2017-07-14 00:09:07 +05:30
Mrugesh Mohapatra
566de3e3f2 fix: Update config to be flexible for host 2017-03-20 12:13:27 +00:00
Peter Weinberg
3ed485b14a chore(common): updated common to freeCodeCamp 2017-01-14 19:49:01 -05:00
Dylan
79a8c412f1 change node-uuid to uuid 2016-12-30 16:47:09 -06:00
Berkeley Martinez
94c4c846e9 Feature(theme): add nightmode react logic
We wait to load the user before applying the theme
as we will begin aggressively caching most of the react
app routes. This means we can not depend on user data to
determine.
2016-08-06 07:24:10 -07:00