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
Oliver Eyton-Williams
e118dda13a
fix: order imports and remove circular dependencies ( #41824 )
...
* fix: remove circular dependency
redux depended on templates/Challenges/redux and vice versa. This
meant that import order mattered and confusing bugs could arise.
(cherry picked from commit 7d67a4e70922bbb3051f2f9982dcc69e240d43dc)
* feat: require imports to be in alphabetical order
Import order generally does not matter, but there are edge cases
(circular imports and css imports, for example) where changing order
changes behaviour
(cherry picked from commit b8d1393a91ec6e068caf8e8498a5c95df68c2b2c)
* chore: order imports
* fix: lift up challenge description + title comps
This brings the classic Show closer to the others as they
now all create the description and title components
* fix: remove donation-saga/index circular import
(cherry picked from commit 51a44ca668a700786d2744feffeae4fdba5fd207)
* refactor: extract action-types from settings
(cherry picked from commit 25e26124d691c84a0d0827d41dafb761c686fadd)
* fix: lint errors
* feat: prevent useless renames
2021-08-02 08:39:40 -05:00
Oliver Eyton-Williams
1ba9d03cb5
feat: remove csrf from the client ( #42242 )
2021-07-16 10:49:47 -05: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
awu43
e1d8f4be3a
feat(client): ts-migrate client/src/utils ( #42666 )
...
* rename js files to ts
* start migrating ajax
* finish migrating ajax
* migrate algolia-locale-setup
* migrate format
* migrate format.test
* migrate get-words
* install axios for types in handled-error
* migrate handled-error
* migrate handled-error.test
* migrate report-error
* migrate script-loaders
* migrate to-learn-path
* correct renamed imports
* remove unnecessary type assertions in searchBar
* remove unnecessary global comment
* remove unnecessary max-len enable/disable
* change axios imports to type imports
* revert to .then() from await
* use UserType from redux/prop-types
* replace assertion with generic type
* revert format to JS
* remove unused getArticleById()
* update putUpdateUserFlag() to use Record
* remove unnecessary envData cast
* update algolia-locale-setup types
* remove invalid key property
2021-07-12 11:17:58 +02:00