Commit Graph

533 Commits (0fcaccdc3c4dca53e85dc7e12cb3c9303099106f)

Author SHA1 Message Date
dhcodes 704a31682f build(package.json): Update react-bootstrap
change version to 0.31.2
2017-08-22 09:02:09 -05:00
Berkeley Martinez 42bfa2e64d feat(app): new layout (#14707)
* feat(app): Restructure app to be more flexible and redux idiomatic

BREAKING CHANGE: Lots of breaking changes

* refactor(challenges): Redux to started file structure

* fix(app): lint issues due to refactor

* fix(settings): Refactor settings to use folder structure

* refactor(challenges): Move step redux stuff into step folder

* fix(challenges): Remove fetchchallenges actions

* refactor(challenges): Move project redux logic into project view subdirectory

* refactor(app): %s/sagas/epics/g

* refactor(redux): Use new redux-epic with combineEpic and ofType

* refactor(app): Move challenge selector to app level

* fix(app): Move loading challenge info into challenge route

This moves a lot of the logic needed to load challenge info into the challenge app. This decouples
the main app from the challenge route

* refactor(map): Map is now decoupled from challenges

* refactor(challenges): Use selectors everywhere instead of guessing state shape

* refactor(client): refactor client epics to use selectors

* refactor(app): Refactor userSelector to return user object instead of object.user

* refactor(entities): Move entities logic into it's own file

* fix(redux): combineTypes should be combineActions

* fix(app): reducer namespacing and import

* fix(Map): Fix undefined type and update redux-action

* fix(redux): Refactor fetchUser to be more declarative

Use rxjs methods instead of imperative if/else. Also prevent non-actions from being emitted

* fix(redux): toString multi phase action types

* fix(redux): typecast multiphase type, fix typo in reducer

toString multiphase types in fetch challenge epic. Add epic to epics lists. Fix type in fetch
challenge complete handler

* fix(redux): updateCurrentChallengelogic should be centerlized

Move route changes to one location.

* fix(Nav): Prevent event object from hanging around

closeDropDown/openDropDown where handing on to the event object. This was causing issues with react
since event objects are recycled in React.

* fix(Map.Challenge): decouple map selector

* fix(Map): Decouple panel selectors from props

Panel Selectors no longer need to know the shape of a components props. Refactored component
selectors to decouple them entities state shape

* fix(Map.redux): Add select challenge epic and connect map epics

* fix(redux.analytics): Fix meta creator and nav/map events

* fix(redux): Update current challenge ajax

* fix(challenges): ssr fetch challenge should update challenge ui

Was using an epic to update challenge ui on fetch complete, but this was not working on ssr due to
the way ssr disables epics to wait for completion. This commit fixes this by causing the complete to
directly update state in the challenge ui

* fix(challenges): wrong import of types, refactor epic name

* fix(redux): Prevent fetch challenge epic from emitting null to dispatch

* fix(redux): prevent executechallenge from emitting null

* fix(challenges.redux): testsSelector returns just tests

* fix(challenges.redux): Prevent completion challenge from emitting null

* refactor(Challenges.Step): Refactor step challenge to release event object

* fix(redux): wrap reducers in factories
reducers exported from features need to be factories
this helps avoid cyclic requires messing up reducer creation
We end up with exports from files being undefined as node tries
to resolve cyclic dependencies.
This prevents that by wrapping the `handleActions` call so that the ref
to types imported from parent features are closures and can be resolved
by node before we need them.

* fix(Map): createUi not working correctly

map utils should receive just map ui state, createMapUi needs to add title to challenge

* feat(Challenges): Adds Panes and panes backend challenge

* fix: Create child container to wrap children

Create a ChildContainer comp' to wrap all children that represent the view for the current route.
This let's the child route define if they want a full width view or if they want the standard
max-width view.

* feat(Panes): panes now render dividers

* feat(Panes): Get divider to move currectly

* fix(Nav): Add top margin to contained childs

Move margin-bottom from nav to child container as margin top. This let's the jsbin style views fit
snug with navbar

* fix(Panes): Should be contained within their borders

* feat(Panes): Update navbar height of pane on app mount

* feat(Panes): Toggle map on map nav btn click

* fix(gulpfile): Ensure nodemon exits on restart

On process exit, wait for nodemon to shutdown before process.exit

* feat(Panes): Make Panes redux first

* fix(Panes): Fix divider positioning

* fix(Panes): Update divider moved handler

dividerMoved action now uses new panesByName structure

* feat(Panes): Pane nav button will hide panes

* chore(package-lock): Update package lock

* feat(Panes.redux): Recaculate dividers on pane toggle

* fix(Challenges): Update challenge on dashedName change

This fixes backwards navigation not updating the redux state current
challenge

* feat(Panes.redux): Clear panes on unmount

Clearing panes on unmount will clear bin buttons in nav

* refactor(Map): Colocate styles

* feat(Map): New map layout

* fix(Map): No longer has it's own page

* fix: FetchChallenges on appMounted

* feat: Normalize fetchChallenge(s) results

This allows superblocks to be sent with both fetchChallenge and
fetchChallenges so the map is always populated on first load

* feat(Map): Show blocks on first load

* fix(less): Remove old css

* feat(Nav): Reduce nav height

* fix(Nav): Render nav after content

Render nav after content and use css to reverse again on screen. We do
this so the panes can render first and update redux panes state which
will then update the nav ui state before nav has a chance to render

* fix(Panes): Add container

This adds a Panes Container that will allow it to udpate redux state so
Panes Component will have redux state ready to actually render panes

* feat(Challenges.Classic): Add panes

* fix(Challenge.Classic): Editor onchange should not need to know about file

* fix(Panes): Index on panes hide should account for hidden pane

* fix(Challanges.Classic): Fix panes types

* fix(Challenges): Add completion modal to all challenges

Change classic modal to completion modal

* fix(Panes): Dividers live on top of planes

* fix(Challenges): Remove codemirror theme

Remove codemirror theme and remove borders from preview frame

* fix(Challenges.Classic): Remove old component

* feat(Challenges.Step): Add panes to step challenge

* feat(Challenges.Project): Add panes to projects

* fix(Challenges.Projects): Remove row

* fix(Modals): Move modal text color to challenge less

This text color is dependent on the actual header color

* fix(Map): Use Superblock title for ui

* fix(Map): Reduce panel header height

* fix(app): Capitalize Toasts folder

Feature folders should be campitalized

* chore(Map): Remove unused epic file

* fix(Step): Fix tests

* test(Map): Update createMapUi tests input
2017-07-31 22:04:01 -05:00
Mrugesh Mohapatra 7acb1db632 fix(snyk): Remove snyk config 2017-07-16 23:53:43 +05:30
Mrugesh Mohapatra 54d88eca82 feat: enforce conventional commit messages 2017-07-14 00:23:34 +05:30
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 c0e876142a feat(tools): Add commitizen and cz-freecodecamp (#15589) 2017-07-05 14:49:58 -07:00
Snyk bot 70f554d045 fix: package.json & .snyk to reduce vulnerabilities (#15039)
The following vulnerabilities are fixed with a Snyk patch:
- https://snyk.io/vuln/npm:ms:20170412

Latest report for freecodecamp/freecodecamp:
https://snyk.io/test/github/freecodecamp/freecodecamp
2017-05-31 00:13:52 +05:30
Berkeley Martinez b9911dbd34 Merge pull request #14082 from freeCodeCamp/greenkeeper-reselect-3.0.0
Update reselect to version 3.0.0 🚀
2017-04-18 16:26:00 -07:00
Berkeley Martinez 0116f58270 Merge pull request #14364 from freeCodeCamp/greenkeeper-redux-epic-0.2.0
Update redux-epic to version 0.2.0 🚀
2017-04-18 11:00:15 -07:00
greenkeeperio-bot 6bd965e312 chore(package): update redux-actions to version 2.0.2
https://greenkeeper.io/
2017-04-16 14:13:51 -07:00
greenkeeperio-bot a3b0ac8dfa chore(package): update redux-epic to version 0.2.0
https://greenkeeper.io/
2017-04-11 17:49:00 -07:00
Berkeley Martinez a2998c4b9c style(gulp): Linted gulpfile (#13978) 2017-03-28 13:25:08 -05:00
greenkeeperio-bot a5f83e6bd3 chore(package): update reselect to version 3.0.0
https://greenkeeper.io/
2017-03-24 13:37:16 -07:00
Berkeley Martinez 84db2f6644 Merge pull request #13928 from freeCodeCamp/greenkeeper-sinon-2.0.0
Update sinon to version 2.0.0 🚀
2017-03-17 14:20:10 -07:00
Berkeley Martinez 18abf92416 Merge pull request #12924 from freeCodeCamp/greenkeeper-gulp-notify-3.0.0
Update gulp-notify to version 3.0.0 🚀
2017-03-17 14:08:48 -07:00
greenkeeperio-bot 9156d5c175 chore(package): update sinon to version 2.0.0
https://greenkeeper.io/
2017-03-14 23:26:39 -07:00
Greenkeeper 514104fa82 chore(package): update dedent to version 0.7.0 (#12944)
https://greenkeeper.io/
2017-03-04 23:03:11 +00:00
Greenkeeper 8ef8c48ce4 chore(package): update yargs to version 7.0.1 (#13722)
https://greenkeeper.io/
2017-03-04 22:30:33 +00:00
Ivan 2ab929daa1 Remove unused npm package: clipboard (#13664) 2017-03-03 21:47:12 +05:30
Berkeley Martinez 81d720da5b Merge pull request #11474 from petrgazarov/chore/remove-bower
Remove bower and port dependencies over to npm
2017-02-27 15:03:59 -08:00
Berkeley Martinez 4d4516a2bc Merge pull request #12497 from Bouncey/fix/update-eslint-plugin-react
Enable react/sort-prop-types rule
2017-02-27 14:00:38 -08:00
Stuart Taylor 84f71de4ce Remove gltter-sidecar due to vunerability 2017-02-11 15:33:49 +00:00
Petr Gazarov f159027025 Remove bower and port dependencies over to npm 2017-02-09 00:09:39 -05:00
Stuart Taylor c96ce25598 Enable react/sort-prop-types rule 2017-02-05 13:13:36 +00:00
greenkeeperio-bot 0bebd94116 chore(package): update gulp-notify to version 3.0.0
https://greenkeeper.io/
2017-01-27 12:41:27 -08:00
Quincy Larson 1b2b54e2b0 Merge pull request #12586 from BerkeleyTrue/feat/real-time-user-count
feat(api): add current active users api
2017-01-26 22:02:02 -06:00
Berkeley Martinez 156796b167 Merge pull request #12424 from freeCodeCamp/greenkeeper-dotenv-4.0.0
Update dotenv to version 4.0.0 🚀
2017-01-26 18:23:40 -08:00
Berkeley Martinez 962675ee17 feat(api): Add active user api 2017-01-26 18:01:15 -08:00
Berkeley Martinez 04e6287fef chore: remove transition-replace 2017-01-11 11:31:06 -08:00
greenkeeperio-bot 1188b94145 chore(package): update dotenv to version 4.0.0
https://greenkeeper.io/
2017-01-07 11:16:01 -08:00
Greenkeeper c7bebadb87 chore(package): update react to version 15.4.2
https://greenkeeper.io/
2017-01-06 23:15:56 +00:00
Greenkeeper 07c75c8ae7 chore(package): update react-addons-shallow-compare to version 15.4.2
https://greenkeeper.io/
2017-01-06 23:06:56 +00:00
Greenkeeper 8ec040b300 chore(package): update react-dom to version 15.4.2
https://greenkeeper.io/
2017-01-06 23:03:25 +00:00
Greenkeeper 83febb9986 chore(package): update react-addons-css-transition-group to version 15.4.2
https://greenkeeper.io/
2017-01-06 23:01:55 +00:00
Stuart Taylor 7a035159d2 chore(pkg) update redux-actions to 1.2.0 2017-01-05 00:13:17 +00:00
Berkeley Martinez 3d93e70a73 Show dropdown on hover 2017-01-03 07:04:07 +00:00
Dylan 79a8c412f1 change node-uuid to uuid 2016-12-30 16:47:09 -06:00
Berkeley Martinez 44a0aeceb7 feat(lint): prefer spread over Object.assign call 2016-12-29 16:58:49 -08:00
Berkeley Martinez 8621c0618d Merge pull request #11770 from Bouncey/fix/upgradeHelmet
Chore(package): Updates helmet and helmet-csp to @latest
2016-12-21 18:07:44 -08:00
Berkeley Martinez 7130ea15bc fix: Peg normalizr until breaking change is resolved
see: https://github.com/paularmstrong/normalizr/issues/186
2016-12-19 14:17:52 -08:00
greenkeeperio-bot 966aa1d611 chore(package): update babel-istanbul to version 0.12.1
https://greenkeeper.io/
2016-12-13 16:49:41 -08:00
Greenkeeper 9eb2f2e488 chore(package): update loopback-connector-mongodb to version 1.17.0
https://greenkeeper.io/
2016-11-24 22:57:42 +00:00
Greenkeeper 7296a312b4 chore(package): update express-validator to version 3.0.0
https://greenkeeper.io/
2016-11-24 22:49:25 +00:00
Timo 246e2d6583 Downgrade react to resolve react-hot-loader error 2016-11-24 22:30:18 +00:00
Greenkeeper dd86dd21ca chore(package): update gulp-sourcemaps to version 2.2.1
https://greenkeeper.io/
2016-11-23 00:18:39 +00:00
Stuart Taylor adf7983818 Chore(package): Updates helmet and helmet-csp to @latest 2016-11-22 23:52:40 +00:00
Greenkeeper 8cb5520744 chore(package): update react-codemirror to version 0.3.0
https://greenkeeper.io/
2016-11-22 21:51:00 +00:00
Berkeley Martinez 7e8aad7505 Merge pull request #11633 from Bouncey/fix/removeStampit
Remove stampit in favour of a factory function
2016-11-17 14:54:40 -08:00
Stuart Taylor 16863d9641 Remove stampit in favour of a factory function 2016-11-17 19:15:23 +00:00
Zlatan Vasović 62d633088b Simplify package.json 2016-11-13 10:18:40 +01:00