Commit Graph

3215 Commits

Author SHA1 Message Date
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
Renovate Bot
00e7817db5 chore(deps): update codesee to v0.103.0 2021-10-02 03:29:12 +00:00
Renovate Bot
996c01a280 fix(deps): update dependency @stripe/stripe-js to v1.19.0 2021-10-01 23:02:18 +00:00
Renovate Bot
8c73901f5a chore(deps): update codesee to v0.102.2 2021-10-01 21:44:39 +00:00
Sem Bauke
cd8a71c56d fix: wrong flash message when changing email (#43653) 2021-10-01 23:04:54 +05:30
camperbot
182aee555e chore(i18n,learn): update translations (#43660) 2021-10-01 10:00:09 -07:00
Renovate Bot
58a0c37305 chore(deps): update dependency webpack to v5.56.0 2021-10-01 16:19:32 +00:00
Oliver Eyton-Williams
e4ba0e23ea feat: enable reset in multifile editor (#43617)
* feat: dispatch resetChallenge action

* fix: copy challengeFiles instead of in-place sort

* fix: handle null updateFile payloads in redux

* refactor: reorganise region initialization

* refactor: pull code into editorDidMount

Then we can rely on the presence of the editor and monaco and don't have
litter the code with null checks.

* refactor: use better name for editable region init

* refactor: remove unused decoration

* refactor: rename forbidden region init functions

* fix: keep all challengeFiles when resetting

* refactor: remove unused decoration class

* fix: reinitialize editor on reset

* fix: stop adding multiple scroll listeners

Since the challengeFile update on each keystroke extra (unnecessary)
adding of listeners slowed the editor to a crawl.

* fix: only scroll to editor on mount

Rather than on any edit.

* refactor: remove logs and comments

* fix: rename toSortedArray and fix broken test

* fix: check for null not falsy in updateFile

* fix: only update project features when project

* fix: only reset if editor contents have changed

* feat: focus on editor after reset
2021-10-01 10:36:20 +02:00
Sem Bauke
cfc9b7258d fix(client): cert rendering temporarily (#43335)
* fix: require login as step

* fix: cert rendering temporary

* fix: remove keys from other translation files

* fix: cypress test

* chore: shauns suggestions

* fix: remove steps

* fix: use a seperate UseEffect function

* Suggestions from Shaun

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

* fix: certification temp rendering

* fix: cert temp rendering hopefully

* fix: button visibility and cert test

* fix: condition

* test: improve claim cert tests

Without npm run seed, retries will be in a different state.

Check the scroll position to (hopefully) catch the weird cert claim bug.

Co-authored-by: Shaun Hamilton <shauhami020@gmail.com>
Co-authored-by: Oliver Eyton-Williams <ojeytonwilliams@gmail.com>
2021-10-01 10:00:14 +05:30
Renovate Bot
d5e3979753 chore(deps): update codesee to v0.102.1 2021-09-30 22:52:54 +00:00
Renovate Bot
0cd3634d95 fix(deps): update dependency react-final-form to v6.5.7 2021-09-30 21:10:58 +00:00
Renovate Bot
871f808883 fix(deps): update dependency gatsby to v3.14.1 2021-09-30 19:36:07 +00:00
Renovate Bot
2da395ae75 fix(deps): pin dependency react-monaco-editor to 0.45.0 2021-09-30 11:19:07 +00:00
Renovate Bot
80e8ba8879 fix(deps): pin dependencies 2021-09-30 09:14:46 +00:00
renovate[bot]
9095925484 fix(deps): update monaco editor (#43344)
* fix(deps): update monaco editor

* chore: rollback monaco, update react-monaco-editor

The latest version of react-monaco-editor is only compatible with monaco
v0.27

* fix: roll-back monaco-editor-webpack-plugin

Co-authored-by: Renovate Bot <bot@renovateapp.com>
Co-authored-by: Oliver Eyton-Williams <ojeytonwilliams@gmail.com>
2021-09-30 09:42:43 +02:00
camperbot
eeeddd5f23 chore(i18n,learn): update translations (#43613) 2021-09-29 20:19:53 -07:00
Renovate Bot
62315d96db chore(deps): update codesee to v0.101.0 2021-09-30 02:58:02 +00:00