Commit Graph

91 Commits

Author SHA1 Message Date
Sky020
a86b220eb7 chore: remove isRequired from curriculum files 2020-09-21 20:51:46 +05:30
Oliver Eyton-Williams
bd68b70f3d Feat: hide blocks not challenges (#39504)
* fix: remove isHidden flag from frontmatter

* fix: add isUpcomingChange

Co-authored-by: Ahmad Abdolsaheb <ahmad.abdolsaheb@gmail.com>

* feat: hide blocks not challenges

Co-authored-by: Ahmad Abdolsaheb <ahmad.abdolsaheb@gmail.com>

Co-authored-by: Ahmad Abdolsaheb <ahmad.abdolsaheb@gmail.com>
2020-09-03 15:07:40 -07:00
Twaha Rahman
7155c87e8b fix: prevent dev tools from accessing state in prod (#38669)
* Fixed Redux dev tool plugin in production problem

* Update client/src/redux/createStore.js

Co-Authored-By: Tom <20648924+moT01@users.noreply.github.com>

* Update client/src/redux/createStore.js

Co-Authored-By: Tom <20648924+moT01@users.noreply.github.com>

* Update client/src/redux/createStore.js

Co-Authored-By: Tom <20648924+moT01@users.noreply.github.com>

* Update client/src/redux/createStore.js

Co-Authored-By: Oliver Eyton-Williams <ojeytonwilliams@gmail.com>

* Fixed ESLint error

* Second try to fix linting issue

* Third try to fix lint issues

* Update client/src/redux/createStore.js

Co-authored-by: Oliver Eyton-Williams <ojeytonwilliams@gmail.com>

* Update client/src/redux/createStore.js

Co-authored-by: Oliver Eyton-Williams <ojeytonwilliams@gmail.com>

* fix: use env.json for ENVIRONMENT

Co-authored-by: Tom <20648924+moT01@users.noreply.github.com>
Co-authored-by: Oliver Eyton-Williams <ojeytonwilliams@gmail.com>
2020-08-20 01:22:59 +05:30
Oliver Eyton-Williams
3dbe69707f fix: redirect to email sign up on first login 2020-08-05 14:01:47 +05:30
Kristofer Koishigawa
6e5988da4e fix(learn): versioning for new certificate slugs (#39087) 2020-06-17 20:30:31 +05:30
Kristofer Koishigawa
77df0e32cd feat(learn): rename certificates, cert slugs, and cert flags (#39026) 2020-06-15 21:51:30 +05:30
Oliver Eyton-Williams
6b8c2e74b6 fix(client): sync Redux store and DB (#39034) 2020-06-10 12:24:19 +05:30
Mrugesh Mohapatra
a02ff7b08e fix(certs): add year to certs introduced in 2020 (#38912) 2020-06-04 13:13:07 +05:30
Kristofer Koishigawa
959608e85e fix(client): public profile qa and infosec certification links (#38948) 2020-06-01 19:53:59 +05:30
Beau Carnes
256ed00fb9 feat(learn): split InforSec and QA into individual certs (#38347)
Co-authored-by: Mrugesh Mohapatra <me@raisedadead.com>
Co-authored-by: Kris Koishigawa <scissorsneedfoodtoo@gmail.com>
2020-05-27 13:19:12 +05:30
Beau Carnes
e776529ed0 feat(learn): add python video challenges (#38424) 2020-05-27 13:19:09 +05:30
mrugesh
22afc2a0ca feat(learn): python certification projects (#38216)
Co-authored-by: Oliver Eyton-Williams <ojeytonwilliams@gmail.com>
Co-authored-by: Kristofer Koishigawa <scissorsneedfoodtoo@gmail.com>
Co-authored-by: Beau Carnes <beaucarnes@gmail.com>
2020-05-27 13:19:08 +05:30
Oliver Eyton-Williams
68aef571ee feat: hide isHidden challenges 2020-05-25 16:25:19 +05:30
Oliver Eyton-Williams
ffcf8294f1 fix: fetch CSRF cookie and set headers lazily (#38452)
* fix: fetch csrf cookie and set headers lazily

* fix: check cookie each call to keep it up to date

Previously the cookie was checked once and never updated until the
client was reloaded.  Stale or absent cookies would generate incorrect
tokens or no tokens, respectively, causing CSRF errors.
2020-03-27 16:41:33 +05:30
Oliver Eyton-Williams
a7c70ddcd8 fix: remove debugModal (#38405) 2020-03-20 21:24:06 +05:30
Mrugesh Mohapatra
585527d145 feat: add paypal donation to modals and certificates 2020-03-19 23:55:47 +05:30
Oliver Eyton-Williams
23b899f50f fix(csrf): remove all csrf bypass 2020-03-17 23:28:23 +05:30
Josh Soref
004b99bf8f chore: fix typos in spelling (#38100)
* spelling: accidentally

* spelling: announce

* spelling: assembly

* spelling: avoid

* spelling: backend

* spelling: because

* spelling: claimed

* spelling: candidate

* spelling: certification

* spelling: certified

* spelling: challenge

* spelling: circular

* spelling: it isn't

* spelling: coins

* spelling: combination

* spelling: compliant

* spelling: containers

* spelling: concise

* spelling: deprecated

* spelling: development

* spelling: donor

* spelling: error

* spelling: everything

* spelling: exceed

* spelling: exist

* spelling: falsy

* spelling: faulty

* spelling: forward

* spelling: handle

* spelling: indicates

* spelling: initial

* spelling: integers

* spelling: issealed

* spelling: javascript

* spelling: length

* spelling: maximum

* spelling: minimum

* spelling: mutable

* spelling: notifier

* spelling: coordinate

* spelling: passport

* spelling: perform

* spelling: permuter

* spelling: placeholder

* spelling: progressively

* spelling: semantic

* spelling: submission

* spelling: submit

* spelling: translations

* spelling: turquoise

* spelling: visualization

* spelling: without

* spelling: registration

* spelling: representation
2020-02-08 23:59:10 +05:30
Ahmad Abdolsaheb
24eb2c4310 fix: add donation ga and tests (#38003)
* fix: add donation ga

* feat: add ga-saga tests
2020-02-04 11:13:56 +05:30
Oliver Eyton-Williams
1a56f4d5f4 fix(client): show certs on timeline (#37947)
Co-authored-by: Tom <20648924+moT01@users.noreply.github.com>
2020-01-03 11:32:31 +05:30
mrugesh
8e605d8b85 Revert "feat(client): unify GA and add to donation" (#38001)
This reverts commit 78df306707.
2020-01-01 12:04:50 +05:30
Ahmad Abdolsaheb
78df306707 feat(client): unify GA and add to donation (#37984) 2019-12-31 23:29:32 +05:30
Mrugesh Mohapatra
fdb17223ec revert : Added displayUsername and username update functionality
removes implemenation from #35699
This reverts commit e154f38118.
2019-12-13 01:07:05 +05:30
Catalina
e154f38118 Added displayUsername and username update functionality (#35699)
* Added displayUsername and username update functionality

* fix: move username assignment to safe place

moved the username assignment down a statement so that it doesn't cause exception 

* fix: handle missing username or displayUsername

* refactor: remove redundant code
2019-12-11 12:43:06 +01:00
Ahmad Abdolsaheb
3f075f91d8 feat: activate progress based donation modal (#37882) 2019-12-09 22:00:24 +05:30
Ahmad Abdolsaheb
d7c4fd7fea fix: remove donation prevention (#37867) 2019-12-06 08:43:23 +03:00
Ahmad Abdolsaheb
a9bbcda211 feat(donate):add donation modal and certification message (#37822)
Co-Authored-By: Oliver Eyton-Williams <ojeytonwilliams@gmail.com>
2019-12-02 15:48:53 +03:00
Ahmad Abdolsaheb
55a4cadf2a fix: clean failed challenges (#37526) 2019-11-04 19:20:14 +05:30
mrugesh
9fb9ce3085 fix(donate): offset the no of donations on prod (#37443) 2019-10-22 00:08:22 +05:30
Oliver Eyton-Williams
6316b47fbb fix: update timeline without reload
Rather than pinging the server, this uses the current time.  It should
almost always be the same and only lasts until reload.
2019-10-18 16:28:59 +09:00
Oliver Eyton-Williams
ed015fb06f fix: make profile update after server response (#37154)
The Privacy component has been simplified and made to rely on the user
prop rather than its own state.  The submitProfileUIComplete reducer was
missing so has been added.
2019-10-09 11:31:20 -07:00
Tom
c52c36e51e fix: add report user button back to profile pages (#36926)
* fix: add report user button back to profile pages

* fix: make local redirect to signin work

* fix: redirect to learn instead of homepage

* fix: change from gatsby Link to the helper component Link

* feat: add tests for profile report and settings buttons

* Update client/src/client-only-routes/ShowUser.js

Co-Authored-By: Oliver Eyton-Williams <ojeytonwilliams@gmail.com>

* Update client/src/client-only-routes/ShowUser.js

Co-Authored-By: Oliver Eyton-Williams <ojeytonwilliams@gmail.com>

* Update client/src/client-only-routes/ShowUser.js

Co-Authored-By: Oliver Eyton-Williams <ojeytonwilliams@gmail.com>

* Update client/src/client-only-routes/ShowUser.js

Co-Authored-By: Oliver Eyton-Williams <ojeytonwilliams@gmail.com>

* Update client/src/client-only-routes/ShowUser.js

Co-Authored-By: Oliver Eyton-Williams <ojeytonwilliams@gmail.com>
2019-10-05 00:28:16 -07:00
Mrugesh Mohapatra
39aa707533 revert: "fix: make night mode default for code blocks"
This reverts commit 5a38887af1.
2019-09-11 23:20:01 +05:30
Ahmad Abdolsaheb
9ff7bf5801 feat: simplify landing page 2019-09-04 18:23:21 +05:30
Valeriy
d85425fd1b feat(client): use React Final Form instead of Redux Form (#36742) 2019-09-04 18:18:58 +05:30
Oliver Eyton-Williams
7d84783b40 feat: show last viewed challenge in curriculum map on reload (#35421)
* feat: Curriculum page loads with current challenge block open

* feat: Curriculum page expansion changes from review

* feat: Curriculum page expansion changes from second review

* fix: use a cookie to track current challenge

* fix: remove redundant server changes

* fix: add PropTypes to fix lint error

* fix: change cookies to store and add tests

* fix: use currentChallengeId

* fix: update tests

I couldn't figure out how to test the challenge saga, so that's gone for
now.  The Map tests have been updated to use currentChallengeId

* fix: remove unused PropTypes

* fix: separate currentChallengeId from user

* fix: update currentChallengeId directly on mount

* feat: reset map on every visit
2019-08-30 20:15:26 +03:00
mrugesh
a53a4ac303 fix(client): forum help and hints (#36625)
* fix(client): add warning on exceeding forum post length limit

Co-authored-by: Mrugesh Mohapatra <1884376+raisedadead@users.noreply.github.com>

* fix: corrected guide url for backend challenges and projects

* fix: moved  getGuideUrl to  utils

* fix: added forumTopicId to ChallengeNode PropTypes

* fix: conolidated helpers and add base url to env.json

* fix: made use template literals

* tests: created unit tests for getGuideUrl

* fix: add characters which will be encoded

Co-Authored-By: Oliver Eyton-Williams <ojeytonwilliams@gmail.com>

* fix: use encoded version of title

Co-Authored-By: Oliver Eyton-Williams <ojeytonwilliams@gmail.com>

* fix: encode title

Co-Authored-By: Oliver Eyton-Williams <ojeytonwilliams@gmail.com>
2019-08-28 21:55:56 +05:30
Oliver Eyton-Williams
5a38887af1 fix: make night mode default for code blocks 2019-08-27 12:45:20 +05:30
Lance Rutkin
7a97974099 fix(donate): modal opens at most once per session (#36632)
* Track if donation modal has opened in a session

* Fix prettier problem

* Create separate action that switches donationRequested
2019-08-22 12:59:13 +05:30
xyozio
657a5e2c16 cleanup: typos and remove commented out code (#36573) 2019-08-09 23:57:26 +05:30
Mrugesh Mohapatra
0124e7556d fix: removed all guide bits from gatsby 2019-07-26 19:40:46 +05:30
ValeraS
08403ca561 chore(client): update redux-saga 2019-06-12 02:49:29 +05:30
Ahmad Abdolsaheb
c359662f85 fix: remove logs 2019-06-11 16:19:33 +05:30
Ahmad Abdolsaheb
bc099d4971 fix: add cert claim logic for legacy cert 2019-06-11 16:19:32 +05:30
Ahmad Abdolsaheb
c2ffd6471b fix: add redux wiring for legacy certs 2019-06-11 16:19:31 +05:30
Ahmad Abdolsaheb
e8931ae1cb made data consumable by api 2019-06-11 16:19:31 +05:30
Ahmad Abdolsaheb
4558caf328 fix: make legacy certification saga call api and update db 2019-06-11 16:19:30 +05:30
Ahmad Abdolsaheb
68854db61e added selectors and template saga for updating legacy certificates 2019-06-11 16:19:30 +05:30
Bouncey
a11e669b8a feat: Port search from 'search-assets' 2019-06-08 03:16:28 +05:30
Waseem Ahmad
05de360085 fix NaN issue for the number of active Donations (#35970)
* fixed NaN issue for the number of active Donations

* Initialized activeDonations to 0 in the initial state
2019-05-08 20:18:10 +02:00