Commit Graph

580 Commits

Author SHA1 Message Date
awu43
dd5d2919be feat(client): ts-migrate client/utils/** (#42823)
* rename js files

* update imports and references

* migrate build-challenges

* migrate challenge-types

* migrate utils/index

* migrate state-management

* install @types/psl for tags

* migrate tags

* migrate tags.test

* migrate challenge-page-creator

* migrate utils/gatsby/index

* migrate layout-selector

* migrate layout-selector.test

* revert challenge-types

Curriculum can't handle TS or modules

* convert arrow functions

* revert build-challenges

* revert utils/gatsby/index

* revert challenge-page-creator

* revert challenge-types reference

* Delete state-management

Deleted in #42960

* Disable render-result-naming-convention (for now)

* update layout-selector.test comment

* reorder imports in build-challenges

* change ts-ignore to ts-expect-error
2021-08-09 10:30:31 +02:00
Renovate Bot
1a212ab927 fix(deps): pin dependencies 2021-08-08 22:33:04 +00:00
Ahmad Abdolsaheb
b623c340a9 feat(client): add google pay (#43117)
* feat: initial button setup client

* feat: rename walletsButton to .tsx

* chore: typescriptize wallet component

* chore: re-add keys to config, env, etc + check in gatsby-node

* feat: refactor donate form and wallet component

* feat(client): set labels correctly

* chore: add stripe package back to server

* chore: add stripe back to allowed paths

* chore: copy donate.js code from PR #41924

* feat: attempt to make back end work

* feat: make redux work

* feat: clean up

* feat: hokify

* feat: add error handling

* fix: back-end should be working

* fix: type errors

* fix: clean up back-end

* feat:addd styles

* feat: connect the client to the api

* feat: display wallets button everywhere

* test: add stripe key for cypress action

* test: fix for cypress tests

* test: cypress tests again

* test: maybe?

* test: more

* test: more

* test: more

* test

* askdfjasklfj

* fix: tests finally?

* revert: remove space from cypress yaml action

* remove logs

Co-authored-by: moT01 <20648924+moT01@users.noreply.github.com>
Co-authored-by: Oliver Eyton-Williams <ojeytonwilliams@gmail.com>
2021-08-08 23:22:25 +03:00
Renovate Bot
ad54684dce fix(deps): update dependency @babel/standalone to v7.15.2 2021-08-08 18:12:00 +00:00
Renovate Bot
41c6914a25 chore(deps): update codesee to v0.61.0 2021-08-06 23:07:34 +00:00
Renovate Bot
ae734e7715 chore(deps): update dependency webpack to v5.49.0 2021-08-06 16:40:58 +00:00
Renovate Bot
097565c615 chore(deps): update codesee to v0.60.0 2021-08-05 22:37:25 +00:00
Renovate Bot
fe17982d27 fix(deps): update dependency @babel/standalone to v7.15.1 2021-08-05 09:41:54 +00:00
Renovate Bot
b4ec41adfd chore(deps): update codesee to v0.59.1 2021-08-05 01:31:25 +00:00
Renovate Bot
35cdece8d7 chore(deps): update babel monorepo to v7.15.0 2021-08-05 00:13:20 +00:00
Renovate Bot
1307ce3eb9 fix(deps): update dependency react-reflex to v4.0.3 2021-08-04 22:29:35 +00:00
Renovate Bot
524556463a fix(deps): pin dependency @types/react-scrollable-anchor to 0.6.1 2021-08-04 12:19:55 +00:00
Nicolás Restrepo
e34ec814ef feat(client): migrate donate module to ts (#42561)
* change DonationTextComponent extension to tsx

* migrate DonationTextComponents to ts

* change DonationModal extension to tsx

* add @types/react-redux

* migrate DonationModal to ts

* change PaypalButton extension to ts

* change DonateCompletion extension to tsx

* migrate DonateCompletion to TypeScript

* change PayPalButtonLoader extension to tsx

* first changes in paypal button (help needed)

* first changes in PayPalButtonScriptLoader (help needed)

* change DonateForm extension to tsx

* migrate donate module to ts

* Update client/src/components/Donation/DonateForm.tsx

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

* Update client/src/components/Donation/DonationModal.tsx

Co-authored-by: Shaun Hamilton <shauhami020@gmail.com>

* Update client/src/components/Donation/DonationModal.tsx

Co-authored-by: Shaun Hamilton <shauhami020@gmail.com>

* Update client/src/components/Donation/DonateForm.tsx

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

* Update client/src/components/Donation/DonateForm.tsx

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

* Delete console.log client/src/components/Donation/DonationModal.tsx

Co-authored-by: Shaun Hamilton <shauhami020@gmail.com>

* applied changes requested

* fix: readjust default one time amount

* fix types

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

* chore: restore comments.json

* fix: type assertion

* fix: specific DonateForm props

* Apply suggestions from code review

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

* Update client/src/components/Donation/PaypalButton.tsx

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

* fix:set default stat for paypalbutton

Co-authored-by: Oliver Eyton-Williams <ojeytonwilliams@gmail.com>
Co-authored-by: Shaun Hamilton <shauhami020@gmail.com>
Co-authored-by: Ahmad Abdolsaheb <ahmad.abdolsaheb@gmail.com>
2021-08-04 11:21:11 +01:00
Renovate Bot
8886a9396c fix(deps): update dependency redux to v4.1.1 2021-08-03 17:08:11 +00:00
Renovate Bot
5ccb6cf452 chore(deps): update codesee to v0.57.0 2021-08-02 21:30:20 +00:00
Renovate Bot
785ec78af2 chore(deps): update dependency webpack to v5.48.0 2021-08-02 16:00:24 +00:00
Renovate Bot
e7b4b5b2fd fix(deps): update dependency react-instantsearch-dom to v6.12.1 2021-08-02 09:59:21 +00:00
Renovate Bot
e8dd7f5929 chore(deps): update babel monorepo to v7.14.9 2021-08-01 09:26:37 +00:00
Renovate Bot
24567cbe4a chore(deps): update codesee to v0.56.0 2021-07-30 23:24:17 +00:00
Renovate Bot
2b7683faa0 chore(deps): update dependency webpack to v5.47.1 2021-07-29 22:32:54 +00:00
Renovate Bot
e9c740fe7e chore(deps): update codesee to v0.55.0 2021-07-28 21:17:43 +00:00
Renovate Bot
3683414201 chore(deps): update codesee to v0.54.3 2021-07-28 08:27:29 +00:00
Renovate Bot
4ef6e9d3ea chore(deps): update codesee to v0.54.2 2021-07-28 04:16:07 +00:00
Renovate Bot
c56510a6b2 chore(deps): update codesee to v0.54.0 2021-07-27 21:28:22 +00:00
Renovate Bot
4357fd03af chore(deps): update dependency webpack to v5.47.0 2021-07-27 18:09:51 +00:00
Renovate Bot
7b92f1df83 chore(deps): update codesee to v0.52.1 2021-07-27 01:35:20 +00:00
Renovate Bot
0a82c36e1b fix(deps): update dependency react-i18next to v11.11.4 2021-07-26 10:51:21 +00:00
Renovate Bot
242b21a34b fix(deps): update dependency i18next to v20.3.5 2021-07-25 10:51:00 +00:00
Renovate Bot
7e2d72e7dd fix(deps): update dependency date-fns to v2.23.0 2021-07-23 09:21:19 +00:00
Renovate Bot
b626f03c8c chore(deps): update codesee to v0.51.1 2021-07-23 00:39:27 +00:00
Renovate Bot
be5177ca48 chore(deps): update dependency webpack to v5.46.0 2021-07-22 13:12:50 +00:00
Renovate Bot
0e611f321e chore(deps): update dependency postcss to v8.3.6 2021-07-21 18:03:15 +00:00
Renovate Bot
0daa47791d fix(deps): update gatsby monorepo 2021-07-20 23:49:26 +00:00
Renovate Bot
c9db6e216b fix(deps): update dependency i18next to v20.3.4 2021-07-20 21:49:27 +00:00
Renovate Bot
1e86dae25b chore(deps): update babel monorepo to v7.14.8 2021-07-20 20:09:11 +00:00
Renovate Bot
c0150b00d8 chore(deps): update codesee to v0.50.1 2021-07-19 23:55:35 +00:00
Renovate Bot
2550bb7ebf chore(deps): update codesee to v0.50.0 2021-07-19 21:25:40 +00:00
renovate[bot]
da513953d8 fix(deps): update monaco editor (#42875)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-07-19 10:45:49 +02:00
Renovate Bot
40a0d7470e chore(deps): update dependency webpack to v5.45.1 2021-07-17 00:20:15 +00:00
Renovate Bot
aa5764a2a4 chore(deps): update codesee to v0.49.1 2021-07-16 23:29:23 +00:00
Renovate Bot
fdd06bd34b chore(deps): update dependency @types/react-instantsearch-dom to v6.12.0 2021-07-16 20:49:28 +00:00
Renovate Bot
dc3b2508e4 fix(deps): update dependency @freecodecamp/strip-comments to v3.0.1 2021-07-16 17:02:18 +00:00
Oliver Eyton-Williams
1ba9d03cb5 feat: remove csrf from the client (#42242) 2021-07-16 10:49:47 -05:00
Renovate Bot
7783d714f4 fix(deps): update dependency react-i18next to v11.11.3 2021-07-16 09:46:20 +00:00
Renovate Bot
50f48b794a chore(deps): pin dependency @types/reach__router to 1.3.9 2021-07-15 18:47:49 +00:00
Shaun Hamilton
6ca6d9950c feat(client): improve SuperBlock cert claiming UX (#41147)
* feat(client): improve SuperBlock cert claiming UX

* broken: add certCard foundation

* broken: add TODO comments for scatter-brain

* restructure stepsToClaimSelector

* add api-server verifyCanClaimCert logic

* temp: correct verifyCanClaim URL

* move GET logic to CertificationCard, remove console.logs

* add error handling, and navigation logic

* correct verification logical flow

* fix completion-epic updates, fix cert verify

* update widget to button, disable button unless verified

* working: refactor CertChallenge with hook state

* add StepsType

* update Honesty snapshot

* add DonationModal to SuperBlockIntro

* disable Claim Cert button unless also isHonest

* prevent warning when viewing cert

* test: use navigate in Modal to return to hash

* test: replace gatsby.navigate with reach/router.navigate

* add propTypes

* fix: rename propTypes -> prop-types

* use react-scrollable-anchor to squash modal bug

* update location parser type

* open-source Oliver's suggestion

* fix superblock title

* add claim-cert-from-learn tests

* use larger tests

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

* fix some cypress stuff

* fix ShowCertification cypress test

Co-authored-by: Oliver Eyton-Williams <ojeytonwilliams@gmail.com>
2021-07-15 23:51:27 +09:00
Renovate Bot
7b327f082b fix(deps): update dependency react-i18next to v11.11.2 2021-07-14 10:54:46 +00:00
Renovate Bot
e918e05cfa fix(deps): update dependency i18next to v20.3.3 2021-07-14 09:27:01 +00:00
Renovate Bot
c6878a1309 chore(deps): update dependency redux-saga-test-plan to v4.0.3 2021-07-14 03:15:42 +00:00
Renovate Bot
cc8d92798a chore(deps): update codesee to v0.48.0 2021-07-13 23:21:22 +00:00