Commit Graph

3203 Commits

Author SHA1 Message Date
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
Renovate Bot
9de5f3ed15 chore(deps): update codesee to v0.100.0 2021-09-30 01:00:37 +00:00
Renovate Bot
4caecf4ebf fix(deps): update dependency final-form to v4.20.4 2021-09-29 21:49:56 +00:00
Renovate Bot
87b2a61bd0 fix(deps): update dependency react-final-form to v6.5.6 2021-09-29 20:19:51 +00:00
Renovate Bot
2aa8c60a1f chore(deps): update dependency webpack to v5.55.1 2021-09-29 11:02:44 +00:00
Renovate Bot
145ce88de4 chore(deps): update codesee to v0.97.0 2021-09-29 00:51:37 +00:00
Renovate Bot
f51cafad72 chore(deps): update dependency webpack to v5.55.0 2021-09-28 23:19:24 +00:00
Shaun Hamilton
2deb73c8d1 feat(curriculum): add accessibility-quiz practice project (#43244)
* feat(curriculum): add accessibility-quiz practice project

* add parts 002-006

* add parts 7-8, tentative on logo aspect-ratio

* add parts 008-013

* add parts 013-016

* add parts 017-026

* add parts 026-027

* add parts 027-029

* add parts 029-044

* add parts 044-067 - all parts done

* add tests 001-009

* add tests 010 - 033

* add tests 034 - 039

* update tests 008~033, add tests 040-050

* add all tests

* fix some stuff, remove final.md

* take reasonable suggestions from Nich, ignore rest

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

* replace svg link with actual CDN

* remove getAttribute in potentially bad places

* add method to form

* fix silly querySelectors

* adjust selectors for 028

* fix selectors, and add color transformations

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

* fix: typos, and make one test lenient

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

Co-authored-by: Nicholas Carrigan (he/him) <nhcarrigan@gmail.com>
Co-authored-by: gikf <60067306+gikf@users.noreply.github.com>
2021-09-28 15:38:44 -05:00
Renovate Bot
92d2119199 chore(deps): update codesee to v0.96.0 2021-09-28 19:54:56 +00:00
renovate[bot]
8beb26e84e chore(deps): update dependency typescript to v4.4.3 (#43316)
* chore(deps): update dependency typescript to v4.4.3

* fix: use UserType correctly

Co-authored-by: Renovate Bot <bot@renovateapp.com>
Co-authored-by: Oliver Eyton-Williams <ojeytonwilliams@gmail.com>
2021-09-28 10:56:46 +02:00
Renovate Bot
b751becb40 chore(deps): update dependency @testing-library/react to v12.1.1 2021-09-27 15:02:33 +00:00
Oliver Eyton-Williams
0f32cabef9 fix: move ActionRow outside the ReflexContainer (#43532)
* fix: move ActionRow outside the ReflexContainer

It does not need to be resizable.

* fix: make DesktopLayout aware of ActionRow

The ReflexContainer seems to need to be inside a display: flex component
to correctly compute the sizes of it's children.

* refactor: remove unused props
2021-09-27 13:16:29 +03:00
Oliver Eyton-Williams
2b6bef08ae feat: localize videos (#42869)
* refactor: separate out VideoPlayer component

* feat: support bilibili videos

* feat(client): allow localized videos to be shown

* fix: remove add subtitles CTA

* feat: add locale ids for Why Program?
2021-09-27 12:26:38 +03:00