Commit Graph

602 Commits

Author SHA1 Message Date
Stuart Taylor
2143063084 feat(map-service): Refactor out the map service 2018-02-23 17:13:59 +00:00
Stuart Taylor
a7587ed6f0 feat(challenge): Initial build of the challenge service 2018-02-23 17:13:02 +00:00
Stuart Taylor
1d420b835c feat(mapUi): Create mapUi specific service 2018-02-23 17:12:45 +00:00
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
Stuart Taylor
59999f9b09 fix(typo): Fix defaultState Typo (#16702) 2018-02-13 20:18:29 +05:30
Berkeley Martinez
660f78896d fix(settings/updateEmail): Show message from server 2018-01-30 17:14:33 -08:00
Berkeley Martinez
1ee9d9259c feat(Flash): Normalize flash types with object
help prevent typo errors
2018-01-30 17:14:33 -08:00
Berkeley Martinez
ae3ccdd672 fix(user/settings): Add theme server validations 2018-01-30 17:14:33 -08:00
Berkeley Martinez
ffbf3bc826 fix(updateMyCurrentChallenge): Bad mongo id will return user error
Mark these errors to be reported to the user instead of logged as a
server fault
2018-01-30 17:14:33 -08:00
Berkeley Martinez
1dcdf4e17c fix(AuthToken): Namespace observable methods
This prevents methods that use the regular methods internally from
clashing
2018-01-22 11:59:24 -08:00
Berkeley Martinez
4a911931d0 fix(server/flash): Api to match documentation
This fixes duplication issues and normalize our use with everyone else
2018-01-18 15:20:54 -08:00
Berkeley Martinez
307716f9c8 fix(loopback/passport): Show flash messages on link 2018-01-18 15:20:54 -08:00
Berkeley Martinez
387eafbf33 feat(Flash): Add render methods that do not dump flash autom
query from the front end app for these messages
2018-01-18 15:20:54 -08:00
Berkeley Martinez
f6e4bf74cb fix(boot/user): Use common encoding utils
This logic is used through out the app and should be centralized
2018-01-18 00:18:44 +05:30
Cassidy Pignatello
eab62f6623 Merge branch 'staging' into fix/normalize-flash-type 2018-01-10 14:19:00 -05:00
cassidypignatello
f158183039 fix(app): Normalize flash type
Changed flash messages to use types provided by Bootstrap

Closes #16395
2018-01-08 17:25:45 -05:00
Berkeley Martinez
52529a99b1 feat(server): Use debug for prettier logs 2018-01-07 11:18:26 +05:30
Berkeley Martinez
00c3a97fa0 chore(server): Remove https redirect
This is no longer used. https is handled by Cloudflare/nginx
2018-01-07 11:18:26 +05:30
Berkeley Martinez
a1530c041a fix(Auth): Error type in json payload 2018-01-02 23:38:01 +05:30
Berkeley Martinez
558328aa08 feat(boot/auth): Add signup disabled debug info 2018-01-02 23:38:01 +05:30
Berkeley Martinez
296387d67e fix(User): Move login logic into user model 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
9c5322334b fix(User): Fix typos 2018-01-02 23:38:01 +05:30
Berkeley Martinez
13b7eac16f fix(passport/login): Use middleware instead of bootscript
prototype overwrite doesn't seem have any effect
2018-01-02 23:38:01 +05:30
Berkeley Martinez
550e1db9a4 fix(boot/auth): Fix typo 2018-01-02 23:38:01 +05:30
Berkeley Martinez
8a66886081 fix(AccessToken): Move extensions to boot script
Loopback does not facilitate built in model extensions in the same way
as user defined models
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
b35501c78e refactor(server/authenticate): Move auth api into own boot script
separate from user account/display methods
2018-01-02 23:38:01 +05:30
Berkeley Martinez
0452a9d1d5 fix(models): Move custom method to loopback model extension 2018-01-02 23:38:01 +05:30
Berkeley Martinez
dc7432c62f fix(server/user): End signin middleware early if signed in 2018-01-02 23:38:01 +05:30
Jonathan Grah
674ce83ab0 feat(cert): Certificates (#16185)
* feat(cert): finished layout and design of legacy certificates

* feat(cert): added new certs

* feat(cert): added logic for new certs

* feat(cert): updated claiming challenges

* feat(cert): fixed various small issues

* feat(cert): completed suggested changes
2017-12-20 19:15:23 -06:00
Onel Harrison
fb98968433 fix(sitemap): Update challenge urls to use new url format (#16164)
Closes #16121
2017-12-11 15:39:33 -06:00
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
kennethlumalicay
46383ddaa6 fix(user): new function to compute unique days within hours. 2017-12-04 19:10:33 -05:00
Mrugesh Mohapatra
af43360027 fix(auth): Add keyword in email support for passwordless 2017-11-29 23:11:24 +05:30
Berkeley Martinez
caaeba03f2 Merge pull request #15985 from raisedadead/fix/update-email-pre-confirm
fix(user): Update email pre-confirm config
2017-11-27 12:40:56 -08:00
Berkeley Martinez
dbecdc5618 feat: prep for modern challenges (#15781)
* feat(seed): Add modern challenge

* chore(react): Use prop-types package

* feat: Initial refactor to redux-first-router

BREAKING CHANGE: Everything is different!

* feat: First rendering

* feat(routes): Challenges view render but failing

* fix(Challenges): Remove contain HOC

* fix(RFR): Add params selector

* fix(RFR): :en should be :lang

* fix: Update berks utils for redux

* fix(Map): Challenge link to arg

* fix(Map): Add trailing slash to map page

* fix(RFR): Use FCC Link

Use fcc Link to get around issue of lang being undefined

* fix(Router): Link to is required

* fix(app): Rely on RFR state for app lang

* chore(RFR): Remove unused RFR Link

* fix(RFR): Hydrate initial challenge using RFR and RO

* fix: Casing issue

* fix(RFR): Undefined links

* fix(RFR): Use onRoute<name> convention for route types

* feat(server/react): Add helpful redux logging/throwing

* fix(server/react): Strip out nonjson from state

This prevents thunks in routesMap from breaking serialization

* fix(RFR/Link): Should accept any renderable

* fix(RFR): Get redirects working

* fix(RFR): Redirects and not found's

* fix(Map): Move challenge onClick handler

* fix(Map): Allow Router.link to handle clicks after onClick

* fix(routes): Remove react-router-redux

* feat(Router): Add lang to all route actions by default

* fix(entities): Only fetch challenge if not already loaded

* fix(Files): Move files to own feature

* chore(Challenges): Remove vestigial hints logic

* fix(RFR): Update challenges on route challenges

* fix(code-storage): Should use events instead of commands

* fix(Map): ClickOnMap should not hold on to event

* chore(lint): Use eslint-config-freecodecamp

Closes #15938

* feat(Panes): Update panes on route instead of render

* fix(Panes): Store panesmap and update on fetchchallenges

* fix(Panes): Normalize panesmaps

* fix(Panes): Remove filter from createpanemap

* fix(Panes): Middleware on location meta object

* feat(Panes): Filter preview on nonhtml challenges

* build(babel): Add lodash babel plugin

* chore(lint): Lint js files

* fix(server/user-stats): Remove use of lodash chain

this interferes with babel-plugin-lodash

* feat(dev): Add remote redux devtools for ssr

* fix(Panes): Dispatch mount action

this is needed to trigger window/divider epics

* fix(Panes): Getpane to use new panesmap format

* fix(Panes): Always update panes after state

this lets the panes logic be affected by changes in state
2017-11-09 19:10:30 -06:00
Mrugesh Mohapatra
9ccfe4f72c refactor: Update methods to sensible names 2017-10-28 00:24:27 +05:30
Felix Yan
b575dd1122 Fix a typo in server/boot/challenge.js 2017-10-18 00:23:14 +08:00
Berkeley Martinez
18e57382e7 Merge pull request #15890 from raisedadead/bug/update-sign-up-page
fix(sign-up): Update page for clear onboarding path
2017-10-03 13:51:21 -07:00
Mrugesh Mohapatra
6e3f28e770 fix(sign-up): Update page for clear onboarding path
Closes #10407
2017-09-17 16:14:46 +05:30
dhcodes
63a147257b fix(main): static page links and constantStrings 2017-09-16 17:16:48 -05:00
Berkeley Martinez
58b883f06c fix(server/certs): Fix email and refactor 2017-09-08 10:52:40 -07:00
Timo
a051d4d443 feat(server.certs): Remove team email 2017-09-08 10:48:08 -07:00
Berkeley Martinez
56e3d3a986 refactor(server/challenge): Make code dry 2017-09-08 00:16:02 -07:00
Joshua Riddle
6cbdbc2580 feat(user): Track challenge submissions count
BREAKING CHANGE: none

Closes #14881
2017-09-07 20:47:26 -07:00
Mrugesh Mohapatra
ab93109828 fix(auth): Fix merge errors from rebase 2017-09-01 17:32:58 -07:00
Mrugesh Mohapatra
3f332fc1f0 fix: Add error handling and refactoring of Observable methods 2017-09-01 17:21:02 -07:00