Commit Graph

1632 Commits

Author SHA1 Message Date
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
Ahmad Abdolsaheb
9b401570bc fix(client): adjust big cta size (#43017) 2021-07-26 16:35:54 +01:00
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
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
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
awu43
d98857069b feat(client): ESLint Fragments rule (#42963)
* add eslint rule

* Remove unused Fragment imports
2021-07-21 22:07:46 +01: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
Oliver Eyton-Williams
90d5783870 chore: update Header test to handle more languages (#42894) 2021-07-19 12:39:51 -07:00
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
Ikko Ashimine
48257c80b5 fix(curriculum): typo in comment (#42914)
preceed -> precede
2021-07-17 12:34:31 +05:30
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
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
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
Ahmad Abdolsaheb
e6a17214e2 fix(client):fix scriptloader args (#42847) 2021-07-13 12:36:18 -05:00
Ismail Tlemcani
4307179d00 fix broken image url after submission on profile page (#42507) 2021-07-12 13:26:10 +02:00
awu43
e1d8f4be3a feat(client): ts-migrate client/src/utils (#42666)
* rename js files to ts

* start migrating ajax

* finish migrating ajax

* migrate algolia-locale-setup

* migrate format

* migrate format.test

* migrate get-words

* install axios for types in handled-error

* migrate handled-error

* migrate handled-error.test

* migrate report-error

* migrate script-loaders

* migrate to-learn-path

* correct renamed imports

* remove unnecessary type assertions in searchBar

* remove unnecessary global comment

* remove unnecessary max-len enable/disable

* change axios imports to type imports

* revert to .then() from await

* use UserType from redux/prop-types

* replace assertion with generic type

* revert format to JS

* remove unused getArticleById()

* update putUpdateUserFlag() to use Record

* remove unnecessary envData cast

* update algolia-locale-setup types

* remove invalid key property
2021-07-12 11:17:58 +02:00
gikf
a8e2aff073 feat(client): add hotkey 'r' to focus on instructions panel (#42503) 2021-07-12 09:20:07 +05:30
Moshe
63f26db336 refactor(client): Replace <Fragment> tags to <> (#42796)
* refactor(40115): Replace <Fragment> tags to <>
2021-07-09 09:50:11 +02:00
Shaun Hamilton
0891d41c35 fix(client): re-ref editor (#42799) 2021-07-09 09:29:11 +05:30
Shaun Hamilton
d95962e405 fix(client): adjust project link logic to show files (#42717) 2021-07-08 22:00:04 -05:00
Sem Bauke
d23b86f77b feat: convert solutionForm to ts (#42766)
* feat: convert solutionForm to ts

Co-authored-by: Oliver Eyton-Williams <ojeytonwilliams@gmail.com>
2021-07-07 10:38:58 +02:00
Renovate Bot
7c2a4aff6e chore(deps): update dependency jest to v27 2021-07-06 19:01:17 +05:30
Huyen Nguyen
92f5d1a7f5 fix(client): set the correct language to the HTML lang attribute (#42729) 2021-07-04 10:38:41 -07:00
Parth Parth
5f9d507d70 feat(client): ts-migrate .../Challenges/components/PrismFormatted.js (#42667)
* migrate

* add mistakenly deleted displayName

* add static displayName declaration

* remove extra space

Co-authored-by: Parth Parth <thecodingaviator@users.noreply.github.com>
Co-authored-by: Mrugesh Mohapatra <1884376+raisedadead@users.noreply.github.com>
2021-07-02 18:11:54 +05:30
Oliver Eyton-Williams
457b102181 fix: respect about's privacy settings (#42714) 2021-07-02 07:41:13 -05:00
alirezaghey
9952a5592f fix: remove wrong css rule (#42715) 2021-07-02 17:48:50 +05:30
Shaun Hamilton
de2f4e2843 fix(client): open completionModal on shortcut (#42685) 2021-06-30 20:52:18 +05:30
Shaun Hamilton
36ad0dbcc5 feat(client): ts-migrate editor component (#42285)
* class component to functional component

* rename Editor to .tsx

* add @types and no-verify changes

* init ts with no-verify

* refactor: files -> challengeFiles

* prop-types built from GraphQL

* Editor: halfway through 💪

* editor: almost done 🚀

* post-meeting changes with errors

* fix: remove chord keybindings

* Revert "refactor: files -> challengeFiles"

* fix tests type, fix editor bug

* fix linting issues

* re-add Loadable

* kebab-case editor

* remove Range import

* format package and prop-types

* update Show and prop-types

* fix: editor background color

Co-authored-by: Tom <20648924+moT01@users.noreply.github.com>
2021-06-30 20:52:18 +05:30
ABHINAV SHARMA
de261a2b58 feat(client): ts-migrate LearnLayout component (#42644)
* feat(client) Renamed Learn.js to learn.tsx

* feat(client) ts-migrate LearnLayout Component

* rename types for convention

* fix(client) disable ts error for DonationModal usage

- DonationModal migration required typescript to fix error hence disable ts error in LearnLayout component

Co-authored-by: Shaun Hamilton <shauhami020@gmail.com>
2021-06-30 20:52:18 +05:30
Parth Parth
6b52d6c331 feat(client): ts-migrate client/src/resources/certAndProjectMap.js (#42648)
Co-authored-by: Parth Parth <thecodingaviator@users.noreply.github.com>
2021-06-30 20:52:17 +05:30
Tom
b334031b2f fix(client): runtime error with icons/space component (#42665)
Co-authored-by: Shaun Hamilton <shauhami020@gmail.com>
2021-06-30 20:52:17 +05:30
Parth Parth
61d1020dd7 feat(client): ts-migrate footer (#42636)
Co-authored-by: Parth Parth <thecodingaviator@users.noreply.github.com>
2021-06-30 20:52:17 +05:30
Parth Parth
7df4b87396 migrate (#42641)
Co-authored-by: Parth Parth <thecodingaviator@users.noreply.github.com>
Co-authored-by: Tom <20648924+moT01@users.noreply.github.com>
2021-06-30 20:52:17 +05:30
Parth Parth
11d71adc6e feat(client): ts-migrate /client/src/components/ redirects (#42642)
* rename

* migrate

* migrate create language redirect

* fix type of redirects

* migrate test

Co-authored-by: Parth Parth <thecodingaviator@users.noreply.github.com>
Co-authored-by: Shaun Hamilton <shauhami020@gmail.com>
2021-06-30 20:52:17 +05:30
Nicholas Carrigan (he/him)
e1e0fe02bf feat(client): migrate fourOhFour (#42626)
Co-authored-by: Shaun Hamilton <shauhami020@gmail.com>
2021-06-30 20:52:17 +05:30
Parth Parth
4737d96084 feat(client): ts-migrate /client/src/.../Tool-Panel.js (#42646)
Co-authored-by: Parth Parth <thecodingaviator@users.noreply.github.com>
2021-06-30 20:52:17 +05:30
Shaun Hamilton
cb0cea07a1 fix show-project-links type linting 2021-06-30 20:52:17 +05:30
Shaun Hamilton
2a2ee30f63 update prop-types 2021-06-30 20:52:17 +05:30
Nicholas Carrigan (he/him)
592a2846d3 chore: pass CI (#42635)
* chore: eslint on icons

* chore: eslint spacer element

* chore: remove more eslint

* fix: existing lint issues

* fix: misnamed import

* fix: client now builds!

* fix: tsc errors

* fix: more linting issues
2021-06-30 20:52:17 +05:30
Oliver Eyton-Williams
d87b472ee7 Fix: assorted next fixes (#42634)
* chore: fix slightly broken package.json

* fix: update children type

* fix: make size optional for Spacer

* fix: correct broken env import

* test: update snapshot and fix typing

* test: fix imports and remove old snapshot
2021-06-30 20:52:17 +05:30
Niraj Nandish
de888d640c feat(client): ts-migrate Settings component (#42341)
* feat(client): change file format to Typescript

* feat(client): migrate SectionHeader component

* feat(client): migrate ToggleSetting component

* feat(client): migrate Theme component

* feat(client): migrate ResetModal component

* feat(client): migrate DeleteModal component

* feat(client): migrate DangerZone component

* feat(client): migrate Honesty component

* feat(client): migrate Privacy component

* feat(client): migrate Username component

* feat(client): migrate About component

* feat(client): migrate Email component

* feat(client): migrate Internet component

* feat(client): migrate Portfolio component

* feat(client): add required types packages

* feat(client): undo file format change

* feat(client): rename files to kebab-case

* feat(client): rename temp files to kebab-case

* feat(client): Review ts-migration

* Fix imports
* Fix some types
* Remove unncessary comments
* Consistent comment format

* restore mistakenly deleted file
2021-06-30 20:52:17 +05:30
krishna-saurav
5ad374cc1a feat(client): ts-migrate for files under client/src/component/search folder (#42327)
* typescript migration for files under search folder

* fixing few more eslint errors and warnings

* reverting changes for redux/index.js

* fixing merge conflicts with next

* deleting redux/index.ts
2021-06-30 20:52:17 +05:30
Parth Parth
1e86063f04 feat(client): ts-migrate Challenges/components/ (#42582)
Co-authored-by: Parth Parth <thecodingaviator@users.noreply.github.com>
2021-06-30 20:50:57 +05:30
Akshat Garg
ea4eeee49e feat(client): ts-migrate header components (#42287) 2021-06-30 20:50:57 +05:30