Commit Graph

49 Commits

Author SHA1 Message Date
renovate[bot]
2a868ddc67 chore(deps): update dependency @types/react to v16.14.40 2023-04-15 09:14:09 +00:00
renovate[bot]
f1141c90c3 fix(deps): update dependency react-router-dom to v6.10.0 2023-04-09 16:38:13 +00:00
renovate[bot]
5169ac1e37 chore(deps): update dependency @uiw/react-codemirror to v3.2.9 2023-04-08 18:20:33 +00:00
Muhammed Mustafa
210d75c23c refactor(client): move to uiw react codemirror for challenge editor (#49323)
* refactor(client): move to uiw react codemirror

use editor value to set the input

revert my test which I added by mistake

Remove the state test

update pnpm lock

* fix the broken lock file

* rename the file for clearance

* Move the old properties to the old classs

Co-authored-by: Naomi Carrigan <nhcarrigan@gmail.com>

* fix typo

---------

Co-authored-by: Naomi Carrigan <nhcarrigan@gmail.com>
2023-04-07 21:19:37 +02:00
renovate[bot]
88b923e553 chore(deps): update dependency @types/react to v16.14.38 (#49919)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-04-06 16:02:14 +05:30
Muhammed Mustafa
6e89d3b2dd feat(tools): remove assertion in params inside challenge editor (#49931) 2023-04-03 18:38:22 +00:00
Slieptsov Denys
e64bac9a3f fix(learn): progress bar label alignment (#49659)
Co-authored-by: Denys Slieptsov <denys.slieptsov@leaseplan.com>
2023-03-15 13:15:39 +00:00
renovate[bot]
61be2c68b0 fix(deps): update dependency react-router-dom to v6.9.0 2023-03-12 12:05:26 +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]
6312069bd5 chore(deps): update react monorepo 2023-03-04 14:09:39 +00: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
renovate[bot]
0e3059cc9d fix(deps): update dependency react-router-dom to v6.8.1 (#49345)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-02-17 22:55:32 +05:30
renovate[bot]
e536ba5224 fix(deps): update dependency typescript to v4.9.5 2023-02-04 19:39:26 +00:00
Naomi Carrigan
6221b2b1a5 chore: rename files in challenge editor to kebab case (#49224)
chore: rename files
2023-02-02 07:59:02 +01:00
renovate[bot]
71c4a55bf4 fix(deps): update dependency react-router-dom to v6.8.0 (#49190)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-01-30 11:45:50 +05:30
renovate[bot]
06c4a32202 chore(deps): update dependency @types/codemirror to v5.60.7 2023-01-28 07:46:43 +00:00
renovate[bot]
aac04e93c2 fix(deps): update dependency react-router-dom to v6.7.0 2023-01-22 10:59:01 +00:00
renovate[bot]
fdc429e508 fix(deps): update dependency react-router-dom to v6.6.2 2023-01-15 04:08:22 +00:00
renovate[bot]
4d78b238c6 chore(deps): update dependency @types/codemirror to v5.60.6 2022-12-31 05:07:01 +00:00
renovate[bot]
b1e143a2ef fix(deps): update dependency react-router-dom to v6.6.1 2022-12-25 01:04:19 +00:00
renovate[bot]
288ee08c54 Update dependency react-router-dom to v6.5.0 2022-12-17 18:10:30 +00:00
Niraj Nandish
02e2309598 fix(tools): challenge editor - input text color (#48733)
fix(tools): input text color
2022-12-12 14:15:17 +01:00
renovate[bot]
a606203ae4 fix(deps): update dependency typescript to v4.9.4 2022-12-11 05:27:18 +00:00
renovate[bot]
3b6ee26c4f fix(deps): update dependency react-router-dom to v6.4.5 2022-12-10 18:00:02 +00:00
renovate[bot]
661c21441b fix(deps): update dependency react-router-dom to v6.4.4 2022-12-04 20:36:11 +00:00
renovate[bot]
5504a8cbb7 fix(deps): update dependency typescript to v4.9.3 2022-11-20 22:30:54 +00:00
renovate[bot]
368f2d606b fix(deps): update dependency react-router-dom to v6.4.3 2022-11-05 16:14:32 +00:00
renovate[bot]
aafb0794c9 fix(deps): update dependency react-router-dom to v6.4.2 2022-10-08 16:01:29 +00:00
renovate[bot]
12001a8eb1 fix(deps): update dependency typescript to v4.8.4 2022-10-03 04:26:03 +00:00
renovate[bot]
40acb05642 fix(deps): update dependency react-router-dom to v6.4.1 2022-09-26 22:02:28 +00:00
renovate[bot]
0fe2b24b39 fix(deps): update dependency react-router-dom to v6.4.0 (#47552)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2022-09-19 21:31:11 +05:30
renovate[bot]
460335599d fix(deps): update dependency typescript to v4.8.3 2022-09-11 09:16:23 +00:00
renovate[bot]
da69ec485a fix(deps): update dependency typescript to v4.8.2 2022-08-29 13:45:42 +00:00
hanswang123456
d2d1bc8dab fix(curriculum): correctly describe insert step in Challenge Editor (#47331)
* Update InsertStep.tsx

* Update Tools.tsx

* Update how-to-work-on-practice-projects.md

* removed redundant example

* Update tools/challenge-editor/client/src/components/tools/Tools.tsx

Co-authored-by: Ilenia <nethleen@gmail.com>

Co-authored-by: Ilenia <nethleen@gmail.com>
2022-08-20 10:30:46 +02:00
renovate[bot]
3aca9eee95 chore(deps): update dependency @testing-library/jest-dom to v5.16.5 2022-08-06 18:21:54 +00:00
Oliver Eyton-Williams
9adf9fa9f2 fix: use shx for cross-platform cp (#46847) 2022-07-11 09:30:56 -07:00
Shaun Hamilton
cc7f584b96 feat(challenge-editor): make work in gitpod (#46784)
* feat(challenge-editor): make work in gitpod

* gitpod: make chal-editor ports public

* refactor: use .env files to set variables

Co-authored-by: Oliver Eyton-Williams <ojeytonwilliams@gmail.com>
2022-07-08 11:25:36 +02:00
Oliver Eyton-Williams
11143178f6 fix(challenge-editor): Windows compatibility (#46617)
* fix(challenge-editor): Windows compatibility
2022-06-22 11:46:55 +02:00
renovate[bot]
16c23d0d10 chore(deps): update react monorepo 2022-06-20 23:20:59 +00:00
renovate[bot]
17cc61dfe1 fix(deps): update dependency typescript to v4.7.4 (#46560)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2022-06-20 15:48:19 +05:30
Renovate Bot
902ca385ee fix(deps): update dependency typescript to v4.7.3 2022-06-05 03:43:47 +00:00
Renovate Bot
36bd34f5ca fix(deps): update dependency typescript to v4.7.2 2022-05-30 00:38:12 +00:00
Renovate Bot
d19a943c28 fix(deps): update dependency react-router-dom to v6.3.0 2022-05-03 21:58:27 +00:00
Oliver Eyton-Williams
534cc151d1 fix: resolve conflict between clients (#45837)
npm was confusing the two due to the name clash
2022-05-02 19:39:38 +01:00
Renovate Bot
2bbf0de925 chore(deps): update dependency eslint-plugin-react-hooks to v4.5.0 2022-05-02 04:55:24 +00:00
Renovate Bot
e02c016484 fix(deps): update dependency react-scripts to v5.0.1 2022-05-01 17:48:49 +00:00
Renovate Bot
debfcbe382 fix(deps): update dependency typescript to v4.6.4 2022-05-01 14:55:26 +00:00
Renovate Bot
06071cfbcf fix(deps): pin dependencies 2022-04-30 03:15:34 +00:00
Naomi Carrigan
56820d90f8 feat: add challenge editor tool (#45214)
* feat: add challenge editor tool

chore: prepare API/Client setup

feat: migrate to react!

feat: styling

fix: useEffect loop

feat: add challenge helpers

feat: use actual code editor

feat: styling

Bring it a bit more in line with /learn

* refactor: use workspaces

Which unfortunately required a rollback to React 16, because having
multiple React versions causes all sorts of issues.

* chore: apply Oliver's review suggestions

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

* chore: remove test files for now

* fix: prettier issue

* chore: apply oliver's review suggestions

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

* chore: move scripts to root

* fix: lint errors oops

* chore: remove reportWebVitals thing

* chore: DRY out paths

* fix: create-empty-steps takes one arg

* chore: start doesn't make sense now

* chore: DRY out button requests

* chore: one more review suggestion

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

* chore: cleanup CRA files

* fix: correct note for creating new project

* feat: enable js and jsx highlighting

* feat: include all superblocks

* feat: improve button ux

* feat: add "breadcrumbs"

* feat: add link back to block from step tools

* chore: remove unused deps

* chore: apply oliver's review suggestions

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

* chore: parity between file names and commands

Co-authored-by: Oliver Eyton-Williams <ojeytonwilliams@gmail.com>
2022-04-26 12:33:43 -05:00