Commit Graph

2955 Commits

Author SHA1 Message Date
Oliver Eyton-Williams
49b4e1f2b3 fix: remove HOME_PATH (#43034)
It was only used as a default for hardGoTo, but that function is only
called once and does not need the default
2021-07-27 08:35:14 -07:00
camperbot
946f6847a7 chore(i18n,learn): update translations (#43032) 2021-07-27 08:24:26 -07:00
Victor Duarte
a4358fc56c fix(client): update display prop on element (#42912)
* fix: profile menu icon overlapping content

* refactor: profile icon usage
2021-07-27 12:27:32 +03:00
Renovate Bot
7b92f1df83 chore(deps): update codesee to v0.52.1 2021-07-27 01:35:20 +00:00
Ahmad Abdolsaheb
9b401570bc fix(client): adjust big cta size (#43017) 2021-07-26 16:35:54 +01:00
Renovate Bot
0a82c36e1b fix(deps): update dependency react-i18next to v11.11.4 2021-07-26 10:51:21 +00:00
camperbot
c5963374cb chore(i18n,client): processed translations (#43007) 2021-07-25 22:54:39 +05:30
Victor Duarte
80e75ea690 fix(client): remove odd snap of editor panels (#42990)
* fix(client): remove odd snap of editor panels

* fix(client): reduce set state calls
2021-07-25 14:41:22 +02:00
Renovate Bot
242b21a34b fix(deps): update dependency i18next to v20.3.5 2021-07-25 10:51:00 +00:00
Victor Duarte
10511a7402 refactor(client): document and test create types utilities (#42960)
Co-authored-by: Oliver Eyton-Williams <ojeytonwilliams@gmail.com>
2021-07-24 23:24:08 +07:00
camperbot
80cddc7731 chore(i18n,learn): update translations (#42983) 2021-07-23 15:03:23 +02:00
Renovate Bot
7e2d72e7dd fix(deps): update dependency date-fns to v2.23.0 2021-07-23 09:21:19 +00:00
Shaun Hamilton
06b1e584f9 feat(client): add new coder survey link to learn (#42955)
* feat(client): add new coder survey link

* add translation key to all locales

* close i18n tags

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

Co-authored-by: Nicholas Carrigan (he/him) <nhcarrigan@gmail.com>
2021-07-23 08:03:25 +02:00
Renovate Bot
b626f03c8c chore(deps): update codesee to v0.51.1 2021-07-23 00:39:27 +00:00
Renovate Bot
be5177ca48 chore(deps): update dependency webpack to v5.46.0 2021-07-22 13:12:50 +00:00
awu43
d98857069b feat(client): ESLint Fragments rule (#42963)
* add eslint rule

* Remove unused Fragment imports
2021-07-21 22:07:46 +01:00
Renovate Bot
0e611f321e chore(deps): update dependency postcss to v8.3.6 2021-07-21 18:03:15 +00:00
camperbot
c3eb8189af chore(i18n,learn): update translations (#42956) 2021-07-21 16:30:16 +01:00
Renovate Bot
0daa47791d fix(deps): update gatsby monorepo 2021-07-20 23:49:26 +00:00
Renovate Bot
c9db6e216b fix(deps): update dependency i18next to v20.3.4 2021-07-20 21:49:27 +00:00
Renovate Bot
1e86dae25b chore(deps): update babel monorepo to v7.14.8 2021-07-20 20:09:11 +00:00
Anirudh Modi
ef3b7ec955 chore(eslint): enables recommended eslint rules for testing-library and jest-dom (#42817) 2021-07-20 21:21:16 +07:00
Oliver Eyton-Williams
a368e7f277 fix: prevent early redirection from email-signup (#42944)
Co-authored-by: Victor Duarte <victor-duarte@users.noreply.github.com>
Co-authored-by: Shaun Hamilton <shauhami020@gmail.com>

Co-authored-by: Victor Duarte <victor-duarte@users.noreply.github.com>
Co-authored-by: Shaun Hamilton <shauhami020@gmail.com>
2021-07-20 09:19:11 -05:00
awu43
e33b977f04 update show-project-links (#42940) 2021-07-20 08:05:17 -05:00
Ilenia
3c29cfab1b feat(i18n, learn): adding first few motivational quotes and compliments in italian (#42935)
* i18n Italian Compliements

* first 10 motivational quotes for italian
2021-07-19 21:50:46 -05:00
Renovate Bot
c0150b00d8 chore(deps): update codesee to v0.50.1 2021-07-19 23:55:35 +00:00
Renovate Bot
2550bb7ebf chore(deps): update codesee to v0.50.0 2021-07-19 21:25:40 +00:00
Oliver Eyton-Williams
90d5783870 chore: update Header test to handle more languages (#42894) 2021-07-19 12:39:51 -07:00
Tom
292482792e update(curriculum): Change advanced bash tutorial title to new title (#42885)
* rename: advanced bash file

* rename: all instances of advanced bash tutorial to new title
2021-07-20 00:17:11 +05:30
Shaun Hamilton
31486b368b fix(client): refactor to use correct i18n t type (#42865)
* fix(client): refactor to use correct i18n t type

* appease Oliver by importing directly from react-i18n

* fix: use default TFunction type variable

Co-authored-by: Oliver Eyton-Williams <ojeytonwilliams@gmail.com>
2021-07-19 09:48:02 -07:00
camperbot
25f145b5c8 chore(i18n,learn): update translations (#42929) 2021-07-19 16:23:54 +02:00
awu43
3ed1f73221 fix(client): remove unnecessary return values (#42927)
* remove returns

* change .some() to .includes()
2021-07-19 13:18:17 +01:00
renovate[bot]
da513953d8 fix(deps): update monaco editor (#42875)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-07-19 10:45:49 +02:00
camperbot
3c62525a44 chore(i18n,client): processed translations (#42917) 2021-07-19 10:50:07 +05:30
Ikko Ashimine
48257c80b5 fix(curriculum): typo in comment (#42914)
preceed -> precede
2021-07-17 12:34:31 +05:30
Renovate Bot
40a0d7470e chore(deps): update dependency webpack to v5.45.1 2021-07-17 00:20:15 +00:00
Renovate Bot
aa5764a2a4 chore(deps): update codesee to v0.49.1 2021-07-16 23:29:23 +00:00
Renovate Bot
fdd06bd34b chore(deps): update dependency @types/react-instantsearch-dom to v6.12.0 2021-07-16 20:49:28 +00:00
Renovate Bot
dc3b2508e4 fix(deps): update dependency @freecodecamp/strip-comments to v3.0.1 2021-07-16 17:02:18 +00:00
Oliver Eyton-Williams
1ba9d03cb5 feat: remove csrf from the client (#42242) 2021-07-16 10:49:47 -05:00
Mrugesh Mohapatra
017ae24894 fix(client): add if private warning to the name (#42901)
* fix(client): add if private warning to the name

* fix(client): add if private warning to the name
2021-07-16 16:40:14 +01:00
Sem Bauke
1f9aa2f28b fix: remove old croudsourcing translation for videos (#42880) 2021-07-16 14:43:16 +02:00
Renovate Bot
7783d714f4 fix(deps): update dependency react-i18next to v11.11.3 2021-07-16 09:46:20 +00:00
camperbot
8871128bec chore(i18n,client): processed translations (#42887) 2021-07-16 09:07:13 +01:00
awu43
4071b72a6c feat(curriculum): add spy helper (#42566)
* Added initial version of spy helper

* add missing backslashes

* update to check for line start

* change __fixtures file extensions to .ts from .tsx

* add to exports and add documentation

* add tests

* update event.preventDefault() test
2021-07-16 09:20:03 +02:00
Renovate Bot
50f48b794a chore(deps): pin dependency @types/reach__router to 1.3.9 2021-07-15 18:47:49 +00:00
Shaun Hamilton
6ca6d9950c feat(client): improve SuperBlock cert claiming UX (#41147)
* feat(client): improve SuperBlock cert claiming UX

* broken: add certCard foundation

* broken: add TODO comments for scatter-brain

* restructure stepsToClaimSelector

* add api-server verifyCanClaimCert logic

* temp: correct verifyCanClaim URL

* move GET logic to CertificationCard, remove console.logs

* add error handling, and navigation logic

* correct verification logical flow

* fix completion-epic updates, fix cert verify

* update widget to button, disable button unless verified

* working: refactor CertChallenge with hook state

* add StepsType

* update Honesty snapshot

* add DonationModal to SuperBlockIntro

* disable Claim Cert button unless also isHonest

* prevent warning when viewing cert

* test: use navigate in Modal to return to hash

* test: replace gatsby.navigate with reach/router.navigate

* add propTypes

* fix: rename propTypes -> prop-types

* use react-scrollable-anchor to squash modal bug

* update location parser type

* open-source Oliver's suggestion

* fix superblock title

* add claim-cert-from-learn tests

* use larger tests

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

* fix some cypress stuff

* fix ShowCertification cypress test

Co-authored-by: Oliver Eyton-Williams <ojeytonwilliams@gmail.com>
2021-07-15 23:51:27 +09:00
Oliver Eyton-Williams
03913024a5 fix: various multifile editor bugs (#42855)
* refactor: use refs to hold editor and monaco

Also removed a lot of unnecessary conditionals

* refactor: get a ref to the editor directly

Previously we got a ref to react-monaco-editor, but that's an
unnecessary layer of abstraction

* fix: replace data state with ref

* fix: replace remaining useStates with useRefs

* refactor: simplify dataRef access

* fix: store correct id for output zone

* refactor: remove unused parts of MultifileEditor

* fix: use separate models per fileKey

Temp fix, I think the data should store one version per fileKey

* fix: create data for each editor

* refactor: declare data once

* fix: handle widgets etc. like other data

* fix: store an editor per fileKey

* refactor: clean up types + initial properties

* refactor: remove redundant constructor

* fix: remove redundant comment

* refactor: update comments
2021-07-14 18:09:50 +02:00
Adriano Cangiamila
480afedd62 Update completion-modal.tsx (#42842) 2021-07-14 17:43:14 +02:00
camperbot
2f8c5619ff chore(i18n,client): processed translations (#42856) 2021-07-14 19:52:21 +05:30