Commit Graph

168 Commits (9c3f0f3628a1862a98a73875d419d20e92d47720)

Author SHA1 Message Date
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
Vladi 869bf1750e fix(visual): Flash notifications now do not overlap with naviga (#16298)
removed negative-30 class used in partial view

Closes #16267
2017-12-23 12:52:21 -06:00
Mrugesh Mohapatra 94e808b15c fix(show): Move the order of tabs to be consistent 2017-12-16 11:51:54 +05:30
Mrugesh Mohapatra e3d1e8b16c fix(show): Make the user profile tab consistent 2017-12-16 11:50:23 +05:30
Berkeley Martinez b1e9a172a2 Feat: anon navbar (#16189)
* chore(React): %s/react-pure-render/React.PureComponent/gc

* fix(Settings): Should redirect to signup when unauthen

* feat(Development): Use SES for mail if defined

* feat(Nav): Show anon navbar when logged in

* fix(server/datasources): Make sure mailhog works if no ses keys are found

LB will use both mail settings if using both local and dev

* fix(Nav): Use text instead of icons

* fix(Nav): Make donate page open in new tab
2017-12-15 15:53:32 -06:00
Onel Harrison 3653c3d385 fix(nav): Apply correct classes and style to nav profile (#16170) 2017-12-10 22:53:03 +05:30
Peter Weinberg f868862c0f fix(editor): restore syntax highlighting for light theme 2017-10-13 20:26:51 -04:00
Mrugesh Mohapatra e941545d2e Unify signin and signup with lesser clicks 2017-09-01 17:15:26 -07:00
Timo dcfe18d5d5 refactor: Replace .com with .org 2017-08-26 00:07:44 +02: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
Quincy Larson 7805d74ea7 feat: Update meta tags (#15633) 2017-07-11 23:43:52 -07:00
Dylan e1a2fecd13 add donate links and mousetrap 2017-06-05 16:46:04 +01:00
Berkeley Martinez f4443e16dd feat(nav): make navbar static (#13673)
* feat(nav): make navbar static

make the navbar in react layout and the static layout stick to the top of the screen

* feat(challenges): Make classic view flex

Classic view now uses flex to control it's height. This was necessary to control view and allow
navbar to be static on other pages.

This breaks mobile view and other non-classic challenge views

* feat(app): Add logic to make screen expand on tablet

* fix(app): let routes define their content structure

* fix(less): use American spelling of gray

* fix(classic-preview): make preview smaller to prevent scroll

* feat(classic-frame): Make frame border less distinct

* fix(challenges): scope test suite less to challenges

* feat(challenges): make generic ChallengeTitle component
2017-03-13 18:17:07 -05:00
Petr Gazarov f159027025 Remove bower and port dependencies over to npm 2017-02-09 00:09:39 -05:00
systimotic 31b15a4712 Fix community dropdown server view 2017-01-22 11:22:50 +01:00
Berkeley Martinez 86d4b5e841 chore: Remove unused/deprecated files 2017-01-19 17:56:07 -08:00
Eric Leung 16616f78c8 Fix s/Free Code Camp/freeCodeCamp in /server/views
This commit changes instances of "Free Code Camp" to "freeCodeCamp"
within the /server/views/ directory.
2017-01-11 01:29:38 -08:00
Berkeley Martinez 3a4e62da44 feat(nav): Add dropdown menu 2016-12-30 16:08:15 -08:00
Berkeley Martinez 1892654dab feat(nav): remove sidecar 2016-12-29 22:04:05 -08:00
Adegbuyi Ademola 5cbe98c3eb (Feat): Menu should show username on sm screens
(Feat): Menu should show username on sm screens

(Feat): Menu should show username on sm screens

(Feat): Menu should show username on sm screens
2016-09-24 20:24:36 +01:00
Adegbuyi Ademola f1a1166173 fix(Nav): Avatar should light up brownie #10581 2016-09-24 18:07:13 +01:00
Berkeley Martinez 8db46eed26 Fix(nav): Change sign in to sign up 2016-09-08 21:56:46 -07:00
Berkeley Martinez f076f09a45 Fix(nav): Avatar/points should always lead to settings 2016-08-06 07:33:01 -07:00
Berkeley Martinez c3c640d00a Fix(nav): Use current-challenge instead of next-challenge for logo 2016-08-04 14:51:31 -07:00
Berkeley Martinez 44b83ce494 Fix(views): remove wiki/map iframe drawers
closes #9460
2016-07-28 23:40:01 -07:00
Berkeley Martinez 627c92c72f Fix(challenges): make challenge height auto
closes #9347
2016-07-28 23:40:01 -07:00
Berkeley Martinez 4815f98e8c Fix(map): remove map drawer from non-react pages
map drawer will be reserved for react pages only
closes #9341
2016-07-28 23:40:01 -07:00
Berkeley Martinez 91dc3625d9 Remove step pointer events block
unminify animate.css
2016-07-28 23:39:17 -07:00
Berkeley Martinez 09ea99e561 Add react challenge view with editor 2016-07-28 23:39:17 -07:00
dhcodes 70769d56a5 remove Wiki sidebar HTML, LESS, JS
remove Wiki sidebar
2016-07-21 09:59:32 -05:00
Quincy Larson 3eaf37d4a9 remove wiki nav button and target blank from shop nav button 2016-07-20 01:37:38 -07:00
Quincy Larson 7dd2ffc83e improve shop and set flyer show threshold to 15 brownie points 2016-07-08 14:23:15 -07:00
Berkeley Martinez 7bec5d6126 Merge pull request #9611 from QuincyLarson/feature/shop-improvements
add optimizely and expand shop offerings
2016-07-08 00:03:12 -07:00
Quincy Larson b6c8b52465 add optimizely and expand shop offerings 2016-07-07 23:50:55 -07:00
Kirushna f6031009b3 Fixed flyer dismiss issue on firefox
Fixed flyer dismiss issue on firefox
2016-07-02 11:09:18 +05:30
t b4d7a7b5b2 Updated Shop link to open a new page when clicked. 2016-06-24 10:22:14 -07:00
Rémi Fortier 0a2a5b798f navbar redirect to next-challenge
navbar always redirects to next-challenge
2016-06-23 00:47:45 -04:00
Jonathan d9f48e81e3 Added fixed header to wiki aside
* Added title
2016-05-27 17:03:07 +01:00
Quincy Larson e1f2d619fb Merge pull request #8690 from theflametrooper/fix/campernews
Removed Camper News completely
2016-05-18 22:59:53 -07:00
Quincy Larson 1872b8c775 fix forum links in navbars 2016-05-18 16:45:59 -07:00
Quincy Larson 366a4adca9 Add forum link to navbar and React nabber 2016-05-18 00:02:44 -07:00
Jonathan 62946689dc
Removed Camper News completely 2016-05-17 18:31:40 +01:00
Quincy Larson ee2e0e290f Merge branch 'fix/theme-flash' of https://github.com/BerkeleyTrue/FreeCodeCamp into BerkeleyTrue-fix/theme-flash
Conflicts:
	common/models/user.js
2016-05-12 21:28:29 -07:00
Berkeley Martinez e72ad8c513 fix(ui): Fix flash shown to user on page refresh
Store user theme preference on user object.
Must be logged in to use themes
2016-05-12 18:52:03 -07:00
Mrugesh Mohapatra b02ddc135d
Update paths to minimize re-directs 2016-05-03 15:06:20 +00:00
Quincy Larson be27deaa4c Merge pull request #8124 from BerkeleyTrue/feature/re-add-announcement
(Re)add announcement/flyer
2016-04-20 14:48:05 -07:00
George Stepanek d00e3628af Fix the navbar links so control-clicking opens them in a new tab 2016-04-16 10:42:25 +12:00
Berkeley Martinez 02eb6cad6c Refactor announcement feature 2016-04-14 20:06:42 -07:00
Berkeley Martinez c9fdb581ce Revert "Announcement feature" 2016-04-14 18:13:58 -07:00