Commit Graph

28960 Commits

Author SHA1 Message Date
750087163e chore(deps): update codesee to v0.121.0 2021-10-21 10:50:20 +00:00
a6c707ee98 fix(deps): update dependency @types/react to v17.0.31 2021-10-21 09:44:13 +00:00
7a6e3fd5f9 chore(deps): update dependency husky to v7.0.4 2021-10-21 07:54:20 +00:00
2da421e2bc chore(deps): update dependency babel-loader to v8.2.3 2021-10-21 04:10:04 +00:00
1508be2fb8 chore(deps): update dependency webpack to v5.59.1 2021-10-21 01:02:05 +00:00
5be3f83299 chore(deps): update dependency postcss to v8.3.10 2021-10-20 22:45:51 +00:00
f08b6a9eb4 chore: remove accidental challenges (#43948) 2021-10-20 21:27:12 +01:00
2dc68c9be2 chore(tools): ignore step files (#43947) 2021-10-20 22:25:46 +02:00
13e4d265dc chore(deps): update dependency mongodb to v3.7.3 2021-10-20 20:17:06 +00:00
d100132f75 feat(client): refactor Flash/redux into TS (#42725)
* feat(client): ts-migrate Flash/redux

* add app types

* convert Flash/redux/index to vanilla TS

* update redux types.ts

* use FlashState type over State type

* update typing

* fix: prettier errors I caused?

* fix: re-add comment I removed

* remove comment

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

* fix type to not include {}

* remove commented out code for future use

* remove unused initialState object

* rename Flash onClose prop to match action name

* directly type reducer to return state

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

Co-authored-by: moT01 <20648924+moT01@users.noreply.github.com>
Co-authored-by: Oliver Eyton-Williams <ojeytonwilliams@gmail.com>
2021-10-20 12:58:10 -05:00
8e43c3c838 fix(deps): update dependency algoliasearch to v4.11.0 2021-10-20 16:20:45 +00:00
bf295391a7 chore(deps): update dependency @types/sanitize-html to v2.5.0 2021-10-20 12:04:22 +00:00
686804f60c fix(deps): update dependency @types/react-dom to v17.0.10 2021-10-20 11:04:42 +00:00
66e47ecf84 fix(deps): update dependency react-instantsearch-dom to v6.13.0 (#43933)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-10-20 15:29:38 +05:30
37a51d5cf1 chore(deps): update dependency @types/validator to v13.6.4 2021-10-20 08:43:07 +00:00
8dbd29d78a chore(deps): update dependency webpack to v5.59.0 2021-10-20 03:37:11 +00:00
5ef2091a74 chore(deps): update dependency @testing-library/user-event to v13.5.0 2021-10-20 01:55:48 +00:00
295601b806 chore(deps): update codesee to v0.119.0 2021-10-20 00:50:13 +00:00
22e39432fd fix(deps): update dependency @stripe/stripe-js to v1.20.3 2021-10-19 23:05:12 +00:00
e24b133aaf chore(i18n,curriculum): update translations (#43931) 2021-10-19 21:08:08 +00:00
ce386d5edd chore(deps): update dependency webpack-cli to v4.9.1 2021-10-19 19:12:38 +00:00
182e07a4da chore(deps): update dependency @rollup/plugin-node-resolve to v13.0.6 2021-10-19 17:38:46 +00:00
6c20301204 feat: control editor focus (#43882)
* refactor: MultifileEditor to functional component.

* fix: make editor acquire focus once on mount

Now the editors can leave the dom (e.g. if a tab is clicked), but an
editor will only call for focus if the MultifileEditor itself remounts
2021-10-19 08:52:51 -07:00
2bddbbff42 feat(client): refactor desktop-layout to ts (#42651)
Co-authored-by: moT01 <20648924+moT01@users.noreply.github.com>
2021-10-19 09:51:38 -05:00
187ef03ed3 chore(deps): update dependency @testing-library/dom to v8.10.1 2021-10-19 13:23:24 +00:00
9b040e6452 chore(deps): update dependency jest to v27.3.1 2021-10-19 12:01:12 +00:00
beb179ab1c Removed duplicate map.test.tsx (#43924)
* removed duplicate Map.test.tsx

Co-authored-by: Oliver Eyton-Williams <ojeytonwilliams@gmail.com>
2021-10-19 14:32:51 +04:00
2cd11a0ac8 feat: Typescript migration Map test (#43802) 2021-10-19 08:36:46 +05:30
d3e00ff05e fix(curriculum): add note about dotenv package (#43877)
* Add NOTE about dotenv package

* Update note about `dotenv`

* Update curriculum/challenges/english/05-back-end-development-and-apis/basic-node-and-express/use-the-.env-file.md

Commit reviewer's suggestion

Co-authored-by: Tom <20648924+moT01@users.noreply.github.com>

Co-authored-by: Tom <20648924+moT01@users.noreply.github.com>
2021-10-18 14:31:16 -07:00
0d1055fd08 (chore): refactor Map.test.js to map.test.tsx (#43897)
* chore: rename Map.test.js to map.test.tsx

* chore: refactor Map.test.js to typescript
2021-10-18 23:40:09 +04:00
a927257e1d fix(curriculum): update text of a challenge (#43891) 2021-10-18 18:42:42 +02:00
ae78a29c51 chore(i18n,docs): update translations (#43893) 2021-10-18 18:11:54 +02:00
0654bd92b0 chore(i18n,curriculum): update translations (#43881) 2021-10-18 08:17:43 -07:00
e8e64318b3 chore(i18n,learn): update translations (#43880) 2021-10-18 07:59:48 -07:00
b9c1bc92cd refactor: remove redundant parts of the editor (#43847)
* refactor: remove forbidden regions

We aren't using them and they're implemented badly. To recreate them, we
should simply track the editable region and update them when it's Range
changes.

* refactor: simplify the refs considerably

There's no point keeping an object with properties for all possible
editors when only one is created at once.
2021-10-18 16:23:36 +03:00
6a5f586f73 fix: handle challenge resets through redux (#43843)
Instead of relying on heuristics like "does the current content
differ from the initial content?" this just resets if the reset button
has been pressed.
2021-10-18 14:58:06 +03:00
91717384fd chore(deps): update dependency @testing-library/dom to v8.10.0 2021-10-18 11:33:46 +00:00
b54b77873b chore(deps): update dependency jest to v27.3.0 2021-10-17 20:13:04 +00:00
102ff04ff1 fix(deps): update dependency @stripe/stripe-js to v1.20.2 2021-10-16 04:09:19 +00:00
524c6b1d52 chore(deps): update codesee to v0.117.0 2021-10-16 02:22:19 +00:00
1ba3dc1d70 chore(deps): update dependency @testing-library/user-event to v13.4.1 2021-10-16 00:37:48 +00:00
0bb14167ae fix(deps): update gatsby monorepo 2021-10-15 22:09:13 +00:00
774454c6d1 fix(deps): update dependency @types/react to v17.0.30 2021-10-15 20:19:29 +00:00
8f63dc4ccc fix(docs): fix typo (#43842) 2021-10-15 20:10:16 +02:00
9820e7bcef chore(i18n,docs): update translations (#43879) 2021-10-15 07:53:27 -07:00
3dbe40410c feat(client): language dropdown in the side menu is now a drop down (#43729)
* feat(UI): language in the side menu is now a drop down. navigation items are now text wrapped

* fix: use redux navigation to redirect links instead

* fix: fix to use clientLocale as curent language instead

* fix: tests to use clientLocale
2021-10-15 16:08:35 +03:00
e61bc3ba5d chore(deps): update storybook monorepo to v6.3.12 2021-10-15 12:12:17 +00:00
6b26ce2e0f fix(client): only target editor calls for focus (#43839)
For legacy challenges, there's only one editor and it must be focused.

For project steps, only the editor with the editable region should call
for focus.
2021-10-15 11:42:50 +01:00
9ddb30b92d chore(deps): update dependency mocha to v9.1.3 2021-10-15 09:31:57 +00:00
cb0a502d82 chore: tree shaking - unused / redundant code (#43867) 2021-10-15 13:13:43 +05:30