Commit Graph

3274 Commits

Author SHA1 Message Date
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
Oliver Eyton-Williams
48f2c02c5d refactor(client): remove unused axios dependents (#43579) 2021-09-27 14:32:42 +05:30
Renovate Bot
25c3349685 fix(deps): update dependency nanoid to v3.1.28 2021-09-26 17:34:57 +00:00
Renovate Bot
bf83352e66 chore(deps): update dependency autoprefixer to v10.3.6 2021-09-26 13:18:29 +00:00
camperbot
8da2c348a3 chore(i18n,learn): update translations (#43568) 2021-09-26 10:31:51 +01:00
Renovate Bot
38f0bec2e3 chore(deps): update dependency postcss to v8.3.8 2021-09-25 10:50:22 +00:00
Sem Bauke
e44610f1d0 chore: remove coder survey text (#43559) 2021-09-25 00:54:24 +01:00
Renovate Bot
c80fa07d31 chore(deps): update dependency webpack to v5.54.0 2021-09-24 22:36:14 +00:00
Renovate Bot
9c897b0077 chore(deps): update codesee to v0.95.0 2021-09-24 19:55:54 +00:00
Oliver Eyton-Williams
b5019000bb fix(client): errors with multiple editor tabs (#43549)
* fix: enforce multifile tab order

* fix: sort challengeFiles to prevent remounts

If the challengeFiles are used unsorted, this can unmount an editor.
The editors rely on the mount hook for initialization, so extra mounts
can cause unwanted behaviour.

* fix: make editor tabs and panes match
2021-09-24 15:40:18 +01:00
Renovate Bot
8fac91292d chore(deps): update codesee to v0.94.4 2021-09-24 02:54:48 +00:00
Renovate Bot
33c88e5c3e fix(deps): update dependency @stripe/react-stripe-js to v1.5.0 2021-09-24 01:40:42 +00:00
Sem Bauke
aa3c6987e3 fix: redundant scrollbar on codeally Iframe (#43503) 2021-09-23 10:31:56 -05:00
Oliver Eyton-Williams
41e428d23d feat: update editable region behaviour (#43537)
* refactor: remove ambiguity about editable region

Since the editable region is implemented via decorations and defined in
challenge object, getEditableRegionFromRedux, makes the source obvious

* fix: make jaws follow the highlighted region

* fix: update the jaws on all content changes

* feat: make editable region 'absorb' text

As the user types, the editable region can move, expand and contract.

With this PR then if the user, say, presses backspace on the line after
the editable region, causing that line to move up, then the new contents
will expand/contract as if they had always been part of the region.
2021-09-23 17:27:44 +03:00
Raymen Deol
0036aa8969 feat(client): ts-migrate (/client/src/components/layouts/Certification.js) (#42939)
* change name to certification.tsx

* migrate certification.js to ts

* update ceritification import in index and fix prettier errors

* Update client/src/components/layouts/certification.tsx

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

* Update client/src/components/layouts/certification.tsx

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

* Update client/src/components/layouts/certification.tsx

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

* Update client/src/components/layouts/certification.tsx

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

* fix: reorder imports

Co-authored-by: Raymen Deol <raymen.deol@outlook.com>
Co-authored-by: Nicholas Carrigan (he/him) <nhcarrigan@gmail.com>
Co-authored-by: Tom <20648924+moT01@users.noreply.github.com>
Co-authored-by: Oliver Eyton-Williams <ojeytonwilliams@gmail.com>
2021-09-23 09:15:16 +02:00
Renovate Bot
5f93847770 fix(deps): update dependency @stripe/stripe-js to v1.18.0 2021-09-23 03:19:38 +00:00
Renovate Bot
ca7dbdf4a6 chore(deps): update codesee to v0.93.0 2021-09-22 22:33:35 +00:00
Renovate Bot
226f9f3a97 chore(deps): update dependency postcss to v8.3.7 2021-09-22 19:31:10 +00:00
Renovate Bot
98b06848a4 chore(deps): update dependency autoprefixer to v10.3.5 2021-09-22 11:30:24 +00:00
Oliver Eyton-Williams
7200269534 refactor(client): use the view zones to place the widgets (#43519)
Rather than calculating the widget (i.e. the jaws) position ourselves,
we can use the fact that monaco knows where the view zones are.
2021-09-22 09:29:29 +05:30
Renovate Bot
a007c19c44 chore(deps): update codesee to v0.92.2 2021-09-22 03:10:26 +00:00
Oliver Eyton-Williams
222fc3f255 refactor: minor clean up of editor (#43513) 2021-09-21 18:05:12 +05:30
Nicole Aldurien
cc1b945fab refactor(client): migrating ActionRow.js to TypeScript (#43490) 2021-09-21 10:13:54 +02:00
Renovate Bot
d2f98270d5 chore(deps): update codesee to v0.92.1 2021-09-21 02:02:01 +00:00
Sem Bauke
c0e0241440 feat(Cypress): hotkey tests (#43434)
* feat(Cypress): hotkey tests

* fix: test previous next for projects

* fix: link time-out firefox

* feat: test the "r" hotkey

* fix: change select back to body for now

* fix: retain navigation mode for video challenges

* test: find focused elements

* fix: move focus from panel before pressing 'r'

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

* test: add hotkey test for backend

* test: remove redundant {esc} presses

* refactor: naming change

* fix: refactor properly

* fix: actually refactor it properly

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

Co-authored-by: Oliver Eyton-Williams <ojeytonwilliams@gmail.com>
Co-authored-by: gikf <60067306+gikf@users.noreply.github.com>
2021-09-20 20:53:42 +02:00
EhEhRon91
35bee5ca68 fix: message removed when not logged in (#43411)
* fix: message removed when not logged in

* removed unnecessary code from DonateCompletion.tsx that was added

* now using isSignedIn in props and not donationFromState
2021-09-20 12:57:05 +03:00
camperbot
f0aca2d351 chore(i18n,learn): update translations (#43492) 2021-09-19 20:03:32 +01:00
camperbot
96205ccf53 chore(i18n,learn): update translations (#43489) 2021-09-18 19:23:44 +01:00
Renovate Bot
81d48b26ad chore(deps): update codesee to v0.90.0 2021-09-18 14:23:12 +00:00
Renovate Bot
c184f23d27 chore(deps): update babel monorepo to v7.15.7 2021-09-18 02:07:35 +00:00