Commit Graph

35748 Commits

Author SHA1 Message Date
pmelin
90d35945c1
chore(cypress): TS Migration: projects.ts, show-cert-from-superblock.ts and challenges.ts (#49635) 2023-03-10 07:41:25 +00:00
Oliver Eyton-Williams
fe4de8dfe6
docs(devops): correct build command for updates (#49646) 2023-03-10 09:19:50 +02:00
camperbot
194ea36103
chore(i18n,docs): processed translations (#49639) 2023-03-10 09:16:50 +02:00
Niraj Nandish
4769a448e1
feat(api): sessions management (#49499)
Co-authored-by: Oliver Eyton-Williams <ojeytonwilliams@gmail.com>
2023-03-09 20:36:33 +05:30
Shaun Hamilton
1da3e95ee3
chore(.gitpod): rm extensions@X (#49641) 2023-03-09 14:36:48 +00:00
camperbot
c43207b651
chore(i18n,client): processed translations (#49640) 2023-03-09 15:31:32 +01:00
Muhammed Mustafa
86c215acdd
feat(client): add type reset (#49628)
* feat(client): add type reset

* downgrade babel types

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

---------

Co-authored-by: Oliver Eyton-Williams <ojeytonwilliams@gmail.com>
2023-03-09 14:25:30 +00:00
Oliver Eyton-Williams
3864d36e35
fix: remove use-node-version + update devops docs (#49636)
* fix: drop use-node-version + explain npmrc config

* docs(devops): go back to installing node directly

* docs(devops): update scripts + cleanup

* docs: add note about updating node

---------

Co-authored-by: Mrugesh Mohapatra <1884376+raisedadead@users.noreply.github.com>
2023-03-09 14:09:13 +00:00
Mohit Singh
05266841f3
fix(curriculum): fixed the spelling error of 'attribute' (#49633) 2023-03-09 05:57:35 +02:00
camperbot
7f5d162ada
chore(i18n,docs): processed translations (#49622) 2023-03-08 19:45:04 +01:00
Mrugesh Mohapatra
b13713c33f
chore(client): rename and update analytics (#49626) 2023-03-08 15:01:22 +00:00
Shaun Hamilton
e08797c2df
fix(docs): update wsl instructions for pnpm (#49624) 2023-03-08 19:14:54 +05:30
camperbot
da3ffe2c1b
chore(i18n,client): processed translations (#49623) 2023-03-08 12:42:54 +00:00
Mrugesh Mohapatra
9f80ccd8b2
fix(tools): rename and update curriculum scripts (#49620) 2023-03-08 12:02:54 +00:00
Mrugesh Mohapatra
50bc79fde7
fix(tools): rename and update seed user config (#49619) 2023-03-08 12:27:14 +01:00
Muhammed Mustafa
32380519f9
feat(client): clean extra CSS properties (#49608)
* feat(client): clean extra css property

* remove the extra panel default property
2023-03-08 08:37:36 +01:00
Mahibul Haque
a98eedc9ec
fix: lang attribute issue in step-67 (#49591)
* #49562 Issue:Fix lang attribute issue

* fix(curriculum): updated lang attribute issue
2023-03-08 08:35:55 +01:00
Oliver Eyton-Williams
16dec4ef86
feat: use pnpm to manage pm2 (#49574)
* fix(api): use pnpm to manage pm2

This means that pm2 will get the correct NODE_PATH environment variable.
Also, if we use pnpm to manage node, this ensure that pm2 will use that
node version.

* docs(devops): update api install and update docs

* feat: set node version via npmrc

This means that all scripts (pnpm run ...) will use this node version.
The only way to get other node versions is to invoke `node` directly.

* fix(docs): update api docs for pnpm installation

* feat: use pm2 from root

Co-authored-by: Shaun Hamilton <shauhami020@gmail.com>
2023-03-07 14:54:31 -08:00
Naomi Carrigan
04ce4e7709
fix: pass expected object to isAudited (#49548) 2023-03-07 20:15:39 +01:00
Oliver Eyton-Williams
5f59b2b8c7
feat(api): validate environment variables before use (#49613)
* feat(api): validate environment variables before use

This is similar in concept to ensure-env, but a little simpler since
there is no need to put the data in a file before the api can consume
it.

* refactor: combine the two env files
2023-03-07 10:03:46 -08:00
Mrugesh Mohapatra
0393910a24
fix(client): add return type to component (#49616) 2023-03-07 17:07:55 +00:00
Muhammed Mustafa
040faba6f8
feat(ui-components): add ControlLabel component (#47219) 2023-03-07 20:58:29 +05:30
camperbot
4abdc6e53b
chore(i18n,learn): processed translations (#49611) 2023-03-07 15:33:40 +01:00
camperbot
e5136cf58d
chore(i18n,client): processed translations (#49607) 2023-03-07 14:33:16 +00:00
Liam Campbell
9db80be77c
fix(curriculum): specifies the cafe's street address (#49597)
* fix(curriculum): specifies the cafe's street address
2023-03-07 13:36:34 +00:00
Shaun Hamilton
1ba31f0833
feat(.devcontainer): basic codespaces config (#48484)
Co-authored-by: Mrugesh Mohapatra <1884376+raisedadead@users.noreply.github.com>
2023-03-06 20:49:35 +05:30
camperbot
0a7b769b40
chore(i18n,client): processed translations (#49602) 2023-03-06 20:46:41 +05:30
renovate[bot]
85d82f998f
fix(deps): update dependency @growthbook/growthbook-react to v0.12.0 (#49587)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-03-06 07:05:39 -08:00
Walid Mouaaouia
138f42110d
fix: first sentence in Cafe Menu Step 51. (#49576) 2023-03-06 15:59:07 +02:00
camperbot
92b33e8b46
chore(i18n,learn): processed translations (#49559) 2023-03-06 15:57:41 +02:00
Oliver Eyton-Williams
113036dad6
feat: depromisify fastify-jwt-authz (#49550) 2023-03-06 16:25:40 +05:30
Shaun Hamilton
f45d8b06dc
feat(client): warn endpoint url submission (#49560)
Co-authored-by: Oliver Eyton-Williams <ojeytonwilliams@gmail.com>
2023-03-06 16:24:48 +05:30
sidemt
a4ce8fa425
fix(client): prevent word wrap in Chinese & Japanese button text (#49571)
fix(client): prevent word wrap in CJK button text
2023-03-06 16:20:06 +05:30
renovate[bot]
5c7a25ff22
chore(deps): update dependency @types/react-scrollable-anchor to v0.6.1 (#49581)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-03-06 16:12:38 +05:30
Oliver Eyton-Williams
8827993988
fix: update CODEOWNERS so pnpm-lock is not owned (#49599) 2023-03-06 16:07:08 +05:30
camperbot
ba0f56e4a7
chore(i18n,docs): processed translations (#49572) 2023-03-06 08:51:28 +01:00
Muhammed Mustafa
f937e89bc3
feat(client): improve card accessibility (#49566)
Co-authored-by: Bruce B <bbsmooth@gmail.com>
Co-authored-by: Co-authored-by: Bruce B <bbsmooth@gmail.com>
2023-03-06 10:41:09 +03:00
John
d25f19d153
fix(curriculum): clarify example switch statement (#49592) 2023-03-05 19:50:34 -08:00
renovate[bot]
933b909111 fix(deps): update dependency fastify to v4.14.0 2023-03-05 10:44:01 +00:00
renovate[bot]
aff312410a fix(deps): update dependency algoliasearch to v4.15.0 2023-03-05 06:53:20 +00:00
renovate[bot]
ed14033d41 fix(deps): update dependency @stripe/stripe-js to v1.48.0 2023-03-05 03:39:06 +00:00
renovate[bot]
6802434ab5 chore(deps): update automerged always - codesee to v0.525.0 2023-03-05 00:13:08 +00:00
renovate[bot]
a5d31659bc fix(deps): update dependency react-router-dom to v6.8.2 2023-03-04 21:10:50 +00:00
renovate[bot]
72321ad76b fix(deps): update dependency nodemon to v2.0.21 2023-03-04 17:30:13 +00:00
renovate[bot]
8bfb3d3142
chore(deps): update dependency @types/node to v18.14.6 (#49580)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-03-04 07:50:01 -08:00
renovate[bot]
6312069bd5 chore(deps): update react monorepo 2023-03-04 14:09:39 +00:00
camperbot
3faf142dec
chore(i18n,client): processed translations (#49573) 2023-03-03 18:56:26 +02:00
Naomi Carrigan
ec9fb04fb7
feat: statistics calculator (#48181)
* feat: stats calculator to step 23

* feat: complete steps

* feat: starting the tests

* feat: finish tests

* chore: manual review suggestions

* chore: apply jessica's suggestions

Co-authored-by: Jessica Wilkins  <67210629+jdwilkin4@users.noreply.github.com>

* fix: broken mathjax

Co-authored-by: Kristofer Koishigawa <scissorsneedfoodtoo@gmail.com>

* chore: fix typo

Co-authored-by: Kristofer Koishigawa <scissorsneedfoodtoo@gmail.com>

* fix: update regex, clarify first step

* feat: forgot to add solution

* chore: apply sem's review suggestions

Co-authored-by: Sem Bauke <semboot699@gmail.com>

* chore: apply kolade's review suggestions

* chore: apply kris' suggestions

Co-authored-by: Kristofer Koishigawa <scissorsneedfoodtoo@gmail.com>

---------

Co-authored-by: Jessica Wilkins  <67210629+jdwilkin4@users.noreply.github.com>
Co-authored-by: Kristofer Koishigawa <scissorsneedfoodtoo@gmail.com>
Co-authored-by: Sem Bauke <semboot699@gmail.com>
2023-03-03 17:41:25 +09:00
Oliver Eyton-Williams
d7848ae01a
feat: migrate to pnpm for better workspace DX (#49293)
* feat: npm -> pnpm 

This resolves the issues with the gatsby client (gatsby-plugin-pnpm
deals with the fact that gatsby is relying on its own dependencies
being de-duped)
and challenge-editor (which doesn't seem to want to automatically install
codemirror and needed its own eslint config)

* fix: correct mocha path for curriculum tests

* fix: use select workspace with -F not -w

* fix: reorganise packages and restrict hoisting

pnpm works best if the workspaces keep their own dependencies, since
dependencies are not flattened and then what node resolves from a
require is predictable.

@types seem to be a special case and more care is required to prevent
them getting smushed together in the root (hence the .npmrc)

* fix: add types for tools + root

* fix: decouple challenge-auditor from client

* fix: add ui-components types

* fix(client): use the latest types for react 16

* fix: prettify

* fix: prettierignore pnpm-lock

* fix: relax hoisting

Turns out pnpm works just fine with types. I don't know what was going
wrong before, but there are no-longer any type conflicts.

* fix: add @redux-saga/core to fix eslint issue

It seems to only be redux-saga that import/named can't cope with, so it
is probably okay to work around this one.

* chore: add chai to tools/scripts/build

* fix: add store to root for cypress

* fix: allow cypress to download binaries

If we want to keep preventing cypress from downloading binaries, we can
figure out a workaround, but I'm allowing it to ease the transition to
pnpm.

My guess about why this is happening is that npm triggers Cypress's
postinstall script, but pnpm does not (because pnpm install only
installs if necessary, perferring to link)

* chore: re-enable pre/post scripts

* fix: update build scripts for client

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

* chore: update engines to use pnpm


* fix: enable choice of (super)block for tests

Only 'nix machines for now.

* chore: pin pnpm to version 7

* chore: remove last npms

Except web + curriculum-server. I'll update them when I start work on
them again.

* fix: lockfile check to catch any package-locks

* fix(action): install pnpm for upcoming tests

* chore: add nodemon to new api

Co-authored-by: Shaun Hamilton <shauhami020@gmail.com>
2023-03-02 18:17:44 +00:00
Oliver Eyton-Williams
66438c271f
fix: add more explicit return types (#49567) 2023-03-02 17:26:40 +00:00