Commit Graph

871 Commits

Author SHA1 Message Date
renovate[bot]
95708c692a chore(deps): update dependency prettier to v2.8.7 2023-03-25 07:58:27 +00:00
Sem Bauke
87d9ade1a7 fix(curriculum,client): move the Euler Project to its own superBlock (#49294)
Co-authored-by: Kristofer Koishigawa <scissorsneedfoodtoo@gmail.com>
Co-authored-by: Oliver Eyton-Williams <ojeytonwilliams@gmail.com>
Co-authored-by: Naomi Carrigan <nhcarrigan@gmail.com>
Co-authored-by: moT01 <20648924+moT01@users.noreply.github.com>
2023-03-23 21:29:13 +05:30
Sem Bauke
864df54011 feat(tools): redirect generation script (#49798)
* feat: redirect generation script

* feat: add comment

* Apply suggestions from code review

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

---------

Co-authored-by: Oliver Eyton-Williams <ojeytonwilliams@gmail.com>
2023-03-23 08:19:21 -07:00
renovate[bot]
7ecf6a44bc chore(deps): update jest monorepo to v29 (major) (#49775)
* chore(deps): update jest monorepo to v29

* chore: install jest-environment-jsdom

* chore: update snapshots

* fix: update config to transform nanoid+uuid

* chore: update babel's node target

This does not seem strictly necessary, but is probably for the best.

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Oliver Eyton-Williams <ojeytonwilliams@gmail.com>
2023-03-21 12:37:23 +00:00
Muhammed Mustafa
6c0f2d0998 fix(tools): FromControl disregard the default attributes (#49411)
Co-authored-by: ahmad abdolsaheb <ahmad.abdolsaheb@gmail.com>
2023-03-21 14:05:55 +05:30
renovate[bot]
1c793d39b7 chore(deps): update dependency joi to v17.8.4 2023-03-18 23:07:53 +00:00
renovate[bot]
c94962a825 chore(deps): update babel monorepo 2023-03-18 21:49:50 +00:00
Oliver Eyton-Williams
d65c36e4c3 feat: replace rimraf with rm -rf (#49711)
* feat: replace rimraf with rm -rf

rimraf may not be available, but rm will be

* chore(deps): remove rimraf
2023-03-16 12:34:31 +05:30
Muhammed Mustafa
ea83d87869 feat(tools): export Alertprops if needed for consumption (#49236)
Co-authored-by: Ahmad Abdolsaheb <ahmad.abdolsaheb@gmail.com>
2023-03-15 16:27:07 +03: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
Rajkumar Gaur
f03c4a2ecc feat(UI): implement ToggleButton component (#48567) 2023-03-15 14:08:58 +03:00
Oliver Eyton-Williams
c498c06259 fix(deps): add missing dependencies + fix knip (#49691)
* refactor: use pnpm dlx over npx

* fix: create config before running knip

* chore: fix challenge-parser dependencies

* chore: add missing client + plugin dependencies

* chore: pin deps
2023-03-13 19:38:19 +05:30
renovate[bot]
61be2c68b0 fix(deps): update dependency react-router-dom to v6.9.0 2023-03-12 12:05:26 +00:00
renovate[bot]
caed609114 chore(deps): update dependency autoprefixer to v10.4.14 2023-03-11 17:09:13 +00:00
Tom
b950070f80 feat(curriculum): add college algebra cert as upcoming change (#43605)
Co-authored-by: Shaun Hamilton <shauhami020@gmail.com>
2023-03-10 10:55:50 +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
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
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]
286573c30d chore(deps): update dependency debug to v4.3.4 2023-02-25 08:01:08 +00:00
renovate[bot]
140694a447 chore(deps): update dependency tailwindcss to v3.2.7 (#49428)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-02-18 12:05:39 -08:00
Muhammed Mustafa
d1166f0a3a refactor(tools): import close button props and stop reassigning its value (#49235)
refactor(tools): import close button  props and stop reassigning its value
2023-02-18 08:18:40 -08: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
Naomi Carrigan
26367a17c7 chore: remove crowdin scripts (#49374) 2023-02-14 09:53:38 +02:00
Oliver Eyton-Williams
4ff00922da refactor: fix hidden eslint errors (#49365)
* refactor: explicit types for validate

* refactor: explicit return types for ui-components

* refactor: use exec instead of match

* refactor: add lots more boundary types

* refactor: more eslint warnings

* refactor: more explicit exports

* refactor: more explicit types

* refactor: even more explicit types

* fix: relax type contrainsts for superblock-order

* refactor: final boundaries

* refactor: avoid using 'object' type

* fix: use named import for captureException

This uses TypeScript (which works) instead of import/namespace
(which doesn't) to check if captureException exists in sentry/gatsby
(it does)
2023-02-13 07:13:50 -08:00
renovate[bot]
8aa35385a0 chore(deps): update dependency prettier to v2.8.4 (#49341)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-02-11 10:47:49 +00:00
renovate[bot]
3065d7cab7 chore(deps): update dependency tailwindcss to v3.2.6 (#49342)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-02-11 10:47:01 +00:00
Muhammed Mustafa
47ffd20f74 fix(client): add type to warn misuse of attributes in formControl (#48696)
* feat: add type to warn miss usage of attributes in formControl

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

* refactor the value type

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

* add condition type for readyonly and onchange types

* warn when using readonly and onchange props together

Co-authored-by: Ahmad Abdolsaheb <ahmad.abdolsaheb@gmail.com>

* allow value to be undefined

* Make read-only undefined

Co-authored-by: Ahmad Abdolsaheb <ahmad.abdolsaheb@gmail.com>

---------

Co-authored-by: Oliver Eyton-Williams <ojeytonwilliams@gmail.com>
Co-authored-by: sembauke <semboot699@gmail.com>
Co-authored-by: Ahmad Abdolsaheb <ahmad.abdolsaheb@gmail.com>
2023-02-10 13:24:23 +00:00
Sem Bauke
928dcbe08c feat: transfer The Odin Project to its own superblock (#49202)
* feat: the odin-project superblock

* feat: break everything

* fix: correct meta names

* fix: meta again

* fix: tests

* fix: help category and external curriculum test

* fix: file names again

* fix: help category

* fix: remove console log

---------

Co-authored-by: Oliver Eyton-Williams <ojeytonwilliams@gmail.com>
2023-02-08 15:21:03 +01:00
renovate[bot]
e536ba5224 fix(deps): update dependency typescript to v4.9.5 2023-02-04 19:39:26 +00:00
renovate[bot]
33f9825164 fix(deps): update dependency node-fetch to v2.6.9 2023-02-04 17:50:42 +00:00
renovate[bot]
0d90c6810b chore(deps): update dependency @types/express to v4.17.17 2023-02-04 04:35:25 +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]
1ec4d740eb chore(deps): update storybook monorepo to v6.5.16 2023-01-29 22:47:17 +00:00
renovate[bot]
06c4a32202 chore(deps): update dependency @types/codemirror to v5.60.7 2023-01-28 07:46:43 +00:00
Muhammed Mustafa
b35e8166c0 feat(tools): add system pallet to ui components color (#49125) 2023-01-27 10:45:21 -06:00
Sem Bauke
901ca9d9a2 fix(client): multiple issues the odin project (#49075)
* fix: multiple issues

* fix: show expand collaps button

* fix: make variable instead

* fix: console log
2023-01-25 18:59:26 +05:30
renovate[bot]
aac04e93c2 fix(deps): update dependency react-router-dom to v6.7.0 2023-01-22 10:59:01 +00:00
Sem Bauke
df53c7778c feat: integrate The Odin Project (#48617)
* feat: integrate the odin project

* feat: add assignment to markdown parser

* feat: add assignment logic

* fix: doe not always show assignment block

* fix: some other stuff

* fix: introdiction to html and css questions

* fix: remove assignments after first question

* fix: update snapshots and tests

* feat: create rest of HTML foundation course structure

* feat: meta file

* feat: add descriptions to 'html boiler plate' questions

* feat: add description for 'working with text and list items'

* fix: multiple logic issues

* fix: make linter happy

* feat: add description for 'links and images' questions

* fix: add assignments to Joi schema

* fix: tests

* fix: schema

* fix: add help category

* fix: change to possessive wording

* fix: set upcoming change to true in meta file

* fix: spell unordered and ordered correctly

* fix: switch order in meta

* fix: spell boilerplate correctly

* feat: add final project

* chore: add more tests to the final project

* fix: question spelling

* Apply suggestions from code review

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

* Apply suggestions from code review

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

* Apply suggestions from code review

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

* Apply suggestions from code review

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

* Apply suggestions from code review

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

* Apply suggestions from code review

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

* fix: translation

* Update client/i18n/locales/english/translations.json

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

* fix: create new challenge type

* fix: get the new challenge type working and remove ol css

* fix: translation location

* fix: add challenge type to epic

* fix: set correct video

* fix: max challengeType number

* fix: spelling/grammar errors in project

* fix: check if anchor tags is empty

* Apply suggestions from code review

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

* Update tools/challenge-parser/parser/plugins/add-video-question.js

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

* chore: multiple suggestions

* chore: separate assignments into different plugin

* Apply suggestions from code review

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

* fix: dubble answer header after review

* fix: issue with Gatsby hopefully

* fix: add assignments to Gatsby's Challenge schema

* Update curriculum/schema/challengeSchema.js

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

Co-authored-by: Naomi Carrigan <nhcarrigan@gmail.com>
Co-authored-by: Oliver Eyton-Williams <ojeytonwilliams@gmail.com>
Co-authored-by: Kristofer Koishigawa <scissorsneedfoodtoo@gmail.com>
2023-01-19 14:55:26 +02: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]
8f7dd2ea9a fix(deps): update dependency node-fetch to v2.6.8 2023-01-15 00:06:35 +00:00
renovate[bot]
f53b19ac95 chore(deps): update dependency prettier to v2.8.3 2023-01-14 10:49:47 +00:00
renovate[bot]
e0e8356d56 chore(deps): update dependency prettier to v2.8.2 2023-01-08 21:24:01 +05:30
renovate[bot]
cc0514ea35 chore(deps): update dependency postcss to v8.4.21 2023-01-07 15:06:15 +00:00
renovate[bot]
0b6efdbe40 chore(deps): update babel monorepo to v7.20.12 2023-01-07 08:31:49 +00:00
Oliver Eyton-Williams
0a20f8fd73 refactor: remove a lot of unused code (#48935)
Co-authored-by: Naomi Carrigan <nhcarrigan@gmail.com>
2023-01-07 10:33:35 +05:30