Commit Graph

3326 Commits (a0be79c13c96a14f1b8f84db8a70d7875a5d8dee)

Author SHA1 Message Date
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
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
Renovate Bot bccc217981 fix(deps): update gatsby monorepo 2021-09-17 22:08:20 +00:00
Ahmad Abdolsaheb e5523bf16e
feat: add Stripe card form (#43433)
* eat: add Stripe card form

* Apply suggestions from code review

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

* feat: adjust payload and error handling

* feat:  readjust error handling

* Apply suggestions from code review

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

* feat: refactors from comments

* feat: prevent submition during processing

* feat: redefine isSubmitting

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

* fix: show the proper paypal button on donate page

* fix: handle errors from stripe

Co-authored-by: Shaun Hamilton <shauhami020@gmail.com>
Co-authored-by: Oliver Eyton-Williams <ojeytonwilliams@gmail.com>
Co-authored-by: moT01 <20648924+moT01@users.noreply.github.com>
2021-09-17 22:15:56 +03:00
Igor Cunha 2dd106eb2f
feat(client): migrate to ts - (HelpModal, Preview, VideoModal, Side-Panel) (#42857)
* refactor: migrate HelpModal, Preview, VideoModal, Side-Panel

* refactor: import order

Co-authored-by: Oliver Eyton-Williams <ojeytonwilliams@gmail.com>
2021-09-17 18:37:53 +01:00
camperbot 5de0aae5da
chore(i18n,learn): update translations (#43476) 2021-09-17 18:12:54 +01:00
Renovate Bot 0fd8e55b9b fix(deps): update dependency date-fns to v2.24.0 2021-09-17 09:36:48 +00:00
Renovate Bot 5a44900bd2 chore(deps): update codesee to v0.89.0 2021-09-17 02:56:59 +00:00
Renovate Bot 10c8113b3b chore(deps): update dependency webpack to v5.53.0 2021-09-17 00:02:10 +00:00
Renovate Bot 615e8158c3 fix(deps): update dependency gatsby to v3.13.1 2021-09-16 22:05:39 +00:00
Renovate Bot 1bfe5d5c34 chore(deps): update dependency @types/react-transition-group to v4.4.3 2021-09-16 20:20:19 +00:00
Renovate Bot 6033992edc chore(deps): update dependency prismjs to v1.25.0 2021-09-16 17:56:51 +00:00
Renovate Bot b1f57abcb0 chore(deps): update codesee to v0.87.1 2021-09-15 23:10:06 +00:00
Renovate Bot 1dc6f2ac74 chore(deps): update codesee to v0.85.0 2021-09-15 01:56:09 +00:00
Renovate Bot 30cae62259 chore(deps): update codesee to v0.84.0 2021-09-14 22:51:16 +00:00
Renovate Bot 46933e1f2d fix(deps): update dependency sanitize-html to v2.5.1 2021-09-14 17:27:04 +00:00
camperbot d0f4240ca0
chore(i18n,learn): update translations (#43455) 2021-09-14 13:58:08 +01:00
Renovate Bot 27226732ef chore(deps): update codesee to v0.83.0 2021-09-14 02:19:40 +00:00
Renovate Bot c154848dfd chore(deps): update codesee to v0.82.0 2021-09-13 22:23:43 +00:00
camperbot c0d6c3c3db
chore(i18n,client): processed translations (#43442) 2021-09-13 19:18:47 +02:00
Nicholas Carrigan (he/him) 2cf4a7d787
feat(curriculum): add piano project (#43364)
* feat: i broke it horribly

* fix: background colour first

* chore: apply shaun's review suggestions

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

* fix: missing asserts

* chore: apply shaun's review suggestions

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

* chore: apply shaun's review suggestions

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

* fix: remove extra background

* fix: meta order

* feat: clarify descriptions

Co-authored-by: Shaun Hamilton <shauhami020@gmail.com>
2021-09-13 17:51:42 +01:00
Renovate Bot 0752c68a64 chore(deps): update dependency @types/lodash-es to v4.17.5 2021-09-12 18:27:27 +00:00
Renovate Bot 7b5d54bb78 chore(deps): update dependency @testing-library/react to v12.1.0 2021-09-11 13:34:10 +00:00
Nicholas Carrigan (he/him) a563b3b4e4
feat(curriculum): CSS Box Model project (#42182)
* feat(curriculum): add initial steps

Add the initial step files for this project.

* feat(curriculum): write test texts

Add some test text (tests coming soon).

* feat: tests for HTML bits

Add tests for the HTML bits - CSS holding off until parser lands.

* feat: CSS tests

New CSS parser works great!

* fix: link href

Fix the href in the boilerplate.

* chore: apply suggestions from code review

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

* fix: clarify link element

* fix: optional chaining

* fix: remove unused meta props

* fix: update helper and fix tests

* chore: apply tom's review suggestions

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

* chore: no console logs

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

* feat: intro

Add introductory text, tweak instructions a bit.

Co-authored-by: gikf <60067306+gikf@users.noreply.github.com>
Co-authored-by: Tom <20648924+moT01@users.noreply.github.com>
Co-authored-by: Shaun Hamilton <shauhami020@gmail.com>
2021-09-10 17:17:03 +01:00
Renovate Bot ac11c85409 chore(deps): update dependency webpack to v5.52.1 2021-09-10 15:36:47 +00:00
renovate[bot] f46d183d95
chore(deps): update babel monorepo to v7.15.6 (#43424)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-09-10 15:27:27 +05:30
Renovate Bot 11493a6a5e chore(deps): update dependency serve to v12.0.1 2021-09-09 22:56:31 +00:00
Renovate Bot 1552c5226f chore(deps): update codesee to v0.81.0 2021-09-09 21:02:13 +00:00
renovate[bot] b34465d217
chore(deps): update dependency axios to v0.21.2 [security] (#43409)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-09-09 22:09:12 +05:30
camperbot 654526c942
chore(i18n,learn): update translations (#43421) 2021-09-09 07:15:47 -07:00
Renovate Bot 983ff5d93f fix(deps): update dependency sanitize-html to v2.5.0 2021-09-09 00:05:51 +00:00
Renovate Bot e1dff59eab chore(deps): update codesee to v0.80.0 2021-09-08 22:11:00 +00:00
Renovate Bot 2c5ba710c3 fix(deps): update dependency react-i18next to v11.12.0 2021-09-08 20:12:09 +00:00
camperbot 430719f56a
chore(i18n,client): processed translations (#43404) 2021-09-08 22:25:23 +05:30
Renovate Bot 499ce56fd6 fix(deps): update dependency i18next to v20.6.1 2021-09-08 14:33:16 +00:00
Ahmad Abdolsaheb a48091a012
fix(client): avoid calling the api for signed out users (#42383)
* feat(client): call api for singed in paypal subs

* feat(client): update tests

* feat(client): add kebab case

* fix: clarify tests
2021-09-07 21:24:18 -05:00
Renovate Bot bdcd6fa577 chore(deps): update codesee to v0.79.0 2021-09-08 00:27:13 +00:00
Nicholas Carrigan (he/him) fa84f6c449
feat(curriculum): css picasso painting (#42436)
* feat: generating steps

- Steps 1-32 done.
- Steps 33-80 done.
- Instructions 1-26 done.
- Instructions 27-61 done.
- More steps.
- Instructions 62-88 done.
- Clarify instructions for new concepts.
- build fixes
- Audit instructions on live site.

* fix: add helpCategory

* feat: write tests

* feat: add intro

* chore: use the right selectors

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

* chore: cannot read property Shaun of undefined :)

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

* feat: Shau-ptional chaining

* chore: apply shaun's review suggestions

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

* fix: uncross my wires

* chore: apply shaun's review suggestions

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

Co-authored-by: gikf <60067306+gikf@users.noreply.github.com>
Co-authored-by: Shaun Hamilton <shauhami020@gmail.com>
2021-09-07 21:49:42 +02:00
EhEhRon91 88385e46bb
fix: button width and text not matching (#43380) 2021-09-07 20:18:25 +05:30
camperbot b952bbb179
chore(i18n,learn): update translations (#43386) 2021-09-05 20:14:23 +02:00
Renovate Bot ec34f0f918 chore(deps): update babel monorepo to v7.15.5 2021-09-04 11:01:38 +00:00
Renovate Bot 5d53d9d4a9 chore(deps): update codesee to v0.78.0 2021-09-03 21:41:15 +00:00
Renovate Bot 38d7ac87ba chore(deps): update dependency webpack to v5.52.0 2021-09-03 18:06:04 +00:00
Shaun Hamilton 7857756062
chore(client): meta and yml certificate -> certification (#43353)
* chore(client): meta and yml certificate -> certification

* make translators lives more difficult - rename everything
2021-09-03 08:08:45 -07:00
Renovate Bot 53c88efb0d chore(deps): update dependency autoprefixer to v10.3.4 2021-09-03 01:41:02 +00:00
Renovate Bot 271c16213a chore(deps): update babel monorepo to v7.15.4 2021-09-03 00:18:55 +00:00
Renovate Bot a3a4dae03a chore(deps): update codesee to v0.77.0 2021-09-02 22:28:18 +00:00
Renovate Bot 2845ec79f4 chore(deps): update codesee to v0.76.0 2021-09-02 19:45:41 +00:00
Renovate Bot 9fc4351352 chore(deps): update dependency webpack to v5.51.2 2021-09-02 14:25:49 +00:00
Ahmad Abdolsaheb 326983f878 Update client/i18n/locales/english/trending.json
Co-authored-by: Shaun Hamilton <shauhami020@gmail.com>
2021-09-02 16:58:25 +05:30
Ahmad Abdolsaheb 1ca2f3598a feat(client):add july 2021 footer 2021-09-02 16:58:25 +05:30
Renovate Bot 3fa280ac6e chore(deps): update codesee to v0.75.0 2021-09-02 01:58:15 +00:00
Renovate Bot 0f8fc1c7b7 chore(deps): update dependency gatsby-plugin-webpack-bundle-analyser-v2 to v1.1.25 2021-09-01 16:41:52 +00:00
Renovate Bot f19b8d4bf5 fix(deps): update dependency i18next to v20.6.0 2021-09-01 10:54:25 +00:00
Renovate Bot ce24c4358e fix(deps): update gatsby monorepo 2021-08-31 21:09:41 +00:00
Mrugesh Mohapatra ba789fa8ec chore(deps): npm audit fix - client 2021-08-31 21:38:48 +05:30
Renovate Bot 3a14682b6e fix(deps): update dependency i18next to v20.5.0 2021-08-31 11:23:27 +00:00
Renovate Bot 139308a839 chore(deps): update codesee to v0.74.0 2021-08-31 01:58:37 +00:00
awu43 f8aa621672
delete old ts-ignore comments (#43329) 2021-08-27 23:38:30 +02:00
camperbot 313b2baa20
chore(i18n,learn): update translations (#43323) 2021-08-27 18:23:35 +02:00
camperbot a973b29042
chore(i18n,docs): update translations (#43322) 2021-08-27 18:23:06 +02:00
Renovate Bot 7134e48f82 chore(deps): update codesee to v0.73.0 2021-08-27 08:45:53 +00:00
miyaliu666 c96a426e45
delete an extra word in Chinese trending articles (#43319) 2021-08-27 12:17:56 +05:30
Renovate Bot 9d466b36f5 fix(deps): update dependency gatsby to v3.12.1 2021-08-27 03:23:29 +00:00
Renovate Bot 9eb5ae5940 fix(deps): update dependency algoliasearch to v4.10.5 2021-08-27 01:45:16 +00:00
awu43 58ed9330bf
fix(client): ensure unmount effect has most recent values (#43282)
* ensure unmount effect has most recent values

Co-authored-by: Oliver Eyton-Williams <ojeytonwilliams@gmail.com>
2021-08-26 18:03:11 -05:00
Ismail Tlemcani 67ee31cbfc
feat(client): ts-migration for layout index file, Intro Component and header test file (#43094) 2021-08-26 17:17:25 -05:00
Renovate Bot 5cc76bdc88 chore(deps): update dependency autoprefixer to v10.3.3 2021-08-26 21:11:38 +00:00
Renovate Bot d1e4144a30 chore(deps): update codesee to v0.72.1 2021-08-26 19:34:00 +00:00
camperbot 1db205cdab
chore(i18n,learn): update translations (#43307) 2021-08-26 20:57:13 +05:30
Renovate Bot 2255c9b544 chore(deps): update codesee to v0.72.0 2021-08-25 23:06:22 +00:00
Sem Bauke cd005668b9
feat: change logos on chinese language (#43269)
* feat: change logos on chinese language

* fix: use Ahmads logos

* fix: error

* fix: tencent logo size

* feat: include chinese traditional

* Apply suggestions from code review

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

Co-authored-by: Oliver Eyton-Williams <ojeytonwilliams@gmail.com>
2021-08-25 18:21:56 +02:00
Nicholas Carrigan (he/him) b9d08f2fea
feat: locale specific help posts (#43290) 2021-08-25 21:43:40 +05:30
camperbot 867044aa63
chore(i18n,client): processed translations (#43299) 2021-08-25 21:41:33 +05:30
Oliver Eyton-Williams d161998acc
test: check that JS projects can be submitted. (#43222)
* test: check that JS projects can be submitted.

* refactor: remove stale workflow comments

* refactor: remove redundant build

* chore: update Cypress version in CI

* test: create separate electron-only workflow

* test: put data-cy on correct button

* test: drop mailhog from electron CI

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

* refactor: update differences comment

* test: separate toggling from logging in

* test: check solutions can be viewed on cert

Co-authored-by: Shaun Hamilton <shauhami020@gmail.com>
2021-08-24 20:26:48 +02:00
Christian Z. Tamayo a42348d3b9
test: Privacy terms redirection (#43195) 2021-08-24 22:36:23 +05:30
camperbot f8b41a34ab
chore(i18n,client): processed translations (#43276) 2021-08-24 16:39:35 +02:00
muneeb-121 b3cae635e1
fix: typo intro.json 2021-08-24 16:05:17 +02:00
Oliver Eyton-Williams 5e49521fc2
fix(client): some editor edge cases (#43256)
* fix: handle erm on line zero

* refactor: fix eslint errors

* fix: prevent crash on zero height editable region
2021-08-23 11:34:53 -07:00
Mohamed Naufal A 498805c235
fix(client): use en top contributor link for i18n (#43248)
* Changes made as directed in the instructions

* second revision

* Third revision

* Cypress Test updated

* cypress test updation

* directly linking to top-contributors news page

Co-authored-by: Ilenia <nethleen@gmail.com>
2021-08-23 16:50:28 +01:00
Renovate Bot a44c2e4b8f fix(deps): update dependency algoliasearch to v4.10.4 2021-08-23 12:06:43 +00:00
miyaliu666 5ecfbcc5d4
Update trending.json 2021-08-23 18:33:55 +08:00
Renovate Bot 6f720dc068 chore(deps): update dependency autoprefixer to v10.3.2 2021-08-21 21:32:09 +00:00
ABHINAV SHARMA bd7a6780a9
feat(client): ts-migrate Map component (#42845)
* feat(client) Renamed index.js to index.tsx

* feat(client): ts-migrate Map component
2021-08-21 12:06:09 +01:00
Madhuri Ramakrishnan 3c71593931
fix(client): "help translate" link for Italian & Portuguese (#43254) 2021-08-20 08:34:17 -07:00
camperbot ec9034751e
chore(i18n,learn): update translations (#43190) 2021-08-20 09:03:00 +02:00
Nicholas Carrigan (he/him) b99ee5e7de
feat: english forum for guide posts (#43246) 2021-08-20 11:58:07 +05:30
Renovate Bot 8dc9cd4d6d chore(deps): update codesee to v0.71.1 2021-08-20 01:03:55 +00:00
Renovate Bot 55e8db1d9c chore(deps): update codesee to v0.70.1 2021-08-19 21:44:25 +00:00
Ahmad Abdolsaheb 1fec73cdf7
feat(client): Unify donation loading state (#43179)
* initial loading state unification

* feat(client): show buttons after 3 seconds

* fix: use window.setInterval explicitly

Otherwise TS assumes that it's node's setInterval

* feat(client): remove spinner when first button load

* feat(client): move the loader to the donate page button area

* feat(client): extract grid from modal donation form

* feat(client): remove duplicate donation forms

* feat(client):extract unused components from donationForm

* feat(client): load paypal on load not onInit (for perf)

* feat(client): set paypal loading state if stripe already loaded

* feat(clinet):make lpaypal oading condition strickt.

* Apply suggestions from code review

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

* feat: clean up

Co-authored-by: Oliver Eyton-Williams <ojeytonwilliams@gmail.com>
2021-08-19 14:47:25 -05:00
Renovate Bot 72529a8050 fix(deps): update dependency @stripe/stripe-js to v1.17.1 2021-08-19 18:03:39 +00:00
Renovate Bot 47c6e33e06 chore(deps): update dependency webpack to v5.51.1 2021-08-19 16:20:33 +00:00
Renovate Bot 25f750f888 chore(deps): update dependency webpack to v5.51.0 2021-08-19 10:39:37 +00:00
Renovate Bot 20c4b68ad4 chore(deps): update codesee to v0.69.0 2021-08-19 03:14:27 +00:00
Renovate Bot 21fbbe69d5 chore(deps): update codesee to v0.67.0 2021-08-18 18:51:27 +00:00
Victor Duarte 84760cba9e
fix(client): removes cut off in certificate page (#43090) 2021-08-18 09:23:34 -05:00
Renovate Bot 52447d28a9 fix(deps): update gatsby monorepo 2021-08-18 12:34:03 +00:00
Renovate Bot 7dfe4b4900 chore(deps): update codesee to v0.66.1 2021-08-17 20:35:29 +00:00
Shaun Hamilton 5806c3047d
fix(client): convert challengeFiles->files before sending to api (#43204)
* fix(client): convert challengeFiles->files before sending to api

* update use of user.completeChallenges

* parse response in ajax, pre-typing

* add typing to getSessionUser

* refactor: use Omit

* fix: reorganise getSessionUser

* refactor ajax for simplicity

* refactor to be worse

* allow for undefined completedChallenges

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

Co-authored-by: Oliver Eyton-Williams <ojeytonwilliams@gmail.com>
2021-08-17 12:31:25 -05:00
renovate[bot] 63340dc55c
fix(deps): update font awesome (#43107)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-08-17 21:46:18 +05:30
renovate[bot] d620810710
fix(deps): update dependency i18next to v20.4.0 (#43166)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-08-17 17:03:35 +05:30
Tom 7ef9afcec4
Revert "fix(client): open curriculum links in new tabs (#43136)" (#43215)
This reverts commit 925891858c.
2021-08-16 19:19:23 +02:00
Renovate Bot 3c5ff65d82 chore(deps): update dependency webpack-cli to v4.8.0 2021-08-15 23:51:27 +00:00
Renovate Bot 831ef03335 chore(deps): pin dependency serve to 12.0.0 2021-08-14 04:26:53 +00:00
Shaun Hamilton c2a11ad00d
feat: add 'back/front end' in curriculum (#42596)
* chore: rename APIs and Microservices to include "Backend" (#42515)

* fix typo

* fix typo

* undo change

* Corrected grammar mistake

Corrected a grammar mistake by removing a comma.

* change APIs and Microservices cert title

* update title

* Change APIs and Microservices certi title

* Update translations.json

* update title

* feat(curriculum): rename apis and microservices cert

* rename folder structure

* rename certificate

* rename learn Markdown

* apis-and-microservices -> back-end-development-and-apis

* update backend meta

* update i18n langs and cypress test

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

* fix: add development to front-end libraries (#42512)

* fix: added-the-word-Development-to-front-end-libraries

* fix/added-the-word-Development-to-front-end-libraries

* fix/added-word-development-to-front-end-libraries-in-other-related-files

* fix/added-the-word-Development-to-front-end-and-all-related-files

* fix/removed-typos-from-last-commit-in-index.md

* fix/reverted-changes-that-i-made-to-dependecies

* fix/removed xvfg

* fix/reverted changes that i made to package.json

* remove unwanted changes

* front-end-development-libraries changes

* rename backend certSlug and README

* update i18n folder names and keys

* test: add legacy path redirect tests

This uses serve.json from the client-config repo, since we currently use
that in production

* fix: create public dir before moving serve.json

* fix: add missing script

* refactor: collect redirect tests

* test: convert to cy.location for stricter tests

* rename certificate folder to 00-certificates

* change crowdin config to recognise new certificates location

* allow translations to be used

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

* add forwards slashes to path redirects

* fix cypress path tests again

* plese cypress

* fix: test different challenge

Okay so I literally have no idea why this one particular challenge
fails in Cypress Firefox ONLY. Tom and I paired and spun a full build
instance and confirmed in Firefox the page loads and redirects as
expected. Changing to another bootstrap challenge passes Cypress firefox
locally. Absolutely boggled by this.

AAAAAAAAAAAAAAA

* fix: separate the test

Okay apparently the test does not work unless we separate it into
a different `it` statement.

>:( >:( >:( >:(

Co-authored-by: Sujal Gupta <55016909+heysujal@users.noreply.github.com>
Co-authored-by: Noor Fakhry <65724923+NoorFakhry@users.noreply.github.com>
Co-authored-by: Oliver Eyton-Williams <ojeytonwilliams@gmail.com>
Co-authored-by: Nicholas Carrigan (he/him) <nhcarrigan@gmail.com>
2021-08-13 21:57:13 -05:00
Renovate Bot 4df2a0c542 chore(deps): update codesee to v0.65.0 2021-08-13 20:20:07 +00:00
Shaun Hamilton e98d3dd3da
fix(client): allow old local-storage code (#43196) 2021-08-13 13:15:50 -05:00
renovate[bot] 4190e2264d
fix(deps): update dependency react-monaco-editor to v0.44.0 (#43029)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-08-13 12:19:39 +02:00
renovate[bot] 1c39fc2204
fix(deps): update gatsby monorepo (#42959)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-08-13 00:32:53 +05:30
Shaun Hamilton 59f17f237b
refactor: files{} -> challengeFiles[], and key -> fileKey (#43023)
* fix(client): fix client

* fix propType and add comment

* revert user.json prettification

* slight type refactor and payload correction

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

* update ChallengeFile type imports

* add cypress test for code-storage

* update test and storage epic

* fix Shaun's tired brain's logic

* refactor with suggestions

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

* update codeReset

* increate cypress timeout because firefox is slow

* remove unused import to make linter happy

* use focus on editor

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

* use more specific seletor for cypress editor test

* account for silly null challengeFiles

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

Co-authored-by: Oliver Eyton-Williams <ojeytonwilliams@gmail.com>
2021-08-12 20:48:28 +02:00
Renovate Bot 1f62dfe2b3 fix(deps): update dependency @stripe/stripe-js to v1.17.0 2021-08-12 17:46:27 +00:00
Renovate Bot 0336269da9 fix(deps): update dependency nanoid to v3.1.25 2021-08-12 15:50:07 +00:00
DanielRosa74 b51d0d72f5
fix(i18n): Fixing a typo in line 170 (#43187) 2021-08-12 12:59:05 +01:00
Tom 925891858c
fix(client): open curriculum links in new tabs (#43136) 2021-08-12 09:02:57 +02:00
Renovate Bot e2c1328d62 fix(deps): update dependency nanoid to v3.1.24 2021-08-11 23:20:36 +00:00
Nicholas Carrigan (he/him) c8ec196dbc
fix: scrollable nav (#42600)
* fix: scrollable nav

Modify the drop down menu to be scrollable.

* fix: account for really small screens
2021-08-11 18:17:21 +01:00
Renovate Bot 686acd6dff chore(deps): update babel monorepo to v7.15.3 2021-08-11 09:47:40 +00:00
Nicholas Carrigan (he/him) 28003256c3
fix: restore navatar class (#43176) 2021-08-11 09:38:31 +02:00
Renovate Bot 0a32528c4d chore(deps): update dependency webpack to v5.50.0 2021-08-11 03:29:05 +00:00
Renovate Bot 8e48f17234 chore(deps): update codesee to v0.64.1 2021-08-11 01:25:58 +00:00
Renovate Bot 574b13d4ee chore(deps): update codesee to v0.64.0 2021-08-10 19:50:22 +00:00
Victor Duarte 7c6524186e
refactor(client): docs, ts and test challenges (#42978)
* refactor(client): relocate to learn path tests file

* refactor(client): add docs for to learn path

Co-authored-by: Huyen Nguyen <25715018+huyenltnguyen@users.noreply.github.com>

* fix: order imports

Co-authored-by: Oliver Eyton-Williams <ojeytonwilliams@gmail.com>
2021-08-10 15:22:39 +02:00
Renovate Bot dc8f88ee2e chore(deps): update codesee to v0.63.1 2021-08-10 01:40:26 +00:00
Ahmad Abdolsaheb b0b438a40f
Revert "fix(client): remove wallets (#43159)" (#43163)
This reverts commit 5a4c02addd.
2021-08-09 16:39:48 -05:00
camperbot c9b9175d1d
chore(i18n,learn): update translations (#43155) 2021-08-09 13:17:06 -07:00
Ahmad Abdolsaheb 5a4c02addd
fix(client): remove wallets (#43159) 2021-08-09 21:28:38 +03:00
Tom 0ae8b0c0e8
chore: clean-up unsed things in stripe integration (#43156)
* chore: clean-up unsed things in stripe integration

* fix: use logged in users email over email given to payment form
2021-08-09 21:27:14 +03:00
Renovate Bot f27a4440d6 chore(deps): pin dependency @types/psl to 1.1.0 2021-08-09 11:45:46 +00:00
awu43 dd5d2919be
feat(client): ts-migrate client/utils/** (#42823)
* rename js files

* update imports and references

* migrate build-challenges

* migrate challenge-types

* migrate utils/index

* migrate state-management

* install @types/psl for tags

* migrate tags

* migrate tags.test

* migrate challenge-page-creator

* migrate utils/gatsby/index

* migrate layout-selector

* migrate layout-selector.test

* revert challenge-types

Curriculum can't handle TS or modules

* convert arrow functions

* revert build-challenges

* revert utils/gatsby/index

* revert challenge-page-creator

* revert challenge-types reference

* Delete state-management

Deleted in #42960

* Disable render-result-naming-convention (for now)

* update layout-selector.test comment

* reorder imports in build-challenges

* change ts-ignore to ts-expect-error
2021-08-09 10:30:31 +02:00
Renovate Bot 1a212ab927 fix(deps): pin dependencies 2021-08-08 22:33:04 +00:00
Ahmad Abdolsaheb b623c340a9
feat(client): add google pay (#43117)
* feat: initial button setup client

* feat: rename walletsButton to .tsx

* chore: typescriptize wallet component

* chore: re-add keys to config, env, etc + check in gatsby-node

* feat: refactor donate form and wallet component

* feat(client): set labels correctly

* chore: add stripe package back to server

* chore: add stripe back to allowed paths

* chore: copy donate.js code from PR #41924

* feat: attempt to make back end work

* feat: make redux work

* feat: clean up

* feat: hokify

* feat: add error handling

* fix: back-end should be working

* fix: type errors

* fix: clean up back-end

* feat:addd styles

* feat: connect the client to the api

* feat: display wallets button everywhere

* test: add stripe key for cypress action

* test: fix for cypress tests

* test: cypress tests again

* test: maybe?

* test: more

* test: more

* test: more

* test

* askdfjasklfj

* fix: tests finally?

* revert: remove space from cypress yaml action

* remove logs

Co-authored-by: moT01 <20648924+moT01@users.noreply.github.com>
Co-authored-by: Oliver Eyton-Williams <ojeytonwilliams@gmail.com>
2021-08-08 23:22:25 +03:00
Renovate Bot ad54684dce fix(deps): update dependency @babel/standalone to v7.15.2 2021-08-08 18:12:00 +00:00
camperbot 1f4972c6f5
chore(i18n,learn): update translations (#43139) 2021-08-07 16:55:07 +01:00
Renovate Bot 41c6914a25 chore(deps): update codesee to v0.61.0 2021-08-06 23:07:34 +00:00
Renovate Bot ae734e7715 chore(deps): update dependency webpack to v5.49.0 2021-08-06 16:40:58 +00:00
camperbot 48fee9232b
chore(i18n,learn): update translations (#43131) 2021-08-06 08:04:24 -07:00
Sem Bauke eccc642d83
fix(client): store accessibility for screenreaders (#42996)
* fix: store accessibility for screenreaders

* Apply suggestions from code review

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

* fix: remove old comments

* feat: at short cut announcement when running test

* feat: announce that accesibility mode is turned on

* fix: use Redux values

* Apply suggestions from code review

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

* Apply suggestions from Oliver

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

* fix: "rip out redux stuff" and use store instead

* Apply suggestions from code review

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

* Apply suggestions from code review

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

* fix: old use of props

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

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

Co-authored-by: Shaun Hamilton <shauhami020@gmail.com>
Co-authored-by: Oliver Eyton-Williams <ojeytonwilliams@gmail.com>
2021-08-06 14:17:17 +02:00
Renovate Bot 097565c615 chore(deps): update codesee to v0.60.0 2021-08-05 22:37:25 +00:00
Tom f0aeb3b267
fix(curriculum): rename rdbms cert project to proper name (#43042)
* fix:(curriculum): rename rdbms cert project

* fix: some more spots to rename

* fix: rename i18n's
2021-08-05 22:15:44 +01:00
awu43 4134404bfd
feat(client): ts-migrate WithInstantSearch.js (#42923)
* rename to TS

* update import

* migrate with-instant-search

* change falsy values to empty string

* update import order

Finish resolving conflict from #41824

* update import order for search-bar

* update setTimeout() type
2021-08-05 21:00:30 +01:00
DanielRosa74 038ac3e7b9
feat(client,i18n): update motivation.json for Portuguese (#43121) 2021-08-05 21:23:47 +02:00
Oliver Eyton-Williams 10286f6c80
feat: add stripe merchant id for apple pay (#43124) 2021-08-05 20:00:50 +01:00
camperbot e389517800
chore(i18n,learn): update translations (#43126) 2021-08-05 07:30:35 -07:00
Renovate Bot fe17982d27 fix(deps): update dependency @babel/standalone to v7.15.1 2021-08-05 09:41:54 +00:00
Renovate Bot b4ec41adfd chore(deps): update codesee to v0.59.1 2021-08-05 01:31:25 +00:00
Renovate Bot 35cdece8d7 chore(deps): update babel monorepo to v7.15.0 2021-08-05 00:13:20 +00:00
Renovate Bot 1307ce3eb9 fix(deps): update dependency react-reflex to v4.0.3 2021-08-04 22:29:35 +00:00
Tom 7b27821871
feat(curriculum): add icon for rdbms (#43109)
* feat(curriculum): add icon for rdbms

* fix: add better behaved icon
2021-08-04 13:22:58 -07:00
Renovate Bot 524556463a fix(deps): pin dependency @types/react-scrollable-anchor to 0.6.1 2021-08-04 12:19:55 +00:00
Nicolás Restrepo e34ec814ef
feat(client): migrate donate module to ts (#42561)
* change DonationTextComponent extension to tsx

* migrate DonationTextComponents to ts

* change DonationModal extension to tsx

* add @types/react-redux

* migrate DonationModal to ts

* change PaypalButton extension to ts

* change DonateCompletion extension to tsx

* migrate DonateCompletion to TypeScript

* change PayPalButtonLoader extension to tsx

* first changes in paypal button (help needed)

* first changes in PayPalButtonScriptLoader (help needed)

* change DonateForm extension to tsx

* migrate donate module to ts

* Update client/src/components/Donation/DonateForm.tsx

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

* Update client/src/components/Donation/DonationModal.tsx

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

* Update client/src/components/Donation/DonationModal.tsx

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

* Update client/src/components/Donation/DonateForm.tsx

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

* Update client/src/components/Donation/DonateForm.tsx

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

* Delete console.log client/src/components/Donation/DonationModal.tsx

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

* applied changes requested

* fix: readjust default one time amount

* fix types

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

* chore: restore comments.json

* fix: type assertion

* fix: specific DonateForm props

* Apply suggestions from code review

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

* Update client/src/components/Donation/PaypalButton.tsx

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

* fix:set default stat for paypalbutton

Co-authored-by: Oliver Eyton-Williams <ojeytonwilliams@gmail.com>
Co-authored-by: Shaun Hamilton <shauhami020@gmail.com>
Co-authored-by: Ahmad Abdolsaheb <ahmad.abdolsaheb@gmail.com>
2021-08-04 11:21:11 +01:00