Commit Graph

176 Commits

Author SHA1 Message Date
Tristan Toye
dfe5a7fd05 Add Sentry to client for error handling (#43920)
Co-authored-by: Oliver Eyton-Williams <ojeytonwilliams@gmail.com>
2022-04-15 09:54:02 -05:00
Oliver Eyton-Williams
07cfc8b83b fix: only test mobile curriculum on english (#45558) 2022-03-28 12:55:15 -07:00
Shaun Hamilton
fe84387fd2 fix(tests): do not build mobile on i18n tests (#45507) 2022-03-22 21:32:55 +01:00
Sem Bauke
567e99231f feat: add block description to mobile curriculum (#45370)
* feat: add block description to mobile curriculum

* feat: add superblock names
2022-03-22 19:11:44 +00:00
Tom
9e5f9b2a7c fix: webhook process (#45385)
* fix: token rework functional

fix: clean up

fix: more clean up

fix: more clean up

fix: add widget back to settings

fix:

fix:

fix: cypress

Apply suggestions from code review

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

fix: use flash enum

* chore: rename webhookToken -> userToken

fix: add translations I forgot to save

* fix: add missing tones for flash messages

* fix: node test
2022-03-11 13:58:23 -08:00
Oliver Eyton-Williams
8ee9b5761a fix: use keys in curriculum.json (#45407)
* feat: add function to map from path to superblock

* fix: use superblocks as keys in curriculum.json

* fix: handle new superblock names

* fix: keep deleting relational-database
2022-03-10 20:41:33 +00:00
Tom
e24c8abc7f revert: release rdbms to production (#45347) 2022-03-04 15:15:20 +01:00
Tom
84c305ab08 feat: release rdbms to production (#45169)
* fix: add cert to email for when all certs are earned

* fix: unhide rdbms from production

* fix: cert project input field

* feat: add cypress tests

* fix: message on project pages to lower expectations

* fix: update instructions

* fix: add quincy's suggestions

* fix: add beta label and reorder

* fix: utils test

* fix: move rdbms to bottom of settings

* fix: cypress tests

* Apply suggestions from code review

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

* fix: only drop seeded users webhook tokens

Co-authored-by: Oliver Eyton-Williams <ojeytonwilliams@gmail.com>
2022-03-04 15:38:09 +05:30
Sem Bauke
e8ec209431 feat: create mobile curriculum data on build (#45162)
* feat: create mobile curriculum data on build

Co-authored-by: Oliver Eyton-Williams <ojeytonwilliams@gmail.com>
2022-03-01 15:59:15 +01:00
Tom
fd14608492 feat: release rdbms on staging (#44576)
fix: unhide cert from settings page

fix: add cert variables where missing

fix: show token on settings page

feat: add challenges to certified user data

fix: stylize settings page a little bit

fix: only show rdbms when upcomingChanges = true

fix: relational databases -> relational database
2022-02-18 17:29:30 +01:00
Oliver Eyton-Williams
7216ca55cc refactor: organise TypeScript config and migrate helpers (#44747)
* feat: allow more 1000 steps to be created at once

* refactor: start migrating to typescript

* refactor: delete-step to ts

* refactor: migrated some helpers

* refactor: migrate create-empty-steps

* refactor: migrate create-step-between

* refactor: finish migrating to TS

* refactor: migrate tests

* fix: ensure mock.restore is done after each test

* fix: prevent double-tscing

* fix: repair the tests

* chore: use ts-node for scripts

We don't need the performance boost of incremental compilation and
ts-node is easier to work with

* refactor: consolidate tsconfigs

* refactor: replace gulp

* fix: use ts-node for build-curriculum

* fix: allow ts compilation of config

* feat: create and use create:config script

* fix: add /config to eslint projects

* fix: remove gulp script
2022-01-25 11:34:16 +01:00
Oliver Eyton-Williams
48f88428e8 test: login more directly (#44467)
* test: login more directly

* test: separate login from other visits

In a single test, Cypress can only visit within a single domain, hence
the separation.

* chore: fail slowly for all strategies

* test: user certified user for showing cert

* test: fix and cleanup certifications
2021-12-11 14:34:16 +05:30
Nicholas Carrigan (he/him)
dd2ff1683c feat: add curriculum feature flag (#44441) 2021-12-09 12:31:03 -06:00
Oliver Eyton-Williams
01b354f0d1 refactor: mollify TypeScript 2021-12-02 19:57:47 +05:30
Oliver Eyton-Williams
03309bea9e chore: remove old package-locks 2021-12-02 19:57:47 +05:30
Oliver Eyton-Williams
efba2e777d chore: simplify eslint configuration (#44347)
* chore: extend import/recommended

* chore: use recommended lint rules

* refactor: apply lint rules

* chore: drop used config
2021-12-02 00:01:12 +00:00
Vinay
5b61c8a56f refactor(client): ts-migration of i18n/validate-keys.js (#44292)
* refactor - file extenstion change to .ts

* fix - imports syntax

* fix - migration complete

* fix - lint:prettier warn

* refactor - validate-keys in tools/scripts/lint/

* refactor - validate-keys.ts moved to tools/scripts/lint and added in tsconfig.json

* refactor - tsconfig.json file for tools

* fix - lint:ts script update and validate-keys.js added to .eslintignore

* fix - lint:prettier and ts compilation

* fix - ts compilation

* refactor - changes in .gitignore and validate-keys script
2021-11-30 08:37:00 -08:00
Shaun Hamilton
98fc7fba0e fix(config): build all-langs.js before server (#44274)
Co-authored-by: Oliver Eyton-Williams <ojeytonwilliams@gmail.com>
2021-11-25 11:01:50 +00:00
Shaun Hamilton
d75e43a1e7 chore: use constants for superblocks (#43886)
* chore: use constants for superblocks

* add prettier ts dec to challenge-helper-scripts

* config/ to ts. broken

* typescripterise tools/ and config/

* create global tsconfig, remove alternate configs

* delete temp ts->js, add to gitignore

* fix gitignore

* re-import SuperBlocks in super-block-intro.tsx

* remove renamed files added again

* fix config

* remove accidental files

* remove snap

* delete built files

* adjust eslintrc for enums

* add node types to root

* ignore build files in lint and prettier

* fix tools/ in tsconfig

* ignore annoying ts warnings

* prettierise Map/index.tsx

* fix enum to match lint rule

* rejig Map to render RWD superblock

* 'pretty minor' - implicitly tsc within root

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

* fix client/package.json for Gitpod

* broken: migrate @types to root

* fix: use typeRoots to prevent duplication

* fix show.tsx, try typeroots in root

* silly fix for duplicate node_modules types

* remove typeRoots from root

* fix: tsconfig or not tsconfig, that is the...

* fix: ...question: Whether 'tis nobler in the mind

to suffer the slings and arrows of outrageous configs...

* fix: Or to take Arms against a Sea of lint errors
And by opposing end them

Co-authored-by: Oliver Eyton-Williams <ojeytonwilliams@gmail.com>
2021-11-19 19:49:40 +05:30
Ahmad Abdolsaheb
7f769cdaf8 Add Patreon client key validation (#44155) 2021-11-10 08:21:50 -08:00
renovate[bot]
6feeaa289b fix(deps): update dependency @types/react-dom to v17.0.11 (#44107)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-11-10 20:17:39 +05:30
Mrugesh Mohapatra
466f39794b chore: update all lockfiles to v2 2021-11-03 15:06:19 +05:30
Mrugesh Mohapatra
6fef483946 chore: update all packages to node v16 & npm v8 2021-11-03 15:06:19 +05:30
Renovate Bot
13e4d265dc chore(deps): update dependency mongodb to v3.7.3 2021-10-20 20:17:06 +00:00
Niraj Nandish
7824f13f5f feat: auto clean client cache when SHOW_UPCOMING_CHANGES value changes (#43747)
* feat: auto clean client cache on env var change

Co-authored-by: Oliver Eyton-Williams <ojeytonwilliams@gmail.com>
Co-authored-by: Nicholas Carrigan (he/him) <nhcarrigan@gmail.com>
2021-10-06 21:07:08 +05:30
Renovate Bot
bed3a1413a chore(deps): update dependency mongodb to v3.7.2 2021-10-05 23:49:22 +00:00
Renovate Bot
ff90a509f2 chore(deps): update dependency mongodb to v3.7.1 2021-09-14 21:28:19 +00:00
Renovate Bot
212c5d8567 chore(deps): update dependency mongodb to v3.7.0 2021-08-31 22:40:56 +00:00
Renovate Bot
b465ee0ac1 chore(deps): update dependency mongodb to v3.6.12 2021-08-30 21:36:51 +00:00
Christian Z. Tamayo
a42348d3b9 test: Privacy terms redirection (#43195) 2021-08-24 22:36:23 +05:30
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
555b473339 chore(deps): update dependency mongodb to v3.6.11 2021-08-05 18:29:06 +00: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
Renovate Bot
0f88d3b2be chore(deps): update dependency mongodb to v3.6.10 2021-07-06 21:24:31 +00:00
Renovate Bot
d9cd7687ba chore(deps): update dependency debug to v4.3.2 2021-07-04 07:05:29 +00:00
Huyen Nguyen
2c16234853 chore: add jest global variables (#42573) 2021-06-20 09:14:42 +02:00
Ikko Ashimine
87ea2772f8 fix: typo in build-curriculum.js (#42533) 2021-06-16 15:27:23 +00:00
Oliver Eyton-Williams
3875c6e619 fix: use env.json in both client and server (#42359) 2021-06-08 13:12:44 +01:00
renovate[bot]
00e5440882 chore(deps): update dependency dotenv to v10 (#42306)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-06-04 13:08:21 +02:00
Renovate Bot
6e86d4fe08 chore(deps): update dependency mongodb to v3.6.9 2021-05-26 23:45:02 +00:00
Renovate Bot
7ab513fbae chore(deps): update dependency mongodb to v3.6.8 2021-05-21 19:03:47 +00:00
Renovate Bot
12a37ba581 chore(deps): update dependency mongodb to v3.6.7 2021-05-18 22:48:04 +00:00
Oliver Eyton-Williams
1c1d86922c refactor: simplify jest config (#42136)
* refactor: bring api jest tests to root

* refactor: pull client tests to root

* fix: remove ancient curriculum babelrc

* feat: run all jest tests at once

* fix: remove unused babelrcRoot

* chore: remove more jests
2021-05-16 18:08:04 +05:30
Renovate Bot
965fc8240d chore(deps): update dependency dotenv to v9.0.2 2021-05-10 22:13:17 +00:00
Renovate Bot
91a6690634 chore(deps): update dependency dotenv to v9.0.1 2021-05-09 08:23:55 +00:00
Renovate Bot
cb931d7f48 chore(deps): update dependency lodash to v4.17.21 2021-05-07 01:29:45 +00:00
Renovate Bot
1586c7b454 chore(deps): update dependency jest to v26.6.3 2021-05-06 23:25:27 +00:00
renovate[bot]
955e6eea9d chore(deps): update dependency lodash to 4.17.21 [security] (#42032)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-05-06 20:24:21 +02:00
renovate[bot]
050afb4bb0 chore(deps): update dependency dotenv to v9 (#42018)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-05-06 21:24:33 +05:30
Renovate Bot
69d47cd5bc chore(deps): update dependency dotenv to v8.6.0 2021-05-06 09:37:16 +00:00