Commit Graph

3331 Commits (6d8d18ef1bf26b138a3801dbefaf33df2dfad2fe)

Author SHA1 Message Date
Renovate Bot c8e2cae8d1 chore(deps): update dependency @types/validator to v13.6.5 2021-10-23 13:04:01 +00:00
Renovate Bot 0499b06ad2 chore(deps): update codesee to v0.124.0 2021-10-23 03:05:05 +00:00
Renovate Bot 8f8333d710 fix(deps): update dependency gatsby to v3.14.4 2021-10-22 21:59:00 +00:00
Renovate Bot 7dbc2835d3 chore(deps): update dependency @types/react-transition-group to v4.4.4 2021-10-22 04:33:26 +00:00
Renovate Bot 4a2104bb1e chore(deps): update codesee to v0.122.0 2021-10-22 00:33:39 +00:00
Renovate Bot 874afd0d06 chore(deps): update dependency postcss to v8.3.11 2021-10-21 20:44:57 +00:00
Renovate Bot 750087163e chore(deps): update codesee to v0.121.0 2021-10-21 10:50:20 +00:00
Renovate Bot 1508be2fb8 chore(deps): update dependency webpack to v5.59.1 2021-10-21 01:02:05 +00:00
Renovate Bot 5be3f83299 chore(deps): update dependency postcss to v8.3.10 2021-10-20 22:45:51 +00:00
Shaun Hamilton 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
Renovate Bot 8e43c3c838 fix(deps): update dependency algoliasearch to v4.11.0 2021-10-20 16:20:45 +00:00
Renovate Bot bf295391a7 chore(deps): update dependency @types/sanitize-html to v2.5.0 2021-10-20 12:04:22 +00:00
Renovate Bot 686804f60c fix(deps): update dependency @types/react-dom to v17.0.10 2021-10-20 11:04:42 +00:00
renovate[bot] 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
Renovate Bot 37a51d5cf1 chore(deps): update dependency @types/validator to v13.6.4 2021-10-20 08:43:07 +00:00
Renovate Bot 8dbd29d78a chore(deps): update dependency webpack to v5.59.0 2021-10-20 03:37:11 +00:00
Renovate Bot 295601b806 chore(deps): update codesee to v0.119.0 2021-10-20 00:50:13 +00:00
Renovate Bot 22e39432fd fix(deps): update dependency @stripe/stripe-js to v1.20.3 2021-10-19 23:05:12 +00:00
Renovate Bot ce386d5edd chore(deps): update dependency webpack-cli to v4.9.1 2021-10-19 19:12:38 +00:00
Oliver Eyton-Williams 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
Shaun Hamilton 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
Zachary Dixon 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
Lucas Barros 2cd11a0ac8
feat: Typescript migration Map test (#43802) 2021-10-19 08:36:46 +05:30
Ahmed Ghoneim 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
camperbot e8e64318b3
chore(i18n,learn): update translations (#43880) 2021-10-18 07:59:48 -07:00
Oliver Eyton-Williams 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
Oliver Eyton-Williams 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
Renovate Bot 102ff04ff1 fix(deps): update dependency @stripe/stripe-js to v1.20.2 2021-10-16 04:09:19 +00:00
Renovate Bot 524c6b1d52 chore(deps): update codesee to v0.117.0 2021-10-16 02:22:19 +00:00
Renovate Bot 0bb14167ae fix(deps): update gatsby monorepo 2021-10-15 22:09:13 +00:00
Lim Shang Yi 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
Oliver Eyton-Williams 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
RobertoMSousa cb0a502d82
chore: tree shaking - unused / redundant code (#43867) 2021-10-15 13:13:43 +05:30
Renovate Bot 05af1bf09d chore(deps): update dependency @types/chai to v4.2.22 2021-10-15 05:17:30 +00:00
Renovate Bot 6618d8b96c chore(deps): pin dependency @types/chai to v4.2.21 2021-10-15 00:55:17 +00:00
Shaun Hamilton 4a605c5cd2
feat(curriculum): add registration form practice project (#42876)
* feat(curriculum): add registration-form practice project

* add parts 001-006

* add parts 007-009

* add parts 010-013

* add parts 014-024, fix 013

* add parts 025-043

* add parts 043-046

* add parts 0047-057 without tests

* fix tests and adjust index.md file I do not understand

* add css tests to parts 037-040

* add tests parts 040-057

* remove space around ERM

* add true assertion until document iframe is fixed

* add critical review suggestions

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

* use clear, Tom-like language for 038

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

* change order to match author's age

* apply suggestions with personal pazzaz

* add that thing Nich forgets

* use innerText

Co-authored-by: Nicholas Carrigan (he/him) <nhcarrigan@gmail.com>

Co-authored-by: Tom <20648924+moT01@users.noreply.github.com>
Co-authored-by: gikf <60067306+gikf@users.noreply.github.com>
Co-authored-by: Nicholas Carrigan (he/him) <nhcarrigan@gmail.com>
2021-10-14 15:33:13 -07:00
Tom 037e38329a
fix: linting errors (#43871) 2021-10-14 16:13:16 -05:00
Meron Ogbai 06518c04a7
feat(ts-migrate): migrate sass-compile.js and test-evaluator.js to ts (#43145)
* feat(ts-migrate): rename sass-compile.js to ts

* feat(ts-migrate): rename test-evaluator.js to ts

* feat(ts-migrate): add webworker in client tsconfig

* fix(ts-migrate): fix errors in sass-compile.ts

* chore(ts-migrate): install chai types in client

* fix(ts-migrate): fix errors in test-evaluator.ts

* fix(ts-migrate): rename extensions in webpack-worker

* fix(ts-migrate): separate tsconfig for workers

* fix(ts-migrate): add worker tsconfig to parser options

* chore(ts-migrate): remove unnecessary comment

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

* fix(ts-migrate): use let instead of const

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

* fix(ts-migrate): fix eslint errors in sass-compile.ts

* fix(ts-migrate): fix eslint errors in test-evaluator.ts

* chore(ts-migrate): use unknown instead of generics

* chore(ts-migrate): revert worker tsconfig

* chore(ts-migrate): add libs in client tsconfig

* fix(ts-migrate): use ctx alias in test-evaluator.ts

* fix(ts-migrate): use ctx alias in sass-compile.ts

* chore: fix errors

Co-authored-by: Oliver Eyton-Williams <ojeytonwilliams@gmail.com>
2021-10-14 13:44:55 -05:00
Oliver Eyton-Williams 9bb1919e83
feat: display instructions on frontend projects (#43862) 2021-10-14 10:55:40 -05:00
Ahmad Abdolsaheb 4d245ef004
feat: remove unused files (#43861) 2021-10-14 15:48:08 +02:00
RobertoMSousa 01fd9a80d8
CHORE: migrate intro component (#43784)
* migrate intro component

* Update client/src/components/Intro/index.tsx

Co-authored-by: Nicholas Carrigan (he/him) <nhcarrigan@gmail.com>

* Update client/src/components/Intro/index.tsx

Co-authored-by: Nicholas Carrigan (he/him) <nhcarrigan@gmail.com>

Co-authored-by: Nicholas Carrigan (he/him) <nhcarrigan@gmail.com>
2021-10-14 15:19:03 +02:00
Renovate Bot 4916211179 chore(deps): update dependency @types/react-helmet to v6.1.4 2021-10-14 12:12:47 +00:00
Ethan Edmond d36a9a3c66
chore: delete obsolete file throwers.js (#43850) 2021-10-14 10:43:32 +02:00
Renovate Bot 548e98a844 chore(deps): update codesee to v0.112.1 2021-10-14 03:52:44 +00:00
Renovate Bot 80f8613db4 fix(deps): update dependency nanoid to v3.1.30 2021-10-14 02:17:51 +00:00
Renovate Bot 528bae6a73 fix(deps): update dependency sanitize-html to v2.5.2 2021-10-13 22:50:19 +00:00
Renovate Bot c17b29e725 chore(deps): update dependency webpack to v5.58.2 2021-10-13 13:48:46 +00:00
Oliver Eyton-Williams 8a47b60890
chore: remove debugging console logs (#43837) 2021-10-13 15:11:02 +03:00
Oliver Eyton-Williams 22afdd1aad
fix: stop modal appearing in steps (#43728)
* fix: stop showing completion modal on steps

* feat: submit steps with ctrl+enter

* fix: handle ctrl+enter when not focussing editor

* fix: reset tests when user types

* refactor: pass showCompletionModal as an option

Otherwise we have to write executeChallenge(true) which does not mean
what you might reasonably expect.

* fix: always executeChallenge when not on step

* fix: update frontend project show

* fix: handle missing payload

* refactor: isProjectStep -> hasEditableRegion

* refactor: more renaming

* fix: make meta.json control multifile editor use

* fix: update the challengeSchema correctly

* Update client/src/templates/Challenges/classic/editor.tsx

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

* fix: remove logging

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

Co-authored-by: Shaun Hamilton <shauhami020@gmail.com>
2021-10-13 14:47:59 +03:00
RobertoMSousa 9220bfedad
migrate donation (#43783) 2021-10-13 12:49:02 +03:00
Oliver Eyton-Williams 61d6b02c79
fix: update jaws on resize (#43777)
* fix: update jaws on resize

Use isProjectStep to determine if the jaws need to be updated

* refactor: isProjectStep -> hasEditableRegion

isProjectStep was misleading.  hasEditableRegion correctly describes
that function and leaves isProjectStep to enable features that are
unique to project steps, but nothing to do with the editable region
2021-10-13 12:40:28 +03:00
Maciek Sitkowski 3eae0645ab
fix: add translated close button label in alert messages (#43810) 2021-10-13 11:07:29 +02:00
Oliver Eyton-Williams e209582daf
chore: remove night-mode-saga (#43829)
The saga only sets the value of fcc-theme in storage, but the values are
never retrieved, so the saga can be removed.
2021-10-13 12:00:00 +03:00
camperbot 091473645b
chore(i18n,client): processed translations (#43826) 2021-10-13 12:59:58 +05:30
Renovate Bot 588493b705 fix(deps): update dependency typescript to v4.4.4 2021-10-13 00:10:30 +00:00
Renovate Bot 55d7c5adf0 chore(deps): update codesee to v0.111.1 2021-10-12 09:58:03 +00:00
Renovate Bot 7fb5a29987 chore(deps): update codesee to v0.111.0 2021-10-12 02:54:23 +00:00
camperbot 54652e34e7
chore(i18n,learn): update translations (#43773) 2021-10-10 10:38:02 -07:00
Renovate Bot 0c4d757e73 chore(deps): update codesee to v0.110.1 2021-10-09 01:20:31 +00:00
Oliver Eyton-Williams 461e429598
fix(client): prevent jumping between editor tabs (#43771) 2021-10-08 22:14:15 +01:00
Renovate Bot bba3b6f8a4 chore(deps): update dependency webpack to v5.58.1 2021-10-08 18:14:22 +00:00
Renovate Bot ac3cbdabee chore(deps): update codesee to v0.109.0 2021-10-08 04:05:00 +00:00
Renovate Bot 28084d5e1f chore(deps): update codesee to v0.108.0 2021-10-08 00:14:46 +00:00
Renovate Bot 2e19ea217f chore(deps): update dependency webpack to v5.58.0 2021-10-07 18:09:06 +00:00
renovate[bot] abc831f24f
fix(deps): update gatsby monorepo (#43737)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-10-07 21:39:41 +05:30
Tom 80b1905cd0
feat(curriculum): replace placeholder text with intros for rdbms section (#43589)
* feat: add introsos for rdbms

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

Co-authored-by: Sem Bauke <46919888+Sembauke@users.noreply.github.com>

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

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

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

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

Co-authored-by: Sem Bauke <46919888+Sembauke@users.noreply.github.com>
Co-authored-by: Shaun Hamilton <shauhami020@gmail.com>
2021-10-07 17:14:01 +02:00
camperbot b7bb8a5e9c
chore(i18n,client): processed translations (#43759) 2021-10-07 12:43:26 +00:00
renovate[bot] 25783b7929
fix(deps): update dependency nanoid to v3.1.29 (#43736)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-10-07 18:06:02 +05:30
Ahmad Abdolsaheb 982a6e90d4
feat: add placeholder color to card form (#43757) 2021-10-07 18:03:39 +05:30
renovate[bot] be73864bd5
fix(deps): update dependency @stripe/react-stripe-js to v1.6.0 (#43734)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-10-07 16:17:18 +05:30
Renovate Bot f518a2039f chore(deps): update dependency webpack-cli to v4.9.0 2021-10-07 07:54:57 +00:00
Renovate Bot f95909f53f chore(deps): update codesee to v0.106.1 2021-10-07 04:47:10 +00:00
renovate[bot] 9816a2c6fb
chore(deps): update dependency webpack to v5.57.1 (#43733)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-10-07 07:00:42 +05:30
Renovate Bot 536eef3be9 chore(deps): update babel monorepo to v7.15.8 2021-10-06 23:33:34 +00:00
Oliver Eyton-Williams e3e794ddef
fix(client): only jump to editable region on reset (#43748)
If the code has changed without the user typing (e.g. they've pushed
the restart button), then we jump them back to the editable region.
Otherwise (e.g. they've typed in the editor) we reset the display, but
do not move the editor.
2021-10-06 14:09:04 -07:00
Lim Shang Yi df8dc9b9c6
fix(ui): Fix crash when viewing an invalid certificate (#43681)
* fix: remove empty object literal creation causing #43224

* fix: initialize userByName selector using empty object from initialState to keep the same reference instead

* fix(lang): added translation for invalid certificate
2021-10-06 21:05:05 +02:00
Oliver Eyton-Williams c8d7f0a782
feat(tools): remove eslint-plugin-prettier for prettier (#42438)
* feat: remove eslint-plugin-prettier for prettier

This removes the annoying lint warnings when all that needs to change is
formatting

* fix: use .js lint-staged config to ignore properly

* fix: lint everything if a lot of files are changed

It's faster than making lots of individual linter calls

* chore: apply prettier

* fix: ignore code in curriculum-file-structure
2021-10-06 21:02:21 +05:30
Noor Fakhry 8518079316
fix(client):make menu bar disappear after user chooses item from it on landing page (#43458)
* removed serachBarRef

* removed serachBarRef

* Revert "removed serachBarRef"

This reverts commit 6a5c2f4cb3.

* Revert "removed serachBarRef"

This reverts commit 67710b3d18.

* added innerRef as ref to SearchBarOptimized component

* Update client/src/components/Header/index.tsx

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

* Update client/src/components/search/searchBar/search-bar-optimized.tsx

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

* Update client/src/components/search/searchBar/search-bar-optimized.tsx

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

Co-authored-by: Oliver Eyton-Williams <ojeytonwilliams@gmail.com>
2021-10-06 16:42:54 +02:00
Budbreaker bc802cbbbd
feat: added warning for unreachable server (#43576)
* feat: added warning for unreachable server

* fix: update initial state in test file

* fix: make offline warning scroll with page

* adjust z-indexes for warning banners

* add hyperlink for offline warning
2021-10-06 15:18:02 +02:00
Oliver Eyton-Williams 83354c5632
fix: stop using .night to control theme (#43745)
.light-palette and .dark-palette should be enough, so there's no need
to attach the default or night classes to the html element
2021-10-06 11:30:15 +01:00
Kristofer Koishigawa 580f57cf5f
feat: add code highlighting to descriptions in the new editor (#43740) 2021-10-06 11:26:22 +02:00
Oliver Eyton-Williams b0d48b8463
fix: reset editor display on user interaction (#43730)
If the user types in the editor or pushes the reset button, the lower
jaw now resets to the default state.
2021-10-06 12:22:00 +03:00
Tomer Ben-Rachel 4ffc06e014
fix: correct theme when viewing certifications challenges solutions 2021-10-06 11:05:52 +02:00
Renovate Bot 5c4e90d24d chore(deps): update codesee to v0.105.0 2021-10-06 03:17:30 +00:00
renovate[bot] 4c038a8a13
chore(deps): update dependency jest-json-schema-extended to v1.0.1 (#43705)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-10-06 07:19:19 +05:30
Renovate Bot 45a1f28308 chore(deps): update dependency webpack to v5.57.0 2021-10-05 17:49:41 +00:00
Renovate Bot 697506c112 fix(deps): update dependency date-fns to v2.25.0 2021-10-05 10:10:42 +00:00
Renovate Bot ea0157d673 chore(deps): update codesee to v0.104.0 2021-10-05 03:53:43 +00:00
Renovate Bot 926da84521 chore(deps): update dependency postcss to v8.3.9 2021-10-05 02:17:44 +00:00
Renovate Bot 4bfbb5e208 chore(deps): update dependency autoprefixer to v10.3.7 2021-10-04 23:04:45 +00:00
Renovate Bot 2643143118 fix(deps): update dependency @stripe/stripe-js to v1.19.1 2021-10-04 21:05:26 +00:00
Oliver Eyton-Williams 38d65f95b4
refactor(editor): improve naming and comments (#43662)
Co-authored-by: Shaun Hamilton <shauhami020@gmail.com>
Co-authored-by: Sem Bauke <46919888+Sembauke@users.noreply.github.com>
2021-10-04 19:18:57 +05:30
RobertoMSousa f5de80dc4f
chore: migrate to jsx element (#43707) 2021-10-04 19:16:34 +05:30
camperbot 38740f256c
chore(i18n,client): processed translations (#43712) 2021-10-04 19:13:09 +05:30
Renovate Bot c9586ec4ca chore(deps): update dependency webpack to v5.56.1 2021-10-04 09:15:00 +00:00
Renovate Bot 3f79710779 chore(deps): update dependency @testing-library/react to v12.1.2 2021-10-03 17:15:37 +00:00
camperbot 7134cf5ea5
chore(i18n,learn): update translations (#43677) 2021-10-03 07:44:58 -07:00
Eric Cheng 1f880a552d
fix(docs): modified grammar and phrasing in docs and comments (#43682)
* docs: fixed minor typos in how-to-open-a-pull-request.md

* docs: grammar fixes in FAQ.md

* refactor: streamlined comments in multiple TS files

* fix: linting issues
2021-10-02 23:43:14 +01:00
Felix Yan b923a32736
fix: a typo in ga-saga.test.js (#43673) 2021-10-02 15:03:19 +02:00
Renovate Bot d261d7a6d9 chore(deps): update dependency @types/react-helmet to v6.1.3 2021-10-02 09:10:28 +00:00