Commit Graph
2268 Commits
Author SHA1 Message Date
renovate[bot]andMrugesh Mohapatra 82e21aca0e fix(deps): update dependency react-i18next to v12 (#49800)
* fix(deps): update dependency react-i18next to v12

* chore: address linting issues

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Mrugesh Mohapatra <noreply@mrugesh.dev>
2023-04-04 10:38:32 +01:00
Muhammed Mustafa 283f8e2c2a fix(client): rendering the block title as an array (#49924) 2023-04-03 12:53:23 +00:00
Muhammed MustafaandOliver Eyton-Williams b460bc0fba feat(client): add unique flash messages to the sounds (#49785)
Co-authored-by: Oliver Eyton-Williams <ojeytonwilliams@gmail.com>
2023-04-03 14:08:45 +05:30
Muhammed MustafaandBruce B fed78de7a1 fix(client): hack the outline look for the logo in the nav bar (#49903)
Co-authored-by: Bruce B <bbsmooth@gmail.com>
2023-04-03 14:05:15 +05:30
Krzysztof G c14a353c88 fix(client): remeasureFonts when fonts are loaded (#49908)
fix: remeasureFonts when fonts are loaded
2023-04-01 10:43:18 +02:00
Muhammed Mustafa 11e38cd68d fix(client): import Tfunction from i18next in models (#49815)
* fix(client): import Tfunction from i18next

* Import Tfunction as type
2023-03-31 14:27:45 +02:00
Muhammed MustafaandOliver Eyton-Williams 6112f0ad9b fix(client): align multifileEditor and editor types (#49825)
* fix(client): align multifileEditor editor and hotkeys types

* sort the last types

* sort the last types

* clean wrong types

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

* clean wrong types

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

* Change the comment

---------

Co-authored-by: Oliver Eyton-Williams <ojeytonwilliams@gmail.com>
2023-03-30 15:37:04 -05:00
Muhammed Mustafa a8d5fdeec1 fix(client): remove boolean value for non boolean attribute (#49831) 2023-03-30 15:03:28 -05:00
Muhammed Mustafa 47944110b0 refactor(client): wrong TFunction type in searchBar (#49859)
refactor(client): mis aligned types in searchbar
2023-03-30 14:01:33 -05:00
Muhammed Mustafa f61700dc48 fix(client): import TFunction from i18next in forms (#49817)
fix(client): import tfunction from i18next
2023-03-30 18:24:10 +00:00
43e5edcbbd fix(client): import TFunction from i18next for challenges context (#49820)
* fix(client): import tfunction from i18next

* swap the type for the hook

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

* refactor block intros function

* Revert "refactor block intros function"

This reverts commit 32ee772e6c.

* remove array from block title

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

---------

Co-authored-by: Huyen Nguyen <25715018+huyenltnguyen@users.noreply.github.com>
Co-authored-by: Naomi Carrigan <nhcarrigan@gmail.com>
2023-03-30 13:16:58 -05:00
Muhammed Mustafa 6752199cf1 fix(client): import tfunction from i18next in show components (#49819)
fix(client): import tfunction from i18next
2023-03-30 12:59:59 -05:00
Muhammed Mustafa e9d834f1d8 fix(client): import Tfunction from i18next in privacy inputs (#49818)
* fix(client): import Tfunction from i18next

* swap tFuntion with the hook when possilbe
2023-03-30 12:39:52 -05:00
Muhammed Mustafa b67a82ff0a fix(client): import TFunction from i18next in profile componenets (#49814)
* fix(client): import TFunction from i18next

* Import Tfunction as type

* swap tFuntion with the hook when possilbe
2023-03-30 10:28:14 -05:00
Shaun Hamilton e77baf55a4 fix(client): only fetch if username exists (#49874)
A test to see if the number of sentry errors decreases after this commit
2023-03-30 11:26:43 +02:00
Ahmad AbdolsahebandShaun Hamilton 8bd84760b3 feat(client): isolate progress bar (#49479)
Co-authored-by: Shaun Hamilton <shauhami020@gmail.com>
2023-03-27 08:02:55 +00:00
7a904e2e17 chore(a11y): standardize keyboard focus (#49579)
* Create a focus indicator

* Use two different colors for the palletes.

* Use focus-visible instead.

* Remove redundant css

* Use blue-mid for the focus outline color.

* Add a global fallback.

* Clean up the rules some more.

* Remove some bootstrap styling.

* fix: display focus outline on all sides of lower jaw icon buttons

* fix: breadcrumb focus outlines

---------

Co-authored-by: Ahmad Abdolsaheb <ahmad.abdolsaheb@gmail.com>
Co-authored-by: Bruce B <bbsmooth@gmail.com>
2023-03-24 20:31:55 +02:00
Tom 605fdf220a feat(curriculum): make college algebra with python live (#49695) 2023-03-23 21:57:32 +00:00
90efc43149 fix(deps): update dependency i18next to v22 (#49799)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Sboonny <muhammedelruby@gmail.com>
Co-authored-by: Muhammed Mustafa <muhammed@freecodecamp.org>
2023-03-24 01:02:33 +05:30
87d9ade1a7 fix(curriculum,client): move the Euler Project to its own superBlock (#49294)
Co-authored-by: Kristofer Koishigawa <scissorsneedfoodtoo@gmail.com>
Co-authored-by: Oliver Eyton-Williams <ojeytonwilliams@gmail.com>
Co-authored-by: Naomi Carrigan <nhcarrigan@gmail.com>
Co-authored-by: moT01 <20648924+moT01@users.noreply.github.com>
2023-03-23 21:29:13 +05:30
Muhammed Mustafa fbdc8a7ec1 feat(client): rename portofolio file to portfolio-projects (#49615)
* feat(client): rename portofolio file to protfolio-projects

* squash merge to main

* fix typo in the file name

* use one type for profileProjects

* revert the renaming of portfolio prop

* fix type in the new form Correct function
2023-03-23 12:06:52 +05:30
2adaf4c87a feat (client): turn classic show into a functional component (#49491)
* feat: turn classic show into a functional component

* fix: pass redux challengeFiles to components

* feat: add hooks

---------

Co-authored-by: Huyen Nguyen <25715018+huyenltnguyen@users.noreply.github.com>
Co-authored-by: Oliver Eyton-Williams <ojeytonwilliams@gmail.com>
Co-authored-by: Muhammed Mustafa <muhammed@freecodecamp.org>
2023-03-22 17:54:10 +00:00
renovate[bot]andOliver Eyton-Williams 7ecf6a44bc chore(deps): update jest monorepo to v29 (major) (#49775)
* chore(deps): update jest monorepo to v29

* chore: install jest-environment-jsdom

* chore: update snapshots

* fix: update config to transform nanoid+uuid

* chore: update babel's node target

This does not seem strictly necessary, but is probably for the best.

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Oliver Eyton-Williams <ojeytonwilliams@gmail.com>
2023-03-21 12:37:23 +00:00
Shaun HamiltonandOliver Eyton-Williams 3dab4261fb fix(client): allow endpoint on projects (#49656)
* fix(client): allow endpoint on projects

* refactor: structure form.tsx code similarly 

Co-authored-by: Oliver Eyton-Williams <ojeytonwilliams@gmail.com>
2023-03-21 09:47:04 +01:00
Muhammed MustafaandmoT01 5a2b5f1ed2 fix(client): stop margin from pushing outline out of the container (#49647)
* feat(client): stop margin from pushing outline out of the container

* remove the parent because it was breaking the layout on mobile devices

* sort the mobile and laptop layout

* remove extra property

* Update client/src/components/Header/components/universal-nav.css

* center the logo and fix the extra pixel issue

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

* increase padding top

---------

Co-authored-by: moT01 <20648924+moT01@users.noreply.github.com>
2023-03-21 13:56:04 +05:30
Manabu MatsumotoandMuhammed Mustafa 9136f8e408 fix(UI): give the spacer a few standard sizes (#49723)
Co-authored-by: Muhammed Mustafa <muhammed@freecodecamp.org>
2023-03-21 08:17:42 +00:00
Ahmad AbdolsahebandMuhammed Mustafa d3396a2017 feat(client): expose nav donate button for non-donor (#49705)
Co-authored-by: Muhammed Mustafa <muhammed@freecodecamp.org>
2023-03-21 13:31:44 +05:30
Muhammed MustafaandAhmad Abdolsaheb 92a5a48534 refactor(client): clean landing page CSS file (#49726)
Co-authored-by: Ahmad Abdolsaheb <ahmad.abdolsaheb@gmail.com>
2023-03-21 13:20:44 +05:30
WenodhandMuhammed Mustafa e06ef206d4 fix(client): misaligned quotes on the 404 page (#49744)
Co-authored-by: Muhammed Mustafa <muhammed@freecodecamp.org>
2023-03-21 13:19:22 +05:30
Mrugesh Mohapatra e1f0ff5b60 chore: rename components in kebab-case (#49737) 2023-03-18 23:03:37 +07:00
Mrugesh Mohapatra 14c05d99fb chore: rename templates in kebab-case (#49738) 2023-03-17 12:56:38 -07:00
Sem Bauke f578a22c99 fix: disable portfolio description if over 288 characters (#49730)
* fix: description if characters is over 288 characters on portfolio

* feat: add tests

* Update client/src/components/helpers/form/block-save-button.tsx
2023-03-17 12:27:53 +01:00
Oliver Eyton-Williams a2d8905375 feat: keep log when toggling challenge preview (#49724) 2023-03-16 08:28:35 +07:00
Slieptsov DenysandDenys Slieptsov e64bac9a3f fix(learn): progress bar label alignment (#49659)
Co-authored-by: Denys Slieptsov <denys.slieptsov@leaseplan.com>
2023-03-15 13:15:39 +00:00
ba40dbddbb fix(UI): remove the ButtonSpacer (#49480)
Co-authored-by: Muhammed Mustafa <muhammed@freecodecamp.org>
Co-authored-by: Ahmad Abdolsaheb <ahmad.abdolsaheb@gmail.com>
2023-03-15 15:31:56 +03:00
sidemt d3f089474f fix(client): use translated string for 'Certification' in timeline (#49663)
fix(client): use translation for 'Certification' in timeline
2023-03-13 11:59:25 -07:00
9340566428 feat(client): turn nav-links component functional (#49690)
Co-authored-by: Oliver Eyton-Williams <ojeytonwilliams@gmail.com>
Co-authored-by: Muhammed Mustafa <muhammed@freecodecamp.org>
2023-03-13 13:33:40 +00:00
Ahmad Abdolsaheb 0b21a505fa feat: standardize analytics (#49657)
* feat: standarize analytics

* feat: add experiment view event to GrowthBook
2023-03-13 00:26:10 +07:00
TomandShaun Hamilton b950070f80 feat(curriculum): add college algebra cert as upcoming change (#43605)
Co-authored-by: Shaun Hamilton <shauhami020@gmail.com>
2023-03-10 10:55:50 +00:00
Muhammed Mustafa 74046d1d82 refactor(client): delete honest-Policy file (#49643)
* refactor(client): clean extra element I have added by mistake

* reduce the complexicity of the file
2023-03-10 09:45:29 +01:00
Muhammed MustafaandOliver Eyton-Williams 86c215acdd feat(client): add type reset (#49628)
* feat(client): add type reset

* downgrade babel types

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

---------

Co-authored-by: Oliver Eyton-Williams <ojeytonwilliams@gmail.com>
2023-03-09 14:25:30 +00:00
Mrugesh Mohapatra b13713c33f chore(client): rename and update analytics (#49626) 2023-03-08 15:01:22 +00:00
Muhammed Mustafa 32380519f9 feat(client): clean extra CSS properties (#49608)
* feat(client): clean extra css property

* remove the extra panel default property
2023-03-08 08:37:36 +01:00
Shaun HamiltonandOliver Eyton-Williams f45d8b06dc feat(client): warn endpoint url submission (#49560)
Co-authored-by: Oliver Eyton-Williams <ojeytonwilliams@gmail.com>
2023-03-06 16:24:48 +05:30
sidemt a4ce8fa425 fix(client): prevent word wrap in Chinese & Japanese button text (#49571)
fix(client): prevent word wrap in CJK button text
2023-03-06 16:20:06 +05:30
Muhammed MustafaandBruce B f937e89bc3 feat(client): improve card accessibility (#49566)
Co-authored-by: Bruce B <bbsmooth@gmail.com>
Co-authored-by: Co-authored-by: Bruce B <bbsmooth@gmail.com>
2023-03-06 10:41:09 +03:00
ec9fb04fb7 feat: statistics calculator (#48181)
* feat: stats calculator to step 23

* feat: complete steps

* feat: starting the tests

* feat: finish tests

* chore: manual review suggestions

* chore: apply jessica's suggestions

Co-authored-by: Jessica Wilkins  <67210629+jdwilkin4@users.noreply.github.com>

* fix: broken mathjax

Co-authored-by: Kristofer Koishigawa <scissorsneedfoodtoo@gmail.com>

* chore: fix typo

Co-authored-by: Kristofer Koishigawa <scissorsneedfoodtoo@gmail.com>

* fix: update regex, clarify first step

* feat: forgot to add solution

* chore: apply sem's review suggestions

Co-authored-by: Sem Bauke <semboot699@gmail.com>

* chore: apply kolade's review suggestions

* chore: apply kris' suggestions

Co-authored-by: Kristofer Koishigawa <scissorsneedfoodtoo@gmail.com>

---------

Co-authored-by: Jessica Wilkins  <67210629+jdwilkin4@users.noreply.github.com>
Co-authored-by: Kristofer Koishigawa <scissorsneedfoodtoo@gmail.com>
Co-authored-by: Sem Bauke <semboot699@gmail.com>
2023-03-03 17:41:25 +09:00
Oliver Eyton-WilliamsandShaun Hamilton d7848ae01a feat: migrate to pnpm for better workspace DX (#49293)
* feat: npm -> pnpm 

This resolves the issues with the gatsby client (gatsby-plugin-pnpm
deals with the fact that gatsby is relying on its own dependencies
being de-duped)
and challenge-editor (which doesn't seem to want to automatically install
codemirror and needed its own eslint config)

* fix: correct mocha path for curriculum tests

* fix: use select workspace with -F not -w

* fix: reorganise packages and restrict hoisting

pnpm works best if the workspaces keep their own dependencies, since
dependencies are not flattened and then what node resolves from a
require is predictable.

@types seem to be a special case and more care is required to prevent
them getting smushed together in the root (hence the .npmrc)

* fix: add types for tools + root

* fix: decouple challenge-auditor from client

* fix: add ui-components types

* fix(client): use the latest types for react 16

* fix: prettify

* fix: prettierignore pnpm-lock

* fix: relax hoisting

Turns out pnpm works just fine with types. I don't know what was going
wrong before, but there are no-longer any type conflicts.

* fix: add @redux-saga/core to fix eslint issue

It seems to only be redux-saga that import/named can't cope with, so it
is probably okay to work around this one.

* chore: add chai to tools/scripts/build

* fix: add store to root for cypress

* fix: allow cypress to download binaries

If we want to keep preventing cypress from downloading binaries, we can
figure out a workaround, but I'm allowing it to ease the transition to
pnpm.

My guess about why this is happening is that npm triggers Cypress's
postinstall script, but pnpm does not (because pnpm install only
installs if necessary, perferring to link)

* chore: re-enable pre/post scripts

* fix: update build scripts for client

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

* chore: update engines to use pnpm


* fix: enable choice of (super)block for tests

Only 'nix machines for now.

* chore: pin pnpm to version 7

* chore: remove last npms

Except web + curriculum-server. I'll update them when I start work on
them again.

* fix: lockfile check to catch any package-locks

* fix(action): install pnpm for upcoming tests

* chore: add nodemon to new api

Co-authored-by: Shaun Hamilton <shauhami020@gmail.com>
2023-03-02 18:17:44 +00:00
Oliver Eyton-Williams 66438c271f fix: add more explicit return types (#49567) 2023-03-02 17:26:40 +00:00
Muhammed Mustafaandhbar1st hanaab@gmail.com caad02d1c5 feat(client): make tables in challenges LTR when it's RTL layout (#49543)
Co-authored-by: hbar1st hanaab@gmail.com
2023-02-28 21:45:20 +07:00