Commit Graph

23 Commits

Author SHA1 Message Date
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
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
3875c6e619 fix: use env.json in both client and server (#42359) 2021-06-08 13:12:44 +01:00
Ahmad Abdolsaheb
27c8d564e4 fix(client): replace Stripe with PayPal (#41924)
* feat: remove stripe payment option from client

* feat: remove stripe completely

* fix: remove last Stripe remnants

Co-authored-by: Oliver Eyton-Williams <ojeytonwilliams@gmail.com>
2021-05-03 11:45:23 +03:00
Mrugesh Mohapatra
b5f4754e2a fix: re-revert the API decoupling (#41263)
* fix(api): decouple api from curriculum

This reverts commit 8f0e441644 and
introduces the implementations from #40703.

* fix(gitpod): add curriculum build to GitPod

This reverts commit 706d70f58d and
introduces implementations from #41234.

* docs: update DevOps manual for api change (#41259)

Co-authored-by: Oliver Eyton-Williams <ojeytonwilliams@gmail.com>
2021-02-25 12:02:35 -08:00
Mrugesh Mohapatra
8f0e441644 revert(api): decouple api from curriculum
This reverts commit c077ffe4b9
via PR #40703
2021-02-25 03:40:09 +05:30
Oliver Eyton-Williams
c077ffe4b9 feat(api): decouple api from curriculum (#40703) 2021-02-22 12:23:59 +05:30
Oliver Eyton-Williams
fffc0e51ec chore(client): refactor & organise config (#40875) 2021-02-03 15:22:07 +05:30
Mrugesh Mohapatra
6a09b9bce2 fix(client): refactor dynamic URLs based on lang (#40824) 2021-01-31 12:15:41 +05:30
Mrugesh Mohapatra
0b944ddfde fix(env): update variable validations (#40813) 2021-01-31 12:15:40 +05:30
Nicholas Carrigan (he/him)
59173b346a fix(tools): Validate curriculum_locale (#40572)
Adds validation for the `CURRICULUM_LOCALE`
environment variable in the same way the
`CLIENT_LOCALE` value is validated.

Signed-off-by: nhcarrigan <nhcarrigan@gmail.com>
2021-01-31 12:15:35 +05:30
Tom
3978c6be28 feat: i18n user interface (#40306)
Co-authored-by: Oliver Eyton-Williams <ojeytonwilliams@gmail.com>
2021-01-31 12:15:32 +05:30
Oliver Eyton-Williams
ebb4e0d5cc fix: default to .env (#40315) 2020-11-25 23:15:59 +05:30
Oliver Eyton-Williams
61ba415717 fix: tighten up ensure-env and env.js (#39694) 2020-09-26 00:40:17 +05:30
Oliver Eyton-Williams
4f68cc3126 fix: update env validation and include newest var (#39661) 2020-09-24 20:04:27 +05:30
Oliver Eyton-Williams
f6f5603a88 chore: prevent builds when vars are missing 2020-09-04 00:14:24 +05:30
Oliver Eyton-Williams
40acb604d2 fix: remove migration seed and unused import 2020-09-01 11:35:44 +05:30
Oliver Eyton-Williams
1ad5f756e0 fix(api): remove redirects from api
They should be handled either by nginx or by the client. Turned out a
lot of code, including the path migration, existed to support them.
Hence the large number of removals
2020-09-01 11:35:44 +05:30
Mrugesh Mohapatra
33de8a03b5 fix: remove all extraneous env vars (#39443) 2020-08-21 03:59:27 +05:30
mrugesh
4889e0fdc6 fix(client,tools): update proxy and location paths (#37106) 2019-10-07 16:42:07 -07:00
Mrugesh Mohapatra
ac50216949 fix: NODE_ENV conflicts on pipelines 2019-08-19 01:37:32 +05:30
Mrugesh Mohapatra
1b0441f76c fix: rename redirect generator scripts 2019-08-14 19:23:25 +05:30
Mrugesh Mohapatra
c5fd478d9a fix(deploy): misc. re-arrange scripts and organize 2019-06-21 00:53:05 +05:30